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>
47 lines
11 KiB
JSON
47 lines
11 KiB
JSON
{
|
||
"provenance": {
|
||
"sourceHead": "5301119aa8f6f681fe3cae3cd229a3263e5419ab",
|
||
"originalOutcome": "timeout",
|
||
"originalReviewCount": 5,
|
||
"paidOutcomeReclassified": false,
|
||
"sourcePublicProofSHA256": "c903530934f014824cccde4f5dd17cc6c9d92b4966caaf1174772fdad268ab5c",
|
||
"sourceVisibleSHA256": "1449a832d6a3c79b599bce30a8b89ead5803393536f0a1dae53ba83d46a9ed54",
|
||
"sourceScreenSHA256": "c5e480ba5231235956f8c71dae152999fa5e3f8623b35e1ad1a24f7fc44e88fe",
|
||
"projection": "Exact terminal screen and last acknowledged public same-file Edit/result pair. No pending native ID was retained; test hook epochs are explicitly synthetic."
|
||
},
|
||
"screen": " 176 -_Test coverage decision and further sections follow._ \n 176 +### Issue 5 [P1] (confidence: 8/10) PLAN.md:15-18 — no tests for the retry framework \n 177 +**Decision: 5A (approved).** Every GAP in the diagram gets a test in this PR, \n 178 +written alongside the code, not after: \n 179 + \n 180 +| Test file (placeholder names) | Kind | Asserts | \n 181 +|---|---|---| \n 182 +| `jobs/retry/backoffStrategy.test` | unit | delay ∈ [0, min(cap, base·2^n)] for n=0..maxAttempts; never > maxDela\n +yMs; two calls at same attempt differ (jitter); attempt ≥ maxAttempts returns terminal sentinel | \n 183 +| `jobs/retry/classify.test` | unit | timeout, ECONNRESET, 5xx, 429 → retryable; 4xx≠429, validation, unknown → te\n +rminal (table-driven, one row per error type) | \n 184 +| `jobs/retry/withRetry.test` | unit | success → no failure row; retryable → ledger row + rethrow; terminal → Unre\n +coverable and no rethrow-to-retry; ledger write failure → retry still scheduled + error logged | \n 185 +| `jobs/retry/policy.test` | unit | defaults match table in Issue 3; per-worker override validated; invalid values\n + rejected | \n 186 +| `workers/<each>.test` (x5) | unit | handler invoked through withRetry with the expected policy | \n 187 +| `webhooks/ledger.test` | unit | one row per attempt, attempt strictly increasing; concurrent duplicate for same \n +event id → single delivery | \n 188 +| `processWebhookJob.regression.test` | E2E | **CRITICAL** 2xx-then-timeout → no duplicate distinct event, same ev\n +ent id, one `delivered` row; 4xx → one attempt | \n 189 +| `webhooks/delivery.e2e.test` | E2E | transient 5xx then 2xx → one event id, delivered; 4xx → rejected, no retry;\n + 429 → retried | \n 190 +| `jobs/retry/dlq.e2e.test` | E2E | exhaustion → DLQ + exactly one alert; maxAge exceeded → DLQ; replay → new chai\n +n, same event id | \n 191 + \n 192 +E2E tests run against the real job library and a fake HTTP receiver; no \n 193 +mocking of the retry hook. \n 194 + \n 195 +## 4. Performance \n 196 + \n 197 +_Decision follows._ \n╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌\n Do you want to make this edit to gstack-test-plan-eng-batching.md?\n ❯ 1. Yes\n 2. Yes, and switch to accept edits (auto-approve file edits and common file commands) for this session; Yes, and\n always allow access to /tmp/gstack-paid-shard-dY0BU1/tmp/gstack-e2e-plan-eng-batching-PfFS0a for this session\n (shift+tab)\n 3. No\n\n Esc to cancel · Tab to amend",
|
||
"priorCompletedEdit": [
|
||
{
|
||
"line": 138,
|
||
"kind": "use",
|
||
"timestamp": "2026-09-10T19:53:42.858Z",
|
||
"sessionId": "66c806c5-6230-4227-a9c1-265da2f39ab0",
|
||
"messageId": "msg_011CevLsKGJurCS3hVnUXESC",
|
||
"requestId": "req_011CevLsHryRJ5H8QEHxGJ3u",
|
||
"toolUseId": "toolu_01XkYcRRq69pesUitEzJLF5Q",
|
||
"name": "Edit",
|
||
"input": {
|
||
"replace_all": false,
|
||
"file_path": "/tmp/gstack-paid-shard-dY0BU1/tmp/gstack-e2e-plan-eng-batching-PfFS0a/gstack-test-plan-eng-batching.md",
|
||
"old_string": "## 2. Code Quality (decisions)\n\n_Further sections follow as they are agreed._",
|
||
"new_string": "## 2. Code Quality (decisions)\n\n### Issue 4 [P1] (confidence: 9/10) PLAN.md:11-13 — retry envelope duplicated across 5 workers\n**Decision: 4A (approved).** Extract one `withRetry(policy, handler)` wrapper\nin a shared module (e.g. `jobs/retry/withRetry`) before touching any worker,\nthen convert all 5 workers to thin call sites in this PR. The wrapper owns:\nerror classification (retryable vs terminal), attempt logging, ledger write\n(decision 2A), and hand-off to the library retry hook (decision 1A). Workers\nown only their handler body. Order: wrapper + tests first, then workers one\ncommit each (structural change, then behavioral change; never both at once).\n\n```\n worker file (x5) shared module (x1)\n ┌────────────────────┐ ┌──────────────────────────────────┐\n │ export default │ │ withRetry(policy, handler) │\n │ withRetry( │ ──────► │ try handler(job) │\n │ policy, │ │ catch e: │\n │ handleXJob) │ │ classify(e) → terminal|retry │\n └────────────────────┘ │ ledger.record(job, attempt) │\n │ terminal → throw Unrecoverable│\n │ retry → rethrow (library) │\n └──────────────────────────────────┘\n backoffStrategy(attempt) → delayMs (1A/3A)\n```\n\n## 3. Tests\n\nTest framework: none detectable in this repo (only PLAN.md and CLAUDE.md are\nchecked in). Coverage diagram produced; concrete test file names use the\n`*.test.ts` convention as a placeholder and must match the real repo.\n\n### REGRESSION (mandatory, CRITICAL, no approval needed)\n`processWebhookJob()` is rewritten (PLAN.md:16-17). Its prior at-most-once\nbehavior is existing behavior with no planned test. Per the regression rule\nthis test is added as a critical requirement:\n\n- **`processWebhookJob.regression.test`** — given a receiver that returns 2xx\n then the connection drops before the response is read (or the worker crashes\n after a 2xx), assert the receiver observes exactly one delivery with the\n same `X-Webhook-Event-Id` on any second attempt, and the ledger shows one\n `delivered` row. Also assert that a 4xx (≠429) response produces exactly one\n attempt and no retry. This pins the new contract: at-least-once with a\n stable dedupe key, never a second *distinct* event.\n\n### Coverage diagram\n\n```\nCODE PATHS USER / OPERATOR FLOWS\n[+] jobs/retry/backoffStrategy [+] Webhook receiver\n ├── [GAP] attempt 0..n → delay within [0, cap] ├── [GAP] [→E2E] transient 5xx then 2xx: one event id, delivered\n ├── [GAP] delay never exceeds maxDelayMs ├── [GAP] [→E2E] 4xx: single attempt, marked rejected\n ├── [GAP] jitter: two calls same attempt differ └── [CRITICAL] [→E2E] 2xx then timeout: no duplicate event (regression)\n └── [GAP] attempt ≥ maxAttempts → -1 / terminal\n[+] jobs/retry/withRetry [+] Operator\n ├── [GAP] handler succeeds → no ledger failure row ├── [GAP] job exhausts → lands in DLQ, alert fires once\n ├── [GAP] retryable error → ledger row + rethrow ├── [GAP] job older than maxAge → stops retrying, DLQ\n ├── [GAP] terminal error → Unrecoverable, no retry └── [GAP] replay from DLQ → new attempt chain, same event id\n ├── [GAP] classify(): timeout / conn reset / 5xx / 429\n ├── [GAP] classify(): 4xx ≠ 429 / validation / unknown\n └── [GAP] ledger write fails → retry still scheduled, error logged\n[+] jobs/retry/policy\n └── [GAP] defaults + per-worker override validation\n[+] workers/* (x5)\n └── [GAP] each worker: handler invoked via withRetry with expected policy\n[+] webhook ledger\n ├── [GAP] one row per attempt, monotonically increasing attempt\n └── [GAP] concurrent duplicate job for same event id → single delivery\n\nCOVERAGE: 0/20 paths tested (0%) | Code paths: 0/14 | Flows: 0/6\nQUALITY: none yet | GAPS: 20 (3 E2E, 1 CRITICAL regression, 0 eval)\n```\n\nLegend: ★★★ behavior + edge + error | ★★ happy path | ★ smoke | [→E2E] integration test\n\n_Test coverage decision and further sections follow._"
|
||
}
|
||
},
|
||
{
|
||
"line": 139,
|
||
"kind": "result",
|
||
"timestamp": "2026-09-10T19:53:43.195Z",
|
||
"sessionId": "66c806c5-6230-4227-a9c1-265da2f39ab0",
|
||
"toolUseId": "toolu_01XkYcRRq69pesUitEzJLF5Q",
|
||
"isError": false,
|
||
"content": "The file /tmp/gstack-paid-shard-dY0BU1/tmp/gstack-e2e-plan-eng-batching-PfFS0a/gstack-test-plan-eng-batching.md has been updated successfully. (file state is current in your context — no need to Read it back)"
|
||
}
|
||
],
|
||
"pendingEditId": null,
|
||
"expectedPath": "/tmp/gstack-paid-shard-dY0BU1/tmp/gstack-e2e-plan-eng-batching-PfFS0a/gstack-test-plan-eng-batching.md",
|
||
"cwd": "/tmp/gstack-paid-shard-dY0BU1/tmp/gstack-plan-count-g6ojGV",
|
||
"sessionId": "66c806c5-6230-4227-a9c1-265da2f39ab0",
|
||
"lastMatchedDisplayCompletion": "⎿ Added 17 lines",
|
||
"laterNativeCompletionHasDisplayMatch": false
|
||
}
|