Skip to content

feat(runtime): make Jev review opt-in and account for bounded assessments - #74

Merged
lg2m merged 6 commits into
feat/jev-runtime-checkpointsfrom
feat/eng-791-jev-opt-in
Sep 19, 2026
Merged

lg2m merged 6 commits into
feat/jev-runtime-checkpointsfrom
feat/eng-791-jev-opt-in

Conversation

@lg2m

@lg2m lg2m commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Make Jev explicitly optional and repair review correctness

Stacked on #72 (feat/jev-runtime-checkpoints, dc59d14). A stored TypeSafe credential previously activated strict review globally, and an explicit off setting could not disable it. This PR separates credential setup from activation: review defaults off, final retains normal tool batching, and enforce explicitly selects strict review.

Spec: J1–J5 and visible J7 receipts. Tracking: ENG-791. Linear's connector requires reauthentication; its state has not been updated.

What changed

  • Trusted config/profile/environment choices, explicit disable, provenance and plan-cache identity. Setup stores credentials only; off does not resolve reviewer credentials or allocate evidence.
  • Preserve queued/interrupting steering, continued evidence and parent-owned child profile/reviewer choices. User followups resolve their current configuration.
  • Bounded evidence selection, removal of the ineffective unbounded cache, 32 requests/two corrections, five-second deadlines and a 64 KiB response cap.
  • Criterion-specific outcomes with conservative uncertainty handling. Mask outgoing task/evidence fields and explain egress.
  • Charge typed reviewer usage/cost to run budgets. Persist pending dispatch and settled receipts; interruption keeps spend unknown. Pending/outcome/cost notices are visible in CLI/client streams.
  • Reserved routing opt-in fails explicitly until its separate slice exists.

Verification

At 1d2b360, local workspace: 1,575 passed, 5 ignored, zero failures.

  • env -u NO_COLOR cargo test --workspace --locked --offline --quiet
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo build --workspace
    All Cargo commands used the shared target directory; build/Clippy also used locked/offline dependencies. Removing inherited NO_COLOR is required by existing terminal color tests.
    Independent Spec and Standards reviews approve the repaired implementation. Regression coverage includes steering, child inheritance/followups, cancellation, budgets, no-tool corrections, long evidence, HTTP payload/body bounds and protocol replay fixtures.

Measurements

30 alternating release A/B pairs against dc59d14, plus 30 same-binary A/A pairs:

Disabled-path fixture Base median Candidate median Change
Read-tool loop 53,190 ns 55,650.5 ns +4.63%
Plan compilation 25,251.5 ns 25,230 ns −0.09%
Descriptor digest 2,495 ns 2,458 ns −1.48%

Medians meet 5%; tail qualification remains open. Tool-loop sample p95 rose 72,338→77,873 ns (+7.65%), versus A/A +1.77%, at host I/O pressure 18.31–26.35%. No waiver: a quiet-host repeat is needed. These are loop averages, not full startup/fanout qualification or evidence of real Jev speed/quality gains.

Docs and compatibility

Architecture, protocol docs, ADR-0030, the Jev runbook, plan and ledger are updated together. Wire protocol 23→24, with new golden fixtures; matching clients/servers required. No database migration or dependency addition.

Still open

  • Hosted CI passed at 1405ff0 (run 35392565866); quiet-host tail qualification remains open.
  • Budget-authorized real Jev paired evaluation; no paid calls performed.
  • J6 automatic model/effort routing and the passive advisory portion of J7 remain separate planned slices. This PR implements the review/correctness portion of the broader requested work.
  • feat(runtime): enforce JEV checkpoints and add effort transport #72 is still draft. No merge or release is requested by creating this draft.

J2/J4/J5: preserve child policy, bound requests and repairs, charge typed reviewer spend, settle cancellation as unknown, and expose durable pending/outcome receipts. Protocol 24 fixtures and docs accompany the behavior. Workspace: 1575 passed, 5 ignored; fmt, Clippy, build pass. Tail qualification and routing/advisory slices remain open.
@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 735db37 into main Sep 19, 2026
4 checks passed
@lg2m
lg2m deleted the feat/eng-791-jev-opt-in 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.

1 participant