Repository navigation
fix(server): nested CLI startup and peer link expiry - #303
Conversation
|
The first Fork Stack Model run rejected the two upstream CLI files because they lacked registered fork ownership. Added a nested-cli-startup inventory entry and the two exact allowlist paths, including the upstream removal condition; the local fork stack check now passes. Product code and test proof are unchanged. Current candidate is 5df4d32, with new exact-head independent review rounds required. |
|
What: Independent review found no blocking or actionable findings at exact head Reviewed the complete eight-file cumulative diff against
Verdict: clean in the inspected scope, with no unresolved objections. This source-review status does not assert complete CI or live verification. Reviewer: GPT-6.1-Sol, high effort, Codex harness in T3 Code. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
What: Independent review of Why: Nested CLI startup ignores an inherited launcher context unless this process has the launcher IPC channel, and a connected child still validates that context and keeps the trial and update handshake. New peer-link expiries are capped at So what: Checked
Proof limit: I inspected the tests and call paths and did not re-run them. |
|
What: Both repairs merged in PR #303 as Exact reviewed head: Focused proof: 31 tests in serviceLauncherClient.test.ts, cli/pair.test.ts, peerLinkExpiry.test.ts and PeerLinks.test.ts. Server-only typecheck exit 0, touched lint/format and fork ownership/stack checks passed. Both new defect regressions were run against old behavior and failed for their intended mechanisms before passing. Product code is identical between tested and final reviewed heads; subsequent commits only add the map PR ref and required fork ownership metadata. No version bump. Task worktree was clean and had no running process before removal; worktree and local/remote task branch are retired and absence verified. Main checkout remains unchanged, including user-owned scripts/pycache/. No machine configuration, installed launcher, runbook, live database, or service was modified. No deployment/restart or live verification of the repaired installed runtime is claimed. The owning boundary is shared product startup, so no host-specific install patch was made. |
What: Agent shells can run the CLI with inherited launcher variables, and skewed source clocks cannot put new peer-link expiries past year 9999.
Why: Startup trusted an inherited launcher marker without IPC, and peer-link storage added a target-relative lifetime to the source clock without a ceiling.
So what: Merge after exact-head Sol and Grok reviews and green CI; installed Chromeria stays running for a later authorized deployment.
Closes #295 and #294, the two follow-ups to #164 / PR #290. These repairs support headless cross-machine control used by the Promachos and Drafters. One requested outcome, one PR, no version bump.
For #295, port the complete two-file fix from upstream PR #14263 at
d45a887be59265c0b4261812397524a9f3ee4cbb. Only a connected launcher child reads the context; connected-child validation and update handshake remain intact. Upstream main still has the defect. For #294, cap the relative expiry conversion before constructing its DateTime. Finite lifetimes and source clocks behind the target retain their value. Existing stored rows are not rewritten; relinking after deployment replaces their expiry.Proof
+010000-01-01T00:00:00.050Zwith the source 1050ms ahead. The fixed test verifies created, stored/read-back, and listed expiry; finite, behind-clock and JavaScript overflow cases also pass.npx -y pnpm@11.10.0 installcompleted.npx -y pnpm@11.10.0 exec vp test run apps/server/src/cloud/serviceLauncherClient.test.ts apps/server/src/cli/pair.test.ts apps/server/src/peer/peerLinkExpiry.test.ts apps/server/src/peer/PeerLinks.test.ts: 31 passed. Task-owned TMPDIR avoids unrelated/tmpquota failure.Diagnosis details: #295 record, #294 record. #302 coordination reserves only the expiry assignment and new helper/test; no toolkit/forwarding edits.
Website impact: none, these are CLI startup and server expiry repairs with no website or UI change.
Elon record
Requirements and who asked: User: fix #295 first and #294, focused regression tests and targeted typecheck, two exact-head independent reviews plus CI before delegated merge, no restart/version bump.
Deleted: Per-provider environment patches, host/PATH/home changes, new token contracts, expiry variants, live-state migrations, restarts and unrelated forwarding changes.
Bottleneck: CLI startup's inherited-marker assumption; reuse the upstream connected-IPC gate. Expiry needs one bounded conversion at storage creation.
Checked myself: Reproduced CLI failures on bestia and both Macs, compared unset-marker result, read complete upstream diff and source consumers, reproduced exact skew via real OAuth/SQLite, and checked focused tests before/after.
Model and harness: GPT-6.1-Sol through Codex in T3 Code.