instar 1.3.1990 → 1.3.1992

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.
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "generatedFrom": "source-tree",
4
4
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
5
- "packageVersion": "1.3.1990",
5
+ "packageVersion": "1.3.1992",
6
6
  "guards": [
7
7
  {
8
8
  "ref": "docs/audits/phase-b/f10-triage.md",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sha256": "f3d66be5bc7ba2ee568d20e1eb65bb8698f506ee1cc09e0e5fdf1150c5bff6c4",
2
+ "sha256": "ffc9e2e01dc086ace3077ab4744a57403fe39812b6c524b9f4b673cfdb17fe48",
3
3
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
4
- "packageVersion": "1.3.1990"
4
+ "packageVersion": "1.3.1992"
5
5
  }
@@ -2,5 +2,5 @@
2
2
  "sha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
3
3
  "articleCount": 102,
4
4
  "generatedFrom": "docs/STANDARDS-REGISTRY.md",
5
- "packageVersion": "1.3.1990"
5
+ "packageVersion": "1.3.1992"
6
6
  }
Binary file
@@ -2105,7 +2105,7 @@ Progress monitoring must not manufacture user-facing narration. These systems ar
2105
2105
  - **Silent-freeze watchdog** (ActiveWorkSilenceSentinel): before claiming a session is stuck, it re-captures the LIVE frame and corroborates — if the frame still shows an active-work indicator (spinner / "esc to interrupt"), a sub-agent is live, or it's a clean idle prompt, it stays SILENT. It speaks only when genuinely wedged, and even then hedges ("…hasn't changed in N min and a nudge didn't wake it — it may be stuck, or on a long task I can't see into. Want me to check?"). Threshold raised 15m→30m; a 90m frozen-indicator backstop still surfaces a real mid-tool hang. Tune/disable: \`monitoring.activeWorkSilenceSentinel.enabled\` (off), \`.silenceThresholdMs\` (default 30m), \`.activeWorkMaxFrozenIndicatorMs\` (default 90m).
