Skip to content

feat: spec delta in briefs and finish-lane, plan-first briefs, reconcile task-plan skeletons (#75, #76) - #88

Merged
lx-0 merged 21 commits into
mainfrom
feat/75-76-brief-spec-delta
Nov 15, 2026
Merged

lx-0 merged 21 commits into
mainfrom
feat/75-76-brief-spec-delta

Conversation

@lx-0

@lx-0 lx-0 commented Nov 15, 2026

Copy link
Copy Markdown
Member

Issue #75 (gaps 2 and 3, proposal 4) and issue #76 (points 3 and 5). Five commits, one change each.

What changed

1. Spec delta in the worker report (#75 gap 2), 348f731

  • skills/spawn-milestone-team/brief-template.md: the brief's "Spec impact" section now states the duty to edit the area-file section a change makes false, in the same commits. The report bullet defines Spec: as the spec delta: <area>: <file> (<section>) per edited section, joined by ;, or none -- <reason> (the reasons from plan-task's rule).
  • bin/ytstack-brief check fails a bare none and prose without an area and a path. I kept the existing Spec: label instead of adding a twelfth label (DECISIONS entry), because it already uses the same two forms as plan-task's ## Spec impact and summarize-task's ## Spec.

2. Plan-first brief for an unplanned task (#76.3), 445bfcf

  • ytstack-brief render --task on a task that its slice plan lists without a task plan no longer fails. It renders a brief whose first deliverable is M###-S##-T##-PLAN.md, written beside the slice plan in plan-task's Step 9 format (Files, What this does, Spec impact, Verification) and committed on its own. After that the worker implements the files the plan names. The task line's backticked paths are listed as hints.
  • The slice brief no longer says "plan it yourself". It names the plan file to write for each unplanned task. A review of an unplanned task still gets no brief.

3. finish-lane checks the spec delta before merge (#75 gap 3), e5fe5c7

  • ytstack-finish-lane route --report <file> runs ytstack-spec impact (new --head) on base..head for every plan of the lane that states a ## Spec impact, including a slice lane's task plans. When no plan states one, every area the diff touches needs its area file or a source in the diff, or the report must say Spec: none -- <reason>. Any path the report names as edited has to be in the diff. Each gap prints a reason: spec -- ... line and turns unattended into person (exit 10). That catches lanes that skipped summarize-task. Under merge_by: coordinator, a spec gap sends the lane back to the worker.
  • skills/finish-lane 0.6.0: Step 3 saves the report, and Step 9 passes --report and explains the spec: lines.

4. Checks inventory (#75 proposal 4), d1e7eac

  • New sixth section ## Checks in REVIEW.md, with lines of the form <name> | file: <path> | guards: <what holds>. ytstack-risk check validates it: slug names, no duplicates, file exists, guards present. I put it in REVIEW.md rather than spec/checks.md, because an area file needs paths, status and the fixed sections, and lint, drift and impact would treat it as an area (DECISIONS entry).
  • A PR that adds a guard adds its line there (docs/ux/review-policy-format.md). code-review 0.5.1 treats a guard added without its line as a finding. finish-lane route prints a checks: note when a change edits CI and the inventory did not change. It is only a note, because CI changes always go to a person.

5. reconcile migration helper (#76.5), 5f0e0b1

  • New bin/ytstack-reconcile with its own suite. skeletons [--write] [--slice M###-S##] covers open slices of open milestones that have no task plan at all and no ## Files. It writes task-plan skeletons in plan-task's format. Files come from the task line's backticked paths, or else from the slice plan's Own:/Files: lines. Spec impact gets one line per area with TODO fields, which ytstack-spec impact rejects until they are filled. Verification is a TODO. It never overwrites an existing file. pointer [--fix] moves a current_milestone that sits on a closed or older milestone to the newest roadmap marked in-progress, with its first open slice and active_task: none. Only the frontmatter changes.
  • skills/reconcile 0.4.0 adds two classes, each with its own AskUserQuestion in the 4-part format: write all / write for named slices / keep, and fix / keep. Both auto-pick in non-interactive mode, and the results are logged in RECONCILE-<date>.md.

Docs updated: the spec area files (checks-and-evals, skills, artifacts), docs/ux/coordinator-format.md, docs/ux/spec-format.md (new "Before a merge"), docs/ux/review-policy-format.md, CHANGELOG under Unreleased, and five DECISIONS entries.

Already present (verified at 62ab2fc, not rebuilt)

Verification

  • bash tests/run-all.sh (macOS, bash 3.2): exit 0, ALL SUITES PASSED, 33 suites. Relevant ones: ytstack-brief 230 passed, ytstack-finish-lane 200 passed, ytstack-reconcile 40 passed, ytstack-risk 214 passed, ytstack-spec 97 passed, skill-preambles 668 passed.
  • bash tests/run-all.sh --linux (Docker, from a git archive export of the head, because a linked worktree cannot be mounted): exit 0, ALL SUITES PASSED, 33 suites.
  • python3 bin/ytstack-check: exit 2, OK (with 9 warnings), the same 9 as on main. bin/ytstack-spec lint: 0 failures, 0 warnings.
  • python3 -m unittest discover -s tests -p 'codex*_test.py': OK. kimi_plugin_test.py: OK. claude plugin validate .: ✔ Validation passed.

Not checked

  • No real coordinator run has used the new route lines or the plan-first brief yet. The gh side of route --pr is still only exercised against the fake gh in the suite.
  • This repository has no .ytstack/spec/REVIEW.md, so it keeps no checks inventory of its own.
  • One timing flake on the baseline run, on unchanged main (session-end budget, 5.21 s against 5.0 s). It passed in both full runs of this branch.

Closes #75
Part of #76

🤖 Generated with Claude Code

lx-0 and others added 5 commits November 15, 2026 14:24
…#75)

The brief's Spec impact section states the duty to edit the area file a
change makes false; the report's Spec: line names the edited sections or
none -- <reason>. check fails a bare none and prose without area and path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
render --task on a task its slice plan lists without a task plan now
renders a brief whose first deliverable is the task plan in plan-task's
format, committed alone, then the files it names. The slice brief names
the plan to write per unplanned task instead of "plan it yourself".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#75)

route runs ytstack-spec impact (new --head) on base..head for every plan
of the lane that states a Spec impact; without one, each touched area
needs its area file or a source in the diff, or the report's
Spec: none -- <reason> (--report). A gap is a reason: spec line and
turns unattended into person.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…view (#75)

A ## Checks section lists the machine checks reviewers rely on
(<name> | file: <path> | guards: <text>), validated by ytstack-risk check.
code-review treats a guard added without its line as a finding;
finish-lane route prints a checks: line when a change edits CI and the
inventory did not move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…behind (#76)

Two new reconcile classes, each asked once: tasks of open slices without
any task plan get skeletons in plan-task's format (Files from the task
line or the slice's Own: lines, TODO Spec impact that ytstack-spec impact
rejects until filled, TODO verification), and a current_milestone on a
closed or older milestone moves to the newest one in progress. Logic in
the new bin/ytstack-reconcile with its suite. The skills area also
records code-review's checks-inventory finding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

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

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-15T18:47:02.242851Z
We couldn’t complete this review. Comment @codex review to try again.
429b1e2 Manual request
ℹ️ 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5f0e0b1dca

ℹ️ 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".

Comment thread bin/ytstack-finish-lane Resolved
Comment thread bin/ytstack-finish-lane Resolved
lx-0 and others added 7 commits November 15, 2026 15:43
…y slice (#88 review 1, 3, 6, 9)

check strips backticks and, in a project with a spec, accepts only the area
file or one of its sources as an edited path. plan_first keeps the task
line's backticks so the area lookup finds the area file. A task of a slice
plan with its own ## Files is briefed from the slice plan, no task plan
demanded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mes as both paths (#88 review 4, 8)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… paths checked (#88 review 1, 2, 4, 5, 6, 11)

Every area the diff touches (--no-renames) needs its area file or a source
in the diff, a plan of the range that says none for the files of its own
commits, or the report's reason. Only plans changed in base..head or with a
commit of their task in it are checked. A path the report names must be
the area file or a source of that area; none needs a reason; backticks
ignored; [[:space:]] instead of the BSD-unsafe tab escape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rd tested (#88 review 7, 8)

pointer --fix edits the frontmatter or the leading key lines of a STATE.md
without one, adds missing keys, refuses a file with neither and reports
the values read back after the write. A plan name taken by anything (a
directory too) is kept, and the guard has a test that reaches it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…als verified at 98e2ad0 (#88 review 8, 10)

checks-and-evals.md read against the code at 98e2ad0 (the brief check,
impact --head and TODO rule, the route's spec delta, ytstack-reconcile);
verified_at moves there so its paths include bin/ytstack-reconcile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he end (#88 Codex P2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lx-0

lx-0 commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bba4d1a05e

ℹ️ 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".

Comment thread bin/ytstack-brief Resolved
Comment thread bin/ytstack-spec Resolved
Comment thread bin/ytstack-reconcile Resolved
lx-0 and others added 3 commits November 15, 2026 16:02
…ba4d1a

merge_by coordinator sends a spec gap back to the worker; the report's
Spec: line is the spec delta and the brief makes the edit a duty; plan-first
briefs and granularity slice; the checks: note of finish-lane; the new
DECISIONS entries listed under the decisions that apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ose, spaced skeleton paths (#88 Codex P2 x3)

render --task on a slice plan with its own ## Files needs an open
"- [ ] T##" line. ytstack-spec impact rejects a TODO field (TODO:, : TODO,
-- TODO), not the word inside a filled line. ytstack-reconcile keeps a
backticked path with a space.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… verified at aa8c98b

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lx-0

lx-0 commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f727d22b07

ℹ️ 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".

Comment thread bin/ytstack-finish-lane Resolved
Comment thread docs/ux/review-policy-format.md Resolved
lx-0 and others added 2 commits November 15, 2026 16:28
…tack-risk (#88 Codex P2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…als verified at f2d41dd (#88 Codex P2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lx-0

lx-0 commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 449f9550ba

ℹ️ 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".

Comment thread bin/ytstack-finish-lane Resolved
lx-0 and others added 2 commits November 15, 2026 16:40
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lx-0

lx-0 commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

@codex review

@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.

Conflicts resolved keeping both sides: DECISIONS with main's entries first
and this branch's six after; one [Unreleased] in CHANGELOG; the spec area
files carry both sides' text (bin/ytstack-brief: #87's standing section and
this branch's plan-first, report shape and check). code-review and
spawn-milestone-team were bumped on both sides and go to 0.5.2. The brief
tests now pin the "# Brief: <ref> (<project>)" marker as the first line of
the plan-first and granularity-slice briefs too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
checks-and-evals: main's text was verified at 1234c16, this branch's at
7207818; the merge changes no other code of the area, and the one file both
sides changed, bin/ytstack-brief, was read against the merged text (standing
section, plan-first, report check; the brief suite pins it). skills: the
skill files between db07481 and the merge are this branch's, read against
the area at bba4d1a, plus two version bumps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lx-0

lx-0 commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

@codex review

@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.

@lx-0
lx-0 merged commit 4311f71 into main Nov 15, 2026
4 checks passed
@lx-0
lx-0 deleted the feat/75-76-brief-spec-delta branch November 15, 2026 18:47
lx-0 added a commit that referenced this pull request Nov 15, 2026
Resolves DECISIONS and spec/checks-and-evals.md, spec/skills.md against
#88: main's entries first, the #91 entry appended after them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

lanes produce only episodic docs (receipts, changelog); the thematic spec areas are never updated

1 participant