mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-16 09:55:29 +02:00
* feat: add a restricted and supervised Claude Code runner Preserve configured authentication and models while enforcing tool access, strict completion JSON, bounded output and process cleanup. Cover argv, failure handling, session metadata and Windows process containment. * feat: route outside reviews by harness and migrate wrapper installs Use Claude Code from Codex and Codex from other supported hosts, with shared invocation rendering, positive gate validation and per-phase provenance. Rename /claude to /claude-code, repair managed shared and copied installations safely, and generate native Kiro skills. Add installed-workflow, failure-injection and live cross-harness regression coverage. * test: recognize CEO mode labels without terminal spacing The paid workflow rendered SCOPEEXPANSION at option 4, but its driver required a literal space. Match the leading mode title without cursor-spacing artifacts and ignore adjacent preview text. Preserve missing-target failures and downstream posture assertions. * test: isolate plan-count fixtures before starting review workflows Seed the complete test plan in a private git repository before launching Claude, so a bare slash command cannot review the live workspace while a delayed fixture message remains queued. Preserve count thresholds, parsers and budgets. Add initial-context and installed-discovery tests, and retain startup/terminal diagnostics on failed evaluations. * test: stabilize review fixtures and Claude eval startup Preserve source boundaries in workflow judge inputs, isolate CEO mode plans, and wait for interactive trust input readiness. Keep startup failure evidence and retain existing models, budgets, and assertions. Co-Authored-By: OpenAI Codex <noreply@openai.com> * test: classify collapsed review modes and isolate seeded findings Keep review questions out of the setup count when terminal cursor positioning removes spaces. State existing webhook safeguards so the five-finding control measures its seeded defects without accidental extra security and concurrency gaps. Preserve question bands and the paired control. Co-Authored-By: OpenAI Codex <noreply@openai.com> * test: isolate browser daemon state across free shards Co-Authored-By: OpenAI Codex <noreply@openai.com> * test: stabilize native review counting and interactive navigation Co-Authored-By: OpenAI Codex <noreply@openai.com> * chore: prepare v1.82.0.0 release Co-Authored-By: OpenAI Codex <noreply@openai.com> * fix: eliminate browser and process-cleanup test flakes Pin every CI surface to Bun 1.4.0 to avoid extra-stdio finalizers closing reused live sockets. Add an isolated GC/listener regression that fails on Bun 1.3.13, and prevent coordinated rollback to an affected CI runtime. Check renderer cleanup against the render's own staging directory so concurrent renders cannot invalidate the assertion. Make the no-pgrep process-tree walk tolerate disappearing /proc entries, and synchronize its test fixture through child readiness and pipe EOF instead of sleeps. Validation: 9,157 passed, 31 skipped, zero failures across 556 files with retries disabled. Build, all-host generation freshness, and skill checks passed. All three races have failing-before/passing-after regressions. * fix: count completed native review questions in evals * fix: drive review navigation from confirmed native choices * fix: require complete section-loading eval reports * test: isolate telemetry HTTP transport from local assertions * fix: keep review input on the active native question * test: let tunnel revocation daemon choose an available port * test: allocate available ports for pairing and watchdog fixtures * fix: stabilize planning eval navigation and phase reporting * test: isolate installed runtime paths in planning evals * test: stabilize review evidence and concurrent refresh fixtures * fix: resolve design findings before editing the plan * fix: honor and persist disabled outside plan reviews * fix: preserve planning decisions and terminal evidence Load installed host reviews at autoplan phase entry and wait for completed reviewers and saved artifacts. Reuse approved remedies while preserving individual finding decisions. Drive interactive evals from the current terminal viewport, bind native questions across scrolling, and require complete native report evidence. Cover captured stale menus, permission lifecycles, setup classification, and disabled-review tool availability with deterministic regressions. Advance release metadata and the upgrade migration to the unclaimed 1.83.0.0 slot. * fix: drive native review questions and preserve current plans Use the native single-choice keyboard protocol and current terminal viewport, with per-question navigation inside packets and completed-call coverage. Keep permissions, multi-select menus, and Submit controls distinct. Send Autoplan reviewers the amended implementation plan, keep its review record separate, and supply retained application contracts in the chain fixture. Clarify individual DevEx decisions and complete CEO fix options; use one active plan destination for the section-loading report. * fix: preserve complete plan-review decisions * fix: recognize native plan dialogs and reviewer controls * fix: preserve review decisions and phase completion * fix: recognize completed reviews without losing findings * fix: preserve review continuity and native eval completion * test: fix native review completion and eval retry isolation * test: handle native review menus and complete eval fixtures * test: fix native review setup, completion, and isolation failures * test: limit native skill discovery to runtime assets * fix: bind Autoplan reviews to full ordered phase inputs * test: fix planning eval routing, counting, and timeout handling * chore: advance queued release to v1.84.0.0 * fix: preserve complete review inputs and planning decisions * fix: reconcile review approvals and preserve phase obligations * fix: preserve review obligations and unblock eval permissions Carry recorded Autoplan requirements into blind phase inputs, require Eng review approvals before exit, and exercise combined asynchronous flows in CEO reviews. Correct native finding and handoff classification and unblock repeated report edits using scoped request identities. * fix: retain plan requirements and complete native review dialogs * fix: complete native review prompts and retain plan references * fix: preserve review inputs and classify native eval evidence * fix: check competing completion orders in CEO reviews * fix: recognize review decisions and require phase methodology Require the current phase methodology before Autoplan snapshots. Correct substantive decision, closed handoff, and cache-finding classification, and honor the recommended implementation approach in native review dialogs. Add captured-transcript regressions without changing review thresholds, provider models, retries, or deadlines. * test: bind native review decisions and close completed handoffs * fix: complete review dialogs and verify methodology delivery * fix: preserve review evidence and unblock native eval prompts * fix: handle native review question completions * fix: recognize native review narration and controls * fix: count native review decisions and isolate eval fixtures * test: verify seeded review coverage and current artifact permissions * test: isolate model and brain-aware skill renders * fix: repair native workflow evaluation and clarify review steps * fix: stabilize workflow eval evidence and review guidance * test: repair native workflow observation and fixture isolation * fix: recognize completed workflow evidence and owned skill reads * test: repair seeded workflow delivery and completion evidence * test: recognize current review evidence across native forms * test: handle native review variants and permission redraws * fix: honor review preferences and recognize native eval evidence * test: recognize completed review decisions and queued permissions * test: match current review contracts and partial-line edits * test: recognize completed workflow evidence and bounded human waits * fix: preserve review entry gates and native eval interactions * fix: recognize native workflow evidence and preserve review gates * test: recognize current review evidence and preconfigure workflow fixtures * test: recognize completed review findings and scoped artifact permissions * fix: stabilize native workflow review and permission evidence * fix: recognize current review evidence and scoped edit confirmations Clarify Design and engineering review entry instructions and Design scoring. Recognize required legacy coverage and public Autoplan completion recaps. Bind the pending Edit confirmation to its exact file, ordered digest, and one-request approval when a preceding command display remains visible. Keep reviews within their existing size limits and preserve scope gates when extracting workflow fixtures from either supported preamble header. Keep failure outcomes, review thresholds, provider choices, and eval budgets. * fix: recover review workflow progress and eval evidence * fix: recognize valid review evidence and scope selection * test: fix review evidence parsing and repeated artifact prompts * test: recognize valid review decisions and pending native cards * fix(plan-eng-review): keep final navigation consistent with approved tasks * test: recognize valid review evidence and bind legacy diff requests * fix: stabilize review eval evidence and harness repair guidance * docs: update project documentation for v1.85.0.0 Co-Authored-By: OpenAI Codex <noreply@openai.com> * test: fix Windows CI fixtures and credential scan Rebase captured JSON values and filesystem evidence using the appropriate path convention. Compile native fake CLIs on Windows and synchronize pipe holder readiness, with cleanup retained when assertions fail. Assemble synthetic credential fixtures at runtime so the added-line scan keeps enforcing the same gate without flagging its own rejection controls. Discover generated skills directly for the empty-find regression check, avoiding a recursive scan through saved evaluation artifacts and dependencies. * fix: preserve source renders on Windows Compare canonical generator paths using native separators so an output sidecar pointing at the source cannot overwrite its skill or metadata. Keep the regression fixture isolated from the real checkout and expose freshness diagnostics before asserting subprocess status. Detach Windows drain-test pipe holders from the fake provider's automatic child cleanup while preserving the enclosing runner job and its assertions. * fix: clarify outside review fallback and CEO decisions Render one applicable own-harness fallback path and retain native review, disabled policy, and missing-coverage semantics. Align report field names and mode labels, and make the existing per-cut scope approval explicit. Regenerate skill outputs and keep the workflow judge's model, thresholds, and retry policy unchanged. * chore: move release to free version slot (v1.86.0.0) PR #2852 now claims v1.85.0.0. Align the release metadata and rename migration so upgrades from that version still receive it. Co-Authored-By: OpenAI Codex <noreply@openai.com> * fix: include engineering review prerequisites and restore branch context * fix: recognize coverage diagrams and clarify design review instructions * fix: preserve file identities and join Windows test processes --------- Co-authored-by: OpenAI Codex <noreply@openai.com>
82 lines
8.5 KiB
JSON
82 lines
8.5 KiB
JSON
{
|
|
"provenance": {
|
|
"sourceHead": "ca16058341c2e073051340d9653bbbc900f3ca36",
|
|
"firstCallPath": "/home/vercel-sandbox/gstack/.context/ship-source-af-delta-paid-20260909-v1/eng-first-decision-evidence-v1/first-completed-fingerprint.json",
|
|
"firstCallSha256": "8e52288042850aaa3df079829950858a035cfb9c4256bf654d477d7133c778e3",
|
|
"observationPath": "/home/vercel-sandbox/gstack/.context/ship-source-af-delta-paid-20260909-v1/eng-first-decision-evidence-v1/observation.json",
|
|
"observationSha256": "81070f4c4210628a3b4c2b2de1ceacb665b529b947c2cedc99bd95df9a9aa222",
|
|
"actualPreReview": true,
|
|
"privateThinkingInspected": false,
|
|
"retrospectivePass": false
|
|
},
|
|
"fingerprint": {
|
|
"signature": "da8c1112-7e41-49f3-9998-4dcdd1e844bb:toolu_01YSByMxycFVvYf7vmefh7f6",
|
|
"promptSnippet": "Issue 1 D4 \u2014 Issue 1 (Architecture): AuthBroker and SessionMint both mutate one shared cache with no owner and no serialization. How should shared-state access be structured? Project/branch/task: gstack-plan-count-KQoFHV on main, eng-review",
|
|
"options": [
|
|
{
|
|
"index": 1,
|
|
"label": "1A) Constructor-inject the adapter; single-writer ownership per operation; per-key serialization on the mint-vs-revoke path; race test (recommended)"
|
|
},
|
|
{
|
|
"index": 2,
|
|
"label": "1B) Constructor-inject the adapter only; both services keep writing freely"
|
|
},
|
|
{
|
|
"index": 3,
|
|
"label": "1C) Keep the module-level shared export as planned"
|
|
}
|
|
],
|
|
"observedAtMs": 271840,
|
|
"preReview": true,
|
|
"nativeCall": {
|
|
"sessionId": "da8c1112-7e41-49f3-9998-4dcdd1e844bb",
|
|
"toolUseId": "toolu_01YSByMxycFVvYf7vmefh7f6",
|
|
"questions": [
|
|
{
|
|
"question": "D4 \u2014 Issue 1 (Architecture): AuthBroker and SessionMint both mutate one shared cache with no owner and no serialization. How should shared-state access be structured?\nProject/branch/task: gstack-plan-count-KQoFHV on main, eng-reviewing PLAN.md (Multi-tenant Auth Refactor), scope already reduced per D3.\nELI10: PLAN.md:19-20 says both services share a global mutable cache via module-level export and both mutate it, and PLAN.md:10 admits the validity and tenant-key rules \"do not serialize mutations\". Picture a tenant admin revoking a token at the same instant SessionMint writes a freshly minted session for that same tenant key: whichever write lands last wins, and a revoked session can be served as valid until it expires. A module-level global also means every unit test shares one instance, so state from one test leaks into the next and failures become order-dependent. D3 already cut the AuthCache facade, but the two services still share the underlying adapter, so the ownership question is unchanged.\nStakes if we pick wrong: Silent lost updates on revocation and suspension paths in production, plus flaky order-dependent tests during development, with no error anywhere to point at the cause.\nRecommendation: 1A because a single named writer per operation is explicit rather than clever, the race test makes the invariant executable, and with CC the complete version costs minutes more than the bare injection fix. This is the blast-radius call: the worst case is a revoked credential staying valid across a whole tenant.\nCompleteness: 1A=10/10, 1B=6/10, 1C=3/10\nNet: explicit write ownership with an executable race test, versus trusting last-write-wins on the one path where losing a write means serving a revoked token.",
|
|
"header": "Issue 1",
|
|
"multiSelect": false,
|
|
"options": [
|
|
{
|
|
"label": "1A) Constructor-inject the adapter; single-writer ownership per operation; per-key serialization on the mint-vs-revoke path; race test (recommended)",
|
|
"description": "\u2705 SessionMint owns writes of minted sessions, AuthBroker owns validation and invalidation, and the one overlapping path (revoke while minting) is serialized per tenant key with a documented rule: invalidation always wins (human: ~1 day / CC: ~20 min)\n\u2705 Injection gives every test a fresh adapter instance, killing cross-test state leakage, and the ownership rule lands as an ASCII diagram in the service comments\n\u2705 A concurrency test drives mint and revoke on the same key and asserts the revoked state persists\n\u274c Adds a small per-key lock or compare-and-set helper and one more test fixture to maintain"
|
|
},
|
|
{
|
|
"label": "1B) Constructor-inject the adapter only; both services keep writing freely",
|
|
"description": "\u2705 Removes the module-level global, so tests can isolate instances and hot-reload cannot fork the cache (human: ~2h / CC: ~5 min)\n\u2705 Smallest code change to the two service constructors and their call sites\n\u274c The revoke-during-mint race stays open with last-write-wins semantics and nothing tests it"
|
|
},
|
|
{
|
|
"label": "1C) Keep the module-level shared export as planned",
|
|
"description": "\u2705 Zero changes to the drafted architecture and no injection plumbing (human: 0 / CC: 0)\n\u2705 Every importer trivially gets the same instance without wiring\n\u274c Order-dependent tests, a second instance under hot reload, and an unserialized revoke-vs-mint race across every tenant"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"answered": true,
|
|
"failed": false,
|
|
"answers": {
|
|
"D4 \u2014 Issue 1 (Architecture): AuthBroker and SessionMint both mutate one shared cache with no owner and no serialization. How should shared-state access be structured?\nProject/branch/task: gstack-plan-count-KQoFHV on main, eng-reviewing PLAN.md (Multi-tenant Auth Refactor), scope already reduced per D3.\nELI10: PLAN.md:19-20 says both services share a global mutable cache via module-level export and both mutate it, and PLAN.md:10 admits the validity and tenant-key rules \"do not serialize mutations\". Picture a tenant admin revoking a token at the same instant SessionMint writes a freshly minted session for that same tenant key: whichever write lands last wins, and a revoked session can be served as valid until it expires. A module-level global also means every unit test shares one instance, so state from one test leaks into the next and failures become order-dependent. D3 already cut the AuthCache facade, but the two services still share the underlying adapter, so the ownership question is unchanged.\nStakes if we pick wrong: Silent lost updates on revocation and suspension paths in production, plus flaky order-dependent tests during development, with no error anywhere to point at the cause.\nRecommendation: 1A because a single named writer per operation is explicit rather than clever, the race test makes the invariant executable, and with CC the complete version costs minutes more than the bare injection fix. This is the blast-radius call: the worst case is a revoked credential staying valid across a whole tenant.\nCompleteness: 1A=10/10, 1B=6/10, 1C=3/10\nNet: explicit write ownership with an executable race test, versus trusting last-write-wins on the one path where losing a write means serving a revoked token.": "1A) Constructor-inject the adapter; single-writer ownership per operation; per-key serialization on the mint-vs-revoke path; race test (recommended)"
|
|
},
|
|
"unansweredQuestionIndices": [],
|
|
"answeredAt": "2026-09-09T23:49:40.330Z"
|
|
}
|
|
},
|
|
"regressionTask": {
|
|
"lines": [
|
|
"- [ ] **T1 (P1, human: ~half day / CC: ~15 min)** \u2014 auth/legacy \u2014 Write characterization tests for `legacyAuthFlow()` before any rewrite",
|
|
" - Surfaced by: Test review \u2014 REGRESSION RULE, PLAN.md:27-28 and :15-16",
|
|
" - Files: `test/legacy-auth-flow.characterization.test`",
|
|
" - Verify: suite green against current code; stays green (or diffs are deliberate) after rewrite"
|
|
],
|
|
"provenance": {
|
|
"planPath": "/home/vercel-sandbox/gstack/.context/ship-source-af-delta-paid-20260909-v1/eng-first-decision-evidence-v1/actual-plan-from-native-mutations.md",
|
|
"planSha256": "cad36575e200178cf4d5eb3f2a7afc49d730417b36c69f21bef02ed1c22fe7c2",
|
|
"startLine": 372,
|
|
"endLine": 375,
|
|
"reconstructionProof": "/home/vercel-sandbox/gstack/.context/ship-source-af-delta-paid-20260909-v1/eng-first-decision-evidence-v1/plan-reconstruction-v1.json",
|
|
"source": "Exact task block from completed native Write/Edit reconstruction; final native Read corroborated only a different partial range and total line count. Original final file no longer exists.",
|
|
"retrospectivePass": false
|
|
}
|
|
}
|
|
}
|