Skip to content

test(server): rfc0020 red — config-file §5 stubs + status - #321

Merged
jensholdgaard merged 1 commit into
mainfrom
test/rfc0020-red
Jun 30, 2026
Merged

test(server): rfc0020 red — config-file §5 stubs + status#321
jensholdgaard merged 1 commit into
mainfrom
test/rfc0020-red

Conversation

@jensholdgaard

@jensholdgaard jensholdgaard commented Jun 30, 2026

Copy link
Copy Markdown
Owner

What

Takes RFC 0020 (signed off, merged as #320) to the red maturity stage:

  • Flip status: specified → red in docs/rfcs/0020-configuration-file.md.
  • Add the six #[ignore]d acceptance stubs (RFC0020.1.6) in crates/ourios-server/tests/rfc0020_config_file.rs, pinning the scenario ids so the RFC↔test mapping is greppable from red onward (docs/verification.md §2.3). todo!() bodies; CI shows 6 ignored.

Scenarios pinned

id scenario
RFC0020.1 complete file → expected ServerConfig
RFC0020.2 env substitution follows the OTel Config WG model
RFC0020.3 file authoritative; bare env does not override
RFC0020.4 no --config preserves the env-only path
RFC0020.5 invalid configuration fails fast
RFC0020.6 secret hygiene across the file path

Next (green slices)

Substitution resolver first (config/env_subst.rs, property-tested against the WG vector table), then schema/deserialization → ServerConfig, --config wiring, validation. The OTEL_* SDK env stays out of scope (RFC 0020 §3.8).

fmt/clippy/cargo test clean locally (6 ignored).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Added placeholder acceptance tests covering several server configuration file scenarios, laying out expected behavior for future validation.
  • Documentation
    • Updated the related RFC status to reflect its current review stage.

Flip RFC 0020 to `red` and add the six `#[ignore]`d acceptance stubs
(RFC0020.1–.6) in crates/ourios-server/tests/rfc0020_config_file.rs,
pinning the scenario ids so the RFC↔test mapping is greppable from red on
(docs/verification.md §2.3). todo!() bodies; CI shows 6 ignored. The green
slices implement them — substitution resolver first, property-tested
against the OTel Config WG vector table.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jensholdgaard
jensholdgaard requested a review from Copilot June 30, 2026 14:28
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Six ignored acceptance test stubs for RFC0020 (server configuration file) are added to crates/ourios-server/tests/rfc0020_config_file.rs, each implemented as a todo!. The RFC document's status field is updated from specified to red.

RFC0020 Config File Stubs

Layer / File(s) Summary
Acceptance test stubs and RFC status
docs/rfcs/0020-configuration-file.md, crates/ourios-server/tests/rfc0020_config_file.rs
RFC status changed to red; six #[ignore]d todo! test functions added covering file-to-config mapping, env substitution, override precedence, env-only mode, invalid config fail-fast, and secret hygiene.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A rabbit plants six seeds of red,
Each test a stub, not yet well-fed.
todo! whispers, "not today,"
But specs are pinned and on their way.
🐇 Hop along — the green comes next!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the RFC 0020 red-stage test stubs and status flip.
Description check ✅ Passed The description covers the change, related RFC context, scenarios, and validation notes, though it doesn't follow the template headings exactly.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/rfc0020-red

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves RFC 0020 (server configuration file) from the specified gate to the red gate by updating the RFC frontmatter and adding compiling, #[ignore]d acceptance-test stubs that pin the RFC §5 scenario IDs in test code for grep-based traceability.

Changes:

  • Flip RFC 0020 frontmatter status: from specified to red.
  • Add six ignored Rust test stubs (RFC0020.1RFC0020.6) in ourios-server to anchor the RFC↔test mapping per docs/verification.md §2.3.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/rfcs/0020-configuration-file.md Updates RFC 0020 maturity status to red.
crates/ourios-server/tests/rfc0020_config_file.rs Adds ignored acceptance-scenario stubs with greppable scenario IDs for RFC 0020.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
crates/ourios-server/tests/rfc0020_config_file.rs (1)

8-13: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Keep the unit-testable RFC0020 cases next to the config code.

Lines 8-13 already classify RFC0020.1, RFC0020.2, RFC0020.3, and RFC0020.5 as unit-testable, but this file still pins them under crates/ourios-server/tests/. That sets the wrong default for the green slice and conflicts with the repo rule that non-trivial unit tests live beside the code. Please move those scenario shells alongside the config implementation now, and leave this file for the genuinely end-to-end cases only. As per coding guidelines, "Unit tests must be next to the code and are mandatory for anything non-trivial."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/ourios-server/tests/rfc0020_config_file.rs` around lines 8 - 13, The
RFC0020 cases marked as unit-testable are still sitting in the end-to-end test
file, which conflicts with the repo rule that non-trivial unit tests live beside
the code. Move the RFC0020.1, RFC0020.2, RFC0020.3, and RFC0020.5 scenario
shells from this test module into the config implementation area next to the
relevant config code (for example the config module under src/main.rs or
src/config/), and keep this file only for the true end-to-end ServerConfig
checks. Use the RFC0020 labels and the existing config-related symbols mentioned
here to place each test with its corresponding implementation.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@crates/ourios-server/tests/rfc0020_config_file.rs`:
- Around line 8-13: The RFC0020 cases marked as unit-testable are still sitting
in the end-to-end test file, which conflicts with the repo rule that non-trivial
unit tests live beside the code. Move the RFC0020.1, RFC0020.2, RFC0020.3, and
RFC0020.5 scenario shells from this test module into the config implementation
area next to the relevant config code (for example the config module under
src/main.rs or src/config/), and keep this file only for the true end-to-end
ServerConfig checks. Use the RFC0020 labels and the existing config-related
symbols mentioned here to place each test with its corresponding implementation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8e713ee3-7ea6-4643-8bc5-cae1b98002ac

📥 Commits

Reviewing files that changed from the base of the PR and between 0bf67ff and d20765b.

📒 Files selected for processing (2)
  • crates/ourios-server/tests/rfc0020_config_file.rs
  • docs/rfcs/0020-configuration-file.md

@jensholdgaard
jensholdgaard merged commit 88fbe1f into main Jun 30, 2026
22 checks passed
@jensholdgaard
jensholdgaard deleted the test/rfc0020-red branch June 30, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants