Repository navigation
[Spec 1940] Stage 1 (in progress): named architects across workspaces on one Tower - #1957
Draft
waleedkadous wants to merge 89 commits into
Draft
waleedkadous wants to merge 89 commits into
waleedkadous wants to merge 89 commits into
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…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
- The naming module tells workspaces apart by workspaceKey, never by the text of a path: a row and a running workspace that spell one directory two ways are one workspace, with the row's name. A lookup returns a running workspace in the spelling it runs under. - findWorkspaceByAddressName lower-cases the name itself.
…ot change Written and run against the code before any phase 4 production change: every same-workspace sender and recipient kind, a sender with no workspace or the workspace 'unknown', senders that are not agents, and raw sends.
…ands A message from an agent in another workspace is framed with the sender's workspace-qualified address, and its footer line carries a reply command the recipient is allowed to use, or says how to reply when there is none. - message-format: formatCrossWorkspaceMessage. The role comes from the address's kind; every address part is checked against the component rule. - tower-messages: refusalToAddress (the builder rule on its own) and crossWorkspaceOrigin, which asks it with the recipient as the sender and offers the front door only when the front door reaches the sender. - tower-routes: formatMessageForTarget takes a sender whose workspace is required by its type; all six call sites pass it. Same-workspace frames, senders with no known workspace, senders that are not agents and raw sends are unchanged.
…n the sender's own address is refused
waleedkadous
added a commit
that referenced
this pull request
Nov 24, 2026
…resses ready to paste
…nd the first commit of phase 6
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.
Draft, opened early for CI. This pull request is not ready for review. It was opened part-way through implementation so that GitHub runs the full test suite on a clean runner, under the owner's standing ruling main-32 (a green GitHub run may stand in for porch's local tests check when the local suite fails only under machine load). The review phase finishes this pull request: the description below will be replaced, and the review document added, before it is marked ready.
What this is
Stage 1 of issue #1940 (Tower-to-Tower messaging: addressing, discovery, security model): named architects addressable across workspaces on one Tower. No second Tower, no transport, no Codev Cloud.
Spec:
codev/specs/1940-tower-to-tower-messaging-proto.mdPlan:
codev/plans/1940-tower-to-tower-messaging-proto.mdWhere it stands
In the branch so far
@cluesmith/codev-sdk/address, with the structuredAgentAddresswire type incodev-types, and one table of cases 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 in another workspace is delivered, or held when it has no live terminal.afx://address is refused as cross-Tower messaging not available.Adjacent bugs fixed in place
Both are older than this branch and were found by review of phase 2.
architect, the registry answered "the first registered" where the live resolver refuses (a builder whose spawning architect has gone, or a legacy builder, in a workspace with nomain). The send route consults the registry on any not-found, so that mail was held for, and then delivered to, an architect the builder had nothing to do with. The registry now refuses exactly where the live resolver does.getArchitectssorted by name, so with nomainan offline hold named the alphabetically first architect where a live send reached the first registered. It now ordersmainfirst, then by start time, asloadStatedoes. This also means a workspace's sibling architects are relaunched in registration order at workspace start.Why the draft exists now, and the local check that was skipped
On
d106d3984, porch's local tests check and one full local run failed with 92 timeouts in 17 test files, none touched by this branch, while the machine's load average was between 33 and 49. The same suite passed in full twice on the preceding commit.Under the owner's ruling main-32, phase 2's local full-suite check was skipped (porch's build check still ran), on these grounds:
6804f57c7(this branch withmainmerged in). The architect checked the run.mainwas merged into the branch (6df1df753) because the branch conflicted with it and GitHub runs no checks on a conflicting pull request. One conflict,packages/sdk/src/tower-client.ts: both sides added a field to the same two result shapes, and both are kept.The details are in
codev/state/spir-1940_thread.md.