Skip to content

Preserve messenger activity streams across new content and fair collection - #47

Closed
twoimo wants to merge 647 commits into
mainfrom
codex/alden-integration-validation-20261025
Closed

twoimo wants to merge 647 commits into
mainfrom
codex/alden-integration-validation-20261025

Conversation

@twoimo

@twoimo twoimo commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

New messenger content changed the activity stream identity on every collection, so a consumer could silently reset its baseline and lose a committed event. The integration now separates authorization-bound stream identity from the strong current-content revision used to validate records. New content refreshes the graph while preserving valid pending receipts; an effect waits for the matching graph content, document version and target. Permission, account and source changes still fence stale data and effects.

Native messenger polling also no longer creates an unsupported file-watcher error. Only obsolete derived file hints are removed; scheduler ownership, source checkpoints, manual requests and real failures remain. Recent-room hints interleave with complete fair sweeps in the existing nine-step budget, and a partial index excludes completed history from pending-page lookup. Verified room absence backs off that room while account, schema, read-only and unclassified failures still stop the attempt.

The broader integration retains the unified graph/source-history/quality pipeline, routed runtime, account-bound messenger enrollment, independent room cursors, provenance and pause/voice/emergency gates. Source metadata controls scheduling only; it does not change knowledge, authorization or activity origin.

Runtime validation at c0ddb9c (current verification-only HEAD a0fde92 keeps those runtime bytes unchanged):

  • Local backend boundary suite: 191 passed; related regression suite: 164 passed. Production stream guards: 36 passed. Counts overlap. Broken variants detect both the lost-event bug and a weakened current-content check, then restored runs pass.
  • UI suite: 1,173 passed across 103 files, followed by the additional slow-refresh integration case in its passing 21-test suite. Build/typecheck passed; the existing bundle-size warning remains.
  • Current CI: all four jobs passed, including arm64 unsigned bundle/runtime smoke.
  • Fixed-development-signed candidate: 84 file hashes/modes and strict/deep signature verified. In a private root, the actual current-account SDK, scheduler and existing E5 index completed three automatic cycles and delivered 143 unique incremental receipts, all explicitly marked messenger-db:kakaotalk:backfill, with zero stream resets after an established baseline. One poll raised RuntimeError; its cursor was retained and later reads succeeded, but the exact cause was not established. The owned child stopped gracefully.

A second independent private native window completed three collection/index-ready cycles and delivered 166 unique backfill receipts without namespace resets. Its eight activity reads included one collection_source_authorization_changed from the final strong-content verification; the next same-cursor read succeeded. Four 100-node graph reads succeeded. A fourth attempt was cancelled by the owned graceful shutdown, not completed. The earlier unrecorded RuntimeError reason remains unproven. The sample medians (0.457 s activity; 1.342 s graph) are not a speedup or whole-corpus claim.

The verification-only delta adds a controlled mid-read withdrawal/same-cursor retry test and a frontend failed-read/matching-snapshot/once-only test. Production37, UI activity22 and typecheck passed. The maintained verify_alden_activity_stream.py passes three cases, rejects three process-local broken variants and restores all three cases, with seven exact covered-source hashes. The existing publication checker separately passes its fifteen cases and rejects its three broken variants. These are finite implementation checks, not an unbounded proof. The publication skill's source path now points to the maintained runtime module.

Earlier initial activity reads returning zero were baseline responses by API contract. They did not prove absent stored activity or suppression of backfill. First-time backfill can represent real new stored knowledge; its origin must remain distinct from a new live incoming message. Policy reprocessing and unchanged/permission-wait states do not become combat events. The current native observation did not verify a new incoming live message or rendered combat.

Previous bounded comparisons remain separate: identical 24-room workloads moved the newest room's first read from position 46 to 1 and first live step from 50 to 2, with equal 64 reads and final documents/frontiers. A matched 200-room/8,001-page SQL-only experiment measured median 84.34 to 0.19 ms with the partial index. These do not establish whole-app latency, resource, quota or battery savings, all-room five-second freshness or universal liveness.

The installed Alden 0.3.218 remains at source 1c075d1. Its 83 files/modes and strict/deep signature still match the installed zoom-label verification. The original collector was preserved; original production enrollment, new candidate installation, source DB writes, sends and foreground UI actions were not performed in this validation.

See STREAM_IDENTITY.md, RECENCY_SCHEDULING.md and PRODUCTION_ENROLLMENT.md under docs/evaluation/messenger-stream-20261021/. Current-source Pro/Gemini/reverse review, installed production/UI/combat, actual incoming live traffic, representative latency/resources, Telegram decoder/consent, semantic gold, physical/voice and normal release gates remain open. The separately known SDK mention-confirmation defect remains open. The original source-upload rejection and owned review sessions are preserved; no substitute model or upload workaround was used. No merge, tag or publication occurred. Frozen PR27 remains outside this write scope.

Current verification-only source a0fde92 passed all four jobs in CI40144676992, separately from the earlier runtime-source CI.

One actual native receipt and its current 407-node graph were also replayed through the production parser/consumer: failed read, identical retry cursor, matching snapshot, one display callback. The historical replay clock/transport/start cursor are explicit test inputs; no native rendering or live-arrival claim follows. The messenger test graph had zero edges. Evidence-based reply/citation/source relationships and semantic quality remain open; this sample says nothing about edge counts in the existing full graph. Private native payloads were kept out of the external review packet.

twoimo added 30 commits October 14, 2026 10:17
@twoimo twoimo changed the title Validate current Alden graph and runtime integration Integrate Alden runtime with guarded messenger collection readiness Oct 24, 2026
@twoimo twoimo changed the title Integrate Alden runtime with guarded messenger collection readiness Integrate guarded messenger collection with native verification Oct 24, 2026
@twoimo twoimo changed the title Integrate guarded messenger collection with native verification Integrate source-aware messenger collection with isolated room retries Oct 24, 2026
@twoimo twoimo changed the title Integrate source-aware messenger collection with isolated room retries Integrate current-source messenger collection with recent and fair room sweeps Oct 24, 2026
@twoimo twoimo changed the title Integrate current-source messenger collection with recent and fair room sweeps Preserve messenger activity streams across new content and fair collection Oct 24, 2026
@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