Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
d394ac4
chore(porch): 1940 init spir
waleedkadous Nov 21, 2026
d4cb7e6
[Spec 1940] Initial specification draft
waleedkadous Nov 21, 2026
5d04e81
chore(porch): 1940 specify build-complete
waleedkadous Nov 21, 2026
f1fee90
[Spec 1940] Specification with multi-agent review
waleedkadous Nov 21, 2026
a7dd470
[Spec 1940] Responses to iteration 1 reviews
waleedkadous Nov 21, 2026
2116e5a
chore(porch): 1940 spec-approval gate-requested
waleedkadous Nov 21, 2026
018203e
[Spec 1940] Specification with user feedback: owner in the address, i…
waleedkadous Nov 21, 2026
f792677
[Spec 1940] Specification after second review round
waleedkadous Nov 21, 2026
f923f43
[Spec 1940] Specification, third revision: #1605, relay attestation, …
waleedkadous Nov 21, 2026
23ad14d
[Spec 1940] Specification after third review round
waleedkadous Nov 21, 2026
c0a4fce
[Spec 1940] Final review pass: verdicts and open points (spec unchanged)
waleedkadous Nov 21, 2026
90ebb02
[Spec 1940] Apply the fifteen open points from the final review pass
waleedkadous Nov 21, 2026
2338880
[Spec 1940] Thread and open-points note: the fifteen points are applied
waleedkadous Nov 21, 2026
2f431ac
chore(porch): 1940 spec-approval gate-approved
waleedkadous Nov 23, 2026
6b53bdc
chore(porch): 1940 plan phase-transition
waleedkadous Nov 23, 2026
35eb280
[Spec 1940] Thread: spec approved by the human; entering plan (stage …
waleedkadous Nov 23, 2026
61920ea
chore(porch): 1940 acknowledge context refresh
waleedkadous Nov 23, 2026
28af9b8
[Spec 1940] Initial implementation plan
waleedkadous Nov 23, 2026
8f58c93
chore(porch): 1940 plan build-complete
waleedkadous Nov 23, 2026
5140a82
[Spec 1940] Plan with multi-agent review
waleedkadous Nov 23, 2026
7259772
chore(porch): 1940 plan-approval gate-requested
waleedkadous Nov 23, 2026
914e4c3
chore(porch): 1940 plan-approval gate-approved
waleedkadous Nov 23, 2026
19efbfa
chore(porch): 1940 implement phase-transition
waleedkadous Nov 23, 2026
9f31753
chore(porch): 1940 skip plan phase phase_7: dropped by owner at plan …
waleedkadous Nov 23, 2026
732ad01
[Spec 1940] Final approved plan: owner cut phase 7 (front-door-only) …
waleedkadous Nov 23, 2026
19eb430
[Spec 1940][Phase: phase_1] feat: Shared address contract, parser and…
waleedkadous Nov 23, 2026
12fc419
chore(porch): 1940 implement build-complete
waleedkadous Nov 23, 2026
05616e9
[Spec 1940][Phase: phase_1] fix: Owner handles start with a letter; m…
waleedkadous Nov 23, 2026
168782e
chore(porch): 1940 implement re-iter (iter 2)
waleedkadous Nov 23, 2026
f1509b2
chore(porch): 1940 implement build-complete
waleedkadous Nov 23, 2026
32ce912
[Spec 1940] Thread: intermittent tests-check failure during phase 1, …
waleedkadous Nov 23, 2026
e0a7026
chore(porch): 1940 advance plan phase → phase_2
waleedkadous Nov 23, 2026
ed9a8e7
[Spec 1940] Phase 1 review iteration 2 context
waleedkadous Nov 23, 2026
491c8e7
chore(porch): 1940 acknowledge context refresh
waleedkadous Nov 23, 2026
d6124d7
[Spec 1940][Phase: phase_2] feat: Named architects across workspaces …
waleedkadous Nov 23, 2026
2e17010
chore(porch): 1940 implement build-complete
waleedkadous Nov 23, 2026
6299f1c
[Spec 1940] Thread: second intermittent tests-check failure, phase 2,…
waleedkadous Nov 23, 2026
d106d39
[Spec 1940][Phase: phase_2] fix: Registry resolver refuses where the …
waleedkadous Nov 23, 2026
d0c76b2
[Spec 1940] Thread: phase 2 blocked on porch's tests check under mach…
waleedkadous Nov 23, 2026
2d1391c
chore(porch): 1940 record PR #1957
waleedkadous Nov 23, 2026
6df1df7
Merge origin/main into builder/spir-1940
waleedkadous Nov 23, 2026
6804f57
[Spec 1940] Thread: draft PR #1957 opened for CI, main merged in
waleedkadous Nov 23, 2026
0a4c98f
[Spec 1940] Thread: phase 2 recorded, local tests check skipped under…
waleedkadous Nov 23, 2026
cc09ad6
chore(porch): 1940 implement re-iter (iter 2)
waleedkadous Nov 23, 2026
3306a1d
chore(porch): 1940 implement build-complete
waleedkadous Nov 23, 2026
9dd5eeb
[Spec 1940] Phase 2 review iteration 2 context
waleedkadous Nov 23, 2026
66ea5c7
[Spec 1940][Phase: phase_2] fix: Architects are listed in registratio…
waleedkadous Nov 23, 2026
23afe0d
chore(porch): 1940 implement re-iter (iter 3)
waleedkadous Nov 23, 2026
6129dd8
chore(porch): 1940 implement build-complete
waleedkadous Nov 23, 2026
a65050a
[Spec 1940] Phase 2 review iteration 3 context; thread notes for revi…
waleedkadous Nov 23, 2026
0097a42
chore(porch): 1940 advance plan phase → phase_3
waleedkadous Nov 23, 2026
505d00a
[Spec 1940] Thread: phase 2 complete; shellper leak in the latency te…
waleedkadous Nov 23, 2026
1f85bd1
chore(porch): 1940 acknowledge context refresh
waleedkadous Nov 23, 2026
9725f56
[Spec 1940][Phase: phase_3] fix: latency test deactivates its workspa…
waleedkadous Nov 23, 2026
0a553e8
[Spec 1940][Phase: phase_3] feat: explicit workspace address names
waleedkadous Nov 23, 2026
b6c5b32
[Spec 1940] Thread: phase 3 built; porch tests check failed under loa…
waleedkadous Nov 23, 2026
da71dac
chore(porch): 1940 implement build-complete
waleedkadous Nov 23, 2026
410f6fb
[Spec 1940][Phase: phase_3] fix: review iteration 1
waleedkadous Nov 23, 2026
f0778b5
[Spec 1940] Phase 3 iteration 1 rebuttal; thread log
waleedkadous Nov 23, 2026
344e974
[Spec 1940][Phase: phase_3] fix: refuse a workspace name that cannot …
waleedkadous Nov 24, 2026
18a9c86
[Spec 1940] Phase 3 iteration 1 rebuttal: address-fit rule; thread log
waleedkadous Nov 24, 2026
e1567ab
chore(porch): 1940 implement re-iter (iter 2)
waleedkadous Nov 24, 2026
4844812
chore(porch): 1940 implement build-complete
waleedkadous Nov 24, 2026
1954ebb
[Spec 1940] Phase 3 iteration 2 review context
waleedkadous Nov 24, 2026
0763ae1
[Spec 1940][Phase: phase_3] fix: review iteration 2
waleedkadous Nov 24, 2026
4c9d9c9
[Spec 1940] Phase 3 iteration 2 rebuttal; thread log
waleedkadous Nov 24, 2026
c535735
chore(porch): 1940 implement re-iter (iter 3)
waleedkadous Nov 24, 2026
9156077
chore(porch): 1940 implement build-complete
waleedkadous Nov 24, 2026
029291d
[Spec 1940] Phase 3 iteration 3 review context; thread log
waleedkadous Nov 24, 2026
60146ee
chore(porch): 1940 advance plan phase → phase_4
waleedkadous Nov 24, 2026
1cbb1f2
[Spec 1940] Thread: phase 3 complete; notes carried to later phases a…
waleedkadous Nov 24, 2026
a3f14de
chore(porch): 1940 acknowledge context refresh
waleedkadous Nov 24, 2026
39bfd1f
[Spec 1940][Phase: phase_4] test: record the frames this phase must n…
waleedkadous Nov 24, 2026
ba33ee3
[Spec 1940][Phase: phase_4] feat: Qualified provenance and reply comm…
waleedkadous Nov 24, 2026
022f174
chore(porch): 1940 implement build-complete
waleedkadous Nov 24, 2026
e723236
[Spec 1940] Thread: phase 4 build recorded; the architect's answers f…
waleedkadous Nov 24, 2026
ce4bfb7
chore(porch): 1940 advance plan phase → phase_5
waleedkadous Nov 24, 2026
490169c
[Spec 1940] Thread: phase 4 complete; notes carried to phase 5 and th…
waleedkadous Nov 24, 2026
8df2c3d
chore(porch): 1940 acknowledge context refresh
waleedkadous Nov 24, 2026
47aedc3
[Spec 1940][Phase: phase_5] refactor: Resolve the front door only whe…
waleedkadous Nov 24, 2026
7afa81e
[Spec 1940][Phase: phase_5] feat: Workspace list and whoami print add…
waleedkadous Nov 24, 2026
f3ed3d4
[Spec 1940] Thread: phase 5 built; the listing, whoami and the real-T…
waleedkadous Nov 24, 2026
d6ac4a2
[Spec 1940][Phase: phase_5] test: Keep the listing test's made-up pat…
waleedkadous Nov 24, 2026
6462b25
[Spec 1940] Thread: phase 5 red run on the /tmp residue check, fixed
waleedkadous Nov 24, 2026
ec93f91
chore(porch): 1940 implement build-complete
waleedkadous Nov 24, 2026
b549c05
[Spec 1940] Thread: phase 5 build recorded; the architect's answers a…
waleedkadous Nov 24, 2026
27f497f
chore(porch): 1940 advance plan phase → phase_6
waleedkadous Nov 24, 2026
17c47cd
[Spec 1940] Thread: phase 5 complete; notes carried to phase 6 and th…
waleedkadous Nov 24, 2026
bd561dd
chore(porch): 1940 acknowledge context refresh
waleedkadous Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions apps/vscode/src/__tests__/address-conformance.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* Address conformance (Spec 1940, phase 1): the VS Code extension reads and writes addresses through its own
* import of `@cluesmith/codev-sdk/address`, against the one shared table in
* `packages/types/fixtures/address-cases.json`. The SDK's own `address.test.ts` and the
* other consumer run the same table, so the CLI, Tower and the VS Code extension cannot
* disagree about what an address means.
*/

import { describe, it, expect } from 'vitest';
import { readFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import type { AgentAddress, AddressReader, AddressParseErrorCode } from '@cluesmith/codev-types';
import { completeAddress, formatAddress, parseAddress } from '@cluesmith/codev-sdk/address';

interface ParseCase { note: string; input: string; address?: AgentAddress; error?: AddressParseErrorCode }
interface FormatCase { note: string; address: AgentAddress; reader: AddressReader; text: string }

const table = JSON.parse(
readFileSync(fileURLToPath(new URL('../../../../packages/types/fixtures/address-cases.json', import.meta.url)), 'utf8'),
) as { parse: ParseCase[]; format: FormatCase[] };

describe('address conformance: the shared table', () => {
it('is loaded', () => {
expect(table.parse.length).toBeGreaterThan(60);
expect(table.format.length).toBeGreaterThan(10);
});

it.each(table.parse)('parse: $note — "$input"', ({ input, address, error }) => {
const result = parseAddress(input);
if (address !== undefined) {
expect(result).toEqual({ ok: true, address });
} else {
expect(result.ok).toBe(false);
if (!result.ok) {
expect(result.error.code).toBe(error);
}
}
});

it.each(table.format)('format: $note → $text', ({ address, reader, text }) => {
expect(formatAddress(address, reader)).toBe(text);
const parsed = parseAddress(text);
expect(parsed.ok).toBe(true);
if (parsed.ok) {
expect(completeAddress(parsed.address, reader)).toEqual(address);
}
});
});
690 changes: 690 additions & 0 deletions codev/plans/1940-tower-to-tower-messaging-proto.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Phase 1 review, iteration 1 — responses

Reviews: codex REQUEST_CHANGES (one point), claude APPROVE (six observations, none blocking).
Nothing is rebutted. The tree was not touched while the lanes ran.

## codex

**Owner handles may start with a digit.** Applied. The reviewer is right: spec Decision 2 defines
a handle as "lower-case letters, digits and hyphens, starting with a letter", and the parser used
the Tower-name rule for both. `packages/sdk/src/address.ts` now has a separate `OWNER_PATTERN`
(`^[a-z][a-z0-9-]*$`); Tower names keep `^[a-z0-9][a-z0-9-]*$`. The shared table gained three
rows: a digit-leading owner and a hyphen-leading owner are malformed, and a handle with digits
and hyphens after its first letter is valid. The error text now says the handle must start with a
letter.

## claude

1. **A mistyped scheme parsed as a valid local address.** Applied. `afx:/tower/…` and
`afx//tower/…` are now refused with a new code, `REMOTE_BAD_SCHEME`, a message that names
`afx://`, and the remote shape as the expected one. The check is narrow on purpose: it fires
only when the text begins `afx:/` or `afx//`. `afx:architect` and `afx:builder-spir-1` stay
valid local addresses, because a workspace may be called `afx`; both are pinned in the table.
No address that could resolve before is affected: read as local, the caught forms named a
workspace or an id containing a slash, which nothing can have.
2. **Owner handle starting with a digit.** Applied; same change as codex's point.
3. **`isAddressComponent` rejects mixed case, so phase 3 must lower-case before validating.**
Agreed and recorded in the thread log as a note for phase 3. No change in this phase: the
function is right for input that is already lower-cased, and `afx workspace name` does not
exist yet.
4. **`formatAddress` throws, and phase 4 calls it on a message path.** Agreed and recorded as a
note for phase 4: the name is checked before formatting, and the throw must not be able to
surface as a 500 on `/api/send`. No change in this phase.
5. **`afx://a:b@devvm/…` reports `INVALID_COMPONENT` on the owner, not `REMOTE_PORT`.** Left as it
is. The colon there is in the owner part, so it is not a port; "owner may contain only
letters, digits and hyphens" is the accurate reason.
6. **The `expected` assertion did not tell the two tiers apart.** Applied. The malformed-row test
now asserts the remote shape exactly when the text was, or was meant to be, a remote address,
and the local shape otherwise.

## Checks after the changes

`codev-types` and `codev-sdk` rebuilt. SDK suite 363 passed. The shared table (98 parse rows, 18
format rows) passes in `packages/codev` and `apps/vscode` through their own imports, 117 tests
each.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
### Iteration 1 Reviews
- codex: REQUEST_CHANGES — Phase 1 is well implemented and tested, but the shared parser accepts owner handles forbidden by the approved grammar.
- claude: APPROVE — Phase 1 delivers the structured address contract, one shared parser/formatter and the three-consumer conformance table exactly as planned, with the latency baseline taken before any production change; only minor polish suggestions remain.

### Builder Response to Iteration 1
# Phase 1 review, iteration 1 — responses

Reviews: codex REQUEST_CHANGES (one point), claude APPROVE (six observations, none blocking).
Nothing is rebutted. The tree was not touched while the lanes ran.

## codex

**Owner handles may start with a digit.** Applied. The reviewer is right: spec Decision 2 defines
a handle as "lower-case letters, digits and hyphens, starting with a letter", and the parser used
the Tower-name rule for both. `packages/sdk/src/address.ts` now has a separate `OWNER_PATTERN`
(`^[a-z][a-z0-9-]*$`); Tower names keep `^[a-z0-9][a-z0-9-]*$`. The shared table gained three
rows: a digit-leading owner and a hyphen-leading owner are malformed, and a handle with digits
and hyphens after its first letter is valid. The error text now says the handle must start with a
letter.

## claude

1. **A mistyped scheme parsed as a valid local address.** Applied. `afx:/tower/…` and
`afx//tower/…` are now refused with a new code, `REMOTE_BAD_SCHEME`, a message that names
`afx://`, and the remote shape as the expected one. The check is narrow on purpose: it fires
only when the text begins `afx:/` or `afx//`. `afx:architect` and `afx:builder-spir-1` stay
valid local addresses, because a workspace may be called `afx`; both are pinned in the table.
No address that could resolve before is affected: read as local, the caught forms named a
workspace or an id containing a slash, which nothing can have.
2. **Owner handle starting with a digit.** Applied; same change as codex's point.
3. **`isAddressComponent` rejects mixed case, so phase 3 must lower-case before validating.**
Agreed and recorded in the thread log as a note for phase 3. No change in this phase: the
function is right for input that is already lower-cased, and `afx workspace name` does not
exist yet.
4. **`formatAddress` throws, and phase 4 calls it on a message path.** Agreed and recorded as a
note for phase 4: the name is checked before formatting, and the throw must not be able to
surface as a 500 on `/api/send`. No change in this phase.
5. **`afx://a:b@devvm/…` reports `INVALID_COMPONENT` on the owner, not `REMOTE_PORT`.** Left as it
is. The colon there is in the owner part, so it is not a port; "owner may contain only
letters, digits and hyphens" is the accurate reason.
6. **The `expected` assertion did not tell the two tiers apart.** Applied. The malformed-row test
now asserts the remote shape exactly when the text was, or was meant to be, a remote address,
and the local shape otherwise.

## Checks after the changes

`codev-types` and `codev-sdk` rebuilt. SDK suite 363 passed. The shared table (98 parse rows, 18
format rows) passes in `packages/codev` and `apps/vscode` through their own imports, 117 tests
each.


### IMPORTANT: Stateful Review Context
This is NOT the first review iteration. Previous reviewers raised concerns and the builder has responded.
Before re-raising a previous concern:
1. Check if the builder has already addressed it in code
2. If the builder disputes a concern with evidence, verify the claim against actual project files before insisting
3. Do not re-raise concerns that have been explained as false positives with valid justification
4. Check package.json and config files for version numbers before flagging missing configuration
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Phase 2, review iteration 1: responses

Codex: REQUEST_CHANGES. Claude: APPROVE, with comments. One issue was raised by both.

## Codex: the registry fallback can hold a builder's mail for an unrelated architect

**Agreed and fixed.** I checked the path before changing anything, and it is as described:

1. A builder sends to bare `architect`. Its spawning architect has gone (or it is a legacy
builder with none), and the workspace has no `main`.
2. The live resolver refuses, correctly, with the Spec 755 message. Its code is `NOT_FOUND`.
3. `NOT_FOUND` is what sends `/api/send` to the registry resolver.
4. `resolveRegistryArchitect` answered "the first registered", so the route held the mail
(`no-live-pty`) for that architect, and the drainer then delivered it there.

The sender was told `held`, and an architect that had nothing to do with the builder received its
message. That is a misroute, which the spec forbids outright ("never falls back to a different
recipient").

The fault is older than this phase: the registry resolver has answered this way since the
mailbox work, and the old code had the same lines. I fixed it here anyway, because this phase's
claim is that the two resolvers cannot disagree, and this was a place where they did.

**What changed**

- `resolveRegistryArchitect` (`servers/tower-messages.ts`) now gives the live resolver's answer: a
builder in the workspace gets its spawning architect, else `main`, else the Spec 755
legacy-builder or architect-gone error. Anyone else gets the front door, as before.
- The starved-mail notice (`escalateHeldToOwner`, `servers/mailbox-wiring.ts`) used the same
function and relied on "else the first registered", which an existing test pins
(`air-1477-owner-escalation-wiring.test.ts`). That behaviour is deliberate: the notice is
Tower's, not the builder's, and someone has to hear that mail is starving. It is kept, and is
now written where it belongs: the notice asks for the builder's own architect first and, when
the builder has none, for the workspace's front door. Its results are the same as before in
every case.

**Tests added**

- `spec-1940-cross-workspace-resolve.test.ts`: against both resolvers, a builder whose architect
has gone and a legacy builder, in a workspace with no `main`, are refused with the Spec 755
messages; a non-builder and a sender from another workspace still get the first registered;
with a `main` present, both builders reach `main`.
- `tower-routes.test.ts`, with the real resolvers behind `/api/send`: the same send is a 404 with
the Spec 755 message on the immediate and the `--delay` path, nothing is stored, and no
architect's terminal is written to.

I ran the new tests against the resolver as it was before the fix: three fail, including the
route test, which found mail stored for the wrong architect. They pass with the fix.

## Claude's comments

1. **The same divergence.** Claude recommended recording it as a known boundary and not widening
the phase. I fixed it, for the reason above: on reading the route, it is reachable whenever the
live resolver refuses, not only when the target has no live terminal, and the result is mail
delivered to the wrong architect.
2. **`resolveTarget` looks up the workspace's terminals before it applies the builder rule**, so a
builder in a workspace with no registered terminals would see the workspace error and not the
Spec 755 refusal. Not changed. The order is the one the code had before this phase; a builder
that is sending has a workspace with terminals; and either way the builder is refused.
3. **Interior whitespace in a local address** (`architect: review`) fails as not found and not as
malformed. Not changed: local components are deliberately unvalidated so that no address that
works today stops working, and the not-found error now lists the workspace's real architects.
4. **`codev/resources/arch.md` still describes the old two-slot parser.** Agreed; that file is in
phase 6's list, and I have noted this line for it.
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
### Iteration 1 Reviews
- codex: REQUEST_CHANGES — Phase 2 is largely aligned, but the registry fallback can misroute a builder’s mail to an unrelated architect.
- claude: APPROVE — Phase 2 delivers the cross-workspace named-architect form and the builder rule exactly as planned, with both resolvers sharing one lookup and one permission check and strong route-level and unit coverage.

### Builder Response to Iteration 1
# Phase 2, review iteration 1: responses

Codex: REQUEST_CHANGES. Claude: APPROVE, with comments. One issue was raised by both.

## Codex: the registry fallback can hold a builder's mail for an unrelated architect

**Agreed and fixed.** I checked the path before changing anything, and it is as described:

1. A builder sends to bare `architect`. Its spawning architect has gone (or it is a legacy
builder with none), and the workspace has no `main`.
2. The live resolver refuses, correctly, with the Spec 755 message. Its code is `NOT_FOUND`.
3. `NOT_FOUND` is what sends `/api/send` to the registry resolver.
4. `resolveRegistryArchitect` answered "the first registered", so the route held the mail
(`no-live-pty`) for that architect, and the drainer then delivered it there.

The sender was told `held`, and an architect that had nothing to do with the builder received its
message. That is a misroute, which the spec forbids outright ("never falls back to a different
recipient").

The fault is older than this phase: the registry resolver has answered this way since the
mailbox work, and the old code had the same lines. I fixed it here anyway, because this phase's
claim is that the two resolvers cannot disagree, and this was a place where they did.

**What changed**

- `resolveRegistryArchitect` (`servers/tower-messages.ts`) now gives the live resolver's answer: a
builder in the workspace gets its spawning architect, else `main`, else the Spec 755
legacy-builder or architect-gone error. Anyone else gets the front door, as before.
- The starved-mail notice (`escalateHeldToOwner`, `servers/mailbox-wiring.ts`) used the same
function and relied on "else the first registered", which an existing test pins
(`air-1477-owner-escalation-wiring.test.ts`). That behaviour is deliberate: the notice is
Tower's, not the builder's, and someone has to hear that mail is starving. It is kept, and is
now written where it belongs: the notice asks for the builder's own architect first and, when
the builder has none, for the workspace's front door. Its results are the same as before in
every case.

**Tests added**

- `spec-1940-cross-workspace-resolve.test.ts`: against both resolvers, a builder whose architect
has gone and a legacy builder, in a workspace with no `main`, are refused with the Spec 755
messages; a non-builder and a sender from another workspace still get the first registered;
with a `main` present, both builders reach `main`.
- `tower-routes.test.ts`, with the real resolvers behind `/api/send`: the same send is a 404 with
the Spec 755 message on the immediate and the `--delay` path, nothing is stored, and no
architect's terminal is written to.

I ran the new tests against the resolver as it was before the fix: three fail, including the
route test, which found mail stored for the wrong architect. They pass with the fix.

## Claude's comments

1. **The same divergence.** Claude recommended recording it as a known boundary and not widening
the phase. I fixed it, for the reason above: on reading the route, it is reachable whenever the
live resolver refuses, not only when the target has no live terminal, and the result is mail
delivered to the wrong architect.
2. **`resolveTarget` looks up the workspace's terminals before it applies the builder rule**, so a
builder in a workspace with no registered terminals would see the workspace error and not the
Spec 755 refusal. Not changed. The order is the one the code had before this phase; a builder
that is sending has a workspace with terminals; and either way the builder is refused.
3. **Interior whitespace in a local address** (`architect: review`) fails as not found and not as
malformed. Not changed: local components are deliberately unvalidated so that no address that
works today stops working, and the not-found error now lists the workspace's real architects.
4. **`codev/resources/arch.md` still describes the old two-slot parser.** Agreed; that file is in
phase 6's list, and I have noted this line for it.


### IMPORTANT: Stateful Review Context
This is NOT the first review iteration. Previous reviewers raised concerns and the builder has responded.
Before re-raising a previous concern:
1. Check if the builder has already addressed it in code
2. If the builder disputes a concern with evidence, verify the claim against actual project files before insisting
3. Do not re-raise concerns that have been explained as false positives with valid justification
4. Check package.json and config files for version numbers before flagging missing configuration
Loading
Loading