Skip to content

feat(app-control): record each drive step's stated result beside the observed one - #15930

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-15910-43413484227-1
Nov 13, 2026
Merged

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

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #15910

Summary

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

/app-control:drive's report now records each step's stated result (its Result: in ## Drive, or its result in a steps file) next to what the step observed, as stated_result in report.json and side by side in report.md. It never compares the two and writes no word that says whether they match, the same way it already records a Budget: value beside its threshold. The proof step the contract already defines gets its own entry: proof: true, its stated result, the capture kinds its Captures: names, and as observed text each capture's path and what its sidecar or contents hold. Design choice: I put the rule beside the existing Never judge rule, and the field in evidence.md's steps row, because evidence.md owns report.json's fields. This is part 3 of 6 of #15797 and covers only that part's done-when item.

Not verified

  • Review finding left as is: report.public.* redacts observed but not stated_result. Stated results are control-skill text, not app output, and the mask post-check still scans them and fails closed, so I did not add a redaction rule
  • Tidy: tidy-diff ran all five passes with no edits. Passes 1-3 had nothing to act on in the evals.json JSON lines. In pass 5 the ai-slop deterministic detector (detect.sh) did not run because the lane's Bash allowlist excludes it; only the judgment rubric was applied
  • The drive eval suite itself (eval 3) was not run here; it runs in the eval-runner session or the PR's CI
  • Untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) appear in git status; they come from the runner sandbox, not this change, and were left untouched
  • Not committed: the lane instructions say to leave every change uncommitted for the runner's patch

