Repository navigation
feat(plugin): give the handoff a move for requests outside the spec - #69
Merged
Merged
Conversation
The generated handoff told the implementation agent not to invent requirements and to "stop and check the ADRs" when building beyond the spec. The extracted ADRs list exclusions only, so a request the spec neither includes nor excludes left the agent to halt or build unannounced. - Add a "When a Request Is Not in the Spec" section to generate_handoff.py: name the excluding ADR, or say the spec is silent, propose the spec change, ask, and update the spec before implementing - Regenerate the tea-tracker example handoff - Add tests: the section exists and the committed example matches the generator - Append the amendment to ADR 0010; bump the plugin to 0.5.2 Closes #65 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 5 tasks
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
Closes #65.
/compilewrites for the implementation agent gains a section, "When a Request Is Not in the Spec". If an ADR excludes the request, the agent names it and does not build. Otherwise it says the spec is silent, proposes the smallest spec change, asks, and updates the spec files before implementing.Behaviour change for plugin users
Every handoff generated from now on carries the new section. Existing handoffs in users' projects are unchanged until they recompile.
Evidence and its limit
The constitution-lift experiment saw a rule with no compliant path halt a harmless feature in 6 of 6 runs, on a different repo. Nothing has measured a generated handoff before or after this change, so this is a reasoned fix, not a tested one.
Test plan
python checks/run_checks.py --ci --require-validator— 18 checks, 0 findingspython -m unittest discover -s checks/tests— 32 tests passpython plugin/scripts/validate_spec.py examples/tea-tracker/spec-packagestill passesADR impact
🤖 Generated with Claude Code