Repository navigation
Conversation
ENG-938 (planning-only, under ENG-791). Adds the Jev usefulness plan (JU0-JU8 with acceptance criteria C1-C8), Proposed ADR-0046 for explicit consent and a durable held-approval lifecycle, a qualification runbook, the pinned 2026-09-25 delegation audit, and a SHA-pinned comparison of draft PRs #187 (bdd90fb) and #189 (3e7eff0). Documentation only: no runtime, protocol, schema, threshold, default or configuration change. Jev stays default-off and opt-in. This does not approve, retarget or merge #187/#189; ADR-0046 is reserved in root.md and the ADR-0044 numbering collision with ENG-937 is flagged for root. Verification (unchanged Rust): fmt, clippy -D warnings, workspace tests (isolated target, 0 failed), workspace build, 166 relative links checked.
integrate-your-mind
left a comment
There was a problem hiding this comment.
Reviewed exact head fadadab36c8bfc767d59d04dfc0be3c346b72634 against main ac28bf29ef0c719093d245d0cfe395030613917a. This is a source/design review of the 12 Markdown files, not runtime qualification or approval to merge/enable the features.
The direction is coherent: independent default-off consent, approval delegation, post-result verification and routing remain separate. Before assigning JU implementation, please reconcile the comparison with the now-published PR189 head f29545da (runtime 69663c3d; documentation-only descendants). That source includes both draft lineages but remains unmerged and unreleased.
- Update the source/reuse snapshot in
docs/plans/jev-usefulness.md,docs/plans/jev-pr-comparison-2026-09-25.mdand the JU progress receipt. The session-mode reducer, optional Strict completion, durable Strict outcomes, remote-choice/local-policy formatter and run-state reload fixes already exist in the reviewed candidate. Reuse those seams rather than implement or allocate protocol/store changes a second time. - Keep JU1's real gap explicit: the accepted candidate's
src/runtime/approval.rsactivation cache can return on an unchanged credential epoch before reloading configuration. Run-state admission is not approval-consent cache invalidation. Bind approval activation to effective config/profile/source identity as proposed. PickerNonemeans inheritance, not an explicit all-role Off; no rung independently enablesjev_approval. - Keep JU2–JU4 separate from Strict: root task context, durable reviewer-pending/human-required phases, and per-attempt approval accounting are still proposed. Headless's configured-reviewer grace timer is not the proposed durable held-call state. A post-tool supported verdict cannot grant the preceding side effect.
- Qualification must name its question: the frozen off/Strict repair corpus measures completion value, not approval safety or reduced human handoffs. The attempted live off arm stalled in Keychain before a model turn and was cancelled; Strict did not run. No usefulness/cost claim is supported yet.
Recommended first implementation slice after source reconciliation: effective approval consent/cache invalidation plus genuine Off versus inherit, with no-dispatch tests for stored-key-plus-Off. Then a separate durable held-approval lifecycle slice. Keep thresholds and the default-off policy unchanged while establishing evidence. ADR0046 does not collide in the inspected trees; reconcile the separately reported ENG937/0044 reservation only against actual source before renumbering anything.
Independent review and exact-source map are retained in the existing operations record under qq-jev-evidence/pr193-review/; local check evidence for the runtime stack is on PR189. This comment does not lift the current draft merge hold.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fadadab36c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| Follow-up: [implementation proposal](../plans/jev-usefulness.md), | ||
| [PR 187/189 comparison](../plans/jev-pr-comparison-2026-09-25.md). This audit | ||
| uses the older pinned baseline below, not the unmerged Strict implementation. |
There was a problem hiding this comment.
Relocate the historical audit outside the design tree
This file explicitly documents an older pinned baseline and contains research evidence and proposed repairs, but docs/design/ is reserved for the system as currently built. Keeping a deliberately stale snapshot here means readers following the design index can mistake superseded behavior for the live contract; move the audit to an appropriate research/plan location or otherwise reconcile the documentation hierarchy.
AGENTS.md reference: AGENTS.md:L14-L16
Useful? React with 👍 / 👎.
| @@ -0,0 +1,278 @@ | |||
| # Jev usefulness: reliable opt-in decisions, not more review everywhere | |||
|
|
|||
| **Status:** Proposed; JU0 documentation in progress. JU1–JU8 are unstarted and | |||
There was a problem hiding this comment.
Synchronize the plan status with the ledger
At this commit, the ledger and plan index both mark JU0 as In review and record draft PR #193, while the plan's authoritative status block still says the documentation is in progress. This leaves the plan and progress record disagreeing about current ownership/state and can prompt duplicate work; update this status to reflect JU0 being in review.
AGENTS.md reference: AGENTS.md:L14-L19
Useful? React with 👍 / 👎.
| | 0041 | Jev as an approval delegate for held calls only; supersedes ADR-0030's "never authorizes side effects" for the `jev_approval` lane | delegated-approval DA5 (ENG-862) | Accepted 2026-09-23: `docs/adr/0041-jev-delegated-approval.md`; no protocol or schema change | | ||
| | 0042 | In-TUI trust prompt: client-side, root-resolved, no protocol change | onboarding-ux OB7 | Accepted 2026-09-24: `docs/adr/0042-in-tui-trust-prompt.md` | | ||
| | 0043 | Verified root-task efficiency and evidence-gated defaults | token-efficiency TE0 | Reserved 2026-09-23; Proposed ADR-0043 | | ||
| | 0046 | Explicit Jev consent and durable held-approval lifecycle | ENG-938 / JU0 | Reserved 2026-09-25; Proposed. Avoids draft #187's 0044/0045; root must reconcile the independent 0044 collision with ENG-937 | |
There was a problem hiding this comment.
Advance the next-free ADR number after reserving 0046
This adds ADR-0046 to the reservation table but leaves the same ledger's Next free number: 0044 instruction unchanged. An agent following that marker can now allocate a number this change already identifies as colliding with ENG-937 and draft #187, perpetuating the exact numbering conflict the reservation is meant to avoid; update the marker and represent the 0044/0045 reservations or collisions consistently.
AGENTS.md reference: AGENTS.md:L18-L19
Useful? React with 👍 / 👎.
| pending delegation without approving the held action. Previous exact grants | ||
| remain visible and separately revocable. Remote work already sent may still be |
There was a problem hiding this comment.
Assign implementation and tests for exact-grant revocation
Delegate grants are persisted in session_grants and continue to bypass later holds after /delegate off; the only existing deletion path found is deletion of the entire session. Although this ADR promises that previous exact grants are separately revocable, none of JU1–JU8 owns a revoke command, client surface, or acceptance test, so an operator who disables Jev after an incorrect command or host grant would still authorize repetitions of that action. Add the durable revoke operation and its public failure-path tests to an explicit slice.
AGENTS.md reference: AGENTS.md:L146-L150
Useful? React with 👍 / 👎.
| ## Alternatives considered | ||
|
|
||
| - **Lower thresholds to reduce prompts:** rejected before context/contract repairs |
There was a problem hiding this comment.
Follow the ADR template for alternatives and evidence
The repository review checklist treats use of the ADR template with a real alternatives table as blocking, but this proposal substitutes a bullet list and omits the template's Evidence / references section entirely. Convert these alternatives to the required comparison table and add the baseline code, probe, and source anchors so reviewers can verify the decision rather than relying only on narrative links in the context.
AGENTS.md reference: AGENTS.md:L14-L19
Useful? React with 👍 / 👎.
…ification steps - docs/adr/0047-jev-approval-hold-lifecycle.md (Proposed): #193's "0046" decisions 1-7 and the hold-phase table, renumbered and without the #187/#189 framing. Indexed; root.md reservation marked Proposed. - Plan acceptance: the #193 clauses with no counterpart in A1-A13 (grants survive Off, no full transcript, cancel/deadline and final-vs-advisory Deny, priceless fallback under a hard cap, receipt hashes, unknown MCP effects, rollout/backup/no auto-downgrade). - Qualification procedure: run record, zero-connection proof, arm purposes, per-decision fields ("missing cost is not zero"), per-hold counting, and paired statistics. Linear: ENG-791
|
Closing as superseded by #210, which is now the only Jev design, plan, ledger and runbook. Carried into #210:
Not carried: |
…book (#210) * docs(jev): consolidate Jev docs into one design, plan, ledger and runbook Opted-in users report that most calls sent to Jev come back to them. The Jev documentation was split across a superseded runtime review, an untracked audit, a shipped opt-in plan and ledger, and an unmerged proposal (#193), so there was no single account of why or what is next. - design/jev.md: what Jev is (vendor claims separated from QQ evidence), the four capabilities as built, eight findings on why work is handed back (re-checked against main 1e91895), and the direction. - plans/jev.md: the only Jev plan, JV0-JV13 with acceptance and the qualification procedure. Folds in #193 (ENG-938). - plans/progress/jev.md: ledger carrying the J1-J9, RR3, DA5 and audit history. - runbooks/jev.md: rewritten operator procedure with current limitations and workarounds. - Delete design/jev-runtime-review-2026-09-18.md, plans/jev-opt-in.md and plans/progress/jev-opt-in.md; update indexes and cross-links; reserve ADR-0047 for the held-approval lifecycle (JV5). Docs only. No Rust, configuration, protocol or schema changes. Refs: ENG-791 * docs(jev): correct the off procedure, approval disclosure and provenance - Turning Jev off: profile values beat top-level ones, so require the QQ_JEV_*=off server overrides or clearing the profile's values. - Approval preview: list the fields sent verbatim (workspace, working directory, edit path, recent action paths, grant lists); only the brief, command, diff and arguments are masked; the whole request is capped at 64 KiB. - Design § 4 is the target, not as-built; note that enforce adds a serial wait today. - The 2026-09-25 audit was never on main; point to 0c1cbd6 / refs/pull/193/head. - Ledger: one writer per ledger. Plan status: JV0 in review. - Owner decision 4 no longer refers to #189's feedback fix, which was not merged. Linear: ENG-791 * docs(jev): carry #193's hold-lifecycle ADR, missing criteria and qualification steps - docs/adr/0047-jev-approval-hold-lifecycle.md (Proposed): #193's "0046" decisions 1-7 and the hold-phase table, renumbered and without the #187/#189 framing. Indexed; root.md reservation marked Proposed. - Plan acceptance: the #193 clauses with no counterpart in A1-A13 (grants survive Off, no full transcript, cancel/deadline and final-vs-advisory Deny, priceless fallback under a hard cap, receipt hashes, unknown MCP effects, rollout/backup/no auto-downgrade). - Qualification procedure: run record, zero-connection proof, arm purposes, per-decision fields ("missing cost is not zero"), per-hold counting, and paired statistics. Linear: ENG-791 * docs(jev): qualify masking, missing-key startup and in-flight approval spend Linear: ENG-791 * docs(jev): say when approval_delegate lets Jev see a held call Linear: ENG-791
ENG-938: plan opt-in Jev usefulness; compare drafts #187 / #189
Linear: ENG-938 (planning-only, under ENG-791; related ENG-862, ENG-917, ENG-811). Spec: proposed ADR-0046.
What changes for users
Nothing at runtime. This PR is documentation only: no Rust, protocol, schema, threshold, default or configuration change. Jev stays default-off and independently opt-in (
jev_review: off,jev_routing: false,jev_approval: false).What is in it
docs/plans/jev-usefulness.md— JU0–JU8 with acceptance criteria C1–C8: effective consent and reliable Off (C1), authoritative task context for approvals (C2), a durable delegate-vs-human hold lifecycle so the human is the last participant, not the first notification (C3), per-attempt receipts and spend admission (C4), precision-safe response parsing that is explicitly not threshold tuning (C5), a narrow shadow-first approval pilot (C6), one measured routing experiment (C7), paired qualification and rollout (C8).docs/adr/0046-…— Proposed; would supersede ADR-0041 §§ 5–7 when implemented. Includes the proposed hold state table.docs/runbooks/jev-qualification.md— arms, labels, metrics (human-required vs actual human answers; interruptions per verified agent-hour), stop rules, rollback.docs/design/jev-delegation-audit-2026-09-25.md— the pinned audit (baseline9f2d82d) that motivates the plan; vendor research on Jev's API, confidence formula and probability precision.docs/plans/jev-pr-comparison-2026-09-25.md— SHA-pinned comparison with feat(jev): integrate session controls and strict verification #187 (bdd90fb8) and fix(provider): fail a timed-out credential load at once instead of restarting the request #189 (3e7eff09).progress/jev-usefulness.md; index rows indocs/README.md,plans/README.md,adr/README.md,progress/README.md; ADR-0046 reserved inprogress/root.md; receipt appended toprogress/delegated-approval.md.Comparison summary (details in the comparison doc)
jev_approvalconsent, remote verdict ≠ QQ policy (fix(provider): fail a timed-out credential load at once instead of restarting the request #189 implements this for checkpoint feedback and is reusable), durable/truthful settlement patterns (feat(jev): integrate session controls and strict verification #187, for checkpoints).sessions/approvals.rs,sessions/tool_calls.rsandruntime/routing.rsare unchanged at both heads./jevladder has no true Off (None = use config); Low–High also switch off the LLM delegate; Strict is a separate completion-verification product decision, not an escalation fix; feat(jev): integrate session controls and strict verification #187 proposes protocol 30→32 / store 39→41; ADR-0044 collides with local ENG-937 work.How verified (unchanged Rust; docs-only diff)
git diff --checkclean; 166 relative links/anchors validated across the 12 touched pages.cargo fmt --all -- --check,cargo clippy --locked --offline --workspace --all-targets --all-features -- -D warnings,cargo build --locked --offline --workspace: passed.cargo test --locked --offline --workspace -- --test-threads=4in an isolated target dir: all suites passed, 0 failed (existing gallery/measurement ignores only). A loaded shared-target run once timed outsessions::tests::delegation::steering_charges_a_completed_but_unconsumed_child_exactly_once; it passed alone and in the isolated run — pre-existing timing sensitivity, unrelated to this diff.spawn_agentattempts failed on the selected model route: context limit, then provider 401), live Jev calls, paid evaluation, measurement of the reported handoff rate.Impact
Performance/compatibility: none (no code). Rollback: revert this commit. Opens owner decisions listed in the plan's "Integration decision points"; no runtime slice is authorized by merging this PR.