Skip to content

feat(issue-tracker): the Architect executes its own plan through a plan-executor subagent - #136

Merged
SSFSKIM merged 14 commits into
mainfrom
architect-fold
Sep 10, 2026
Merged

SSFSKIM merged 14 commits into
mainfrom
architect-fold

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Problem

A designed ticket is worked by two or three separate background sessions in sequence: an Architect writes and pins the plan, hands the ticket to ready-for-implementer, and ends; a dispatcher later spawns an Executor that reads the plan from zero context; a genuinely blocked plan returns to ready-for-architect and a third session with no memory of the design re-reads everything. The interactive flow has the mirror problem: the session that wrote the plan runs the whole SDE dispatch loop in its own context.

Change

One session owns a ticket from design to PR. The Architect pins its plan, takes a new board edge in-design → in-progress (leaf only, real plan: pin required), and dispatches a registered subagent doperpowers:plan-executor (opus/high) that executes the plan — as the SDE controller for a task-decomposed plan, sequentially for an ExecPlan — keeps the seat's sminos status line current, and opens the PR. Escalations return to the session that wrote the plan; the Architect makes the board writes. The Executor worker's PLAN-EXECUTION mode becomes the recovery lane (Architect session lost past the sweep's recovery cap → human moves the ticket to ready-for-implementer; the pin survives the park). writing-plans and execplan dispatch the same agent in an interactive session.

Supporting changes: architect slot accounting spans in-progress while an ARCHITECT holds the binding (role filter keeps the implement lane from double-charging); the sweep's stall clock reads the newest mtime across the session's transcript tree, because a parent session is silent in its own file for the whole time a subagent works (observed: a 3m42s hole in a 4-minute build) and the parent-only clock would have reaped every build longer than 45 minutes.

Design and evidence: docs/doperpowers/execplans/2026-09-10-architect-executor-fold.md (verified live: the harness reports a session with a running background subagent as busy; nested subagent dispatch and SendMessage resume work). This branch was itself executed the new way — an executor subagent ran the ExecPlan and escalated the stall-clock gap back to the authoring session, which decided the fix and resumed it.

Out of scope, deliberately: folding the Reviewer worker (phase 2), renaming the controlled/autonomous tracks, showing subagents in sminos tui.

Verification

  • tests/issue-tracker/test-board-scripts.sh, test-execute-dispatch.sh, test-board-sweep.sh (+2, non-vacuous: reverting the clock fails the new case), test-protocol-content.sh (also fixes an assertion already red on main naming a retired codex verb), tests/sminos/run-sminos-tests.sh (559), scripts/lint-shell.sh — all pass.
  • Live mechanism check with a scratch seat: busy throughout the delegated build, status line build: milestone 1/2 → 2/2, two commits landed. Ran through general-purpose/opus because a spawned seat loads the installed plugin (7.81.0); doperpowers:plan-executor by name is to be re-checked once 7.82.0 installs.
  • Open for the API board owner: the new edge's epic and missing-pin guards live in the gh binding only.

Version: 7.82.0.

…lient-side on an API board

One occupancy rule, not two: _board.surface_occupant is the dispatcher's
inline check moved into the module, and board-transition.sh's build edge
now calls the same function. An Architect is admitted onto an occupied
surface at dispatch because design reads; past the build edge it writes,
so the edge refuses and names the exit — the legacy handoff carries the
same pin into the implement queue, which serializes the surface.
SURFACE_OVERRIDE=1 bypasses it on stderr.

The API binding refuses in-design → in-progress client-side: the board
service's state table has no such edge, so the request 409s after the
Architect has already pushed the plan. The refusal names the handoff
fallback instead. Fixes the stale api assertion that still expected the
pre-branch wording of the wrong-edge refusal.
…used

The Architect's Build section names the exit a refused edge has — the
legacy handoff with the same pin — and the Executor's PLAN-EXECUTION
bullet names that as a way in beside a lost session, with the note that a
refused build edge is the one case where the top IS where the work
stands. The review audit anchors on whichever transition comment minted
the pin ([board] ready-for-implementer: or [board] in-progress:
plan-execution:), since an Architect that built its own plan posts the
second and never the first.

plan-executor: carries the IMPLEMENT worker's repo-facts contract,
generalized; the ExecPlan contract is stated inline rather than citing
PLANS.md (the authoring guide); the progress line is gone — the Architect
sets its seat's status once before dispatching, and progress lives in the
ledger or the plan's Progress section.

execplan Step 3 returns to origin/main: an ExecPlan is one agent's
sequential work, so delegating it interactively buys no fan-out. The SDE
skill no longer names its own dispatcher.
…ck rule

Decision Log gains the unifying rule (a refused build edge hands off with
the same pin), one entry per finding, and the two calls the human partner
made during the wave (no executor progress line; execplan's Step 3 stays
inline). Revision Note at the bottom; the Purpose paragraph, Milestone 2's
verbatim agent body, Milestone 4's execplan block, the Milestone 5 live
check and Interfaces are marked where the shipped artifact diverges.
@SSFSKIM
SSFSKIM merged commit 8c136a6 into main Sep 10, 2026
SSFSKIM added a commit that referenced this pull request Oct 25, 2026
- Deny list: rules and checked hosts are compared as the URL parser writes them (IP literals canonical, names in punycode), so [2606:4700:4700:0:0:0:0:1111] denies https://[2606:4700:4700::1111]/.
- Cache and deny list: a saved copy whose final URL is on a host denied since it was saved is refused, permanent, as the agent URL is.
- HTTPS first: a refusal of the https attempt falls back to the URL as given too, since it may concern a redirect target; the http attempt passes the same guard.
- Failure memory: a record is written to a .failed-<random>.tmp file and renamed over .failed.json, so concurrent failures never leave invalid JSON; prune removes a stale one.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Oct 25, 2026
- A failure memory: a failure the site or the network gave is kept in the
  entry's .failed.json and answers its URL for 5 minutes unless refresh is
  set; R4 then says "Not fetched again: this URL failed <age> ago
  (refresh: true tries again)."
- Retry guidance: the clipper marks an HTTP 4xx other than 408 and 429, or
  a refusal, permanent, and R4 ends "A second fetch will fail the same
  way; use another source."
- A redirect note: "· redirected to <final URL>" in the header and R3's
  last line when the page read is another page than the one asked for.
- Untrusted-content framing: one line closing R1's and R2's header, and a
  bullet in the summary's system text.
- HTTPS first: an http: URL on the default port is fetched over https,
  and as given when https brings no page, with a note when the page came
  over plain http. OpenSSL failures read as their reason.
- A deny list: WEB_DENY_HOSTS, checked with the address check on every
  request path and before the cache; the host rules travel as one
  Boundary value.
- The owner's decision to keep the Chrome User-Agent is recorded.

web 0.2.0.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Oct 25, 2026
- Deny list: rules and checked hosts are compared as the URL parser writes them (IP literals canonical, names in punycode), so [2606:4700:4700:0:0:0:0:1111] denies https://[2606:4700:4700::1111]/.
- Cache and deny list: a saved copy whose final URL is on a host denied since it was saved is refused, permanent, as the agent URL is.
- HTTPS first: a refusal of the https attempt falls back to the URL as given too, since it may concern a redirect target; the http attempt passes the same guard.
- Failure memory: a record is written to a .failed-<random>.tmp file and renamed over .failed.json, so concurrent failures never leave invalid JSON; prune removes a stale one.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Oct 25, 2026
web: take over WebFetch's cheap wins (board #136)
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