Skip to content

v1.86.0.0 feat: route outside reviews by harness - #2850

Merged
garrytan merged 87 commits into
mainfrom
edinburgh-v1
Sep 14, 2026
Merged

garrytan merged 87 commits into
mainfrom
edinburgh-v1

Conversation

@garrytan

@garrytan garrytan commented Sep 11, 2026 •

Copy link
Copy Markdown
Owner

Why (in your own words)

Automatic outside reviews could target Codex while Codex was already the host. Codex-hosted workflows now call Claude Code; Claude-hosted workflows call Codex. Other harnesses expose both wrappers and retain Codex at automatic review sites. Explicit provider requests and disabled-review policy remain authoritative. Planning and evaluation repairs are also included.

Live evidence

On d57866a, both opposing-CLI workflows passed first attempt, identified the seeded missing invoice-ownership check, recommended restoring authorization, and left fixture source unchanged.

Captured Claude-hosted invocation excerpt; shell setup and result checks omitted:

_gstack_codex_timeout_wrapper 540 codex exec "$(cat "$_OUTSIDE_INPUT")" -C "$_REPO_ROOT" -s read-only -c "model=\"${GSTACK_CODEX_MODEL:-gpt-6-astra}\"" -c 'model_reasoning_effort="high"' -c 'web_search="cached"' < /dev/null >"$_OUTSIDE_TMP/text" 2>"$_OUTSIDE_TMP/stderr"

Actual outside result excerpt:

Restore the ownership check before returning data, or constrain the database lookup by both invoice ID and authenticated owner ID.

Actual installed-workflow test output:

(pass) Installed workflows dispatch outside their host harness > outside-voice-codex-to-claude-code [98134.74ms]
(pass) Installed workflows dispatch outside their host harness > outside-voice-claude-code-to-codex [347967.97ms]
 2 pass
 0 fail
 6 expect() calls
Ran 2 tests across 1 file. [348.98s]

The disabled-policy case passed on retry after its first assertion misattributed an explicitly historical completed record; neither attempt dispatched an outside CLI or fallback agent.

Autoplan completed all four native phases and full methodology reads on its first attempt in 47.56 minutes. Outside reviews were disabled in that fixture. The archive Edit hook was enabled but unexercised: all 24 successful Edits targeted the native plan. Final human/taste approval and mockup coverage were not tested.

Full local free validation on dc0af5e4, before the final parser/design corrections: 13,952 passed, 31 skipped, 0 failed, 113,103 reported assertions across 804 files, retries disabled. All-host generation, Astra overlay freshness and skill-health checks passed. The exact engineering quality eval passed first attempt on that tree with clarity 4, completeness 5 and actionability 4; its model and thresholds are unchanged.

The earlier selected sweep ended EXIT 1: 122 passes, 3 failures, 53 skips and 1 TODO, with 439 reported assertions. Engineering finding-count timed out without a footer; its counts remain unknown. CEO count and coverage-audit failures include diagnosed assertion mismatches; CEO section-loading failed its seeded-finding assertion. Four cases passed on retry; earlier failures remain. Some passing phase/routing checks stopped at their checked milestone with timeout/max-turn outcomes: these are not 122 completed workflows. Recorded final-collector cost is $38.85, incomplete.

The parser/design batch (0c11ff35) passed 481 focused tests, the exact live coverage-audit case, and the exact design-consultation quality eval (4/4/4), each paid case on its first attempt. A superseded local full-suite run was intentionally stopped when the remaining design failure surfaced; it is not counted as passing evidence. The Windows follow-up (1fd0ea5d) passed all 69 Autoplan identity/snapshot/obligation tests and the relevant runner checks (20 passed, 3 native-Windows cases skipped locally). Its full native CI results are recorded below.

