Repository navigation
test: move agent_protocol's tests out of line and repoint the schema sweep pin (#15193) - #16669
Open
EffortlessSteven wants to merge 2 commits into
Open
EffortlessSteven wants to merge 2 commits into
EffortlessSteven wants to merge 2 commits into
Conversation
…sweep pin (#15193) The agent-capability schema binding in xtask's schema producer sweep pins capability_output_matches_the_published_schema by reading agent_protocol.rs with include_str!. The test now lives in agent_protocol/tests.rs, so the pin and its authority text read that file. The LSP stderr guard keeps reading the production file, which is what it scans. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzV3JdcCDM6STapqHBr
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
…tocol/tests.rs (#15193) The parity and resolver tests the row names moved with the relocation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzSjosVsQMRGZjsjVDi
EffortlessSteven
left a comment
Member
Author
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Head: 6ebd6e3
Inspected: the full diff, a byte-for-byte reproduction of the moved files with the repository's relocation transform (only the xtask pin is a hand edit), and an independent subagent review.
- The schema sweep pin now reads
agent_protocol/tests.rs, wherecapability_output_matches_the_published_schemasits directly under#[test]; the binding's reason text still names the test. - The LSP stderr guard in
lsp/tests.rskeeps reading the production file, which is what it scans;verification_contracts.rsproducer pins match the version constant, which stays in production. - The second commit points the schema producer audit row at the moved parity and resolver tests.
Local on this head:cargo xtask precommit,check-process-policy,check-capability-producers,check-verification-contracts,check-doc-artifacts,check-doc-indexandcheck-local-contextexit 0, andcargo test -p xtask --bin xtask schema_producer_sweeppasses 32 tests. The moved unit tests run in hosted CI only.
Generated by Claude Code
EffortlessSteven
marked this pull request as ready for review
November 30, 2026 07:39
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steven · project thread
Summary
Moves
lsp/agent_protocol.rs's inline tests toagent_protocol/tests.rs. It is a tail owner because xtask's schema producer sweep pinscapability_output_matches_the_published_schemaby readingagent_protocol.rswithinclude_str!, so this PR points that pin and the binding's "narrower authority" text at the new file. The LSP stderr guard inlsp/tests.rskeeps reading the production file, which is what it scans. The rest ismechanical_relocation.py applyoutput.Source-of-truth Links
Proposal: #15217
Governing issue or accepted claim: #15193
Acceptance delta (one sentence): Moves agent_protocol's inline tests out of the published source and repoints the schema sweep pin that names one of them.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
claude/relocate-tail-pr3Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Scope
Production delta:
#[cfg(test)]code moves.Evidence/support delta:
agent_protocol/tests.rs(new), the owner,xtask/src/schema_producer_sweep.rs(one pin, one string),policy/inline-test-modules.txt, and the traceability rows that name the moved tests.Non-goals:
Proof
mechanical_relocation.py applyon base 3b7bf9e, with only the check named below relaxed, regenerates every file in this commit byte for byte except the hand edit toxtask/src/schema_producer_sweep.rs. No check needed relaxing for this owner; the verifier refuses only because of that xtask edit.mechanical_relocation.py verifyrefuses it as expected, so this is an ordinary PR under the size cap, not the mechanical route.cargo xtask precommit,check-process-policy,check-capability-producers,check-verification-contracts,check-doc-artifacts,check-doc-index,check-local-contextexit 0;cargo test -p xtask --bin xtask schema_producer_sweeppasses 32 tests.docs/verification/schema-producer-audit.md's agent-capability row at the moved tests.Source review: REVIEW_READY 6ebd6e3
riprlib binary (it runs out of memory in this container). Hosted CI runs them.Claim Boundary
May claim: these inline tests leave the published source and still compile and run as unit tests.
Must not claim: a measured
.cratesize change.Rollback
Plain revert.
Static Language Check
killed,survived,untested,proven, andadequate.CI Economics
Generated by Claude Code