Skip to content

feat(planning): add the Finish line and check reported-only problems in the interview - #14881

Merged
kyle-sexton merged 9 commits into
mainfrom
feat/intent-transfer-finish-line
Nov 9, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
feat/intent-transfer-finish-line

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #14733

session: Emil Kowalski X Posts

Summary

Problem: a vague first prompt may never reach the interview, a problem with only reported evidence is never checked, a user who doesn't know a Problem field gets no help, and a Brief has no line saying when the effort is done and who checks it. Intent: "ensure the users intent/vision is transferred accurately to the agents"

Every Brief Goal now carries a Finish line:, the interview checks a reported-only problem once and proposes candidates for an unknown field, and unattended runs stop only for an intent or vision conflict or a critical security issue.

Fix

  • Finish line: a fourth Goal line, Finish line: <merged | released | in use>, checked by <who> via <check>. Every consumer that lists the Goal's lines carries it: the interview template, the restatement and surface, the page exporter (fallback not settled yet), plan's no-Brief line, implement-dispatch, decompose, container lifecycle, and confirm (a Finish line row in the report). check-open-questions.sh --procedure --brief fails a Goal with no settled Finish line. A new setting, unattended_finish_check, names the check (ci-status here).
  • Problem framing: a reported-only problem gets one instance question (last instance, cost, who hit it), never a why chain. A field that would read unknown gets candidate values to confirm. Both triggers are labeled judgment.
  • Unattended:
    • An item that contradicts a recorded Intent or Vision, or raises a critical security issue, writes the Brief with a blocked USER-RESERVED row, skips the lock and its check, and ends on Stopped: needs a human: <reason> (D2).
    • A release or in-use item takes the same exit on its Blocked: line (owner decision Q13).
    • Any other item gets the default Finish line.
  • Interview description: unchanged. Phase 4's one wording attempt left the measurement at 0/4, so it was reverted (owner decision Q16; follow-up feat(planning): route bare vague build prompts to the interview #14879).