CI repairs

  • Windows fixtures now preserve native JSON paths, malformed-input negative controls and process-tree lifetime. Fake reviewer CLIs execute natively on Windows. The generator compares canonical paths using native separators before writing external-host outputs, preventing linked outputs from overwriting source SKILL.md and metadata.
  • Synthetic credential fixtures generate the same test bytes at runtime; the credential scanner and thresholds remain unchanged. Generated-file discovery avoids ignored dependency trees.
  • The engineering quality evaluator now includes the scope gate and readiness probe referenced by later steps, while retaining every lazy section exactly once. CEO/engineering instructions clarify ordering and output requirements without changing models, scoring thresholds, skill-size caps or per-finding approvals.
  • Coverage-diagram evidence now recognizes current footer legends and labels on owned continuation lines. Both previously rejected CI diagrams fail the old parser and pass the correction with identical native read evidence; the recorded paid failures remain failed. Negative tests reject examples, withdrawn or conflicting legends, and labels borrowed from other functions or columns. Design instructions now distinguish a serving board from fallback, use the existing approved plan section consistently, and include Phase 0 in the judge input.
  • Context recovery now initializes the raw branch identity used by timeline writers. Behavioral tests cover slash branches, stale inherited variables, detached checkouts and non-repositories, while review filenames retain their separate sanitized names.
  • Autoplan now compares file identities with exact integer stats for alias, concurrent-change and rollback ownership checks. A controlled large-ID regression reproduces the old alias failure and preserves real hardlink rejection. Windows containment tests join their direct children and confirm both provider and descendant death before removing the fixture directory.
  • Release v1.86.0.0 and its rename migration use an unclaimed version slot. All changes remain in this PR.

On 0c11ff35, E2E Evals passed: 50/50 selected shards, 146 tests passed, 0 failed, 135 skipped. Thirteen shards contained only skipped cases; 37 files were excluded by the gate tier. Design consultation needed its existing one retry (3/4/4 → 4/4/4); coverage, CEO and engineering passed first attempt. These are test-case results, not 146 completed workflows.

All current-head CI checks passed on 1fd0ea5d, including the aggregate eval report. Windows Free Tests passed both shards with 7,952 total reported cases across 527 files; Free Tests passed all six shards with 13,988 total reported cases across 804 files. Their successful logs do not publish separate pass/skip/assertion totals. Neither run reported a retry; the free suite produced no flake ledger.

E2E Evals passed 50/50 selected shards: 146 tests passed, 0 failed, 135 skipped. Land-and-deploy quality used its existing one retry (3/4/4 → 4/4/4); design consultation, CEO, engineering, and both coverage-audit cases passed first attempt. Thirteen shards contained only skipped cases, and the gate tier excluded 37 files. Collectors recorded 99 unique passing cases across 100 attempts. These are test-case results, not 146 completed workflows. Windows setup, generation freshness, version, security, dependency, workflow lint, and macOS rendering gates also passed.

Scope

  • Changed: Supervised Claude Code execution restricts tools, validates completion and blocks stale or conflicting self-host dispatch. Managed installations migrate /claude to /claude-code without an alias; Kiro and generated documentation are included. Provenance records host, provider, phase and partial/unavailable status. Spec redaction failure blocks downstream dispatch and publication.
  • Plans preserve original content and content-bound snapshots across CEO → Design → DX → Eng. Approvals, requirement reconciliation and baseline regression checks remain required. Final navigation cannot introduce dependencies; substantive late changes must be written and reviewed before completion.
  • Evaluation binds questions, answers, seeded findings and completion to the current owned workflow. Eng batching counts separate native issue decisions without counting setup, navigation or repeats. Seed-quality requirements remain.
  • Autoplan’s test can explicitly activate native Edit approval for its owned archived artifact. One handler verifies current parent/session, successful same-file history, fresh digest, unique old text and one-time identity. Default observation stays passive. Rejection has no competing UI grant; Write, Bash and native-plan edits are outside this hook. docs/TESTING_INTERNALS.md documents the boundary.
  • Verified live by: Opposing-CLI findings, disabled-policy evidence and native Autoplan completion above.
  • Did NOT test: Final human approval, live visual review, archive-hook approval in this successful chain, or successful independent review of the whole branch.

