Modular lanes and shared collection
This is the implemented forward architecture. Production activation is separate: ordinary startup never registers the momentum amendment or migrates an existing authority database to schema 11. The October 21 Pons receipts remain historical, expired and suspended; no Emerging pilot is enabled.
Lane boundary
alfaEngine/lanes/ contains momentum_ltf, momentum_htf, small_cap, and emerging. Each adapter accepts the immutable Context value and returns an assessment plus explicit missing-evidence requirements. Its contract tests live alongside its implementation. The original timing kernel is retained in lanes/legacy.py for historical replay and unchanged Small-Cap behavior.
Adapters have no database, provider, notification, execution or scheduler capability. They share calculations and approved configuration with the existing feature/score/gate kernels. horizons.py supplies saved canonical inputs; decision.py still arbitrates lanes. assessment_records, final-exit collectors, events, deduplication and delivery retain their existing authority. Emerging's adapter cannot qualify or request collection, and configuration rejects enabling it.
Canonical ownership and collection
The existing authority database continues to hold source evidence, policies, assessments, decisions, exits, alerts, work and reservations. The optional schema-11 addition stores only new subscription/group/publication records beside that evidence. Existing ledgers remain authoritative; this is not database consolidation:
| Record | Owner and meaning |
|---|---|
consumer_requests |
Exact consumer, purpose, selected primary reference, policy, original deadline, priority and freshness requirement |
consumer_cancellations |
Cancellation of one subscription, retaining its original request |
collection_groups / collection_members |
One original scheduler collection obligation and all subscribing consumers |
collection_publications |
Exact original returned evidence IDs and first canonical publication time for a consumer |
Consumer capabilities expose saved evidence and their own request/result/cancellation. They cannot write reports, agent decisions or lane assessments, mutate evidence, grant quota or call providers. consumer_interface.py provides the common local/SSH request/read interface for ddEngine, agent:qwen and agent:codex. It relies on the existing trusted operating-system access boundary; it is not a public HTTP authorization service.
Routine demand attaches to the existing market scheduler. The accepted paid cadence still owns the 15-minute supplemental slots. Compatible requests for the same selected primary references share one supported batch and one provider charge, with every purpose/consumer preserved separately. External requests cannot expand the active cohort or choose a different primary market. Fresh saved evidence can satisfy additional demand without restamping it. Routine market collection still acquires the due observation even when the last value fingerprint is unchanged; the source clock remains unchanged in that case.
The router, provider admission, account quotas, protected reserves, immutable source slots, leases, deadlines, uncertain-attempt rules and transports remain authoritative. Consumer attribution is not a second billing ledger. The legacy batch lanes field remains its original collector admission context; subscriptions, rather than that field, identify all consumers of a shared call. An agent or DD subscription grants no additional cadence or allocation.
Existing position protection, requested DD investigations, final exits and delivery retain their separately authorized immediate paths. Only compatible routine market demand waits for its ordinary slot. DD continues to reuse current canonical markets before planning its independent forensic work. DD reports remain solely in their original ledger, with a read-only accessor that verifies original bytes/digests. Unknown historical completion clocks remain unknown. Agent decisions and paper books retain their existing owners. There is no report copying, operational SQLite consolidation or production dual-write path.
Groups commit before source registration. Restart resumes the same group, original dispatch key and deadline. Publication walks market → snapshot → response → original intent, so an unrelated older fresh observation cannot falsely complete a newly dispatched group. Uncertain dispatched work is never replaced. A disabled consumer's cancellation does not cancel other subscribers; an unstarted group with no remaining demand is expired before reservation. Already charged work and all historical results remain.
SQLite connections and transactions are confined to the storage implementations for the new interface. storage_access separates evidence reads, request operations, collector reservations, shared assessment persistence and original report reads. Lanes receive only immutable values; this is a fixed boundary around working stores, not a general multi-database framework. PostgreSQL evaluation is separate and does not block lane or momentum work.
Approved directional history
The user explicitly approved these values on October 22, 2026:
| Contract | Momentum LTF | Momentum HTF |
|---|---|---|
| Rolling window | 90 minutes | 12 hours |
| Independent 15-minute slots | At least 5 of 7 | At least 37 of 49 |
| Oldest evidence | In the first 15 minutes | In the first 30 minutes |
| Longest gap | At most 30 minutes | At most 60 minutes |
| Distributed coverage | Whole-window count | At least 8 occupied slots in each 3-hour quarter |
| Latest usable observation | At most 20 minutes old | At most 20 minutes old |
The LTF anchor tolerance permits a 75–90 minute observed span, within the requested 1–2 hour range. HTF requires an anchor in its original 12-hour window; two distant endpoints cannot qualify. Multiple observations in one cadence slot count once for coverage while all valid directional returns remain measured. Missing slots and excluded invalid/conflicting samples have separate explicit reasons. Normal pullbacks are preserved, not removed as unusable history. No monotonic-price or new social gate is added. Existing weights, complete-score threshold, safety, current identity/freshness and final-tradability requirements still decide qualification.
momentum_history.py registers one versioned forward amendment in the existing immutable policy-extension ledger. It cannot be backdated over original assessments or renewed with a new approval clock. Historical decisions retain their original timing semantics. Shared compatible evidence preserves candidate identity, original timestamps and primary-market epoch. A confirmed LTF alert can later transition to HTF with the accumulated history, new current evidence and the existing full score/gate/exit/event requirements; benign assessment-clock advancement during quote/RPC calls is normalized only for comparison, while changed evidence, coverage, identity, safety or freshness still requires a new decision; it does not restart the observation clock.
Configuration and isolation
The existing local Configuration tab includes validated lane toggles only after reviewed schema-11 preparation; retained schema-10 stores show the controls unavailable and reject changes, preserving their original collector behavior. Lane configuration is append-only, revision checked and read at each assessment/collection boundary. Disabling stops new evaluation and demand and cancels only that lane's pending subscriptions. Re-enabling preserves evidence, assessments, deduplication, budgets, original authority and cumulative reservations. An actual setting change must follow every persisted score/gate/decision/exit/alert clock, preserving historical replay. Idempotent same-settings reads remain harmless. Chain-tier edits remain reviewable drafts. The remote portal retains read-only engine configuration; browser notification settings remain independent.
Tested isolation guarantees are per-adapter exception containment, no execution of a disabled Emerging adapter, 128 pending ungrouped requests per consumer, existing batches of at most 30 pools, unchanged bounded router work limits, and cooperative servicing of due markets/benchmarks after each five-candidate group and the final partial group. Existing immutable slots prevent duplicate admission. A synchronous source call can still delay the next cooperative boundary. Shared database, process and operating-system failures are not isolated by this design.
Migration and activation
scripts/prepare_shared_lanes.py creates a consistent SQLite backup at a new separate destination, adds schema 11 transactionally, optionally registers the approved forward amendment, verifies bounded-memory, length-framed fingerprints of every original typed row and evidence ID/JSON byte sequence, and runs integrity checking. It never replaces the source. Existing accounting, DD, campaign, Pons and scheduler ledgers are not concatenated or relocated. Their historical identifiers and immutable charges are preserved. This is an additive subscription-schema rehearsal, not physical consolidation, PostgreSQL migration or a claim of cross-ledger atomicity. Production execution status is recorded in the guarded release record; the utility itself never installs its destination. Self-hosted PostgreSQL is the preferred future candidate; see the ownership and bounded evaluation plan.
Preparation example on a stopped-state rehearsal copy:
python scripts/prepare_shared_lanes.py \
--source /private/rehearsal/alfaEngine-authority.sqlite \
--destination /private/rehearsal/alfaEngine-authority-v11.sqlite \
--approved-at-ms ORIGINAL_REVIEWED_ACTIVATION_CLOCK
The activation clock must follow every original persisted assessment/decision. Preparation is not live cutover authorization. Before deployment, retain consistent stopped-writer backups of the complete runtime and compatible rollback images, verify ownership/fences and all original receipts, rehearse this migration, and follow the separately guarded deployment procedure. An empty forward schema can be removed with rollback_empty; once the momentum amendment, new shared history or lane-control history exists, retain schema 11 and every newer record. Older application images that reject schema 11 need a compatibility reader before they can be rollback candidates. Never restore an old database to roll back application code.
The new source is not deployed or active merely because a PR merges. External paper clients must adopt the common request/read client explicitly; no model is invoked or campaign restarted by this change.
Offline evidence
The dated automatic momentum acceptance investigation distinguishes current natural progression, historical acknowledged alerts, and synthetic automatic reachability. Its fixes require separate merge/deployment approval.
tests/test_automatic_momentum_path.py: complete service-entrypoint discovery → LTF → HTF → both destination acknowledgments, plus stale/missing evidence, duplicate intake, capacity, restart and expiry. HTTP/RPC/destination responses are synthetic; no downstream stage is invoked manually.-
tests/test_momentum_orchestration_repairs.py: decision-clock/upgrade identity, source-registration recovery, graduation residency and bounded delivery pacing/retry regressions; isolated fixtures here are not a full discovery acceptance claim. -
tests/test_modular_lane_journey.py: real source adapters, paid cadence, canonical queue, native ranked-holder/security collection, scoring/gates, persisted decisions, final exit, events, captured acknowledgments and LTF→HTF lineage; synthetic HTTP/RPC responses, no substituted qualification. tests/test_modular_lanes.py: coverage/exclusions, pullbacks, identity/staleness, duplicate/shared demand, cancellation, publication/restart recovery, original report reads without dual writes, historical policy preservation and migration rehearsal.- Lane-owned
test_contract.pyfiles: distinct adapter policies and disabled Emerging. tests/test_protected_lane_scheduler.py: actual benchmark/accounting slots becoming due during long funnels and the final partial group.- Existing collection, Pons, DD, event/delivery, consumer snapshot and accounting suites remain regression requirements.
