Skip to content

Survey skill body-rendering pass — Codex workstreams + work-area/scaffold/confirm/commission-framing fixes#335

Merged
clkao merged 1 commit into
nextfrom
spacedock-ensign/survey-codex-and-sandbox-followups
Jun 8, 2026
Merged

Survey skill body-rendering pass — Codex workstreams + work-area/scaffold/confirm/commission-framing fixes#335
clkao merged 1 commit into
nextfrom
spacedock-ensign/survey-codex-and-sandbox-followups

Conversation

@clkao

@clkao clkao commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Make /spacedock:survey surface Codex workstreams, attribute worktree edits to their logical area, and offer automation vs book-keeping per the work's mode.

What changed

  • D1: add a codex-scoped workdir-attribution query + a workstream-clustering query block + an activity tally; render a Codex section in the body.
  • C: drop the pre-body confirm/menu — auto-render the body (the commission offer stays at the end).
  • E: de-narrate scaffold discovery — state usage + checked-in-or-not, no "recovered…" narration.
  • F: attribute worktree edits to their LOGICAL area (strip .worktrees/<wt>/); demote only genuine config to a footnote.
  • G: classify each track mechanical vs exploration and make two distinct commission offers (automation vs book-keeping).

Evidence

  • Query-smoke 11/11 (full integration 23/23) over the runnable queries.sql artifacts + a both-mode fixture; this-repo live drive verified AC-4/5/6 + product-first ordering.
  • Detached audit exercised the G classifier — every refutation caught; 0 material. AC-7b/8b's real-mixed-mode render is the authorized captain-torahmap-drive spot-check.

47

D1 (depth ii): codex-scoped (#321, exec_command.$.workdir prefix — sibling-free,
distinct from name-only codex-presence), codex-workstreams (#322, the 3-case
clustering rule as a runnable query block), codex-activity (#323). Step-4 fence
renders a CODEX section (workdir-attributed count + workstream clusters + activity).

C: drop the pre-body confirm/menu of ANY shape — render the body through from the
headline; keep ONLY the end commission offer.

E: de-narrate SCAFFOLD — usage + checked-in-or-not, drop "recovered from behavior,
not files"/"recovered one-offs"; the file-probe/tally JOIN stays.

F-CORRECTED (reversed from the prior wrong demote-worktrees design): work-by-area
strips a leading .worktrees/<wt>/ (and .claude/worktrees/<wt>/) then buckets by the
LOGICAL area, so a worktree src/ edit counts as src ALONGSIDE a main-checkout src/
edit. A kind (product/config) partition + product-first ORDER demotes only genuine
config (.claude/.beads/.git/<external>) to a footnote — still counted, not filtered.

G (new load-bearing mechanism): mode-classification (#324) labels each git_branch
track mechanical/exploration/unlabeled from per-track signals (veto density,
gate-pass ratio, issue->worktree->PR loop markers, edit-kind) with a margin guard
(neither-dominant -> unlabeled -> generic book-keeping, never a guessed automation
pitch). The commission bridge makes TWO mode-keyed offers: automation for mechanical
tracks, book-keeping for exploration tracks (no automate-the-human-out framing).

Query-smoke (AC-1/2/3/7a/8a): 11/11, TDD with fixture-derived non-vacuous oracles
(codex-scoped 4->5 on sibling-repoint; worktree src->.claude flip; mode signal swap).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
clkao added a commit that referenced this pull request Jun 8, 2026
@clkao clkao merged commit d6b27eb into next Jun 8, 2026
4 of 7 checks passed
clkao added a commit that referenced this pull request Jun 8, 2026
…ged; AC-7b/8b torahmap spot-check deferred per captain)
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.

1 participant