The diff is 767 files, +127,469/−3,966 lines, including 121,767 test additions (~95.5%). Development and CI require Bun 1.4.0. Latest evaluator repairs preserve models and review thresholds. Autoplan’s added latency/cost policy allows 80 minutes of work and a 172-minute shard with one retry; this run supplies one successful calibration.

Model-overlay efficacy remains unproven after failed evaluations. Two whole-branch outside reviews timed out; native fallback and seeded workflows do not establish independent whole-branch coverage. Autoplan evidence retains a working-directory reader gap and a material-capture digest race; recovered final snapshots do not prove continuous capture. Native Windows CI passed on the current head; its scope is reported in CI repairs above.

Documentation

  • ARCHITECTURE.md: corrected outside plan reviewer routing and resolver source.
  • CONTRIBUTING.md: clarified that Codex retains outside-review sections routed to Claude Code.
  • docs/ADDING_A_HOST.md: corrected wrapper defaults, resolver suppression guidance, and host verification expectations.

Release documentation coverage is adequate; no architecture diagram drift identified.

Liveness proof (required)

The human screenshot with GSTACK PR typed into a live surface is missing.

Checklist

  • Liveness screenshot attached; human verification completed.
  • Source/templates edited and generated outputs refreshed.
  • No ETHOS.md or voice/founder-perspective/YC-reference changes.
  • Accepted issue linked for the public command/host adapter; none is linked yet.
  • Reproduction and behavioral evidence: invoice fixture and actual outside output above.

Open workspace in Conductor

garrytan and others added 30 commits September 8, 2026 05:31
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.
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.
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.
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.
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 <[email protected]>
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 <[email protected]>
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.
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.
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.
garrytan and others added 13 commits September 10, 2026 15:17
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.
@trunk-io

trunk-io Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

99/99 tests passed | $23.61 total cost | reconcile exit: 0 | ⚠ 1 flaky pass(es) — recorded, not blocking

