Skip to content

feat(jev): integrate session controls and strict verification - #181

Merged
integrate-your-mind merged 26 commits into
mainfrom
feat/eng-791-strict-verification
Sep 25, 2026
Merged

integrate-your-mind merged 26 commits into
mainfrom
feat/eng-791-strict-verification

Conversation

@integrate-your-mind

Copy link
Copy Markdown
Collaborator

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 /jev picker. Explicit jev_review: strict adds 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.

  • Strict requires an explicit finite run bound before routing/provider dispatch. Semantic corrections require fresh supported tool evidence; rewording a final answer cannot clear an open correction. Original permissions, approvals, cancellation and budgets still apply. Existing Off/Final/Enforce and Low–Ultrajev behavior stays unchanged.
  • Tool and final checkpoints persist evidence identity, pending/settled state and correction obligations. Only a final Supported receipt becomes Verified atomically with Completed. Unavailable review is distinct from semantic rejection; restart, cancellation and budget exhaustion preserve their actual outcomes and unknown spend.
  • This integration also carries the independently reviewed macOS OAuth callback socket repair, Harbor credential forwarding and strict version parser. Canonical main ADR-0043 is preserved; the unpublished session-switcher ADR is numbered0044.

How verified

  • cargo test --workspace: 1,915 passed, 0 failed, 5 existing measurement/gallery ignores at 734a3d20; 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, and cargo build --workspace passed on identical code before the final test-only commit.
  • Local Website: Node24.13.0, nub0.9.3, 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.
  • Retained earlier checks: native Harbor0.20 adapter/converter24/24; installer/exact-test guard; WebAssembly client build/test compilation. The isolated Colima/Harbor fixture validates harness upload/exec/download and reward handling, not a real provider task.
  • Independent runtime review at d7ee926c plus independent test-delta review at 734a3d20 approved source/local-test integration. Final bdd90fb8 merges main e54ddf5d with 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:

Measurement Before After Interpretation
Internal batch median 10ms 10ms No change at1ms measurement resolution
Whole fixture median,10 fresh-store batches 218.726ms 220.027ms +0.595%; no tail-latency claim

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

  • Live combined QQ/provider/TypeSafe qualification, real credentials, Linux/Windows execution of Strict, hosted CI, release, deployment and customer acceptance are not established by these local checks.
  • An early inherited-key test run may have attempted one remote reviewer request; completion/spend remain unknown. The fixture endpoint and subsequent subprocess environments were isolated, and original failure logs were retained.
  • ADR0044/0045 remain Proposed pending integration-owner acceptance. Publication and normal merge are manager-owned; this PR does not close the broader live qualification requirement.

integrate-your-mind and others added 26 commits September 24, 2026 23:46
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>
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.
@integrate-your-mind

Copy link
Copy Markdown
Collaborator Author

PR181 source-integration disposition

Final head: bdd90fb8d3e66f2a027e81afe23fd14ae1a58b48.
Tree: beed7ef1c4e3c5389b82a5fc60218432bfe96e3b.

The non-author source reviewer approved runtime d7ee926c, requested explicit before-router/provider admission proof, then approved test successor 734a3d20. The reviewer separately verified the final merge's exact parents, unchanged runtime/test/build/guide/site object identities, nine incoming documentation paths and 13 added links. Final independent report SHA256: 6613d508ffbb6daa2206125e5e23310c2d6e1edd758b256bfaf9c416f477ca7b.

Applicable local evidence: Rust 1.97.1 workspace tests 1,915 passed, 0 failed, 5 existing explicit ignores at 734a3d20; format, strict Clippy, build, historical compatibility and relevant fixture checks passed. Node 24/nub Website build generated 14 pages and checked 476 links; recorded font, duplicate-404 and deprecation warnings remain. Tests were not rerun under the docs-only merge hash; input-identity transfer is explicit, not a claimed execution at that hash.

GitHub readback: exact final head, current base e54ddf5d, CLEAN/MERGEABLE, no hosted checks. Under Romy's local-CI-only instruction, CI and Website workflows are temporarily disabled with preserved prior/post state. Active main ruleset is unchanged. Normal merge only; no bypass or fabricated status.

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 982f4ca5-9ada-483a-bdea-69a6a023847a abstained at low confidence (supported 0.47, partially supported 0.52); no green classification is claimed and no repeated rephrasing was used. Deterministic identity/check evidence and non-author review support this bounded source decision.

@integrate-your-mind
integrate-your-mind merged commit 2103aa5 into main Sep 25, 2026
@integrate-your-mind
integrate-your-mind deleted the feat/eng-791-strict-verification branch September 25, 2026 19:53
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.

2 participants