Repository navigation
fix(guardrails): isolate contextual reviewer instructions - #2006
Merged
Merged
Conversation
Match internal child-context exclusions to the guardrail-reviewer role used by the production factory. Keep admitted facts as review data and preserve ordinary worker context, with request-level regression and retry coverage. Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
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.
Summary
Correct the role mismatch that let the contextual guardrail reviewer inherit ordinary working-agent context.
The production factory creates
guardrail-reviewer, but the two injection exclusions still namedguardrail-checker. As a result, configured harness instructions/rules and operator-profile preferences could be added to the checker's prompt as instructions or preferences.Scope
Second small Routine repair from the guardrail investigation following #2001. Direct delivery without an acceptance plan was explicitly requested. No changes to enforcement, yolo/advisory policy, evidence selection or limits, model routing, deadlines, or common prompt tone. This repairs instruction isolation; it does not claim measured checker-quality improvements or resolution of every guardrail failure.
Verification
go test ./internal/apppassed.task test: passed.task docsandtask site:build: passed.task lintandtask test:race: passed on the final candidate. Lint reports zero issues across all modules. Initial 600-second outer deadlines required longer reruns; lint then identified import shadowing in a test, which was corrected before rerunning the full test and race gates.Candidate:
fbed437d7.Documentation owner:
user-docs/building/what-you-get/permissions.md; explains reviewer instruction isolation without implying that relevant admitted facts disappear from review data.