instar 1.3.1999 → 1.3.2001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,42 @@
1
+ # Side-Effects Review — Unnamed Short Topic Notices
2
+
3
+ Date2026-11-22. Author echo. Tier1, SMALL, reversible display repair; one review pass, one commit attempt planned.
4
+
5
+ ## Summary
6
+ plainReferenceText replaces a one- or two-digit topic reference only when followed by an explicit unresolved-name marker. This isolates the saved notice repair after3579 merged; count changes remain in3658.
7
+
8
+ ## Decision-point inventory
9
+ No authority surface. Existing Notifications rendering consumes this helper; only presentation changes.
10
+
11
+ ## 1. Over-block
12
+ No block/allow surface. Ordinary numbered prose is preserved because it lacks a missing-name marker.
13
+
14
+ ## 2. Under-block
15
+ No block/allow surface. Unrelated identifiers and unknown marker formats remain subject to existing display rules; this change does not invent names.
16
+
17
+ ## 3. Level-of-abstraction fit
18
+ Shared display helper already owns reference wording; no per-page duplicate renderer is introduced.
19
+
20
+ ## 4. Signal vs authority compliance
21
+ Reference docs/signal-vs-authority.md. No message filtering or action gate; notices are retained with the same controls.
22
+
23
+ ## 4b. Judgment-point check
24
+ No new static heuristic at a competing-signals decision point. The explicit missing-name marker is a display format, not a judgment about a message or authority.
25
+
26
+ ## 5. Interactions
27
+ Longer topic ids retain their verified-name lookup. Source text, card actions, hrefs and retry behavior are unchanged.
28
+
29
+ ## 6. External surfaces
30
+ Dashboard notices say a conversation rather than an unrecognized short topic number.
31
+
32
+ ## 6b. Operator-surface quality
33
+ Plain readable fallback, no fabricated name and no technical target added.
34
+
35
+ ## 7. Multi-machine posture
36
+ Shared dashboard assets ship on every machine. Source notification pooling and reference identity remain unchanged; no machine-local state.
37
+
38
+ ## 8. Rollback cost
39
+ Revert and normal release; no migration or source-data repair.
40
+
41
+ ## Validation
42
+ 22 targeted console-live-check-fixes tests passed. Independent reviewer read the exact boundary and concurred. Complete verification remains in the shared queue; this is not a full-green or release claim.
@@ -0,0 +1,29 @@
1
+ # Side effects: receivers check an optional binding signature (SEC-147 step one)
2
+
3
+ In plain words: each machine can now check a second, stronger signature on requests from its other machines. Nothing sends it yet, so nothing an agent does today changes.
4
+
5
+ Tier 2. Size: 4 source files (`src/core/NonceStore.ts`: a read-only `check()` that `validate()` now calls; `src/server/machineAuth.ts`: the v2 check, the signed rejection, per-sender counts; `src/server/WebSocketManager.ts`: the upgrade refusal keeps the rejection header; `src/server/AgentServer.ts`: passes the machine's signing key to the check), 3 test files.
6
+
7
+ ## What changes
8
+ - A request carrying `X-Signature-V2` that does not verify over its method, path and this machine is refused 403 `binding-mismatch`. No sender sets that header in this release, so in practice this only refuses a request that a third party altered.
9
+ - A rejection is signed only for a delivery that could still have been admitted (inside the window, nonce unseen, sequence ahead, checked without claiming them) and names that one delivery; an already-run or stale request gets the ordinary anti-replay answer.
10
+ - The refusal is checked before the nonce and sequence are claimed, so it never blocks a later correct request, and it does not call `onSignatureInvalid`, so it never feeds identity-recovery evidence.
11
+ - A v1-only request follows exactly the old path. The only addition on that path is a per-sender counter increment, in memory, keyed by sender ids that already passed the active-registry check.
12
+
13
+ ## Signal vs authority
14
+ The new check has authority only over requests that carry the new header; it never refuses the old form. The counters are signal only.
15
+
16
+ ## Rollback
17
+ Revert the commit. Nothing persists: the counters are in memory.
18
+
19
+ ## Tests
20
+ - `machine-auth-binding` (new, 14), `nonce-store` (22), `nonce-store-config` (13), `message-router-cross-machine` (23), `machine-auth` (23), `WebSocketManager` (+3), and the unit files that import the changed modules: `HttpLeaseTransport-bootProbe`, `HttpLeaseTransport-mesh`, `desktop-mesh-origin-gate`, `hedge-abort-neutrality`, `hook-events-route`, `lease-renew-unreachable-peers`, `leaseAckAuth`, `messages-cross-machine-relay`, `request-arrival-ratchet`: all pass.
21
+ - Not tested in step one: a bound request through the real WebSocket upgrade (only the path helper and the 403 header writer are unit-tested), because no sender sends v2 until step two, which adds that test.
22
+ - `multi-machine-http` e2e (+2) and the integration files that import machine auth were not run on the M5, per the machine rule; Local Verify runs them.
23
+
24
+ ## Second-pass review
25
+
26
+ **Reviewer:** independent Claude reviewer subagent. Verdict: concur after two rounds. Round 1 found that a rejection could be signed for a request already run or outside its window; fixed with a read-only replay check before signing and a rejection bound to one delivery (nonce, body hash, v2 signature hash). Round 2 concurred and set two stage-2 completion items, now in the spec: the sender compares all three fields of a rejection, and a test drives a bound and a mis-bound request through the real WebSocket upgrade.
27
+
28
+ ## Repair after Local Verify (2026-11-23)
29
+ The full run failed one unit test, `tests/unit/feature-ladders-coverage.test.ts`: the spec's ladder line said "not applicable (reason)", and the check accepts only "not applicable: reason". The line now uses that form. No code changed, and the branch was brought up to date with main.