Skip to content

fix(Alden): recover reappearing sources and prove collection-to-graph lineage - #29

Closed
twoimo wants to merge 30 commits into
codex/alden-integrity-recovery-20261011from
codex/alden-pipeline-readback-20261011
Closed

twoimo wants to merge 30 commits into
codex/alden-integrity-recovery-20261011from
codex/alden-pipeline-readback-20261011

Conversation

@twoimo

@twoimo twoimo commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Fixes a real source lifecycle failure and makes the existing multi-target collection path inspectable from original bytes through persisted search and graph evidence.

Trigger and fix: A complete snapshot of A, then removal, then an exact A reappearance previously reused the original deterministic run ID and skipped reactivation. Bind the snapshot run identity to its monotonic source order, preserving same-order replay idempotence and all original record versions. A fixture proves both nodes and explicit edges disappear on removal, then reappear without duplicate replay events.

Integration: Add read-only, project/target/version-scoped trace_document through CollectionStore, Alden's existing native menu bridge, desktop settings API, and the owned alden_knowledge_trace stdio MCP. Verify original SHA-256, committed collection run stages, FTS5 text binding, separate local Dense vector binding (without claiming model residency), permissible active relations and journal checkpoint. Display the proof only on a selected 3D node whose ID/version/target exactly matches; no fictitious events or pulse. A denied project exposes no document-existence signal. A true stdio initialize/list/call test checks project rejection and unchanged events/runs after reads.

Validation: macOS GitHub Actions pipeline run 38068189206, exact validation SHA c227accdf2b20af46c8f816ace8332016214eb2f, Python 113/113, focused UI 30/30, production TypeScript/Vite build. The initial failing run 38067548142 is retained as evidence of the actual A→removed→A bug plus a CI-only missing local embedding service fixture, both resolved. Additional Tauri Rust and unsigned arm64 package CI are in progress separately.

Scope: stacked directly on draft PR #28, itself stacked on PR #27. Existing Mac clone, uncommitted user edits, original databases, source files, enrollment, model selection, message queue and running processes untouched. The owned read-only MCP is separate from the outside osk-system MCP. Real user Mac MLX/STT/TTS, osk-system host readbacks, application installation/physical rendering and Developer ID notarization remain independent delivery gates.

See pipeline source trace/continuation evidence.

twoimo added 30 commits October 11, 2026 01:19
@twoimo

twoimo commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Closing: this is the Oct 10-11 side stack #28 to #32 (87 commits from 0509551, not in #48 by patch-id). It touches no src/ file and no auto-reply worker or supervisor. 31 of its 38 changed files do not exist on main (scripts/alden_voice.py, scripts/alden_tool_runtime.py, scripts/alden_collection.py, desktop/src/knowledge/* and their tests), so it cannot land on main without the lineage. The one change to a file main uses standalone is 72c7a3d in scripts/verify_local_models.py, a stricter operator-only probe that nothing on main calls. It stays on the branch.

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