instar 1.3.2017 → 1.3.2019
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.
- package/dist/core/PostUpdateMigrator.d.ts +1 -1
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +8 -1
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/data/standards-guard-index.json +1 -1
- package/dist/data/standards-guard-index.meta.json +2 -2
- package/dist/data/standards-registry.meta.json +1 -1
- package/dist/localVerify/LocalVerifyService.js +1 -1
- package/dist/localVerify/LocalVerifyService.js.map +1 -1
- package/dist/localVerify/orchestrator.d.ts +6 -3
- package/dist/localVerify/orchestrator.d.ts.map +1 -1
- package/dist/localVerify/orchestrator.js +7 -7
- package/dist/localVerify/orchestrator.js.map +1 -1
- package/dist/messaging/MessageRouter.d.ts +11 -0
- package/dist/messaging/MessageRouter.d.ts.map +1 -1
- package/dist/messaging/MessageRouter.js +94 -17
- package/dist/messaging/MessageRouter.js.map +1 -1
- package/dist/messaging/types.d.ts +10 -0
- package/dist/messaging/types.d.ts.map +1 -1
- package/dist/messaging/types.js.map +1 -1
- package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
- package/dist/native/instar-desktop-host +0 -0
- package/dist/scaffold/templates.js +1 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +7 -0
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/awareness/cross-machine-send-honest.md +4 -0
- package/src/data/builtin-manifest.json +64 -64
- package/src/data/standards-guard-index.json +1 -1
- package/src/data/standards-guard-index.meta.json +2 -2
- package/src/data/standards-registry.meta.json +1 -1
- package/src/scaffold/templates.ts +1 -1
- package/upgrades/1.3.2018.md +24 -0
- package/upgrades/1.3.2019.md +20 -0
- package/upgrades/side-effects/local-verify-five-integration-shards.md +60 -0
- package/upgrades/side-effects/messages-send-cross-machine-honest.md +106 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
Local Verify accepts an opt-in fifth integration test process through `monitoring.localVerify.laneShards.integration`. Teams can try this setting on a machine with spare capacity when integration tests determine how long verification takes.
|
|
9
|
+
|
|
10
|
+
## What to Tell Your User
|
|
11
|
+
|
|
12
|
+
The test line can try a fifth integration test process on a machine that has room for it. Existing machines keep their configured counts until an operator changes the setting.
|
|
13
|
+
|
|
14
|
+
## Summary of New Capabilities
|
|
15
|
+
|
|
16
|
+
The existing integration process setting accepts five.
|
|
17
|
+
|
|
18
|
+
## Evidence
|
|
19
|
+
|
|
20
|
+
Targeted tests cover the service, runner, and the agent-guide refresh.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Side-Effects Review — a fifth integration test process
|
|
2
|
+
|
|
3
|
+
**Version / slug:** local-verify-five-integration-shards
|
|
4
|
+
**Date:** 2026-11-24
|
|
5
|
+
**Author:** Echo
|
|
6
|
+
**Second-pass reviewer:** Independent Codex reviewer
|
|
7
|
+
|
|
8
|
+
## Summary of the change
|
|
9
|
+
|
|
10
|
+
Tier 1. The existing per-machine integration process setting accepts five. The staged change is small and reversible. One targeted review pass checked the service and runner limits, defaults, migration, and test-file coverage. The first commit attempt identified the missing review artifact and trace.
|
|
11
|
+
|
|
12
|
+
## Decision-point inventory
|
|
13
|
+
|
|
14
|
+
The runner and service share a maximum for each lane and fall back to existing defaults on an invalid override. A documentation migration updates the old setting range in agent guides.
|
|
15
|
+
|
|
16
|
+
## 1. Over-block
|
|
17
|
+
|
|
18
|
+
The accepted integration range expands by one. The runner accepts all counts it previously accepted.
|
|
19
|
+
|
|
20
|
+
## 2. Under-block
|
|
21
|
+
|
|
22
|
+
An operator can choose five on a machine where it increases resource contention. The existing host protections still apply, and the trial needs live wall-time and failure measurements.
|
|
23
|
+
|
|
24
|
+
## 3. Level-of-abstraction fit
|
|
25
|
+
|
|
26
|
+
The service validates the live run input and the runner validates inputs from its other callers. Both read the same lane limits.
|
|
27
|
+
|
|
28
|
+
## 4. Signal vs authority compliance
|
|
29
|
+
|
|
30
|
+
There is no new blocking authority. The numerical range defines a configuration value. Merge evidence still comes from the existing verification result. [Signal vs authority](../../docs/signal-vs-authority.md)
|
|
31
|
+
|
|
32
|
+
## 4b. Judgment-point check
|
|
33
|
+
|
|
34
|
+
There is no new static heuristic at a competing-signals decision point.
|
|
35
|
+
|
|
36
|
+
## 5. Interactions
|
|
37
|
+
|
|
38
|
+
The runner uses one configuration snapshot per run. Its existing assignment code partitions the same file set across the configured process count. Report joins still check for missing and repeated files. An extra configured process increases peak resource use.
|
|
39
|
+
|
|
40
|
+
## 6. External surfaces
|
|
41
|
+
|
|
42
|
+
The agent guide documents the expanded setting. The migration updates matching guide lines idempotently. No operator interface or status response shape changes.
|
|
43
|
+
|
|
44
|
+
## 7. Multi-machine posture
|
|
45
|
+
|
|
46
|
+
The setting is machine-local by design because capacity differs by machine. There are no new notices, links, or persistent run records.
|
|
47
|
+
|
|
48
|
+
## 8. Rollback cost
|
|
49
|
+
|
|
50
|
+
Return the integration count to four for the next run. Reverting the code restores the old upper limit. No recorded verification state requires repair.
|
|
51
|
+
|
|
52
|
+
## Evidence
|
|
53
|
+
|
|
54
|
+
Seven targeted service and runner tests and three agent-guide tests passed. A TypeScript check and the normal commit checks verify the updated code. The five-process result is a planning estimate until a live comparison is complete.
|
|
55
|
+
|
|
56
|
+
## Second-pass review of the opt-in trial
|
|
57
|
+
|
|
58
|
+
**Reviewer:** Independent Codex reviewer, read-only subagent
|
|
59
|
+
|
|
60
|
+
An independent read-only reviewer checked commit `784dd9596`. Verdict: **concur**. The service and child use the same integer and per-lane limits. Existing valid settings and defaults are preserved. Five processes use the same file partition, first-part exclusion, deadlines, coverage checks, and failure handling. The agent-guide migration is narrowly scoped to the previous wording and is idempotent. The merged diff passes git's whitespace check. This review establishes correctness of the setting path. Wall time and resource contention require the live comparison.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Side-Effects Review — cross-machine /messages/send: real relay path and honest failure
|
|
2
|
+
|
|
3
|
+
**Version / slug:** `messages-send-cross-machine-honest`
|
|
4
|
+
**Date:** `2026-11-20`
|
|
5
|
+
**Author:** `Echo (instar-dev agent, outage repair run E2)`
|
|
6
|
+
**Second-pass reviewer:** `not performed by a separate reviewer: this work ran in a worker fork that cannot start subagents (see Second-pass review)`
|
|
7
|
+
|
|
8
|
+
## Summary of the change
|
|
9
|
+
|
|
10
|
+
Tier 1 (declared). 3 source files, 3 test files, about 120 lines of source. One review round; the first build was cut back after the commit gate's open-PR overlap check showed #3426 owns the arrival layer (see Interactions).
|
|
11
|
+
|
|
12
|
+
`src/messaging/MessageRouter.ts`:
|
|
13
|
+
1. **Relay URL fix.** `relayToMachine` posted to `<peer>/messages/relay-machine`, but the receiving route has always been mounted at `/api/messages/relay-machine` (`src/server/machineRoutes.ts`, Machine-HMAC). Every cross-machine relay got a 404 and fell into the outbound queue as "relay failed (machine unreachable)". Live evidence: the Studio's outbound queue holds the 17:32 message to the Mama PC with exactly that reason, 84 ms after send, while the Mama PC was paired and online. A trailing slash on the stored URL is tolerated.
|
|
14
|
+
2. **Revoked vs unknown target.** A target revoked in this registry fails with a revoked reason; a target absent from it fails with a "not known to this machine" reason. Neither is attempted.
|
|
15
|
+
3. **Honest result.** `SendResult` gains `delivered`, `failureReason`, `notice` (cross-machine sends only). A terminal failure raises one `DegradationReporter` event per target per 30 minutes (bounded map, 200 targets).
|
|
16
|
+
|
|
17
|
+
`src/server/routes.ts`: `POST /messages/send` answers **502** (the result plus `error`) when a cross-machine send failed (`phase: failed` and `delivered: false`). Every other outcome, including every same-machine outcome, keeps 201.
|
|
18
|
+
|
|
19
|
+
`src/messaging/types.ts`: the new optional `SendResult` fields.
|
|
20
|
+
|
|
21
|
+
## Decision-point inventory
|
|
22
|
+
|
|
23
|
+
- `MessageRouter.routeCrossMachine` (inactive-target branch): modify: revoked and unknown get distinct reasons, a notice and a deduped signal. Same refuse-at-once outcome as before.
|
|
24
|
+
- `POST /messages/send` status: modify: 502 for a failed cross-machine send.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 1. Over-block
|
|
29
|
+
|
|
30
|
+
No new refusal. The inactive-target branch already failed every such send; only its reason, status code and notice change. A caller that treated any non-201 as an exception now sees one for a send that never left the machine; before, the same send returned 201 with `phase: failed`, which is the defect. In-repo callers read `phase` (`localVerifyWiring` calls the router directly); none relies on 201 for a failed cross-machine send.
|
|
31
|
+
|
|
32
|
+
## 2. Under-block
|
|
33
|
+
|
|
34
|
+
- A target this registry does not know is still not reached, even when another paired machine knows it. Routing through a third machine is not built here; see Interactions for why and where it is handed.
|
|
35
|
+
- A known target that is offline still goes to the outbound queue (unchanged: `phase: queued`, `delivered: false`, no notice).
|
|
36
|
+
- A relayed message still lands in the receiver's inbox at `received` and is not typed into a session; that is #3426's layer.
|
|
37
|
+
|
|
38
|
+
## 3. Level-of-abstraction fit
|
|
39
|
+
|
|
40
|
+
The change sits in `MessageRouter.routeCrossMachine`, the single place the cross-machine decision is made, and in the one route that returns its result. It reuses the existing relay route and Machine-HMAC. No new transport, no new endpoint, no credential sent anywhere new.
|
|
41
|
+
|
|
42
|
+
## 4. Signal vs authority compliance
|
|
43
|
+
|
|
44
|
+
**Required reference:** [docs/signal-vs-authority.md](../../docs/signal-vs-authority.md)
|
|
45
|
+
|
|
46
|
+
- [x] No — this change has no block/allow surface over content.
|
|
47
|
+
|
|
48
|
+
The DegradationReporter event is a signal only. The revoked/unknown branch already refused; this change only explains the refusal.
|
|
49
|
+
|
|
50
|
+
## 4b. Judgment-point check (Judgment Within Floors standard)
|
|
51
|
+
|
|
52
|
+
No new static heuristic at a competing-signals decision point. Revoked versus not-registered is a registry fact, enumerable.
|
|
53
|
+
|
|
54
|
+
## 5. Interactions
|
|
55
|
+
|
|
56
|
+
- **Open PR #3426** (`feat(messaging): cross-machine session messages are delivered (phase 1)`, converged spec `messages-reach-renamed-sessions` §D, stacked on #3422) also fixes the relay path (with a shared `RELAY_MACHINE_PATH` constant and a legacy alias), adds arrival checks, signed receipts and typing into the session, and adds `reportTerminalFailure` in the same inactive-target branch. A first version of this change also typed arrivals into the session and added a one-hop peer forwarder; both were removed because they duplicate #3426, and the forwarder would be refused by #3426's arrival check (`from.machine === signedBy === relayChain[0] === requestSigner`). What remains is compatible with #3426: its path constant replaces this one line, and its `reportTerminalFailure` call sits beside `failCrossMachine` (a small textual conflict, no semantic one). The unknown-target peer route is handed to #3426's owner as a phase-2 amendment of §D.2, with a PR comment.
|
|
57
|
+
- **Receiver side:** on main, `relay()` already verifies the Ed25519 signature and stores the envelope; with the path fixed, envelopes now actually arrive there.
|
|
58
|
+
- **Threadline:** untouched.
|
|
59
|
+
|
|
60
|
+
## 6. External surfaces
|
|
61
|
+
|
|
62
|
+
- `POST /messages/send` answers 502 for failed cross-machine sends (in the awareness entry).
|
|
63
|
+
- Peers now receive real `/api/messages/relay-machine` requests where before they received 404 requests on the wrong path.
|
|
64
|
+
|
|
65
|
+
## 6b. Operator-surface quality (Operator-Surface Quality standard)
|
|
66
|
+
|
|
67
|
+
No operator surface — not applicable.
|
|
68
|
+
|
|
69
|
+
## 7. Multi-machine posture (Cross-Machine Coherence)
|
|
70
|
+
|
|
71
|
+
This change is cross-machine transport. Posture: delivery, no replicated state. Each machine decides from its own registry. User-facing notice: returned to the sending session only (one voice); the DegradationReporter event is machine-local and deduped.
|
|
72
|
+
|
|
73
|
+
## 8. Rollback cost
|
|
74
|
+
|
|
75
|
+
Pure code revert; no state migration, no config. Envelopes already delivered stay delivered.
|
|
76
|
+
|
|
77
|
+
## Conclusion
|
|
78
|
+
|
|
79
|
+
Ship as Tier 1. The URL fix makes paired-machine sends arrive; the 502 and notice remove the silent 201 for an unknown or revoked target.
|
|
80
|
+
|
|
81
|
+
## Second-pass review (if required)
|
|
82
|
+
|
|
83
|
+
This touches outbound message dispatch. The worker fork that built it cannot start subagents, so no separate reviewer ran. The change refuses nothing new and adds no authority; the self-review above was checked against the paths the unit, integration and e2e tests drive.
|
|
84
|
+
|
|
85
|
+
## Evidence pointers
|
|
86
|
+
|
|
87
|
+
- Live: Studio outbound queue entry for the Mama PC, `reason: outbound: relay failed (machine unreachable)`, 84 ms after send, target paired and online.
|
|
88
|
+
- `git log -S` dates the `/messages/relay-machine` vs `/api/messages/relay-machine` mismatch to the commit that introduced cross-machine routing (9be3cdddf).
|
|
89
|
+
- `tests/e2e/messages-send-cross-machine-alive.test.ts` fails on the old path (`expected 'queued' to be 'received'`) and passes with the fix.
|
|
90
|
+
- `tests/unit/message-router-cross-machine-honest.test.ts` (4), `tests/integration/messages-send-cross-machine-honest.test.ts` (4, real Machine-HMAC over real ports), the e2e (2); existing `message-router-cross-machine` (23), `messaging-routes` (75), `messaging-lifecycle` (7) green.
|
|
91
|
+
|
|
92
|
+
## Class-Closure Declaration (display-only mirror)
|
|
93
|
+
|
|
94
|
+
No agent-authored-artifact defect — not applicable (a source code defect in the transport; no self-triggered controller added).
|
|
95
|
+
|
|
96
|
+
## Merge with main (2026-11-21)
|
|
97
|
+
|
|
98
|
+
`origin/main` (a7f07db3d) was merged into the branch after Local Verify reported `error:conflict`. One file conflicted, `src/messaging/MessageRouter.ts`, against PR #3426 (cross-machine session messages, phase 1): (1) in `routeCrossMachine`, this PR's registry-standing check and `failCrossMachine` (honest 502 + notice, nothing queued) are kept for a revoked or unknown target, and main's `reportTerminalFailure` call (the sender's local notifier, or a signed notice back to the machine the message came from) now runs inside `failCrossMachine` after the failed write, so both behaviours hold; (2) the relay URL is built from main's `RELAY_MACHINE_PATH` constant with this PR's trailing-slash strip. Main's §D.5 relay queue now answers a same-agent session send `relaying` and settles it `received` on the peer's signed ack, so the three happy-path tests of this PR were adapted to that contract (sender wired with `peerAddresses` and `startRelayQueue()` exactly as `server.ts` does; assert `relaying`, await `received`, peer store holds the message). The honest-failure tests (revoked, unknown, no peer knows) are unchanged and still pass. No new decision point; no new side effect.
|
|
99
|
+
|
|
100
|
+
## Follow-up commit (CI green-up, 2026-11-21)
|
|
101
|
+
|
|
102
|
+
After the merge with `main`, `Docs Coverage` fails on the job class (`83% < 85%`, 29 documented + 12 partial of 42) on `main` itself: the `gemini-payg-reconcile` default job template is mentioned nowhere under `site/src/content/docs`. This commit adds the same two documentation entries PRs #3591, #3597 and #3600 add (the default-jobs reference table and the routing-spend control-room page, byte-identical so the branches merge cleanly), lifting the class to 86%. Documentation only; no runtime surface.
|
|
103
|
+
|
|
104
|
+
## Follow-up commit 2 (CI green-up, 2026-11-21)
|
|
105
|
+
|
|
106
|
+
Local Verify tests this branch merged with `main`, and `main` has been over the no-silent-fallbacks baseline since #3603 merged (`UpdateChecker.findBundledNpmCli`, the layout probe `catch { /* not this layout */ }` within the detector window of a `return null;`). This commit merges current `main` and carries the same one-line in-brace `@silent-fallback-ok` reason PR #3529 carries (byte-identical, so the branches merge cleanly); comment only, baseline not raised.
|