You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cancel scoped knowledge MCP reads on global abort - #41
A latched global abort still allowed knowledge MCP graph/history payloads, and graph/history did not propagate request cancellation to their nested SQLite reads. Knowledge tools now check their captured global epoch before source guards, before backend entry, on backend failure and after the read. Read-only collection connections inherit a scoped cancellation callback and interrupt SQLite progress; the scope resets across failures and workers. Recognized global cancellation returns the fixed tool error alden_global_abort; private exception text stays suppressed. Existing client cancellation, deadline and metadata-only status behavior are retained.
Validation:314 affected Python tests pass, including six new cancellation methods; all six also pass with the installed Resource modules preloaded. An installed baseline synthetic probe reproduced graph/history payloads under a latched abort. The upgraded installed stdio journey blocks all three tools while latched, keeps ping responsive, and supports normal graph/history/search after synthetic resume in the same process. A separate owned stdio session reads actual career graph data and request-scoped history, rejects out-of-scope and write calls, and exits normally. Synthetic abort state never changes the production abort file. All83 installed files match the canonical receipt and strict/deep signing;43 targets, settings/policies, launchd definitions and four sending queues are preserved. Only the identified scheduler is gracefully cut over for its changed collection dependency.
This checks application cancellation points and SQLite progress, not an atomic theorem covering the final stdout-delivery race, filesystem/lock-wait preemption or whole-app performance. Frontend192 sources are unchanged and previous native evidence is reused; no new primary/physical/minimized-primary QA is claimed. No global MCP configuration, account, model, shared MCP owner or permission is changed. Persistent registration limited to the currently running chat remains unverified: its installed settings schema exposes no MCP/config field, and no active-thread resume or configuration-wide reload was attempted. Existing external current-source review and normal release/notary gates remain open; product CI only targets main.
Closing: this branch's head is an ancestor of #48 (codex/alden-explicit-references-20261025), so everything here is part of the lineage that #48 tips. It cannot land on its own.
Why the lineage cannot land as drafts. The codex/alden-* lineage forked from main at 533dbf6 (2026-10-05). Its tip is #48 (5f4843f), 727 commits ahead. main then took the 1.9.0/1.9.1 stability work (#49 to #58), and none of these drafts was rebased onto it.
A trial merge of main into the tip conflicts in 36 files, including 10k-line hunks in src/main.rs and src/context/mod.rs, which 1.9.0 split into modules.
A read-only audit found that the lineage's src/ax_send.rs lacks two 1.9.x composer safeguards: e14458e (an unreadable composer is not treated as empty) and 7d9635d (no second Return without a composer read, the double-send fix). A conflict resolved toward the lineage would compile and silently undo both.
The lineage's queue code bails on queue schema v3.
About 1.24M of the tip's 1.57M added lines are generated docs/architecture snapshots (about 121 MB).
What was kept. The audit read all 69 lineage commits that touch src/ or the auto-reply scripts. The three that fix main's production send path are now on main:
Every other lineage commit is on main already, superseded there, or Alden desktop and feature work that depends on lineage-only modules.
Nothing is deleted. The branch stays on the remote. The installed /Applications/Alden.app 0.3.219 was built from this lineage (a124320), so treat the branch as the source of that build. To bring the desktop work to main, start a planned integration from the tip, codex/alden-explicit-references-20261025, rebased onto main. Keep main's side in src/ax_send.rs and the queue v3 code. Reopen this PR or start from the branch if you want it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A latched global abort still allowed knowledge MCP graph/history payloads, and graph/history did not propagate request cancellation to their nested SQLite reads. Knowledge tools now check their captured global epoch before source guards, before backend entry, on backend failure and after the read. Read-only collection connections inherit a scoped cancellation callback and interrupt SQLite progress; the scope resets across failures and workers. Recognized global cancellation returns the fixed tool error
alden_global_abort; private exception text stays suppressed. Existing client cancellation, deadline and metadata-only status behavior are retained.Validation:314 affected Python tests pass, including six new cancellation methods; all six also pass with the installed Resource modules preloaded. An installed baseline synthetic probe reproduced graph/history payloads under a latched abort. The upgraded installed stdio journey blocks all three tools while latched, keeps ping responsive, and supports normal graph/history/search after synthetic resume in the same process. A separate owned stdio session reads actual career graph data and request-scoped history, rejects out-of-scope and write calls, and exits normally. Synthetic abort state never changes the production abort file. All83 installed files match the canonical receipt and strict/deep signing;43 targets, settings/policies, launchd definitions and four sending queues are preserved. Only the identified scheduler is gracefully cut over for its changed collection dependency.
This checks application cancellation points and SQLite progress, not an atomic theorem covering the final stdout-delivery race, filesystem/lock-wait preemption or whole-app performance. Frontend192 sources are unchanged and previous native evidence is reused; no new primary/physical/minimized-primary QA is claimed. No global MCP configuration, account, model, shared MCP owner or permission is changed. Persistent registration limited to the currently running chat remains unverified: its installed settings schema exposes no MCP/config field, and no active-thread resume or configuration-wide reload was attempted. Existing external current-source review and normal release/notary gates remain open; product CI only targets main.