Skip to content

docs(plans): plan opt-in Jev usefulness and compare PRs #187/#189 - #193

Closed
lg2m wants to merge 2 commits into
mainfrom
docs/eng-938-jev-usefulness-plan
Closed

lg2m wants to merge 2 commits into
mainfrom
docs/eng-938-jev-usefulness-plan

Conversation

@lg2m

@lg2m lg2m commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

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

Comparison summary (details in the comparison doc)

How verified (unchanged Rust; docs-only diff)

  • git diff --check clean; 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=4 in an isolated target dir: all suites passed, 0 failed (existing gallery/measurement ignores only). A loaded shared-target run once timed out sessions::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.
  • Not done: independent non-author review (two spawn_agent attempts 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.

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 integrate-your-mind left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. Update the source/reuse snapshot in docs/plans/jev-usefulness.md, docs/plans/jev-pr-comparison-2026-09-25.md and 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.
  2. Keep JU1's real gap explicit: the accepted candidate's src/runtime/approval.rs activation 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. Picker None means inheritance, not an explicit all-role Off; no rung independently enables jev_approval.
  3. 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.
  4. 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.

@lg2m
lg2m marked this pull request as ready for review September 26, 2026 05:39
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-26T05:47:33.155127Z fadadab Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +50 to +51
pending delegation without approving the held action. Previous exact grants
remain visible and separately revocable. Remote work already sent may still be

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +121 to +123
## Alternatives considered

- **Lower thresholds to reduce prompts:** rejected before context/contract repairs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

lg2m added a commit that referenced this pull request Sep 29, 2026
…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
@lg2m

lg2m commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

Closing as superseded by #210, which is now the only Jev design, plan, ledger and runbook.

Carried into #210:

  • The proposed ADR "0046" is now ADR-0047 (Proposed), docs/adr/0047-jev-approval-hold-lifecycle.md, because 0046 is MCP pinning. It keeps decisions 1–7 and the hold-phase table.
  • C1–C8 / JU0–JU8 map to docs(jev): consolidate Jev docs into one design, plan, ledger and runbook #210's A1–A13 / JV1–JV13. The clauses that had no counterpart were added as acceptance bullets.
  • From runbooks/jev-qualification.md: the run record, the zero-connection proof, the arm purposes, the per-decision fields ("missing cost is not zero"), per-hold counting and the paired-statistics rules. These are now in the plan's § Qualification procedure.
  • The 2026-09-25 audit is findings 1–8 in design/jev.md § 3. The original file was never on main; it is kept here at 0c1cbd6 / refs/pull/193/head.

Not carried: plans/jev-pr-comparison-2026-09-25.md. #187 is being closed, and #189 was rewritten and merged as the credential-timeout fix (7885f2c), so the comparison no longer applies.

@lg2m lg2m closed this Sep 29, 2026
@lg2m
lg2m deleted the docs/eng-938-jev-usefulness-plan branch September 29, 2026 00:11
lg2m added a commit that referenced this pull request Sep 29, 2026
…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
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