Repository navigation
docs(archdev-skill): mitigate risks found while computing risk, then recompute - #26
Merged
Merged
Conversation
…recompute A sealed risk assessment and PR hunk risk annotations were computed once and posted as labels. Now both are a loop: fix the medium/high risks in the subject itself (code, tests, guards, plan), re-author and finalize (or annotate the new head), and post what remains as named residual risk. The grade must follow the work, never an edited assessment; one mitigation round; scope-changing fixes go to the human. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ever expand scope A fix that would expand scope is not made; the risk is recorded as residual and the agent moves forward. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Why
Agents compute risk in two places: the sealed risk assessment on plan, task and PR events, and the per-hunk
riskannotations on PRs. Today both are computed once and posted as labels. The assessment finds medium or high risks, and nobody acts on them before posting.Change
references/monitor.md, sealed assessment: a new step 4, "Mitigate, then recompute".--message.references/monitor.md, PR hunk annotations: a new step 3.--forceis never needed.SKILL.md: one sentence that points to this loop (within scope, at most twice).Factory sessions are unchanged: they still skip hunk annotations, because the host writes those.
🤖 Generated with Claude Code