Repository navigation
[Spec 1940] Stage 1: named architects across workspaces on one Tower - #1957
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.2 <[email protected]>
…nvitation walkthrough, command surface
…builder rule, stage 2 walkthrough, connections per owner, existing code
…approval (main-31): front-door-only opt-in cut from stage 1
…istyped afx scheme fails with the shape meant
…der the canonical spelling Windows keys them by The Spec 1940 block of tower-routes.test.ts made its workspaces under os.tmpdir(), which Windows hands out in its short spelling (RUNNER~1), while the routes key a workspace by workspaceKey(). Thirty tests failed on the Windows run for looking up a workspace the fixture had seeded under another spelling. The root now goes through workspaceKey(); no change on POSIX.
…mmand answer; carried to the review
…st table; seven lessons routed to the cold tier
This was referenced Nov 24, 2026
waleedkadous
marked this pull request as ready for review
November 24, 2026 18:28
… (main-41); main merged in
waleedkadous
added a commit
that referenced
this pull request
Nov 24, 2026
waleedkadous
added a commit
that referenced
this pull request
Nov 24, 2026
waleedkadous
added a commit
that referenced
this pull request
Nov 24, 2026
… worker cap (#1965) One conflict, packages/sdk/src/tower-client.ts: both sides added names to the same codev-types import; resolved as the union.
waleedkadous
added a commit
that referenced
this pull request
Nov 24, 2026
…r as a not-found; status --json tells busy from down Architect round, after merging PR #1957 (Spec 1940, named architects): - A <workspace>:architect:<name> send that came back NOT_FOUND asks the address book, to tell an older Tower. When Tower did not answer that check at all, the bare not-found was reported, though nobody could judge it. getAddressBook() now marks a failure with no HTTP answer as unanswered, and send says the check went unanswered and to retry. An answered failure of the check still leaves the not-found. - checkTower() takes a retries option (default 1). send --retry N passes 0, so its budget owns the retrying: N + 1 health probes instead of 2(N + 1). Without --retry the gate's single retry still applies. - status --json: tower is {running, state, error}. running is unchanged for existing scripts; state is running, not-running or unresponsive; error is the reason when unresponsive, otherwise null.
This was referenced Nov 24, 2026
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.
Summary
Stage 1 of Tower-to-Tower messaging (issue #1940): an architect in one workspace can write to a named architect in another workspace on the same Tower, and the recipient can reply by pasting one command.
No second Tower, no transport and no Codev Cloud are involved. The spec designs all three stages (one Tower; my own Towers; another owner's Tower); the owner approved it with stage 1 as this project's scope. Stage 2 (between my own Towers, through Codev Cloud) is issue #1967 and stage 3 (another owner's Tower, by invitation) is issue #1968; each inherits the spec's checklist as written.
Closes #1940
Six plan phases are built and reviewed (Codex and Claude, every phase ending with both approving). No commit in any implement phase went unreviewed.
One commit no reviewer saw:
42f6d76c5, made in answer to the review phase's single round (porch went to theprgate without a second). It adds one clause to theafxskill (four copies) andagent-farm.md(both trees) saying a builder may write its own workspace's name before its own spawning architect, regenerates the skill-hash list, and edits the review document. The round's verdicts were Codex REQUEST_CHANGES (three procedural points, no implementation defect) and Claude APPROVE; the responses are in the review.The owner waived the
Co-Authored-Bytrailer ond4cb7e648(decision main-41): history is left as it is, with no rewrite and no force-push. That commit is the first of the spec and the only one with a trailer.Changes
@cluesmith/codev-sdk/address), with the structuredAgentAddresswire type incodev-types. One table of cases is run by the SDK,packages/codevand the VS Code extension.<workspace>:architect:<name>resolves against live terminals and against the registry, so mail to a named architect elsewhere is delivered, or held when it has no live terminal. Every address form valid before reaches the same recipient as before.<workspace>:architect), which stays open to every sender.afx workspace name <name>(and--clear) gives a workspace a name of its own. Two workspaces with the same directory name are ambiguous until one is named; the error lists both and the command.afx workspace listprints every workspace on the Tower and its agents as addresses ready to paste, marked for what the caller may send to.afx whoamiprints the caller's own address.afx://addresses are parsed, so a malformed one says what is wrong, and then refused: cross-Tower messaging is not available until stage 2.afx workspace list,afx workspace name,afx whoamiandafx send.CLAUDE.md/AGENTS.md, the templates, theafxskill (four copies),agent-farm.md, the architect and builder role files,arch.md.known_workspaces.address_name.Not built
devvmhint; the "until it has an explicit name" half of twoafx://bullets; front door only). See the review.Older bugs fixed in place
Both were found by review of phase 2.
architectfrom a builder with no architect of its own, in a workspace with nomain, the registry resolver answered "the first registered" where the live resolver refuses. The registry now refuses where the live resolver does.getArchitectsnow ordersmainfirst, then by start time. Side effect: sibling architects relaunch in registration order at workspace start (it was name order). The architect closes that issue at merge.Found, not changed
Testing
cross-workspace-addressing.e2e.test.ts(13 tests): a built Tower that has never connected to Codev Cloud, three workspaces, the CLI's own commands run as each agent.Porch's local tests check was skipped in phases 2 to 6
The local full suite fails under its own load on the development machine (issue #1956). On the owner's rulings, a green GitHub run on the same head stood in, and the architect checked each run before the skip:
6804f57c7,66ea5c7470a553e80b,18a9c86a8,4c9d9c967ba33ee37b,6462b2563,ef6d5162cPorch's build check ran every time. The review phase follows the same ruling.
For the verify phase
afx send, and paste the reply command back. (No test can point the built binary at a test Tower: it always connects to port 4100.)mainfirst, then in registration order.Notes
mainwas merged into the branch twice: at6df1df753, so that GitHub would run checks (one conflict inpackages/sdk/src/tower-client.ts, both sides kept), and atf163054c3before merging this PR (71 commits, no conflict; the generated skill-hash list was regenerated and came out unchanged).Spec
codev/specs/1940-tower-to-tower-messaging-proto.mdPlan
codev/plans/1940-tower-to-tower-messaging-proto.mdReview
codev/reviews/1940-tower-to-tower-messaging-proto.mdBuilder's log:
codev/state/spir-1940_thread.md