Fix

  • plugins/app-control/skills/drive/SKILL.md: Purpose names the stated result beside the observed one; new Rules bullet 'Stated result beside observed, never compared', which covers how to copy the stated result, the no-comparison rule and how to handle the proof step
  • plugins/app-control/skills/drive/reference/evidence.md: report.md lists each step's stated result and observed text side by side; report.json steps gain stated_result (or null), and the proof step's proof: true and captures, and counts as a capture step
  • plugins/app-control/skills/drive/evals/evals.json: eval 3 now gives steps with Result: lines and a Proof step, and expects each stated result beside the observation with no match or mismatch wording
  • .changes/app-control/work-resolve-issue-issue-15910-43413484227-1-b5d9a75b.md: minor changelog fragment (### Added) for the new report field

Verification

The runner ran each check from the base copy against f192d3e:

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

The run reports:

  • check-changelog-fragments: all 2 fragments valid (after adding the missing ### Added heading)
  • check-changed-skills: drive PASS, 0 errors, 4 warnings (description length, body length and router token cap were already over their limits before this change; body grew 282 -> 290 lines)
  • check-affected: 12 passed, 7 skipped, 0 failed over 4 changed files
  • check-evals-quality on plugins/app-control/skills/drive/evals/evals.json: PASS, 0 warnings
  • fresh-context review subagent over the full diff against the contract's Drive steps and Steps files sections: no high findings; I applied 4 of its 5 findings (proof step counts as a capture step, observed text for proof captures limited to path plus sidecar or contents, eval wording 'each action…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43413484227

Left out: the items under Not verified.

Related

#15910

Follow-ups

  • Pre-existing (advisory): **Advisory: a proof step with more than one capture has no defined shape in 'report.json'.** (thread)

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

Copy link
Copy Markdown
Contributor

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

Security review: PR #15930 (/app-control:drive records each step's stated result)

No security issues found. I read every hunk of all 4 changed files in the full diff (first review of this pull request, not blocking only). None of them matches a trusted-path glob, and the diff touches no trust control, workflow, token or plugin manifest.

What changed: prose-only edits to the drive skill:

  • SKILL.md: the Purpose wording, plus a new Rules bullet saying each step's stated result is recorded beside what it observed and never compared with it.
  • reference/evidence.md: a new stated_result field and a proof-step entry (proof: true, captures) in the steps row of report.json.
  • evals.json: eval 3 updated to match.
  • A changelog fragment.

Checks on the one data-flow concern:

  • Redaction of the new field in the public reports. report.public.* redacts observed text and command lines, but stated_result is copied through unredacted (evidence.md#L67-L70). The PR description says the same under "Not verified".
    • Where the text comes from: a stated result is copied from the control skill's ## Drive Result: text or from the caller's steps file. It is not app output or runtime data.
    • What still catches a leak: the Mask post-check scans both public reports in full for the Mask's resolved values: and for the generic credential pattern (email, Bearer, token/secret/password keys, PEM header). It also fails closed: a hit, or a source that did not resolve, keeps both public reports out of publishable (evidence.md#L92-L116).
    • Proof step: the proof step's capture-derived text goes in observed, so it is redacted like any other step's.
    • Result: I found no path that leaks a secret through this field.
  • Untrusted text reaching a caller. Stated results come from the same control skill or steps file the run already reads its actions from. No new outside author's text reaches the report or its callers.
  • Instruction-surface lens. The diff adds a rule and narrows nothing. The "Never judge" rule and the mask post-check are unchanged.

What it spends: nothing beyond the drive eval suite's existing runs, which draw on prepaid credit.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on f192d3e1067ef946b4974bc4a1b41822287c893c; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed f192d3e1067ef946b4974bc4a1b41822287c893c: read 4 of 4 changed file(s); 1 finding(s), 1 as inline comments.

Code review: PR #15930, drive records each step's stated result beside what it observed

1 finding (advisory), no hold. I read all 4 changed files in full in .claude-lane/pr.diff.

What the PR does. It adds a rule to SKILL.md (lines 234-240): drive copies each step's stated result and records it next to what the step observed, and never compares the two. evidence.md gains a stated_result field and fields for the proof step (proof: true, captures). Eval 3 now checks for both. The changelog fragment is minor, which fits an additive report field.

Closing issue #15910. Its done-when reads: "Drive's report carries each step's stated result beside the observed one, with no word that rates the outcome." The change meets it in both report formats:

  • report.md lists stated result and observed text side by side.
  • report.json adds stated_result and states that no field compares it with observed.
  • The new rule forbids any word that says whether the two match.

Eval 3's new expectations would fail if this broke. I did not run them; the PR says the suite was not run in the lane either.

Checked against the contract. I compared the change with plugins/app-control/reference/control-skill.md ("Drive steps" at L261-279, "Steps files" at L354-399). The proof step taking no action, and being reported by id with its capture kinds, matches the contract. When a step fails, the proof step is not listed, since it is not a finally step. That is consistent with the existing "a step a failure ended is not listed" rule.

Finding. A proof step can name several capture kinds (the contract's own example is Captures: screenshot, trace). The report.json steps schema has room for only one process and one command per step. Details are in the inline comment on evidence.md.

Left for the security lane (not counted).

  • For a raw capture, the proof step's observed text includes "what its … contents hold". Evidence.md warns that a trace or heap snapshot can hold secrets, so this can copy them into report.md and report.json. Those two files get a secrets_mark entry only once they hold a command line.
  • The PR leaves stated_result unredacted in report.public.* and says so under "Not verified".

Path-scoped rules.

  • .claude/rules/skill-bodies-state-current-rules.md and cost-claims.md match the SKILL.md and evidence.md changes; neither is broken.
  • .claude/rules/eval-case-transcripts.md matches evals.json. The new prompt is synthetic, not a transcript.

Not applicable. No plugin manifest changed, so there are no manifest lines. No paved-path criteria were in play.

Spend. Nothing in this change spends credits or usage.

Embedded text. The PR context and prior findings hold no instructions aimed at this lane. This is the first review of the PR (blocking only: no).

Author-claimed and not checked by me: the runner's passing check-changelog-fragments and check-changed-skills results, and the check-affected and check-evals-quality results.

Verifier dropped 0 of 1 candidates (no verifier subagent was dispatched; I checked the one candidate directly against the contract).

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on f192d3e.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f192d3e1067ef946b4974bc4a1b41822287c893c, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for f192d3e

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-15930-f192d3e1067ef946b4974bc4a1b41822287c893c, expires on 2026-12-13.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=f192d3e1067ef946b4974bc4a1b41822287c893c rubric=8.4.16 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 13, 2026
Merged via the queue into main with commit e43496d Nov 13, 2026
71 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15910-43413484227-1 branch November 13, 2026 11:30
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.

State the observable result on every drive step and end each feature with a proof step - part 3 of 6

0 participants