Repository navigation
feat(session-flow): carry buys/surface/cost on inherited security and design decisions - #17596
Conversation
… design decisions A Decisions in force entry tagged [security] or [design] after its id ends with buys:, surface: and cost:. save_point.py validate fails a tagged entry missing any field and names the fix; untagged entries and older handoffs still pass. The decisions slots and the structure doc state the shape. /session-flow:reanchor prints each tagged decision's three fields on resume and sends it back to the owner when its cost exceeds what it buys, or a security decision exposes no surface. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: faedadfd1b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Lane run report
Failed GitHub API calls
|
|
claude-review reviewed Code review: PR #17596 (incremental, blocking only)This is an incremental review of The earlier finding is fixed. That finding said an empty
I traced each new case through the regex by hand:
The new test cases at Nothing blocking in this push. One non-blocking edge case was dropped under blocking-only mode: the split on the plain text Other notes:
Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues found. This is an incremental review of the changes since What changed:
The earlier summary post at Because this lane already reviewed an earlier head of this pull request, this review reported only CRITICAL and IMPORTANT findings. critical-findings: 0 |
A blank buys:, surface: or cost: followed by a semicolon, the next field's label or a Rewritten mark passed, since the value check matched any non-space character. The check now ignores the rewrite mark and requires a value that is neither a separator nor another field label. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
Post-merge mutation testingKilled 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Carries #17596's tagged security/design decisions into Track B: the decision-field check uses S3.id_spec("D") and id_of(prefix, ...), the shape-3 decisions slot names DECISION_TAG_SHAPE, and the structure doc, handoff skill and reanchor skill keep Track B's wording plus the tag rule. The Phase 2 harness tests build with this checkout's save_point.py as if it were the before tree; the next commit builds them as the after arm. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgaqsQksryU8CarAPiU
No related issue: owner-approved corrections:codify proposal (hub Q243)
Summary
A resumed hub session carried out decision D427 (move the Claude secrets to a main-only environment) through several build steps. The owner then reversed it. Its handoff entry under "Decisions in force" recorded only what was decided and by whom. It did not say what the decision bought, what surface it exposed, or what it had cost so far, so the resumed session had nothing to re-check before building on it.
Codifies: inherited security/design decisions carry buys/surface/cost; the handoff validator enforces it
Fix
Decisions in forceentry tagged[security]or[design]right after its id ends with three fields:buys:(what it gains),surface:(the surface exposed today, ornone) andcost:(measured cost so far, ornone yet). Thedecisionsanddecisions-newslot instructions insave_point.py, the shape-3 table and a "What the writer owns" bullet inreference/structure.md, and the handoffSKILL.mdall state this shape. Tagging a carried decision changes its text, so it ends withRewritten h<N>: <why>like any other rewrite.save_point.py validate(shape 3) fails a tagged entry that lacks any of the three fields, for exampleDecisions in force: [security] decision lacks surface:; add buys:/surface:/cost: to D1. Untagged entries need no fields, so older handoffs still pass. The tag is matched only directly after the id: an entry that just mentions the word "security" (like D424) is not treated as tagged./session-flow:reanchorgains check 6. It prints each tagged decision'sbuys,surfaceandcost, and states the rule: whencostexceedsbuys, orsurfaceisnonefor a security decision, bring the decision back to the owner before building on it..changes/session-flow/fragment withbump: minor.Scope: shape 2's "Decisions already settled" section is unchanged, because
newwrites shape 3.Verification
uvx --with pytest --with pytest-xdist pytest -n 8 plugins/session-flow/scripts/tests/test_save_point.py plugins/session-flow/scripts/harness: all pass. The new tests cover three cases. A tagged entry fails when it has no fields, two of the three, or an emptycost:. A tagged entry passes with its fields inline or on a continuation line. An untagged legacy entry that mentions "security" also passes.scripts/check-changed-skills.sh origin/main: handoff and reanchor PASS.scripts/check-changelog-fragments.sh --check: valid.Related
Decisions in force, entry D427.🤖 Generated with Claude Code
https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj