Skip to content

feat(runtime): enforce JEV checkpoints and add effort transport - #72

Merged
lg2m merged 20 commits into
mainfrom
feat/jev-runtime-checkpoints
Sep 19, 2026
Merged

lg2m merged 20 commits into
mainfrom
feat/jev-runtime-checkpoints

Conversation

@integrate-your-mind

Copy link
Copy Markdown
Collaborator

Summary

  • Add qq jev setup and native enforced TypeSafe checkpoints after tool results and final candidates, with durable notices, corrective turns, child propagation, and fail-closed handling of unavailable reviews.
  • Preserve cancelled/interrupted review outcomes, reuse Codex credentials with durable invalidation, and provide a credential-free TUI QA profile with exact source identity.
  • Add provider-neutral reasoning effort and prove its OpenAI Responses/Chat transport and retry behavior. Unsupported adapters reject effort before authentication or transport.

Why

Romy requested one integrated QQ PR that can be independently reviewed, repaired, and merged rather than another collection of unintegrated branches. The customer need is a workspace agent whose configured JEV review is part of the runtime, not an optional model-requested tool call.

Tracking: ENG-791. Source requirements and decisions: docs/adr/0028-mandatory-typed-jev-checkpoints.md, docs/plans/progress/root.md, docs/runbooks/tui-qa.md.

Source and ownership

  • Base: c404ae53aa5d2c1c87ad00a8d41885af3c29412c (canonical main at preflight).
  • Initial candidate: dc59d14f9c7763a8252899bb465f64b10e6927d8.
  • Originating work: Startup Manager's JEV runtime/CLI/auth repairs; the credential-free TUI QA repair; provider reasoning-effort slice R1. This PR preserves those commits together.
  • Integration owner: Startup Manager, coordinated with Romy and Zach. Independent full-source/security reviewer: qq_pr_full_review. Independent runtime reviewer: qa_root_candidate_review (not an author).

Verification completed for R1

Production/test bytes at abe71f34bd5088e548fa7c352fa9ea6f62e51011 are identical at dc59d14; the latter changes only the progress ledger. Both the author and non-author executed the following locally using the pinned Rust toolchain, CARGO_INCREMENTAL=0, TMPDIR=/private/tmp, and pipefail for captured commands:

cargo test -p qq-provider -p qq-reasoning
cargo test -p qq-provider --no-default-features --features test-support
cargo clippy -p qq-provider -p qq-reasoning --all-features --all-targets -- -D warnings
cargo check -p qq-provider -p qq-reasoning --all-features
cargo build -p qq-provider -p qq-reasoning --all-features
cargo fmt --all -- --check
git diff --check

Default: 208 provider tests passed, one ignored; 17 interface tests passed. Minimal profile: 161 provider tests and 17 interface tests passed. The reviewer deliberately exercised all effort values, omitted-effort compatibility, retry identity, and unsupported-provider pre-transport rejection. The independent run reused compiled artifacts; it was not a clean rebuild. An initial ENOSPC build failure and subsequent corrected-profile results are retained, not counted as a pass.

Full-PR acceptance still in progress

  • Non-author review of every unique changed source/configuration/test line.
  • Full-workspace formatting, strict Clippy, tests, and build at final head; affected protocol/CLI/TUI and failure/recovery behavior.
  • Inspect current hosted checks and satisfy the active main ruleset without bypasses.
  • Independently exercise the real-model + real-JEV workflow through a no-prompt authorized credential path; retain exact run/artifact identity.

Historical credential-free loopback/PTY evidence is useful QA, not a claim that the current real-Astra/JEV workflow completed. Review findings and command results will be added here before requesting merge.

Initial independent findings being repaired

The full-source reviewer identified three candidate blockers: interrupted final-candidate reviews need durable settlement; user-answer evidence needs the same secret masking as other tool results; and TypeSafe response parsing needs an explicit bounded body contract. These require regression tests and final-head re-review before this draft can be accepted. The complete canonical-base-to-head redacted gitleaks scan returned zero findings (gitleaks 8.30.1, exit 0).

Risk and rollout

  • This is a draft for preservation and two independent reviews, not release approval. No release tag or binaries are published by this PR creation.
  • Wire protocol changes require matching clients/servers and fixture validation. Enforced checkpoints serialize tool admission and add one reviewer request per result plus a final-candidate review.
  • A post-tool denial cannot undo an external action. Approval and execution isolation remain separate from evidence assessment.
  • JEV assesses supplied evidence; it does not prove arbitrary code correct or authenticate fabricated evidence.
  • Native automatic model/effort routing (R2/R3) is not implemented by the R1 transport foundation and is not claimed shipped here.
  • No billing settings, paid runners, cache allowances, repository protections, or account permissions are changed. Local checks remain mandatory.

Visual/runtime evidence

The credential-free TUI QA profile and commands are documented in docs/runbooks/tui-qa.md. Existing PTY evidence is not represented as a live-provider or computer-use video. The live demonstration remains a separate acceptance gate.

Avoid a Keychain read on every model request while preserving refresh, rotation, removal and endpoint binding. Invalidate the credential epoch before backend mutation so failed updates cannot authorize stale cached material.\n\nVerified with 42 fake-credential tests and independent review of diff1597d978. Does not change macOS ACLs or solve cross-build signing identity. Refs ENG-791.
Track ENG-791 R1 provider effort, R2 runtime routing, and R3 durable TUI qualification in the existing root ledger. Preserve the complete requirement and distinguish the unmerged dependency from delivered routing.
Exercise every supported wire value through compiled loopback providers, including retry preservation and absent-field compatibility. Verify unsupported adapters fail before transport or lazy credential initialization and bound scripted fixture accepts.
@lg2m
lg2m added this pull request to stack #75 September 18, 2026 20:38
@lg2m
lg2m marked this pull request as ready for review September 18, 2026 23:54
@lg2m
lg2m merged commit a744943 into main Sep 19, 2026
2 of 4 checks passed
@lg2m
lg2m deleted the feat/jev-runtime-checkpoints branch September 19, 2026 00:47
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.

3 participants