Qiongli 2.0 R3C Codex Local Adapter Execution Plan
Date: 2026-07-14
Status: complete Branch: feat/2x-native-alpha1
Rolling PR: #63
Goal
Complete the first receipt-backed Codex current-user adapter vertical without writing Codex's plugin cache or claiming client activation.
1. Freeze The Boundary
- [x] Verify the current official personal-marketplace, local-source, cache, and enablement contracts.
- [x] Fix the v1 current-user marketplace, private state, and plugin-source symbolic paths.
- [x] Freeze discovery, plan, approval, receipt, merge, transaction, and non-claim rules in the R3C design.
- [x] Commit and push design checkpoint
8c76f5f2to the rolling Draft PR.
2. Make The Embedded Lite Projection A Codex Source
- [x] Add a skills-only
.codex-plugin/plugin.jsonto canonical content. - [x] Include and validate it in every applicable resource-pack projection.
- [x] Regenerate the checked resource-pack lock and update deterministic fixture expectations.
- [x] Prove the
marketplace-litematerialization contains and receipts the manifest without adding a Python or Node launch path.
3. Implement Discovery And Preview
- [x] Add typed redacted current-user Codex discovery.
- [x] Validate the fixed R3B materialized source and Codex manifest.
- [x] Parse bounded personal marketplace documents and classify absent, registered, conflict, drift, and recovery states.
- [x] Build a deterministic one-operation
RegisterPluginSourceinstall plan with exact approvals, inverse, source digest, and outstanding host action. - [x] Add pure document-merge tests and plan tamper/approval tests.
4. Implement Receipt-backed Registration Lifecycle
- [x] Add canonical registration, lifecycle, state, and journal schemas.
- [x] Add private-root locking, compare-and-swap marketplace writes, rollback, and post-commit verification on Unix and Windows.
- [x] Implement apply, verify, repair, remove, and rollback.
- [x] Reject source, marketplace, receipt, ownership, path, permission, duplicate-entry, and recovery drift without deleting user data.
- [x] Add idempotence, preservation, drift, rollback, and fault tests.
5. Expose Conservative Product Status
- [x] Add side-effect-free
qiongli install codex statusoutput with symbolic locations only. - [x] Change the Codex install target from
contract-onlyonly to an accurate adapter-engine state; keep productionlaunch_grant,preview, andapplyunavailable in the source build. - [x] Update native README and accelerated roadmap with exact capabilities and non-claims.
6. Verify And Land The Batch
- [x] Run formatting and the focused
qiongli-platform,qiongli-content, and CLI Rust tests. - [x] Run all 185 native Rust workspace tests locally.
- [x] Run the native boundary and all 69 focused Lite compatibility tests.
- [x] Cross-check all workspace targets for Windows MSVC locally.
- [x] Obtain the real Windows CI result.
- [x] Commit and push implementation and local receipt checkpoint
f0455ad8. - [x] Update Draft PR
#63with factual files, tests, limitations, and the exact head. - [x] Accept R3C only after the exact implementation-and-receipt head is green on Native CI and Cloudflare Pages.
Explicit Non-goals
- direct writes to
~/.codex/plugins/cacheor Codex enablement state; - Desktop install/enable automation or activation claims;
- direct Codex MCP config mutation;
- public Marketplace submission or publication;
- repository-scoped Codex marketplaces;
- Claude Code or Claude Desktop adapters;
- plugin packaging with the native executable;
- UI, updater, release, or clean-machine artifact claims.
Receipt
Local implementation receipt, before checkpoint commit:
- official Codex manual cache was current on 2026-07-14 and confirmed the personal marketplace, local source, client-owned cache, and enablement boundaries used by the design;
- the resource pack now has 419 entries with content root
db362981aa9c9ad1f84eeecbdb4f119924c7f442096be3a8e657afa424aea2f2and pack digest04a0ac3a980194c741ba57f0cc8da8490bb1c77c9d445f6f2144bf5464b3818d; - seven focused Codex adapter tests pass, including post-activation rollback and ambiguous concurrent-state preservation;
- strict workspace Clippy passes;
- all 185 native Rust tests pass;
- the native change boundary and all 69 focused Lite compatibility tests pass; and
- the Windows MSVC all-target, all-feature workspace check passes.
Implementation and remote acceptance receipt:
- checkpoint
f0455ad8c47c85401cb4c3fc230869fa2d3a1506contains the R3C implementation and local receipt and is pushed to the rolling Draft PR; - exact-head Native CI run
29338915660passed: boundary in 5s, focused Lite in 41s, Linux in 1m15s, macOS in 2m13s, and real Windows in 2m19s; - Cloudflare Pages passed for the same PR head; and
- the only annotations were the existing
actions/checkout@v4Node 20 deprecation warnings; every R3C test and build step completed successfully.
R3C is accepted. This documentation-only acceptance checkpoint must also pass the same exact-head PR gates after push.