Repository navigation
docs(commands): pilot command-prose standard on /uf.run-pipeline-plan - #748
Conversation
Rewrite both copies of the /uf.run-pipeline-plan command under the new command-prose standard: canonical verb glossary, reference-by- name, one numbering scheme per document, decision tables, and a fixed step template. The behavioral contract is preserved; three semantic defects are corrected to the behavior the rest of the corpus evidences as intended: the "Step 8 (code review)" cross-reference, the Gate Relay STOP collision, and the session-resume guard halt. - Add openspec/changes/command-prose-pilot/ artifacts (proposal, design, metrics, specs, tasks) - Keep .opencode/commands/ and scaffold asset copies byte-identical - Record the CHANGELOG increment entry - Record 14 Dewey learnings captured during the workflow Assisted-by: glm-5-3 Generated with AI assistance (glm-5-3)
0574144 to
9b81adc
Compare
jflowers
left a comment
There was a problem hiding this comment.
Council Review: APPROVE WITH ADVISORIES
PR #748 — docs(commands): pilot command-prose standard on /uf.run-pipeline-plan
The rewrite preserves the behavioral contract while correcting three documented semantic defects (the "Step 8 (code review)" cross-reference, the Gate Relay STOP collision, and the session-resume guard halt). Verification on head SHA 0574144: CI green (Build and Test, Plugin Tests, Council Review Pipeline Tests, CRAP Load Analysis), command/scaffold pair byte-identical (cmp), and all five rg conformance scans pass (ban-list, stale-reference, exit-path, Gate Relay verb, session-resume guard).
Council verdict: all three successful personas (architect, curator, guard) returned APPROVE WITH ADVISORIES — 2 MEDIUM and 8 LOW advisory findings, none blocking. The adversary run failed with a retryable server error and does not vote; full provenance is recorded in the dispatch artifact.
Advisory highlights (details inline):
- MEDIUM: the "exit path" noun-phrase ban has no durable validation — scenarios and tasks mandate only the five-token ban-list scans (architect, guard)
- LOW: non-glossary action verbs ("Determine", "Receive") at two steps the glossary cannot express (architect)
- LOW: plan-file parse step lacks an On-failure branch (architect)
- LOW: conformance spec omits Normativity Style / Boilerplate Defined Once from its enumerated subset (architect)
- LOW: hard-coded PR target / fork head parameterization debt carried through per D12 but tracked in no durable follow-on record (architect, curator, guard)
- LOW: two DE-004 metrics lack measurement commands (architect)
- LOW: CHANGELOG wraps "three-subagent" across lines, rendering as "three- subagent" (architect)
Pre-merge suggestion: record the two recurring gaps (exit-path validation, parameterization debt) as explicit follow-ons on docs issue #747 or in the proposal's Follow-ons section, so the phase-2 promotion inherits explicit tracking.
This review was generated by /uf.review-pr (AI-assisted).
| tool-rendered output MUST NOT be reconstructed from | ||
| prose. | ||
| - **ASK** — request one decision through the question | ||
| tool, stating the question and the options. |
There was a problem hiding this comment.
The "exit path" noun-phrase ban in this requirement has no durable validation. The scenario below scans only the five ban-list tokens, tasks.md 3.1 mandates only the ban-list, stale-reference, and Gate Relay verb scans, and the Change-Time Validation requirement names only "ban-list and bare-number checks" — so a future change re-executing the mandated checks verbatim skips this clause. Only metrics.md ran the rg -in 'exit path' scan, labeled "advisory follow-up" (it passed). Consider adding an exit-path scenario here or a fourth mandated scan in tasks.md 3.1 before the phase-2 promotion inherits the gap. — divisor-architect (MEDIUM)
| named pass and fail branches. | ||
|
|
||
| The tokens "abort", "halt", "terminate", "terminalize", | ||
| and "bail" MUST NOT direct control flow. The phrase "exit |
There was a problem hiding this comment.
This clause also lacks a recorded follow-on. The proposal's Follow-ons section and metrics.md record the content-pipeline disposition and the AGENTS.md stale-reference follow-up on docs issue #747, yet neither tracks the exit-path validation gap for the phase-2 promotion. Recording the gap as an explicit phase-2 follow-on (or on #747) gives the promotion change explicit tracking. — divisor-guard (MEDIUM)
| - **Otherwise**: Treat as space-separated GitHub issue | ||
| references (`#NNN` or full GitHub URLs). | ||
| 1. **Detect input type**: Determine whether `$ARGUMENTS` | ||
| is an existing file path. |
There was a problem hiding this comment.
Two numbered steps place non-glossary verbs in the Action slot: "Determine whether $ARGUMENTS…" (step 1, here) and "Receive the GATE: return value" (Gate Relay action 1). Design D2 restricts control-flow direction to glossary verbs, and the ten-verb glossary has no fit for input classification or message reception. The retrospective learning records this as phase-2 glossary-extension evidence; it remains a conformance gap in the shipped pilot. — divisor-architect (LOW)
| 2. **Subagent 2** (`/uf.unleash`, OpenSpec mode): | ||
| DELEGATE. Expected outcome: the `/uf.unleash` | ||
| pipeline completes — implement, spec review, code | ||
| review, retrospective, demo. The Code Review step of |
There was a problem hiding this comment.
This step carries hard-coded PR target repo and fork head values into a tool-owned scaffold asset that uf init deploys to every hero repository, where both defaults are wrong (a hero repo's parent is unbound-force/; the fork owner is user-specific). D12 correctly forbids fixing them mid-pilot; the gap is that no durable follow-on record (metrics.md Task 5.2, proposal Follow-ons, docs issue #747) carries the parameterization debt forward — it lives only in the PR body and a learning file, both of which archive with the change. — divisor-curator (LOW)
| outcome: changes committed and pushed; a PR created | ||
| with `Closes #N` in the commit message and PR body. | ||
| The PR targets the parent `unbound-force/unbound-force` | ||
| repo with head `jflowers:<branch>`. The PR stays open |
There was a problem hiding this comment.
The parameterization debt above lacks a durable tracking record. Recording it on docs issue #747 or in the proposal's Follow-ons section before archive gives the phase-3 rollout change that naturally parameterizes these values an explicit inheritance. — divisor-guard (LOW)
| From each issue, record a kebab-case change name | ||
| (from the title) and a one-line description (from | ||
| the body). | ||
|
|
There was a problem hiding this comment.
Step 3's plan-file parse states no On-failure branch, while step 2's gh issue view gained one. The Plan File Contract's MUST-carry fields can be violated by a malformed file, so the parse is equally fallible; the Step Template requirement makes On-failure mandatory whenever the action can fail. — divisor-architect (LOW)
| list, reference by name, one numbering axis, a | ||
| 20-word procedural sentence limit, decision tables | ||
| for branching, and the Action/On-failure/Next step | ||
| template. Behavioral contract preserved (three- |
There was a problem hiding this comment.
The line wrap splits "three-subagent" at the hyphen; Markdown renders the soft break as a space, producing "three- subagent" in the rendered changelog. Moving the whole word to the next line fixes it. — divisor-architect (LOW)
| ### Requirement: Command File Conformance | ||
|
|
||
| The rewritten `uf.run-pipeline-plan.md` MUST conform to | ||
| the `command-prose-standard` capability: canonical |
There was a problem hiding this comment.
This requirement enumerates a subset of the standard and silently omits Normativity Style and Boilerplate Defined Once. The omission is load-bearing: preserved ALL-CAPS tokens ("SESSION-RESUME GUARD", "PR", "CI") nominally violate Normativity Style while D12 requires keeping them. Recording which requirements are excluded and why keeps later reviewers from false-positive against preserved behavior. — divisor-architect (LOW)
| repo with head `jflowers:<branch>`. The PR stays open | ||
| for human review. | ||
|
|
||
| **Disk handoff verification**: Before spawning each next |
There was a problem hiding this comment.
The scaffold mirror propagates the hard-coded PR target to every hero repo via uf init (gaze, dewey, replicator all scaffold .opencode/commands/). The value traces verbatim to the original run-plan-command change and D12 correctly preserves it mid-pilot; the untracked parameterization is the gap (see the follow-on discussion above). — divisor-architect (LOW)
| |---|---|---| | ||
| | Line count | 225 | `wc -l .opencode/commands/uf.run-pipeline-plan.md` | | ||
| | Word count | 1,005 | `wc -w .opencode/commands/uf.run-pipeline-plan.md` | | ||
| | Procedural sentences over 20 words | 2 | sentence split of the `## Instructions` section (157 procedural sentences total); both offenders are 21 words | |
There was a problem hiding this comment.
Two of the six DE-004 metrics record values without measurement commands: "Procedural sentences over 20 words" cites only a methodology and "Maximum nesting depth" cites only "deepest list nesting", unlike the other four rows (wc, rg). The before/after deltas for these two metrics are not independently reproducible. Prescribing the derivation command for each row closes the gap. — divisor-architect (LOW)
Summary
The house command prose standard, piloted on
.opencode/commands/uf.run-pipeline-plan.mdand its byte-identicalscaffold mirror
internal/scaffold/assets/opencode/commands/uf.run-pipeline-plan.md.The rewrite replaces ambiguous step prose with ten canonical control
verbs (STOP/EXIT/PROCEED/RELAY/RESUME/SKIP/DELEGATE/ANNOUNCE/ASK/
VERIFY), name-based references, a single numbering axis, procedural
sentences capped at 20 words, decision tables for branching, and an
Action/On-failure/Next step template. Three semantic defects are
documented and corrected (cross-command "Step 8 (code review)"
reference, Gate Relay STOP collision, session-resume guard halt
recast as precondition) while the behavioral contract is preserved
(frontmatter, scaffold marker, protect boundaries, three-subagent
pipeline, guardrails, tracking rules). The standard itself ships as
openspec/changes/command-prose-pilot/specs/command-prose-standard/spec.mdwith a scoped pilot spec for the rewritten command; evidence (five rg
conformance scans, six before/after metrics, comprehension A/B) is
recorded in metrics.md.
How to Test
Five rg conformance scans against the rewritten command (each
returns 0 matches):
rg -in '\b(abort|halt|terminate|terminalize|bail)\b' .opencode/commands/uf.run-pipeline-plan.mdrg -n "Step [0-9]+" .opencode/commands/uf.run-pipeline-plan.mdphrase (see metrics.md for the exact patterns)
Byte-identity of the pair:
cmp .opencode/commands/uf.run-pipeline-plan.md internal/scaffold/assets/opencode/commands/uf.run-pipeline-plan.md(no output = identical).Full gate:
make check(includesTestEmbeddedAssets_MatchSource,which fails on any drift between the command and its scaffold
mirror).
How to Demo
Open the rewritten command next to
metrics.md's before/aftertable; run the conformance scans and the
cmpbyte-identity checkabove; optionally invoke
/uf.run-pipeline-planagainst a plan filein a scratch session to walk the three-subagent pipeline and gate
relay.
Key Files Changed
.opencode/commands/uf.run-pipeline-plan.md(194 lines) and itsbyte-identical scaffold mirror
internal/scaffold/assets/opencode/commands/uf.run-pipeline-plan.mdopenspec/changes/command-prose-pilot/— proposal, design,metrics, specs (command-prose-standard, run-pipeline-plan), tasks
CHANGELOG.md— increment entry.uf/dewey/learnings/— 14 workflow learningsKnown Issues
Council verdicts: spec review APPROVE WITH ADVISORIES (1 iteration),
code review APPROVE WITH ADVISORIES (1 iteration). Advisories:
durable validation: every scan checks only the five ban tokens.
"Determine", Gate Relay step 1 "Receive"); D2 permits them.
validation lacks one).
rendering as "three- subagent".
cannot verify.
PR/CI acronyms) sit outside the Normativity Style scenario's
categories.
that propagates to hero repos via
uf init.a specified measurement command.
This PR was generated by /uf.finale (AI-assisted).