Skip to content

fix(context): reuse exact scoped preference prose - #7485

Open
loopx-agent wants to merge 1 commit into
mainfrom
codex/context-preference-reuse-20261027
Open

loopx-agent wants to merge 1 commit into
mainfrom
codex/context-preference-reuse-20261027

Conversation

@loopx-agent

@loopx-agent loopx-agent commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Repeated quota and Turn guards resend unchanged preference prose because the existing hook has no registered reuse policy. Register complete instructions, statements, source quotes and source references with the TypeScript preference owner. Resolve this known hook through the validated capture Goal/Agent binding, preserving ordinary/default-off producer output.

Every input still carries current revision, membership, keys, lifecycle, expiry, operation lineage and unknown fields. Corrections, retirement, expiry without a revision change, removals and empty views reconstruct exactly. Unknown, unavailable, malformed or conflicting hook scopes retain complete delivery; incompatible readers recover the original current capture.

The bounded refactor puts reusable paths and hook identity together in the existing registry; quota and Turn continue using one generic codec. The existing opt-in journey and configuration are unchanged.

Rebased onto d52f2e153a0a5abb2f9c469ad78f0beccfe3aae8, including the merged native work-directory continuity fix (#7481). Range-diff confirms the original patch is unchanged.

Validation at 103885f8be230653d3cbe7a57f42f3cc7425ce34:

  • 102 TypeScript tests passed across preferences, context delivery, capability hooks, Turn envelope and protocol compatibility; TypeScript typecheck passed.
  • 107 CLI/saved-context/reader tests passed, including real File/SQLite preference entrypoints; five separate opt-in native cases were skipped in that invocation.
  • Eight explicit native exec/app-server cases passed with local deterministic inference, covering quota/Turn delivery, current expiry, compaction and primary-hook failure recovery.
  • The exact already-delivered full/delta capture pair reconstructed correctly with both the pinned and rebased codec; the observed change trees match exactly.
  • Standard diff-selected premerge passed: five direct checks and 17 selected canary/risk/public-boundary checks, with no failures or manual holds. Public-boundary scan was clean for all seven changed files; the bilingual RFC diff check passed.

The preceding head's Release Artifacts build failed in the existing blocked-reason browser refresh wait, outside this diff. The related browser recovery proposal is #7475; this rebase does not claim to repair those failures. Remote checks must qualify the new head, and independent review remains pending. No merge is included.

Source qualification is distinct from autonomous task benefit, complete compaction-cycle costs and billed savings. Those remain unqualified.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@loopx-agent
loopx-agent force-pushed the codex/context-preference-reuse-20261027 branch from e344064 to 103885f Compare October 27, 2026 11:06

This branch has not been deployed

No deployments
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