Repository navigation
feat(issue-tracker): the Architect executes its own plan through a plan-executor subagent - #136
Merged
Merged
Conversation
…tect slots span the build
…r; PLAN-EXECUTION is the recovery lane
…tion still pending install
…ord as open blocker
…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
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 toready-for-architectand 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, realplan:pin required), and dispatches a registered subagentdoperpowers:plan-executor(opus/high) that executes the plan — as the SDE controller for a task-decomposed plan, sequentially for an ExecPlan — keeps the seat'ssminos statusline 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 toready-for-implementer; the pin survives the park).writing-plansandexecplandispatch the same agent in an interactive session.Supporting changes: architect slot accounting spans
in-progresswhile 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 asbusy; nested subagent dispatch andSendMessageresume 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.busythroughout the delegated build, status linebuild: milestone 1/2 → 2/2, two commits landed. Ran throughgeneral-purpose/opus because a spawned seat loads the installed plugin (7.81.0);doperpowers:plan-executorby name is to be re-checked once 7.82.0 installs.Version: 7.82.0.