2106
2106
  - **Command-watchdog attribution:** \`SessionWatchdog\` never interrupts the Codex framework host, known bounded external waiters, or pinned long-lived test/compiler services such as Vitest's esbuild service. A selected descendant is signaled directly only after an action-time PID/parent/argv identity check; the watchdog never sends pane-wide Ctrl+C for a descendant helper. If it interrupts a genuinely stuck user command, its audit entry names \`principal: session-watchdog\` and \`operatorInitiated: false\`; Codex's generic "aborted by user" text is transport wording, not proof the operator acted. Continuation is owned by the canonical continuation/recovery funnel, never an independent watchdog prompt.
2107
2107
  - **Claude sessions launch from a retained per-version copy of the executable (CMT-798):** a Claude Code npm update replaces \`claude.exe\` in place, which leaves every already-running session on an UNLINKED executable; on macOS each EndpointSecurity path lookup on it then leaks ~1 KiB of kernel memory (\`data.kalloc.1024\` — ~163 MiB/h measured on a Mac Studio that later panicked at 20 GiB in that zone). So every claude-code session now launches from \`<state>/claude-bin/<version>/claude\`, a one-time copy per version that an update can never unlink; unused old versions are pruned only once no live process maps them. Registry First: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/sessions/claude-binary\` → \`{ enabled, dir, current, lastResolution, lastError, retained[], lastPrune }\` — a \`lastResolution.source: "original"\` with a \`reason\` means the copy FAILED and that session launched from the mutable path (fix the dir; never ignore it). Off switch: \`sessions.retainedClaudeBinary.enabled: false\` (applies to sessions spawned after the next server restart). Sessions started before this shipped still map their old unlinked executable; only restarting such a session moves it onto a retained copy. When the user asks "why is kernel memory / data.kalloc.1024 growing?" or "which claude binary are my sessions running?" → read the route first.
2108
- - **Crash-safe inbound delivery:** Normal tmux injection and Codex stranded-draft key attempts use FULL-durable armed/started/terminal phases. A crash-open mutation becomes \`effect-unknown\` and is never blindly repeated. Diagnose privacy-safe counts at \`GET /sessions/inbound-delivery-status\`; no message body is exposed.
2108
+ - **Crash-safe inbound delivery:** Normal tmux injection and Codex stranded-draft key attempts use FULL-durable armed/started/terminal phases. A crash-open mutation becomes \`effect-unknown\` and is never blindly repeated. Codex transcript baselines use the running session's account home; follow-ups behind an active tracked delivery retain durable FIFO custody. Diagnose privacy-safe counts at \`GET /sessions/inbound-delivery-status\`; no message body is exposed.
2109
2109
  - **Command-watchdog test-runner floor:** a running test suite (\`npm test\`, \`npm run test:*\`, \`pnpm test\`, \`npx vitest\`, Vitest's own \`node (vitest)\` processes), and any process with one of those running underneath it (a shell wrapper, or a \`git push\` running a pre-push test tier), are never judged stuck or interrupted for their first 60 minutes, even under CPU saturation; past that the normal stuck judge (and its hard ceiling) decides again. \`monitoring.watchdog.stuckCommandSec\` / \`hardCeilingSec\` edits now apply without a restart. If a user asks "why did my test run get Ctrl+C'd?" read \`.instar/watchdog-interventions.jsonl\`; a test run killed before 60 min is a bug to report.
2110
2110
  - **A test run that is still working is not interrupted at the hour mark:** the test-runner floor above used to expire on elapsed time alone, so a suite that genuinely needed longer than an hour was interrupted at 61 minutes — and because the hard ceiling is already exceeded by then, every fallback path votes to interrupt, which makes the kill arithmetic rather than a judgement. Past the hour, protection is now held open while the run's own CPU time keeps advancing, measured across its whole process subtree (the \`npm test\` parent waits while its workers do the work, so the parent's own CPU time is not the signal), up to a hard three-hour bound. A run that is alive but burning no CPU is released to the judge exactly as before, and a machine whose \`ps\` gives no readable CPU column behaves exactly as it did. **An interrupted test run is also announced now** — one plain line saying how long it had been running and that nothing it finished was kept — because the old behaviour was a silent Ctrl+C while the harness that launched the run could still report a clean exit. Audit: \`.instar/watchdog-interventions.jsonl\` (the row carries \`stuckCommandKind\`).
2111
2111
  - **Xcode test runs get the test-runner floor too:** an \`xcodebuild test\` / \`test-without-building\` run, or \`xctest\` running a \`.xctest\` bundle, gets the same bounded protection as \`npm test\` (60 minutes, held open to 3 hours only while its CPU time keeps advancing). It is matched on identity, not name: the executable must be the active Xcode's own (\`DEVELOPER_DIR\` or \`xcode-select -p\`, plus the \`/usr/bin/xcodebuild\` shim) and \`test\` must be an action word, so \`xcodebuild build\`, \`-scheme test\` or a copied binary elsewhere is judged normally. If a user asks why an iOS UI test run ended early, read \`.instar/watchdog-interventions.jsonl\`; an Xcode test run interrupted inside that bound is a bug to report.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instar",
3
- "version": "1.3.1990",
3
+ "version": "1.3.1992",
4
4
  "description": "Coherence infrastructure for self-evolving AI agents — on the Claude Code or Codex subscription you already have.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./builtin-manifest.schema.json",
3
3
  "schemaVersion": 1,
4
- "generatedAt": "2026-11-24T00:49:48.953Z",
5
- "instarVersion": "1.3.1990",
4
+ "generatedAt": "2026-11-24T02:59:00.188Z",
5
+ "instarVersion": "1.3.1992",
6
6
  "entryCount": 210,
7
7
  "entries": {
8
8
  "hook:session-start": {
@@ -1604,7 +1604,7 @@
1604
1604
  "type": "subsystem",
1605
1605
  "domain": "sessions",
1606
1606
  "sourcePath": "src/core/SessionManager.ts",
1607
- "contentHash": "617fd5da2007501d968d3c33dc7d463a882c600b6ff345d629ac1a7320823079",
1607
+ "contentHash": "b41550d899069920fa08cfd53a6193c78719587f22aa40b5b473ba6f96ab7311",
1608
1608
  "since": "2025-01-01"
1609
1609
  },
1610
1610
  "subsystem:auto-updater": {
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "generatedFrom": "source-tree",
4
4
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
5
- "packageVersion": "1.3.1990",
5
+ "packageVersion": "1.3.1992",
6
6
  "guards": [
7
7
  {
8
8
  "ref": "docs/audits/phase-b/f10-triage.md",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sha256": "f3d66be5bc7ba2ee568d20e1eb65bb8698f506ee1cc09e0e5fdf1150c5bff6c4",
2
+ "sha256": "ffc9e2e01dc086ace3077ab4744a57403fe39812b6c524b9f4b673cfdb17fe48",
3
3
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
4
- "packageVersion": "1.3.1990"
4
+ "packageVersion": "1.3.1992"
5
5
  }
@@ -2,5 +2,5 @@
2
2
  "sha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
3
3
  "articleCount": 102,
4
4
  "generatedFrom": "docs/STANDARDS-REGISTRY.md",
5
- "packageVersion": "1.3.1990"
5
+ "packageVersion": "1.3.1992"
6
6
  }
@@ -2131,7 +2131,7 @@ Progress monitoring must not manufacture user-facing narration. These systems ar
2131
2131
  - **Silent-freeze watchdog** (ActiveWorkSilenceSentinel): before claiming a session is stuck, it re-captures the LIVE frame and corroborates — if the frame still shows an active-work indicator (spinner / "esc to interrupt"), a sub-agent is live, or it's a clean idle prompt, it stays SILENT. It speaks only when genuinely wedged, and even then hedges ("…hasn't changed in N min and a nudge didn't wake it — it may be stuck, or on a long task I can't see into. Want me to check?"). Threshold raised 15m→30m; a 90m frozen-indicator backstop still surfaces a real mid-tool hang. Tune/disable: \`monitoring.activeWorkSilenceSentinel.enabled\` (off), \`.silenceThresholdMs\` (default 30m), \`.activeWorkMaxFrozenIndicatorMs\` (default 90m).
2132
2132
  - **Command-watchdog attribution:** \`SessionWatchdog\` never interrupts the Codex framework host, known bounded external waiters, or pinned long-lived test/compiler services such as Vitest's esbuild service. A selected descendant is signaled directly only after an action-time PID/parent/argv identity check; the watchdog never sends pane-wide Ctrl+C for a descendant helper. If it interrupts a genuinely stuck user command, its audit entry names \`principal: session-watchdog\` and \`operatorInitiated: false\`; Codex's generic "aborted by user" text is transport wording, not proof the operator acted. Continuation is owned by the canonical continuation/recovery funnel, never an independent watchdog prompt.
2133
2133
  - **Claude sessions launch from a retained per-version copy of the executable (CMT-798):** a Claude Code npm update replaces \`claude.exe\` in place, which leaves every already-running session on an UNLINKED executable; on macOS each EndpointSecurity path lookup on it then leaks ~1 KiB of kernel memory (\`data.kalloc.1024\` — ~163 MiB/h measured on a Mac Studio that later panicked at 20 GiB in that zone). So every claude-code session now launches from \`<state>/claude-bin/<version>/claude\`, a one-time copy per version that an update can never unlink; unused old versions are pruned only once no live process maps them. Registry First: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/sessions/claude-binary\` → \`{ enabled, dir, current, lastResolution, lastError, retained[], lastPrune }\` — a \`lastResolution.source: "original"\` with a \`reason\` means the copy FAILED and that session launched from the mutable path (fix the dir; never ignore it). Off switch: \`sessions.retainedClaudeBinary.enabled: false\` (applies to sessions spawned after the next server restart). Sessions started before this shipped still map their old unlinked executable; only restarting such a session moves it onto a retained copy. When the user asks "why is kernel memory / data.kalloc.1024 growing?" or "which claude binary are my sessions running?" → read the route first.
2134
- - **Crash-safe inbound delivery:** Normal tmux injection and Codex stranded-draft key attempts use FULL-durable armed/started/terminal phases. A crash-open mutation becomes \`effect-unknown\` and is never blindly repeated. Diagnose privacy-safe counts at \`GET /sessions/inbound-delivery-status\`; no message body is exposed.
2134
+ - **Crash-safe inbound delivery:** Normal tmux injection and Codex stranded-draft key attempts use FULL-durable armed/started/terminal phases. A crash-open mutation becomes \`effect-unknown\` and is never blindly repeated. Codex transcript baselines use the running session's account home; follow-ups behind an active tracked delivery retain durable FIFO custody. Diagnose privacy-safe counts at \`GET /sessions/inbound-delivery-status\`; no message body is exposed.
2135
2135
  - **Command-watchdog test-runner floor:** a running test suite (\`npm test\`, \`npm run test:*\`, \`pnpm test\`, \`npx vitest\`, Vitest's own \`node (vitest)\` processes), and any process with one of those running underneath it (a shell wrapper, or a \`git push\` running a pre-push test tier), are never judged stuck or interrupted for their first 60 minutes, even under CPU saturation; past that the normal stuck judge (and its hard ceiling) decides again. \`monitoring.watchdog.stuckCommandSec\` / \`hardCeilingSec\` edits now apply without a restart. If a user asks "why did my test run get Ctrl+C'd?" read \`.instar/watchdog-interventions.jsonl\`; a test run killed before 60 min is a bug to report.
2136
2136
  - **A test run that is still working is not interrupted at the hour mark:** the test-runner floor above used to expire on elapsed time alone, so a suite that genuinely needed longer than an hour was interrupted at 61 minutes — and because the hard ceiling is already exceeded by then, every fallback path votes to interrupt, which makes the kill arithmetic rather than a judgement. Past the hour, protection is now held open while the run's own CPU time keeps advancing, measured across its whole process subtree (the \`npm test\` parent waits while its workers do the work, so the parent's own CPU time is not the signal), up to a hard three-hour bound. A run that is alive but burning no CPU is released to the judge exactly as before, and a machine whose \`ps\` gives no readable CPU column behaves exactly as it did. **An interrupted test run is also announced now** — one plain line saying how long it had been running and that nothing it finished was kept — because the old behaviour was a silent Ctrl+C while the harness that launched the run could still report a clean exit. Audit: \`.instar/watchdog-interventions.jsonl\` (the row carries \`stuckCommandKind\`).
2137
2137
  - **Xcode test runs get the test-runner floor too:** an \`xcodebuild test\` / \`test-without-building\` run, or \`xctest\` running a \`.xctest\` bundle, gets the same bounded protection as \`npm test\` (60 minutes, held open to 3 hours only while its CPU time keeps advancing). It is matched on identity, not name: the executable must be the active Xcode's own (\`DEVELOPER_DIR\` or \`xcode-select -p\`, plus the \`/usr/bin/xcodebuild\` shim) and \`test\` must be an action word, so \`xcodebuild build\`, \`-scheme test\` or a copied binary elsewhere is judged normally. If a user asks why an iOS UI test run ended early, read \`.instar/watchdog-interventions.jsonl\`; an Xcode test run interrupted inside that bound is a bug to report.
@@ -7,26 +7,42 @@
7
7
 
8
8
  The real circuit-breaker test fixture now uses owned temporary admission state for its fake subprocess. It retains the production factory, spawn-cap wrapper, ordinary cap and shared circuit breaker. Its regression models a saturated unrelated ledger without touching the live machine. A server lifecycle check covers the limiter's HTTP route and slot release. Fresh independent review evidence covers the final inherited test harness and this correction.
9
9
 
10
+ Codex delivery resolves its transcript baseline in the running session’s account home. Pooled account conversations previously searched the default home and could refuse owner Telegram follow-ups before terminal input. Existing journal, ownership fences and durable FIFO remain authoritative.
11
+
10
12
  Real search tests prepare their checksum-pinned model before test workers start and load it locally during the suite. A reusable machine-local cache survives clean dependency installs. Preparation errors fail visibly, and tests release owned models and server resources. Version-policy and session-readiness tests wait for actual completion instead of fixed short sleeps. Production behavior is unchanged.
11
13
 
14
+ Give the standards-registry mismatch test a private authored source fixture. Preserve the real packed resolver and auditor, the live article-count invariant, and explicit checks that the checkout registry stays unchanged during the private edit. This removes a shared-file mutation that could collide with parallel registry readers.
15
+
12
16
  Isolate stale-login integration and lifecycle stand-in probes from the operator host spawn semaphore. Retain real admission and recovery behavior, assert fixture-local holders paths, and cover saturated admission with no persisted child reservation. Runtime code is unchanged.
13
17
 
14
18
  ## What to Tell Your User
15
19
 
16
20
  The update checks can test rate-limit protection without unrelated background work changing the result. This change does not alter production behavior.
17
21
 
22
+ Telegram follow-ups to an agent using a separate Codex account no longer fail merely because its conversation transcript is stored in that account’s folder.
23
+
18
24
  The checks used to validate updates are less dependent on download timing and machine load. Search checks still use the real model and database extension.
19
25
 
26
+ Release verification is more reliable because parallel registry tests now keep their temporary edits private. No user action is needed.
27
+
20
28
  ## Summary of New Capabilities
21
29
 
22
30
  No new product capability or setting. This repairs test isolation and refreshes review evidence.
23
31
 
32
+ None. This repairs the existing delivery path without adding settings or replaying historical messages.
33
+
24
34
  No new product capability or setting. This change repairs test preparation and completion checks.
25
35
 
36
+ No new product capability. This internal test repair preserves the real standards auditor and live article-count checks while avoiding shared authored-file edits.
37
+
26
38
  ## Evidence
27
39
 
28
40
  The selected controlled baseline produced one capacity-error failure instead of the expected rate-limit error while using only an owned saturated ledger. The ordinary test cap was not raised and the live host ledger was untouched. The corrected focused sequence passed six unit tests, three integration cases and one production-server lifecycle case, with no skips or recorded unhandled errors. The raw outputs and final immutable review receipt are preserved with the candidate; complete verification remains a separate gate.
29
41
 
42
+ Actual focused checks passed: unit10, HTTP1, lifecycle1, zero skips. The initial HTTP authentication-fixture failure is preserved; its secret-header-only correction was independently reviewed before a fresh authorized invocation. Build passed and independent review concurred. Complete exact-head verification remains required; production delivery and actual model consumption are not claimed.
43
+
30
44
  The unchanged search tests passed with a completed cache. Deliberately delayed version and terminal fixtures reproduced their old timing failures. The saved full-run reports were incomplete, so no precise historical cause or complete-verification success is claimed from those comparisons. Raw-report retention is tracked separately as ACT-517.
31
45
 
46
+ Independent source review concurs. One coordinator-authorized focused invocation of both complete registry unit files passed 67 tests with zero failures, zero skips and zero unhandled errors, exit 0. Complete verification remains throughput-owned. No production behavior or live state changes.
47
+
32
48
  Controlled capacity saturation reproduced the two refreshed-in-place versus swapped assertions. Targeted 34 unit, 4 integration and 4 lifecycle tests pass after fixture isolation. Independent read-only review concurs. Complete verification remains throughput-owned; no live-install result claimed.
@@ -0,0 +1,20 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ Agent-connection registry tests use fresh private homes when loading the real registry writer. They restore the ordinary environment before calls, retain real JSON assertions, and clean up only their own directories. A two-private-home regression checks independent module-bound registry paths. Production registration behavior is unchanged.
9
+
10
+ ## What to Tell Your User
11
+
12
+ Running the agent registration tests no longer temporarily removes the computer’s agent registry. No user action is needed.
13
+
14
+ ## Summary of New Capabilities
15
+
16
+ No new product capability or setting. This repairs test state ownership.
17
+
18
+ ## Evidence
19
+
20
+ The enclosing test setup leaves HOME and USERPROFILE unchanged, so the earlier fixture reached the real registry. No unsafe historical baseline was run. The sole coordinator-authorized whole-file check passed 33 tests with zero failures, skips or recorded unhandled errors, exit 0. Raw evidence and independent review are preserved with the candidate. Complete verification remains a coordinator-owned gate.
@@ -0,0 +1,43 @@
1
+ # Side-Effects Review — Agent-Connection Registry Test Isolation
2
+
3
+ ## Summary and decision points
4
+
5
+ This changes only tests/unit/agent-connector.test.ts. The production writer’s module-load path selection and entry/update/heartbeat behavior remain unchanged. The historical test backed up, removed and restored the actual home registry. Each corrected case owns a temporary home and captures a fresh real writer during private module evaluation. The runner and subsequent writer calls use the restored ordinary environment.
6
+
7
+ ## Over-block and under-block
8
+
9
+ No production block/allow surface changes. Private-path failures fail the unit fixture instead of trying the actual registry. The new two-home regression verifies both complete registry bodies and mutual independence. These checks do not claim to repair other test files; the parent separately tracks Discovery’s import-time lock-path fixtures.
10
+
11
+ ## Level of abstraction and signal versus authority
12
+
13
+ The defect is fixture state ownership. Fixing the test’s module initialization preserves the production function and requires no new configuration seam. Refer to docs/signal-vs-authority.md: the assertions are deterministic fixture invariants, not a production information-flow authority. No account, admission or registration policy is changed.
14
+
15
+ ## Interactions and fault handling
16
+
17
+ The helper clears the module cache, temporarily sets HOME and USERPROFILE, imports the real module, and restores each original value in finally, including deleting values that were originally absent. It resets the cache after restoration so temporary-home dependencies cannot become cached ordinary module state. AgentConnector’s imported graph defines classes/functions; it starts no home-bound daemon during evaluation. The returned writer alone retains its private graph. Cases are serialized in this file; no concurrent environment mutation is introduced. Cleanup removes only the owned temporary root. The original validation, bounded Git probes and unreachable .invalid clone case remain in the complete file. The existing outer global setup strips routing variables and isolates CODEX_HOME but leaves HOME and USERPROFILE unchanged; normal runner admission remains in force.
18
+
19
+ ## External surfaces and operator quality
20
+
21
+ No product/API, installed configuration, live registry, account or operator-facing action changes. The test does not read the actual registry for a byte comparison. It creates small private JSON fixtures and deletes only those fixtures. Release text describes the isolation repair without a live-release or full-suite claim.
22
+
23
+ ## Multi-machine posture
24
+
25
+ Machine-local by design: temporary test directories belong to their worker and require no replication. The source change travels through normal checkout. No durable agent state, notices, channels or generated user URLs are introduced.
26
+
27
+ ## Rollback
28
+
29
+ Revert the unit-fixture change. No migration, live registry restoration or restart is required. GitHub publication belongs to the Chief of Staff and complete verification belongs to throughput.
30
+
31
+ ## Verification
32
+
33
+ Source and focused-plan review concurred before execution. Under coordinator allocation 113b5946-8f01-462e-9c2b-ae5d07d424ba, the sole entire-file unit invocation passed all 33 tests with zero failures, zero skips, zero recorded unhandled errors and exit 0 in 17.489 seconds. The two-private-home regression passed. Raw JSON, combined output, reporter data and result metadata are preserved under .instar/state/build. The historical unsafe baseline was deliberately not run. Complete exact-head verification remains a separate coordinator-owned gate; no complete-green or live-recovery claim is made.
34
+
35
+ ## Second-pass review
36
+
37
+ **Reviewer:** /root
38
+
39
+ The parent independently reviewed the one-file candidate and frozen manifest b4d0db550bc7dad962aad7dadec84f1f3e725af69579c7a31e34e3cd1f19731f before execution. This final artifact is frozen after the actual focused result. Its separate final read, digest-bound concurrence and fresh trace are recorded with the candidate before commit; no concurrence over unread bytes or retrospective change to old review evidence is claimed.
40
+
41
+ ## Class-Closure Declaration
42
+
43
+ unbounded-self-action: n/a. This is an explicitly invoked test fixture and teardown, with no self-triggered retry, recovery loop, installed prompt or production controller change.
@@ -0,0 +1,48 @@
1
+ # Side-Effects Review — Codex account-aware Telegram follow-ups
2
+
3
+ **Version / slug:** codex-pooled-telegram-followup
4
+ **Date:** 2026-11-23
5
+ **Author:** echo
6
+ **Second-pass reviewer:** codex_followup_review, read-only concurrence including corrected authentication fixture
7
+
8
+ ## Summary of the change
9
+ Tier1 SMALL reversible fix to the default Codex rollout-baseline resolver. The existing physical-effect journal stays authoritative; no new queue, schema, authorization or replay mechanism is added. Nine source/test/doc files; 28 runtime lines plus one awareness sentence. One independent reviewer, one short plan, no spec-convergence claim; normal commit gate required.
10
+
11
+ ## Decision-point inventory
12
+ - Transcript baseline location: modify; read the actual session CODEX_HOME rather than always the default home.
13
+ - Stage-B acceptance, ownership fence, capacity breaker, FIFO and physical lock: pass-through, unchanged.
14
+ - Injected resolver seam: unchanged; tests/custom construction can provide an explicit resolver.
15
+
16
+ ## 1. Over-block
17
+ A missing or unreadable account transcript still cannot authorize physical delivery. Unexpected tmux query failures and malformed account values must not silently substitute a different account. Previously valid default-home conversations retain documented missing/unset defaults. No message-content filter is added.
18
+
19
+ ## 2. Under-block
20
+ Native UUID collision across unrelated account folders cannot select the default transcript when an explicit home is present. This fix does not establish that every busy-pane failure is solved, recover historical refused messages, or alter deduplication. A separate existing early Telegram message-ID cache insertion can falsely acknowledge a retry after failure; record separately, do not claim it repaired here.
21
+
22
+ ## 3. Level-of-abstraction fit
23
+ The shared SessionManager baseline resolver serves initial dispatch, durable prepared-row drain and observer; correcting its location input fixes these consumers together. No Telegram-only bypass or alternative terminal writer is added.
24
+
25
+ ## 4. Signal vs authority compliance
26
+ No new blocking authority. The account path is evidence supplied to the existing journal’s exact generation and baseline checks. Existing deterministic ownership, integrity and exactly-once physical-effect floors remain unchanged. Reference: docs/signal-vs-authority.md.
27
+
28
+ ## 4b. Judgment-point check
29
+ No new static heuristic at a competing-signals decision point. The runtime environment and exact session UUID determine an enumerable transcript location; this is not a content or urgency judgment.
30
+
31
+ ## 5. Interactions
32
+ Shadowing: resolves before existing baseline binding and leaves its checks intact.
33
+ Double-fire: no new injection/retry loop. Prepared rows remain blocked by their active predecessor.
34
+ Races: account env is read for the exact incarnation; native UUID/path binding and owner epoch still fence dispatch. No cached home across restart.
35
+ Feedback loops: observer reads the same resolver, not a separately selected account.
36
+
37
+ ## 6. External surfaces
38
+ Pooled Codex owner Telegram sends stop failing solely due to wrong-home lookup. No external API/settings are added. SQLite format and custody rules are unchanged. Tests use private temporary state, transcripts and an executable terminal-environment fixture; no live user-message injection, account authentication file, replay, session restart or installed helper modification. The fix requires the usual reviewed update; no live success claim.
39
+ Operator surface: sending a follow-up remains available from the existing Telegram conversation and app; no new operator action.
40
+
41
+ ## 7. Rollback
42
+ Ordinary source revert. No schema/config migration, data deletion or replay. Retain evidence of uncertain deliveries; do not blindly repeat them during rollback. Full gate/release remains Chief and throughput custody.
43
+
44
+ ## 8. Multi-machine posture
45
+ **machine-local BY DESIGN**: a session’s running account home and transcript path belong to its owning machine. Existing lease, transfer and incarnation fences remain responsible for cross-machine delivery; a path from another machine never grants local dispatch authority.
46
+
47
+ ## Verification
48
+ Actual baseline: one expected path-resolution failure, two passes, zero skips. GREEN unit10/10 passed. First HTTP fixture failed401 because its real lifeline secret was missing; the sequence stopped and the failure was preserved. Fixture-only header correction independently reviewed; other eight hashes unchanged. Fresh authorized pair: HTTP1/1 and lifecycle1/1 passed, zero skips, exit0. Build exit0. Lifecycle simulates predecessor completion through the real ledger and proves persistence/drain, not actual Codex consumption. Independent review concurred. Normal commit hooks required; complete exact-head verification remains throughput custody and is not claimed.
@@ -0,0 +1,31 @@
1
+ # Private Authored Registry Fixture — Side Effects
2
+
3
+ ## Scope and decision points
4
+
5
+ This test-only repair gives the authored-document mismatch case a private source fixture. Production code, standards article102 snapshot, approval facts, floors, real model setup, capacity admission and host configuration remain unchanged. The real packed resolver and auditor continue to decide the result. The fixture must prove that the auditor selected its private tree before a mismatch can count as evidence.
6
+
7
+ ## Over-block and under-block
8
+
9
+ A missing or nonmatching guard tree fails explicit fixture identity and verified-baseline assertions. A packed asset that changes during the private edit fails exact resolution equality. The private article count must rise by one while the report count remains unchanged, and the real checkout document must stay byte-identical during the edit. The expected refusal remains the specific authored-source mismatch, rather than a generic unavailable fixture. No refusal is relaxed or replaced with a skip.
10
+
11
+ ## Level of abstraction and signal versus authority
12
+
13
+ The defect is fixture state ownership. Restoring a shared document afterward does not isolate concurrent readers. Moving writes to a temporary authored root addresses the collision without changing parser, standards count, or production authorization. Following docs/signal-vs-authority.md, source hash and fixture identity observations remain evidence rather than authority to rewrite the constitution.
14
+
15
+ ## Interactions and cleanup
16
+
17
+ The fixture copies src because real marker and route discovery scans that input. Other guard files are copied individually from the packed index. Lexical containment assertions constrain both source and destination paths. No whole repository, node_modules, account files, Git metadata or live home state is copied. The private .git directory is only a marker for the authored-document predicate. Cleanup uses SafeFsExecutor on the owned temporary root. There are no symlinks or platform-specific link privileges. The real packed artifact stays read-only. Existing build/generator/npm-pack behavior in the full test file is unchanged.
18
+
19
+ ## External surfaces, multi-machine posture and rollback
20
+
21
+ There is no operator-facing or external API change. Each worker owns its temporary fixture and cannot alter another worker's authored document. A revert restores the old test setup; no migration, deployment, account change or live state repair is needed. No historical overlap is asserted: the source demonstrates a race mechanism and the original count failure cleared its supported isolation run.
22
+
23
+ ## Verification and review
24
+
25
+ Independent source/plan review concurred with candidate baea57b416ab38975996a0fbf153dcddae3e5f38dc0846963a50be0225dc30e7. One full two-file focused unit invocation passed 67 tests, with zero failures, zero skips and zero unhandled errors, exit 0, under coordinator receipt f92ce8a3-06be-4d4c-baf4-39ddd4d59c7f and frozen manifest f9f833eb880ec1d2e5d425e8f45a3b3be6fa238550e6d88e5f11060a21195c13. The saved result records 68.584 seconds of wall time. Complete exact-head verification remains throughput custody after normal publication. A fresh final-artifact concurrence will be requested after the actual result is recorded. Historical review artifacts remain untouched.
26
+
27
+ ## Second-pass review
28
+
29
+ **Reviewer:** /root/main_search_failure_review
30
+
31
+ The independent reviewer read the exact portable fixture candidate, frozen focused plan, raw result showing 67 passing tests and zero unhandled errors, and these final side-effects bytes. Source review concurred before execution. Final artifact concurrence is recorded separately with the exact digest before a fresh trace is emitted. No historical trace or review receipt is rewritten.