Skip to content

refactor!: remove Jev and decision-model integrations - #374

Merged
lg2m merged 4 commits into
mainfrom
refactor/remove-jev-decisions
Oct 20, 2026
Merged

lg2m merged 4 commits into
mainfrom
refactor/remove-jev-decisions

Conversation

@lg2m

@lg2m lg2m commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Removes TypeSafe Jev entirely: review checkpoints (jev_review), task routing (jev_routing), the Jev approval delegate (jev_approval), qq jev setup|observe, QQ_JEV_* and TYPESAFE_API_KEY. Held calls now go to reviewer_model, then you. Supersedes the decision-models direction in #249.

What changes for users

  • A config that still sets jev_review/jev_routing/jev_approval fails to parse, and the error names the key (profile entries fail without naming it, as for any unknown profile key). Delete the key.
  • qq jev … is gone; a stored typesafe-jev credential is simply unused (qq auth logout typesafe-jev removes it).
  • Protocol 35 → 36. The routing_*/checkpoint_* events are no longer written; recorded ones decode as retired (clients ignore it), so existing stores replay. delegate: "jev", grant source='jev', stored correction notices and the descriptor fields checkpoint/routing/approval_delegate stay decode-only, so the store schema and descriptor version are unchanged.
  • Docs: design/plan/runbook jev.md deleted; ADRs 0028, 0030, 0032, 0034, 0041, 0047 and 0052 marked superseded; guide and design docs updated.

Verification

  • cargo xtask check passes (fmt, lint, clippy, 2.4k tests).
  • New tests: sessions::tests::feeds::replay_decodes_events_from_removed_jev_features (fails with Persistence(Codec) without the retired aliases, passes with them); qq-config removed_jev_keys_are_rejected_by_name; protocol round-trip of the legacy events; v36 wire/headless/harbor fixtures regenerated, v35 kept decode-only.

Known: xtask perf::tests::busy_workspace_fixture_seeds_a_long_history timed out once under full-suite load and passes alone (pre-existing load flake). Leftover local decision branches (not deleted): docs/decision-clean-stack, docs/eng-985-decision-architecture, docs/pr-249-decision-refresh, feat/eng-1062-dm1-neutral-seam, feat/eng-1062-clean-stack, feat/jev-protocol-sync-restored, fix/eng-971-, fix/eng-972-, docs/eng-791-jev-consolidation.

Removes TypeSafe Jev review checkpoints, task routing, the Jev approval
delegate, `qq jev setup|observe`, the jev_* config keys and QQ_JEV_*
variables. Held calls now go to reviewer_model, then the human.

Protocol 35 -> 36: routing_started/routing_completed/checkpoint_started/
checkpoint_reviewed are no longer written; recorded ones decode as
`retired` so old stores replay. delegate "jev" and descriptor fields
checkpoint/routing/approval_delegate stay decode-only. Configs that still
set jev_* fail to parse with an error naming the key.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-10-20T07:17:16.194867Z 76ff98c New commits
🔒 Security Review ✅ Completed 2026-10-20T05:18:06.680425Z 516b351 Manual request
ℹ️ 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

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@lg2m

lg2m commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 516b351c23

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@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: 516b351c23

ℹ️ 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".

Comment thread crates/qq-protocol/src/sessions.rs Resolved
Comment thread crates/qq-config/src/lib.rs Resolved
Comment thread crates/qq-protocol/src/sessions.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

- Forward retired events as their normalized `retired` envelope instead of
  the stored legacy bytes, so SSE subscribers whose cursor precedes a Jev
  event no longer get a malformed event.
- Reject QQ_JEV_CHECKPOINTS, QQ_JEV_ROUTING and QQ_JEV_APPROVAL by name
  instead of ignoring them.
- Remove ReviewVerdict::delegate and ::by; new verdicts, grants and events
  always name the reviewer, and `jev` only decodes.
- Fix ADR-0047's status line and point retained ADRs at the deleted Jev
  docs by permalink.

QQ-Allow-Revert: crates/qq-core/src/sessions/tests/accounting.rs
QQ-Allow-Revert: src/output.rs
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 07eaa23e4c

ℹ️ 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".

Comment thread docs/design/tools.md Resolved
Comment thread crates/qq-config/src/lib.rs Resolved
@lg2m
lg2m merged commit c246851 into main Oct 20, 2026
8 checks passed
@lg2m
lg2m deleted the refactor/remove-jev-decisions branch October 20, 2026 07:21
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