Skip to content

fix(Alden): preserve OSK metadata removals and verify MLX response identity - #28

Closed
twoimo wants to merge 11 commits into
codex/alden-local-runtime-20260927from
codex/alden-integrity-recovery-20261011
Closed

twoimo wants to merge 11 commits into
codex/alden-local-runtime-20260927from
codex/alden-integrity-recovery-20261011

Conversation

@twoimo

@twoimo twoimo commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Alden's current PR #27 source has three fail-open or missing-history paths that can misrepresent source changes and localhost model readiness.

Changes:

  • Append immutable external_source_removed records for missing room/author metadata in a confirmed complete OSK snapshot; isolate account keys, record metadata_removed, and commit checkpoint/cache updates only after raw records are durable. No source database mutation or downstream deletion claim.
  • Reject nested JSON float overflow (1e400) in native Aside response envelopes.
  • Require the selected fixed MLX model ID, assistant role, finish_reason=stop, and exact bounded Korean diagnostic response before a local-model verification returns success.
  • Add regression tests for account isolation, metadata disappearance and re-addition, cancelled work, nested malformed inputs, incorrect/incomplete/other-model responses, and the downstream source-grounded graph node/edge retraction on removal followed by restoration.
  • Record the Mac-session blocker and provenance in a dated implementation note and continuation pointer.

Validation: macOS GitHub Actions run 38066589911, exact validation branch SHA a6c872c2de362f71540e20dbe6219d90839ada04. Python 3.11 focused 40/40 passed (including live-snapshot fixture deletion/readdition and source-grounding), job 114255363711 completed success. Test/source files match the proposed branch; the CI-only workflow is isolated on the validation branch. This is macOS runner synthetic/fake-host testing, not the owner's installed Alden app, MLX model loading, production source/osk-system MCP, physical STT/TTS, or graph view validation.

Scope: 9 files; baseline exactly PR #27 head 0509551b08b71a72778d7e24fa852ccb235e3f7e. This draft stacks on codex/alden-local-runtime-20260927 to avoid an unrelated diff against main. Keep it unmerged until the exclusive Mac copy's uncommitted state and outputs/STATUS.md can be checked, then carry out installed E2E and final release gates.

@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.

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