Skip to content

Verify version-bound projections before graph resolution - #40

Closed
twoimo wants to merge 1 commit into
codex/alden-input-failure-replay-20261024from
codex/alden-resolution-integrity-20261025
Closed

twoimo wants to merge 1 commit into
codex/alden-input-failure-replay-20261024from
codex/alden-resolution-integrity-20261025

Conversation

@twoimo

@twoimo twoimo commented Oct 24, 2026

Copy link
Copy Markdown
Owner

A modified stored projection could receive a fresh duplicate-resolution preview and be accepted under its old version ID. A changed projection digest could also leave an existing display overlay marked current. Resolution now verifies the exact v3 projection digest and derived version identity before preview, before apply and again inside its write transaction, and before projecting an active decision. A mismatch returns collection_resolution_projection_integrity; original sources, schemas and historical receipts remain untouched. Legacy rows retain their existing compatibility contract without claiming v3 integrity.

Validation: the installed baseline reproduced three regression methods/seven failing subcases in private synthetic stores. The final affected Python suite passes167 tests; the updated installed modules pass four targeted methods. Tests cover an update after preflight, stale active overlays, exact restoration without reapply, historical request replay and source metadata intentionally excluded from projection hashing. All83 installed files match the canonical receipt and strict/deep signature; the fixed development identity is retained. A real current career candidate pair passes the installed read-only preview, with zero production apply calls. The changed dependency required one graceful scheduler cutover, reconciled through launchd and two fresh heartbeats. The43 targets, settings, policies, launchd definitions and four queue fingerprints are checked separately.

The current-data read-only audit inspected26,661 permitted current memberships and48,355 relationships across five projects, finding no retained-source integrity error. It found seven stored-body match groups and20 same-body groups with differing declared tags; these remain review candidates. Membership versions changed while the audit ran, so this is a transaction observation, not an unchanged end-of-scan or semantic-truth claim. Frontend192 sources are unchanged and previous native evidence is reused; no new primary/physical/minimized-primary QA, whole-app performance or complete messenger collection is claimed. The statechart documents code boundaries and bounded regressions, not a formal all-input/liveness proof. External current-source Pro/Gemini/reverse review and normal release/notarization remain open; product CI only targets main.

@twoimo

twoimo commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

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.

@twoimo twoimo closed this Nov 23, 2026
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