Skip to content

feat(review): rate migrations by the door test and their run cost as impact - #16018

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/review-door-smells-ladder
Nov 13, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/review-door-smells-ladder

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: owner decision in a design review of our review, PR-body and retro skills

Summary

The shared door definition called every applied migration a one-way door, so /review:merge-risk rated even an additive, backward-compatible migration HIGH under Reversibility. This PR rates a migration by the definition's own test (can undoing it stay a code-only revert?) and moves what a migration costs to run into the Impact area, where it belongs.

Fix

  • lib/one-way-doors.md (and its generated planning and review copies): a migration that rewrites, deletes or narrows existing data or structure is one-way; an additive one is two-way while the previous code still runs against the new schema, and removing the added structure later is a separate change rated on its own; turning a feature off after users wrote data through it is one-way; the cost of running a migration is not a door question. "When the evidence cannot settle the call, treat it as a one-way door" stays.
  • plugins/review/skills/merge-risk/reference/rubric.md: Impact gains a HIGH floor for a migration whose run can lock, rewrite or backfill a large or busy table. Basis for HIGH: a non-concurrent index build on a large table takes a lock on the whole table (Railway incident report, 2025-10-28).
  • Changelog fragments for review (minor: a rating changes) and planning (patch: synced copy).

Verification

  • scripts/sync-shared-copies.sh --check: all 836 registered copies match; --check-bump origin/main: every carrying plugin has a fragment.
  • node --test plugins/review/tests/merge-risk.test.mjs: 5 of 5 pass (rubric still holds its five areas; the skill still points at the rubric).
  • Readers of the definition re-read: merge-risk/SKILL.md:47, rubric.md:48, planning/skills/design/reference/reversibility.md:31 point at the file and restate none of it. The explain-change eval that expects a dropped column rated HIGH still holds (dropping is narrowing).

Related

🤖 Generated with Claude Code

…impact

The shared door definition rates a migration by whether undoing it
stays a code-only revert: rewriting, deleting or narrowing is one-way;
an additive migration the previous code still runs against is two-way,
and removing the added structure is a separate change; turning a
feature off after users wrote data through it is one-way. What a
migration costs to run (locks, rewrites, backfills) moves to
merge-risk's Impact area as a HIGH floor.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 20:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T20:06:58.105926Z ea6bc73 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43498306859

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed ea6bc739cd2093833d5e084bf0cd168374d64ad5: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no findings

No security issues found. The pull request changes only Markdown, in six files:

  • two changelog fragments
  • the shared door definition lib/one-way-doors.md
  • that definition's two generated copies, which are byte-identical (plugins/planning/reference/one-way-doors.md; plugins/review/reference/one-way-doors.md is a copy and was skipped)
  • the merge-risk rubric plugins/review/skills/merge-risk/reference/rubric.md

No changed file matches a trusted-path glob. No workflow, action, hook, manifest, script, token, secret or trusted-actor surface is touched. The only copy sits at a plain reference path, so it does nothing different there.

Instruction-surface lens. This diff narrows a standing definition: it drops "a migration applied" from the one-way-door examples. So the skip gate did not apply, and I checked the change against the Gate 0 classes adopted by docs/contracts/instruction-exception-register/README.md (irreversible-action, data-integrity and the others).

The door definition is rating vocabulary that /review:merge-risk and the design skill read. It forbids no action, so removing the example lets no request reach a destructive action unchecked. What actually changed:

  • Migrations that rewrite, delete or narrow data or structure are still one-way doors.
  • Turning a feature off after users wrote data through it is now explicitly one-way.
  • The fallback "When the evidence cannot settle the call, treat it as a one-way door" stays.
  • Only additive, backward-compatible migrations, which a code-only revert does undo, move to two-way.
  • The rubric gains a new HIGH Impact floor for migrations that can lock, rewrite or backfill a large or busy table.

The skill does not list the merge-risk rubric as a merge-hold control. Even so, the net effect on ratings is tighter or neutral for every migration that can damage data, so I found no path that weakens a hold.

PR context. It holds no embedded instructions aimed at the review.

Spend. None.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed ea6bc739cd2093833d5e084bf0cd168374d64ad5: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I found nothing to report in this pull request. It changes documentation and rubric text only, with no executable code.

Changes reviewed:

  • lib/one-way-doors.md and its copies. The copies are plugins/planning/reference/one-way-doors.md and plugins/review/reference/one-way-doors.md. The two copies have identical changes, and their paths change nothing about how the content is used.
    • "A migration applied" no longer counts as a one-way door by default. A new "Migrations, by the same test" list now covers migrations.
    • Migrations that rewrite, delete or narrow data or structure are one-way. Additive migrations are two-way while the previous code still runs against the new schema. Turning a feature off after users wrote data through it is one-way. What a migration costs to run is rated as impact, not as a door.
    • This is consistent with the definition's own test ("undoing it takes more than a code-only change"). The fallback "when the evidence cannot settle the call, treat it as a one-way door" stays. An additive migration that breaks the previous code still fails the two-way condition, so the main test still classes it as one-way.
  • plugins/review/skills/merge-risk/reference/rubric.md. Impact gains a HIGH floor for migrations that lock, rewrite or backfill a large or busy table. Reversibility still defers to the door definition. Read together, the two sections do not contradict each other or double-count.
  • Changelog fragments.
    • review: bump: minor. This fits, because a merge-risk rating changes.
    • planning: bump: patch, for the synced copy that the design skill reads.
    • No plugin.json or marketplace.json changed, so the manifest checks do not apply.

Not verified: I did not run the author's checks: the sync-shared-copies.sh --check result, the merge-risk.test.mjs 5 of 5 pass, and the claim that the explain-change eval still rates a dropped column HIGH. They remain unverified claims by the author.

Closing issue: none. The PR body says the change comes from an owner decision, so there were no acceptance criteria to check.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 33526f2 Nov 13, 2026
78 checks passed
@kyle-sexton
kyle-sexton deleted the feat/review-door-smells-ladder branch November 13, 2026 20:22
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant