Skip to content

Fix messenger source loading and missing packaged dependency - #38

Closed
twoimo wants to merge 1 commit into
codex/alden-body-normalization-20261024from
codex/alden-sdk-source-loader-20261024
Closed

twoimo wants to merge 1 commit into
codex/alden-body-normalization-20261024from
codex/alden-sdk-source-loader-20261024

Conversation

@twoimo

@twoimo twoimo commented Oct 24, 2026

Copy link
Copy Markdown
Owner

The bundled messenger factory could not import because the desktop payload omitted alden_platform_identity.py. This includes the missing dependency and extends packaging coverage through the knowledge MCP entry point and conditional imports, with an isolated staged-resource import regression.

The source loader also hashed .py files but could execute different unchecked-hash .pyc contents despite -B. It now snapshots bounded regular source files before/after the unchanged whole-SDK qualification, compiles those exact bytes, initializes the fixed dependency graph without changing sys.path, and publishes module attestations only after source/origin/API checks. Failed initialization removes only modules created by that request. Account, source-root, native authority, consent and SDK health gates remain in force.

Validation: the former cache substitution and missing package resource fail under isolated negative controls. 284 affected Python tests and 7 Rust resource-layout tests pass; the actual candidate bundle imports its three messenger dependencies without a checkout or native framework/SDK content call, and still rejects the current unqualified shared SDK. Canonical signed build has 83 verified files. Frontend source is unchanged from d996f19; no new physical/minimized-primary UI claim follows.

Limits: the production registry still has zero KakaoTalk/Telegram targets. The shared Kakao SDK retains its whole-installation integrity failure, and Telegram retains its changed-app/decoder contract block; no global manifest rewrite, account switch, source bypass, live message/send or frontier activation is performed. The state diagram documents implemented transitions and bounded regressions, not a full formal proof. Current-source external cross-audit and normal release/notarization remain incomplete. Product CI only targets main; local validation is separate from GitGuardian.

Installed readback: all 83 bundle file hashes/modes and strict/deep signature match the canonical receipt; settings, 43 targets, two launchd plists and four queue DB table fingerprints are preserved. The collector retains the same PID/start. Actual installed resource-only imports now succeed, its loader passes 13 synthetic source/cache/failure regressions, and the current SDK qualification still blocks before canonical native reader modules load. No UI window was opened for this Python/resource verification.

@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