Verification

  • The interview description change was driven by measurement, and none was kept. AC1 interview-bare-vague-build-asks (planning plugin only) scored 0/3, then 0/4 with the attempted description clause. The negative case interview-bare-vague-explore-no-extra scored 3/3. AC4 real sessions with the owner's setup asked first 3/3, driven by the owner's user instructions (comment).

  • New evals:

    • instance question 3/3
    • unknown-field candidates 3/3
    • unattended default Finish line 1/1 (2/3 earlier)
    • needs-human STOP 2/3
  • Regression set:

    • lock-restates-problem canary 1/1
    • intent-unattended-blocked 1/1
    • unattended-problem-blocked 1/1
    • stated-problem-no-rethink, goal-keeps-user-why and unattended-no-plugin-offer each 1/1

    prescribed-solution-rethink and coverage-unattended-unexamined also fail on unchanged main (fix(planning): two interview evals fail on main (prescribed-solution rethink, unattended coverage) #14878).

  • interview-defenses.test.sh 185/185, with re-pins noted per section. check-open-questions.test.sh, test_exporters.py (225 passed) and the planning surface suites all pass. scripts/check-affected.sh --tests: 16 passed, 4 skipped.

  • A local code review found 0 critical findings and 1 important one: the cross-check rule would have halted the new unattended exits. Fixed.

Acceptance criteria

  • AC1: A claude plugin eval case with a bare vague build prompt and no slash command is graded on behavior (the agent asks about the problem or scope before writing code), passing when it asks in at least 2 of 3 runs; a negative case (vague but exploratory or quick) passes when it asks nothing extra.
  • AC2: Bare-prompt positive probes and clear small negatives exist in a new probe file, with a baseline recorded.
  • AC3: The interview description changes only if AC1 or AC2 shows the gap, and the PR body states which measurement drove it or that none did.
  • AC4: A local session on the owner's machine runs the same bare vague prompt with the owner's normal plugins and instructions loaded, and the result is reported on the issue.
  • AC5: For a reported-only problem the interview asks exactly one instance question (last concrete instance, what it cost, who hit it), never a why chain and never a solution question; a new eval covers it.
  • AC6: The existing evals interview-stated-problem-no-rethink, interview-prescribed-solution-rethink, interview-unattended-problem-blocked and interview-lock-restates-problem still pass, updated only where the rule's wording changed.
  • AC7: When a Problem field would read unknown, the interview proposes candidate values from the repository and conversation for the user to confirm or correct; declining keeps unknown.
  • AC8: The loop.md Brief template carries Finish line: in the Goal, and every location in Constraints carries it; check-open-questions.sh fails a Brief whose Goal lacks a non-empty Finish line, with a test.
  • AC9: The restatement (actions/restate.md and surface.md's restate op) states the Finish line, and /verification:confirm reports whether it was met.
  • AC10: Unattended, an item needing a human (an intent or vision change, or a critical security issue) STOPS at the new checks; an eval covers this STOP case.
  • AC11: Unattended, any other item skips the instance question and its Brief Goal reads Finish line: merged, checked by ci-status marked as filled automatically; an eval covers this default case.
  • AC12: Each plugin changed adds a changelog fragment.

AC1 is not met. The measurement runs, but the plugin alone doesn't make the agent ask, and #14879 tracks that. AC6's prescribed-solution-rethink fails on main as well (#14878).

Related

Refs #14878, #14879

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur

kyle-sexton and others added 7 commits November 9, 2026 13:21
The Brief's Goal gains a fourth line, `Finish line: <merged | released | in
use> - checked by <who> via <observable check>`. The template, the page
export, the restatement, plan's no-Brief line, dispatch, decompose and
confirm carry it, and `check-open-questions.sh --procedure --brief` fails a
Goal whose Finish line is missing, empty or `not settled yet`. A new
`unattended_finish_check` setting names the check an unattended run uses,
set to ci-status in this repository.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h line

Add the behavior evals interview-bare-vague-build-asks and
interview-bare-vague-explore-no-extra, and a bare-prompt probe file
with its own baseline beside the frozen interview.json set.

Add unattended_finish_check to the planning settings schema, and give
the confirm report a Finish line row: an event that has not happened
yet (merge, release, in use) reads not checkable yet.

Refs: #14733

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntent conflicts

A problem whose evidence is only reported gets one instance question,
and a Problem field that would read unknown gets candidate values to
confirm. Unattended, the instance question and the Finish line stop
only for a contradicted recorded Intent or Vision or a critical
security issue: the run writes the Brief with a blocked USER-RESERVED
row, skips the lock, and ends on a Stopped: line. A release or in-use
item exits the same way on its Blocked: line (owner decision Q13).
Any other item gets the default Finish line from
unattended_finish_check.

Adds four eval cases; the defense pins for the Gates, register,
Stance and Unattended path sections are re-pinned with notes.

Refs: #14733

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur
…skips the lock

Review finding: SKILL.md's cross-check rule would halt the Stopped: and release/in-use Blocked: exits before their last line. Also reads the Finish line label case-insensitively and makes the stop case's grader require a reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 9, 2026 22:18
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T22:18:54.024885Z
We couldn’t complete this review. Comment @codex review to try again.
fd60753 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

…finish-line

# Conflicts:
#	.changes/harness-ops/feat-brief-finish-line-3f9a1c7e.md
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: incremental (1033576..8cfc20a)

I found no security issues in this push.

critical-findings: 0

Scope. I read every hunk of both files in .claude-lane/incremental.diff:

  • plugins/planning/scripts/check-open-questions.sh
  • plugins/planning/scripts/check-open-questions.test.sh

Neither file matches a trusted path, neither is a trust control or merge hold, and neither is a plugin manifest. This lane already reviewed an earlier head (blocking only: yes), so I report only CRITICAL and IMPORTANT findings.

What I checked

  • The Finish-line change, check-open-questions.sh L1088. Before matching the label, the script now runs the Goal section's lowercased text through sed -e 's/\*\*//g' -e 's/__//g'.
    • No injection surface. The Brief text passes only through fixed tr/sed/head programs, then reaches a case on literal patterns. It never reaches eval, a command position or an unquoted expansion.
    • The gate still fails closed. A bold label with no value, or with not settled yet, still fails, including a bolded value such as **not settled yet**, which the stripping now normalises. The new negative test at test L855–856 pins this.
    • Impact if wrong. This is a planning-procedure gate. It does not decide trust, token scope or merge, so getting it wrong would not leak anything, compromise anything or cost money.
  • check-open-questions.test.sh. Most of the change reformats existing tests (heredoc substitutions and brace groups split onto separate lines). It also adds two tests that use fixed sed rewrites of temp fixtures under $TMP. Nothing comes from outside and nothing reaches the network.
  • Instruction surface. No standing instruction is deleted, narrowed or softened.
  • Embedded text. The diff contains no text aimed at the review lane.

Prior findings. The one earlier post was the summary comment with no line anchor, and it reported 0 findings, so there is nothing to restate.

@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 1033576449703e23aad9fab06cf3a9f71a62e968; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: incremental, 1033576 → 8cfc20a (blocking only)

I read every hunk of both files in this incremental scope: plugins/planning/scripts/check-open-questions.sh and plugins/planning/scripts/check-open-questions.test.sh. This lane already reviewed an earlier head, so this review reports only blocking findings.

Prior findings

  • Bold Finish line label (inline, check-open-questions.sh:1088): fixed. The gate now removes ** and __ from the Goal lines before matching the label. Two cases are fixed:

    • The eval's pass sample - **Finish line:** merged, checked by ci-status … now passes the gate.
    • - **Finish line:** not settled yet still reduces to not settled yet, so it still fails.

    The two new 53b tests in check-open-questions.test.sh cover both cases. Their sed rewrites of proc_brief_full produce exactly those forms. The owner already resolved this thread.

  • Closing issue feat(planning): carry intent from a vague first prompt to a stated finish line #14733, AC1 unmet (summary finding): settled. The issue's section in the PR context now records owner decision Q16 (2026-11-09, "Revert + follow-up"). It says the issue closes with AC1's pass threshold unmet and that feat(planning): route bare vague build prompts to the interview #14879 tracks the follow-up. The owner's reply on the settled thread points to that decision.

This push

  • The test-file hunks change formatting only: heredoc command substitutions and { …; } groups are split onto separate lines, which reads like shfmt output. No test changes what it does.
  • No new blocking findings.

Notes

  • Advisory, below the blocking-only bar, not counted: the grader regex Finish line[*_]{0,2}: also accepts a single-* italic label. The gate strips only the doubled markers, so an italic label would still fail. No eval sample uses that form.
  • Not verified: the test pass results are author-claimed. I could not run the suite here.
  • Embedded text: none found in the PR context, settled threads or prior findings.

Review finding: the eval's samples count a bold label as correct, so the gate must too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit a6cb9cc Nov 9, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the feat/intent-transfer-finish-line branch November 9, 2026 23:10
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 9, 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.

feat(planning): carry intent from a vague first prompt to a stated finish line

1 participant