Shard Result Status Cost
e2e-browse/skill-e2e-bws 7/7 ✅ $0.66
e2e-coverage-audit/skill-e2e-coverage-audit 2/2 ✅ $0.55
e2e-cso/skill-e2e-cso 1/1 ✅ $1.02
e2e-deploy/skill-e2e-deploy 6/6 ✅ $2.97
e2e-design/skill-e2e-design 3/3 ✅ $0.86
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 ✅ $0.23
e2e-hermetic/skill-e2e-hermetic-canary 2/2 ✅ $0.03
e2e-learnings/skill-e2e-learnings 1/1 ✅ $0.22
e2e-opus-47/skill-e2e-opus-47 6/6 ✅ $1.37
e2e-plan-tune-cathedral/skill-e2e-plan-tune-cathedral 5/5 ✅ $0
e2e-plan-tune/skill-e2e-plan-tune 1/1 ✅ $0.37
e2e-plan/skill-e2e-plan 7/7 ✅ $3.79
e2e-qa-workflow/skill-e2e-qa-workflow 3/3 ✅ $2.25
e2e-retro/skill-e2e-retro 1/1 ✅ $0.59
e2e-review-army/skill-e2e-review-army 5/5 ✅ $1.93
e2e-review-attribution/skill-e2e-review-attribution 3/3 ✅ $0.53
e2e-review/skill-e2e-review 2/2 ✅ $0.67
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 ✅ $0.48
e2e-ship-docsync/skill-e2e-ship-docsync 1/1 ✅ $0.56
e2e-skillify/skill-e2e-skillify 3/3 ✅ $1.58
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 ✅ $0.5
e2e-triage/skill-e2e-triage 1/1 ✅ $0.38
e2e-workflow/skill-e2e-workflow 4/4 ✅ $1.55
llm-judge/skill-llm-eval 25/25 ✅⚠ $0.52
Fail-closed reconciliation
s
  slice 3  passed              0s  test/skill-e2e-autoplan-dual-voice.test.ts
  slice 3  passed            129s  test/skill-e2e-design.test.ts
  slice 3  passed              0s  test/skill-e2e-ios-device.test.ts
  slice 3  passed              0s  test/skill-e2e-office-hours-brain-writeback.test.ts
  slice 3  passed             27s  test/skill-e2e-plan-design-with-ui.test.ts
  slice 3  passed              0s  test/skill-e2e-plan-tune-cathedral.test.ts
  slice 3  passed            402s  test/skill-e2e-review-army.test.ts
  slice 3  passed             64s  test/skill-e2e-third-party-actions.test.ts
  slice 4  passed            110s  test/skill-e2e-bws.test.ts
  slice 4  passed             33s  test/skill-e2e-diagram.test.ts
  slice 4  passed              0s  test/skill-e2e-ios-swift-build.test.ts
  slice 4  passed              0s  test/skill-e2e-office-hours-phase4.test.ts
  slice 4  passed             33s  test/skill-e2e-plan-devex-finding-floor.test.ts
  slice 4  passed             49s  test/skill-e2e-plan-tune.test.ts
  slice 4  passed             95s  test/skill-e2e-review-attribution.test.ts
  slice 4  passed             42s  test/skill-e2e-triage.test.ts
  slice 5  passed              0s  test/skill-e2e-context-skills.test.ts
  slice 5  passed             49s  test/skill-e2e-docsync-spawned.test.ts
  slice 5  passed              0s  test/skill-e2e-ios.test.ts
  slice 5  passed              0s  test/skill-e2e-office-hours.test.ts
  slice 5  passed            502s  test/skill-e2e-plan-devex-plan-mode.test.ts
  slice 5  passed            336s  test/skill-e2e-plan.test.ts
  slice 5  passed            145s  test/skill-e2e-review.test.ts
  slice 5  passed            262s  test/skill-e2e-workflow.test.ts
  slice 6  passed             65s  test/skill-e2e-coverage-audit.test.ts
  slice 6  passed              0s  test/skill-e2e-first-task-scaffold.test.ts
  slice 6  passed             26s  test/skill-e2e-learnings.test.ts
  slice 6  passed             16s  test/skill-e2e-opus-47.test.ts
  slice 6  passed              0s  test/skill-e2e-plan-format.test.ts
  slice 6  passed              0s  test/skill-e2e-qa-bugs.test.ts
  slice 6  passed             56s  test/skill-e2e-session-intelligence.test.ts
  slice 6  passed              0s  test/skill-llm-eval-spec.test.ts
[test:paid] report: ⚠ 1 test(s) passed only on retry this run (recorded, not blocking):
  ⚠ land-and-deploy/SKILL.md workflow (x2) — shards/skill-llm-eval/1.86.0-HEAD-llm-judge-2026-09-11-1954.json
[test:paid] report: ⚠ 13 shard(s) passed with EVERY test skipped — they verified nothing:
  ⚠ test/llm-judge-recommendation.test.ts (1 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-gbrain-roundtrip-local.test.ts (3 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-plan-prosons.test.ts (12 skipped — external service missing or tier mismatch)
  ⚠ test/skill-routing-e2e.test.ts (10 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-autoplan-dual-voice.test.ts (3 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-ios-device.test.ts (4 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-office-hours-brain-writeback.test.ts (3 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-office-hours-phase4.test.ts (3 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-context-skills.test.ts (9 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-office-hours.test.ts (6 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-first-task-scaffold.test.ts (1 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-plan-format.test.ts (12 skipped — external service missing or tier mismatch)
  ⚠ test/skill-e2e-qa-bugs.test.ts (5 skipped — external service missing or tier mismatch)
[test:paid] report: every planned shard accounted and passed

Sliced lane: diff-selected gate census via scripts/test-paid-shards.ts (planner → 6 executors → fail-closed report)

@garrytan
garrytan marked this pull request as ready for review September 11, 2026 15:57
garrytan and others added 4 commits September 11, 2026 17:37
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.
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.
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.
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 <[email protected]>
@github-actions github-actions Bot changed the title v1.85.0.0 feat: route outside reviews by harness v1.86.0.0 feat: route outside reviews by harness Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant