Repository navigation
feat(jev): integrate session controls and strict verification - #181
Conversation
Protocol 29 adds set_jev_mode / jev_mode_set on /v1/sessions/jev-mode and the optional SessionSummary.jev_mode (low | medium | high | max | ultrajev, absent to clear). The value is opaque on the wire; the composition root maps each rung onto jev_routing / jev_review / approval_delegate when the next run is claimed, so an active run keeps its compiled plan. The regular model switcher (set_session_model / set_session_effort) is unchanged and remains the provider-neutral model and reasoning-effort control. Store schema 37 adds the nullable sessions.jev_mode column; the command writes it and appends session_updated in one transaction before publishing. Children inherit the parent's pin; a child's resolved routing/checkpoint selection still wins over it. A rung never widens Jev consent or the approval ceiling and fails closed without a Jev credential. ApprovalDelegateSetting gains by_mode so the ladder can name the default explicitly. Verification: cargo test --workspace, fmt --check, clippy -D warnings, cargo test -p qq-provider --no-default-features --features test-support. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ode (ADR-0042) Reserve /jev in the protocol again now that the TUI registers it. The picker lists configured plus the five rungs, opens on the rung in effect, sends set_jev_mode for the focused session (running or not; the runtime reads it at the next claim), and reports the receipt. The top row shows 'jev <mode>' while a rung is set; 'configured' shows nothing. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…stack-integration
ENG-791: preserve authors heads and append protocol31/schema40/ADR0043. The new picker next-run regression is intentionally red; the next commit corrects its demonstrated misleading copy. No strict review policy change.
ENG-815: preserve legacy plain versions and reject unexpected output.
ENG-791: strict_review_requires_explicit_selection_and_preserves_provenance fails with InvalidJevSetting. Reserve ADR0045/protocol32/store41 and complete unpublished ADR0044 references.
…rict-verification
PR181 source-integration dispositionFinal head: The non-author source reviewer approved runtime Applicable local evidence: Rust 1.97.1 workspace tests 1,915 passed, 0 failed, 5 existing explicit ignores at GitHub readback: exact final head, current base This records a real independent local review, not a GitHub approval by a separate human/account. Manager accepts the source integration. Live combined provider/TypeSafe execution, cross-platform Strict execution, released binaries, public guide deployment and customer acceptance remain separate open gates. Proposed ADR statuses are retained and not silently relabeled as shipped. JEV receipt |
ENG-791: integrate session Jev controls and explicit Strict verification
Spec: ADR-0044, ADR-0045. Linear: ENG-791; related Harbor qualification ENG-815.
What changed
QQ can retain a per-session Jev mode through the shared server, client reducer and
/jevpicker. Explicitjev_review: strictadds supported-verdict completion alongside the existing review policies. For example, a failed tool can be valid evidence, but a final claim that it succeeded cannot complete a Strict run.How verified
cargo test --workspace: 1,915 passed, 0 failed, 5 existing measurement/gallery ignores at734a3d20; includes positive/negative zero-router/zero-provider admission controls through durable sessions and the public CLI, policy/approval/MCP ordering, budget/cancellation/recovery/idempotence, historical wire/headless fixtures and loopback reviewer transport failures.cargo fmt --all -- --check,cargo clippy --workspace --all-targets --all-features -- -D warnings, andcargo build --workspacepassed on identical code before the final test-only commit.nub ci,nub run build; zero Astro diagnostics,14 pages,476 internal links. Font-resolution, duplicate404-route and dependency deprecation warnings are retained; generated font and404 assets exist.d7ee926cplus independent test-delta review at734a3d20approved source/local-test integration. Finalbdd90fb8merges maine54ddf5dwith exactly nine non-guide documentation changes. Git object identities prove production, test, toolchain, build, manifest, guide and site inputs are unchanged;13 incoming document links/anchors and diff whitespace pass. The tests were not rerun under the merge hash.Measurements
Default/off release persistence,30 alternating pairs against reconciled baseline
8e07295:Docs
Updates the Jev runbook, architecture/protocol descriptions, configuration/TUI guides and proposed ADRs0044/0045. Historical ADR0028/0030 policy remains intact with factual implementation notes.
Compatibility
Protocol30→32 and store schema39→41; descriptor/capability contracts are unchanged. Historical fixtures and absent verification records remain supported. Session mode changes affect subsequent plans; an active run retains its compiled identity. Store migrations are forward-only; an older binary rejects schema41, so downgrade requires a pre-upgrade database copy.
Follow-ups / decisions needed