Skip to content

fix(corrections): write the codify proposal file before the report on a person's invocation - #18618

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-18587-45287311360-1
Nov 24, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-18587-45287311360-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #18587

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Section 6 of /corrections:codify now has a person-invoked run call Write with the whole proposal before it starts the report. The step is done only when the file exists, and a proposal shown only in the reply does not count as written. The Report section opens with the same ordering, and the person-invocation test is now precise: their own message runs /corrections:codify as a command (not quoted, pasted or asked about), whether the slash command loaded the skill or the model loaded it through the Skill tool. Basis: the issue's two failing runs ended with no error after 7 of 10 turns with Write called 0 times, which fits the model either treating its Skill-tool load as a model invocation or presenting the proposal in the reply. Both readings are now ruled out in the text. No trace was available to tell which one happened.

Not verified

  • Acceptance criterion: codify-direct-codify-one-occurrence-writes-proposal passing 3 of 3 with-plugin runs. Eval runs are CI-only (docs/review/evals.md), so this is left to the PR's eval suite run.
  • Acceptance criterion: the compare run for this skill-text change showing no loss on corrections' affected cases. Compare runs happen in CI before merge (docs/review/evals.md), so this is left to the PR's compare run.
  • The issue's proposed local-trace reproduction was not done: this lane cannot run evals or the model. The cause stays UNVERIFIED, and the fix covers both readings the issue names.
  • Tidy pass 5 (ai-slop:audit fix): the detector and fix-flow scripts are not runnable under this lane's Bash rules, so the changed lines were checked for tells by reading them instead (no em dashes, no catalog vocabulary). Tidy pass 4 (write-for-agents) ran and tightened the section 6 wording. Passes…
  • check-affected skipped typos (not installed), comment-hygiene (network fetch denied), size-check (script missing in the lane) and validate-plugins sub-checks that run checked-tree code; CI runs them.
  • markdownlint was skipped inside check-changed-skills (CHECK_SKILL_SKIP_MARKDOWNLINT=1); CI runs it.

Fix

  • plugins/corrections/skills/codify/SKILL.md: section 6's person-invoked bullet defines a person's invocation without depending on how the skill loaded, names git branch --show-current for the slug, and orders announce -> Write -> report with the file existing as the done criterion; the…
  • .changes/corrections/work-resolve-issue-issue-18587-45287311360-1-122f2874.md: new patch fragment (### Fixed) describing the change.

Verification

The runner ran each check from the base copy against 634bb3e:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

Left out: the items under Not verified.

Related

#18587

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #18618

I read both changed files in full: the changelog fragment and plugins/corrections/skills/codify/SKILL.md. I found no security issues.

Instruction-surface lens. The change rewrites when a person's invocation counts as consent for /corrections:codify to write its proposal file.

  • Before: consent was "they typed /corrections:codify".
  • After: consent is "their own message runs /corrections:codify as a command, not quoted, pasted or asked about, whether the slash command loaded the skill or the model then loaded it through the Skill tool".

This change makes the test stricter. Quoted, pasted or asked-about mentions are now excluded, so text the person pasted or a hostile context cannot grant write consent. The only case it adds is a load through the Skill tool, and that case still requires the person's own message to run the command.

The write that consent unlocks has not changed:

  • It is a local proposal file under .work/codify/<branch-slug>/, inside a directory whose .gitignore contains *.
  • The slug is limited to [a-z0-9._-], so the branch name cannot be used to change the path.
  • The text still says "never edit the repository's own .gitignore".
  • Blocking-check installs still require asking first.
  • A run the model invoked still only proposes.

So no guardrail was removed, and no untrusted input gets a new action. I did not consult the protected-class register; the change narrows consent rather than deleting a rule.

The Report section's new rule (write the file before the report) only changes the order of steps. It has no security effect.

Embedded text. The PR context holds no directive aimed at this lane.

No manifest changed, no trust control was touched, and the change has no spend or billing effect.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 634bb3ec214efd7f9516530f7d3c0de33650f1a9. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings: the change looks correct and in scope for #18587.

I read both changed files in full:

  • .changes/corrections/work-resolve-issue-issue-18587-45287311360-1-122f2874.md is a new changelog fragment, bump: patch, under a ### Fixed section.
  • plugins/corrections/skills/codify/SKILL.md changes in two places:
    • Section 6: a person's invocation is now defined by their own message running /corrections:codify as a command, however the skill was loaded. The skill must call Write before it starts the report, and the step counts as done only when the file exists.
    • Report section: it now opens by saying the proposal file is written first.

What I checked:

  • Who consents. The "model invoked the skill" bullet is unchanged. The new "not quoted, pasted or asked about" wording keeps consent from widening.
  • Other references. The plant paragraph (SKILL.md:157-161) still points to section 6's path and .gitignore rule, so it stays consistent. Nothing else in the plugin cited the removed phrase "the path the proposal is written to".
  • Branch slug. git branch --show-current returns an empty string on a detached HEAD. That falls into the existing "empty slug means no file" rule, so behaviour there is unchanged.
  • The eval case. The prompt of codify-direct-codify-one-occurrence-writes-proposal (plugins/corrections/evals/codify-direct-codify-one-occurrence-writes-proposal/prompt.md:8) is a user message that runs /corrections:codify as a command. Under the new definition that case counts as a person's invocation, as intended.

Closing issue #18587 acceptance criteria: neither one can be checked from this lane.

  • Passing 3 of 3 with-plugin runs of codify-direct-codify-one-occurrence-writes-proposal: the author says this was not verified, and it depends on the PR's CI eval suite run.
  • No loss on corrections' affected cases in the compare run: also not verified, and it depends on the CI compare run.

Both criteria have a regression check in the repository: the eval case above, with its tool_used: Write grader. The PR's verification results (changelog-fragment and changed-skills checks passing) are the author's claims; I did not run them.

Loosened checks: no loosening in the diff. Loosened checks would be marked: fail (default; no loosened_check_verdict: or loosened_check_patterns: line from the wrapper); patterns: 0. I did not check the citation requirement because the wrapper wrote no loosened_check_decision_record: line.

Other review inputs:

  • No plugin manifest changed, so there are no manifest lines.
  • The wrapper named no settled-threads file.
  • The prior-findings file lists no earlier reviews, so this was a full review, not blocking-only.
  • I found no embedded instructions in the PR context.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 634bb3ec214efd7f9516530f7d3c0de33650f1a9, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=634bb3ec214efd7f9516530f7d3c0de33650f1a9 rubric=10.10.2 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 758aec1 Nov 24, 2026
50 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-18587-45287311360-1 branch November 24, 2026 01:00
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 758aec1f597f2ce2df05646f21269bc18d34f502; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

corrections:codify skips the proposal write in 2 of 3 person-invoked runs

0 participants