Exploratory notes by songoow on historical, partly interrupted EdgeBench/LHTB runs. The feedback-first option is withdrawn; these are not official LoopX results or current capability claims.
From an incremental migration proposal to complete transactions, shared authority, semantic checks, and retirement of old paths. How real callers and counterexamples changed the design.
LoopX is, at its core, a general-purpose long-horizon task semantics engine—unifying complete state transactions, shared AuthorityStore, zero-Any vocabularies, composable resume/monitor/replan/handoff primitives, and an Agent-native CLI.
LoopX 2.0: Two Months of TypeScript Control-Plane Engineering
An effect succeeds without a checkpoint. An expired executor returns with a valid receipt. An evidence correction restarts finished work. Two months of refactoring brought these problems under complete transactions and shared semantics.
Retrying an operation can execute its effect twice. Reading back a success receipt can revive execution rights that have already expired. These boundaries between execution, storage and recovery are central to LoopX’s TypeScript refactor.
LoopX’s TypeScript Semantic Control Plane: Transactions, Task Semantics, and an Agent-Native CLI
LoopX is, at its core, a general-purpose long-horizon task semantics engine—not a prompt wrapper, static DAG, or generic microservice queue. When an effect succeeds before its checkpoint lands, a resumed Agent outlives its task lease, or a truncated CLI view looks identical to finished work, conditional continuation, continuous observation, evidence-driven replanning, peer handoffs, and Agent-native CLI output must compose inside one TypeScript state machine.
Retrying an operation can execute its effect twice; reading back a success receipt can revive execution rights that have already expired. Across runs spanning hours or days, a general-purpose long-horizon task semantics engine must make conditional continuation, background observation, evidence-driven replanning, peer handoffs, prefix-KV-safe CLI interactions, and transactional state across local SQLite and cloud PostgreSQL composable and verifiable for long-horizon agents and agent teams.
1. The semantic questions we put stronger models to work on
We use stronger models in design, implementation and review, especially to trace assumptions across files and runtimes. The difficult cases often combine individually reasonable checks into an unsafe execution order. Core PRs in August and September already dealt with these problems; they were part of the migration itself.
The effect happened, but its checkpoint did not. Is retry safe?
@@ -34,13 +34,13 @@
Why could correcting evidence restart finished work?
Making a plausible model answer face a counterexample
Ask for the mistaken assumption, then an execution sequence that refutes it: disconnect after commit, replay an expired lease, correct only evidence, explicitly clear a value. Check the real owner, provider and caller.
Stronger models help connect scattered conditions; counterexamples, real storage and refusal paths constrain their answers. There is no per-PR model comparison here, so these examples cannot quantify a particular model’s independent contribution. They show the mechanisms and reasons for changing them. Later runtime routing in #7145 and original-Turn closeout in #7269 continue this work rather than defining its whole history.
-
2. Reconstruct the history: the migration plan changed too
-
The formal migration RFC merged on August 15. By the concentrated retirement of ordinary legacy writers in mid-October, the program had spanned roughly two months. Several tracks overlapped: transaction ownership, caller integration, shared authority, storage and history costs, Semantics, compatibility, and retirement.
-
The final relay by three developers and their agents in #6396 depended on that earlier work. Earlier choices determined what could be deleted and what still had to recover afterward.
-
Our new maintainer, Song (@songoow), has also been advancing the Semantics RFC, vocabulary convergence, production evidence, and checker fixes since mid-September. That track belongs alongside the transaction and storage story.
-
LoopX retains goals, tasks, evidence, and execution boundaries for long-running agents. Models propose routes. The control plane protects versions, execution authority, and state commits, then finds a valid recovery position after interruption.
+
2. Reconstruct the history: from migration plan to task semantics engine
+
The formal migration RFC merged on August 15 (#3226). Over the first two months through mid-October, the program migrated core transactions to TypeScript and retired ordinary legacy Markdown writers in #6396. Through late November, a second convergence wave built directly on that transactional kernel: composable task continuation, background monitoring, and replanning; peer delegation handoffs; closed-set vocabulary ratchets; and an Agent-native CLI.
+
The three-developer-and-agent relay in #6396 closed the dual-writer transition so later task, collaboration, and CLI state machines could rely on a single authority owner.
+
Our new maintainer, Song (@songoow), has also been advancing the Semantics RFC, vocabulary convergence, production evidence, and checker fixes since mid-September. That track belongs alongside the transaction, task-semantics, and CLI story.
+
At its core, LoopX is a domain-neutral, general-purpose long-horizon task semantics engine for long-horizon agents and agent teams. Models propose routes; the engine protects versions, execution leases, composable task transitions, and state commits, then locates a valid recovery position after interruption.
Much of the original implementation was Python. TypeScript hosts, Pi integration, and the dashboard already existed. A Python call to make a decision, followed by a TS host consuming the result, was a natural starting point. As the system grew, defaults, state interpretation, ordering, and persistence could become distributed across both runtimes.
-
We wanted clear typed ownership of control-plane rules and contracts shared by the CLI, hosts, and App. The history developed through overlapping stages.
+
We wanted clear typed ownership of control-plane rules and contracts shared by the CLI, hosts, and App. The 103-day history developed through overlapping stages.
@@ -71,8 +71,8 @@
2. Reconstruct the history: the migration plan changed too
From mid-September
-
Song advances Semantics; storage work tackles checkpoints, deltas, writes, and replay cost
Migration history: overlapping transaction, authority/storage, and Semantics tracks Scroll on narrow screens; open the image for full size.
+
Converging transaction/task-loop, authority/storage, and Semantics/Agent-CLI tracks across the migration. Scroll on narrow screens; open the image for full size.
The original August proposal considered a read-first sequence and staged dual reads and writes. The accepted approach evolved toward Effect Programs first, then replacing complete transactions and deleting the old rules, with one production semantic owner. An early proposal's staging ideas should not be presented as the runtime architecture of 2.0.
Plans can change usefully. The important record is why the route changed, which slices cut over, and which remained references or candidates. The maintained TS RFC retains those checkpoints.
3. Start with the Effect Program: agree on what happened
@@ -131,7 +141,7 @@
4. Migrate a complete transaction: two calls can be right
Review caught an attractive but unsafe optimization: retaining only the final reduction. That saved a call, but malformed identity or journal state could be rejected only after an external provider had executed. The final design kept preflight. TS authorizes the exact pending effects; Python executes and checkpoints those effects before final reduction.
A correct check in the wrong position can fail to protect the user. Its order relative to an effect matters.
Later lease, Vision, monitor-poll, spend, and void slices followed the complete-transaction approach. Their migration economics must name the old rules removed, bridges added, happy and recovery crossings, scaffolding exit conditions, and correctness and latency through the full entrypoint. A net increase in code can be justified, but the extra code needs a purpose.
-
5. Shared authority: separate domain rules from storage primitives
+
5. Shared authority: connect distributed storage to Agent execution
In parallel, shared-authority work progressed from wchwawa's coordination core, aggregate/provider foundations, and recoverable references to the TS AuthorityStore in #3798.
Two responsibilities need distinct owners:
@@ -170,6 +180,13 @@
5. Shared authority: separate domain rules from storage primi
For example, a PostgreSQL connection may fail after COMMIT. The write may already be durable. A provider must distinguish missing, unavailable, failed, and ambiguous durability. A missing success response does not establish a missing commit. Reading the original operation's receipt is part of recovery. The PostgreSQL candidate also retained its separate deployment and adoption boundaries.
An earlier Python executor served reference and coverage purposes. The unused prototype was later deleted, while actual native File and SQLite paths became the corresponding qualification targets. Transitional references need an exit condition; they must not become a second production authority by accident.
+
When storage commits meet multi-hour Agent execution
+
Keeping pure storage commits separate from domain transition rules paid off once multi-hour Agents ran continuously across interrupted sessions:
+
+
Incarnation-scoped history fencing (#3464, #8975): When a recreated goal reuses a logical identifier on one append-only log, un-scoped acknowledgments from a retired incarnation can falsely satisfy an open review gate; binding commit proofs to an immutable (goal_id, instance_id) pair isolates incarnations cleanly.
+
Separating lease renewal from concurrent mutation (#5805, #9257, #9487): Multi-hour tasks routinely renew execution leases mid-turn (now defaulting to 3 hours). Renewing a lease under the same epoch and idempotency key advances the lease version without invalidating an already-admitted turn settlement (#9257), whereas an expired or replaced lease grants authority only for zero-spend administrative closeout—never for continuing stale execution (#9487).
+
One state contract from local SQLite to cloud checkpoints (#4121, #4408, #9380, #8759, #9223): Periodic 64-commit snapshots and index-exact delta replay scaled from local files and SQLite (#4121, #4408, #9380) to tenant-isolated PostgreSQL recovery past 20,000 commits (historical adapter, #8759), before #9223 extracted server-side cloud storage behind a clean Apache-2.0 AuthorityStore SPI.
+
6. After SQLite: retained history needs a cost model
LIHUA919's #4121 connected an optional SQLite provider to the existing TS authority contract. A transaction atomically commits the head, receipts, events, and outbox. Domain claim and lease semantics stay with their owner.
Adding the database left three distinct engineering problems.
@@ -178,8 +195,8 @@
6. After SQLite: retained history needs a cost model
Third, object ownership during replay affects correctness.#4931 reduced copying, sorting, and encoding of unchanged subtrees, and stopped materializing unused full projections for receipt lookup. It also prevented a caller's mutation of a returned projection from poisoning the next replay basis. Persisted proof bytes remained unchanged.
Some paths improved substantially. Large-state latency, scan cost, and memory still had gaps, and the PR retained the unmet targets. Those distinctions are more useful than a single performance-improvement label for every path.
In October, #5805 changed unconfigured new-Goal defaults to canonical SQLite and hard leases. Existing Goals, explicit choices, and old operation retries retained their own contracts. A new default, migration of existing data, and retirement of old writers happened at different stages.
-
In early November, #7834 extended sqlite_v0 to own archived Todo history (todo_archive): during todo complete and todo supersede transactions, terminal items beyond the bounded active window (N = 5) are atomically archived into SQLite, decoupling the active ACTIVE_GOAL_STATE.md projection size from total historical volume while preserving exact ID readback and receipt recovery.
-
7. Song's Semantics: connect definition, production, and interpretation
+
In early November, #7834 extended the SQLite store to own archived task history: when tasks complete or are atomically superseded (#5698), terminal items beyond a small active window (N = 5) move into SQLite archive tables, decoupling live status-view size from total historical volume while preserving exact ID lookup and receipt replay.
+
7. Song's Semantics and the Zero-Any kernel
Our new maintainer, Song (@songoow), initiated and implemented the Semantics RFC, registry, and commit-path checks in #4433, merged on September 15. He continued advancing convergence afterward. This track governs how concepts grow as the software changes.
Cross-language migration readily creates duplicate knowledge. The same state can appear in a Python Enum, Literal, TS as const, a presentation layer, and a conditional branch. Even if the strings match today, one location may gain a value or change its interpretation tomorrow.
The Semantics RFC checks traceable relationships: definition owner, value set, generated binding, producer, and interpreter or projection. Runtime rules remain with typed owners. The registry constrains and checks them without becoming another production rule source.
@@ -191,8 +208,90 @@
Counterexamples for the checker itself
#4687 retained useful review counterexamples and fixed three confidently wrong answers: missed global rebinding, mutation after dictionary spread treated as the old initializer, and a shadowed String mistaken for the built-in conversion.
False alarms and missed values have different consequences. A conservative candidate set may report an extra problem. Missing a real produced value can let an unregistered output through. Unsupported dynamic forms must preserve an unknown.
The checks also need scan-coverage floors, so scanning fewer files cannot make the result green. Retiring an expanding committed inventory in favor of on-demand full-tree computation did not remove that obligation. Gaps outside supported forms remain explicit, and the tracking issue remains part of the work.
-
Generation and checking reduce synchronization mistakes. Their assumptions, coverage, and error direction still require review.
-
8. Callers and defaults determine whether migration reaches users
+
From registered vocabularies to the Zero-AST-Any ratchet
+
Two commit-time AST verifiers turned Song's vocabulary design (#4433, #4494, #4687) from a review guideline into an equality-anchored pre-merge ratchet across Python and TypeScript:
+
+
Closed-set vocabulary verification (#4494, #8184): Full-tree AST scanning verifies all 34 registered vocabularies and 62 owner symbols with zero conflicting semantic values, pinning coverage floors by strict equality so constraints cannot silently loosen. For example, #8184 removed a local handoff-mode copy and enforced a typed subset rule: historical receipt decoding still recognizes "legacy" records, while fresh execution admission accepts only active claim and lease modes.
+
Zero-Any structural ratchets (#4178, #6396, #9282, #9433): Every one of the 43 tracked control-plane module baselines now pins dict[str, Any] counts to zero, preventing untyped dictionary merges from silently re-applying defaults or dropping fields across runtime boundaries.
+
+
Why eliminating dict[str, Any] surfaced latent concurrency and replay bugs
Replacing untyped dictionary carriers with explicit record types repeatedly exposed hidden state corruption during the refactor itself. Earlier in #4178, retiring serialize-and-reparse planning updates stopped partial edits from re-arming finished monitors; later, typing state-refresh records (#9418) exposed stale registry snapshots surviving replay across route switches, and replacing untyped hook dispatchers (#9433) uncovered and fixed seven real request-scope cache, symlink-ABA, and rollback-invalidation bugs in the same PR.
Traditional workflow DAGs collapse execution into a single node status (running → done). A general-purpose long-horizon task semantics engine cannot, because four commit truths are fundamentally distinct: Todo completion ≠ Turn settlement ≠ Peer delivery ≠ Goal acceptance. An in-flight progress writeback settles a Turn while the Todo stays open; a routine monitor observation closes at zero quota spend; a delivered peer message stays open while remaining work > 0; and Agent-declared "done" never satisfies Goal acceptance until external acceptance oracles validate cumulative outcome requirements.
+
Grounded in the Effect Interpreter formulation (#2905, GoalState => F[Decision]), LoopX models F not as one giant global enum, but as orthogonal product state machines (×)—Todo / Lineage × Claim / Lease × Scoped User Gate × Resume / Monitor × Vision / Replan × Quota / Scheduler Cadence—that compose in a single TypeScript transaction (#6874, #7298, #8211, #9176) without collapsing into global boolean locks or cross-turn deadlocks.
+
Six orthogonal primitive domains compose as product state machines over one TypeScript Effect & Task Semantics Kernel (GoalState => F[Decision]), backed by AuthorityStore and an append-only execution journal. Scroll on narrow screens; open the image for full size.
+
User Gate × Todo Fallback × Quota / Cadence
+
Naive agent frameworks treat human approval as a global boolean stop sign—either freezing the entire multi-hour run on a routine question or silently burying the gate. LoopX attaches a typed decision scope to each user gate (#4292), allowing the user channel and agent channel to intentionally diverge: the user channel surfaces the concrete owner decision at zero quota spend (paired with human-gate backoff), while the agent channel proves scope independence and executes safe scoped fallback work or settled monitor projections concurrently (#5277, #6327). Once answered, approval consumes only the covered decision scopes (#8844), while a causal reset token snaps the 8-tier adaptive scheduler cadence—spanning active work, peer-handoff wait, monitor watch, human-gate backoff, and derived terminal stop (#3058, #9459)—immediately back to active cadence whenever gate state or deadline buckets shift (#6787).
+
Blocker / Handoff Clearance × Atomic Supersede × Successor Replan
+
Long-horizon plans evolve mid-flight instead of following a frozen upfront DAG. Over a unified replan history reducer (#4902), atomic supersede links replacement tasks, retires predecessors, preserves decision and continuation lineage across archived history, and releases active leases in one commit (#4184, #5698). Crucially, when a blocking gate or peer handoff clears with neither an explicit successor nor a no-follow-up declaration, the kernel refuses to jump into blind execution or premature stop—routing into mandatory successor replan (#5831, #8896), while rollbacks append compensating events and spawn successors without erasing history.
Deferred work resumes from a single atomic full-graph readiness read (#6874) keyed by per-target SHA-256 wakeup generations (capped at <=128 targets per monitor and refusing overflow rather than evicting waiter baselines, #8231). Pure observation reducers keep counter updates, omission, and explicit clearing distinct (#4178, #4335, #9249), while dedicated non-LLM background watch lanes stay isolated from foreground chat queues, live LLM healthcheck blips, and concurrent replans at zero routine spend (#5450, #9155, #9320, #9474). Above local waits, goal-level Vision and non-scalar Yardstick reversal cues (#7298, #8385, #9165) evaluate strictly ahead of quiet states—rejecting delta-free acknowledgements as replan no-ops (#5633, #5646), persisting trigger facts on turn receipts so retiring a stalled monitor mid-replan never deadlocks (#8854), reconciling whole-second vs. microsecond ACK clocks (#8804), stripping stale preflight companions (#9411), and settling the active turn before derived goal stop (#8588).
Closure binds to external acceptance oracles and cumulative outcome requirements shared across every turn view (#6473, #6784, #9328), while mid-flight user corrections and live conversation steering reconcile directly with Goal direction without invalidating active leases (#6357, #8270). When multi-hour execution crosses a 3-hour lease TTL, lazy rebinding avoids premature faults (#9183) and settlement splits cleanly by successor authority: foreign takeover triggers administrative zero-spend closeout (#9304), whereas same-Agent higher-epoch continuation executes a fenced lease takeover verified against fresh task and acceptance digests (#4094, #9488).
+
+
+
+
Orthogonal composition (×)
+
Failure mode before convergence
+
TypeScript kernel invariant
+
Verified PRs
+
+
+
+
User Gate × Scoped Fallback × Quota
+
Global boolean locks froze entire multi-hour runs on local questions or over-cleared unrelated open gates
+
Zero-spend user channel ask diverges cleanly from parallel scoped fallback; approval consumes covered decision scopes only
9. Peer collaboration: why “returned” is not “finished”
+
When an Agent delegates a slice to a peer worker, message delivery is only transport—neither proof that the delegated work is finished nor proof that the requester has adopted it. Building on revision-guarded claims and handoffs (#3529, #3669, #4032, #4094), LoopX keeps transport delivery, inbox reply completion, per-update requester consumption, and goal acceptance separate:
1. Transport deliveryA locked four-phase send state machine confirms the message reached the inbox, ordered strictly so newer updates cannot overtake unverified sends.Transport status: delivered
+
2. Reply completion, consumption & acceptanceA request whose latest conclusion declares remaining work stays open in the inbox until the peer publishes a final conclusion with zero remaining work; turn-bound requester consumption only acknowledges an individual update so it stops re-alerting, while goal acceptance remains separate.Semantic state: open until final conclusion
+
+
Custody handoff (#4094, #9308): original authorship and historical review provenance remain immutable when active ownership transfers under a roster-fenced commit.
+
+
+
Hash-chained partial returns (#3669, #8139): Workers frequently return an interim milestone alongside explicit remaining work and its wakeup condition. Conclusion updates form an immutable hash-linked chain under a 20,000-character combined budget, while replay preserves historical wire formatting so post-crash digest verification never drifts (#8139).
+
Read-only review isolation and per-Agent fault isolation (#8329, #8853): Inspecting an interrupted peer return does not consume the writable owner's execution reservation before native effect proofs are re-verified (#8329). Likewise, per-Agent turn closeout filters settlement history by explicit Agent identity so a peer's unrecorded or malformed receipt cannot deadlock another Agent's turn, while global status views still surface cross-Agent health (#8853).
+
Provenance-preserving custody transfer (#4032, #9308): When a collaborating peer retires, separating immutable authorship and per-review attribution from active ownership lets a local owner adopt open outcome responsibilities under a roster-version fence without rewriting who produced earlier evidence (#9308).
+
+
+
10. Callers and defaults determine whether migration reaches users
Complete transactions also need callers to express intent accurately. In #4178, a blank note means no update; an explicit empty list or false is interpreted by its field’s contract. These values cannot all be discarded as absent, or all treated as clearing. Dry-run must model that intent accurately. An unavailable selected provider must not trigger fallback elsewhere. #4279 later converged read classification and projection-delivery semantics. Some Python read ownership was deliberately retained. Clear ownership matters more than creating a second interpretation to pursue language purity.
Defaults expose similar distinctions. Current priority regressions protect these cases:
@@ -230,7 +329,7 @@
8. Callers and defaults determine whether migration reaches u
The File and SQLite regressions protect these cases. Applying new defaults after original-receipt recovery prevents an upgrade from making new decisions for history.
The closing review found another caller gap. The TS core passed direct tests for metadata-only completion repair. The normal Python producer automatically attached defaults such as completion policy and auto-acquire. The core interpreted them as fresh work mixed into a historical repair. The actual File and SQLite entrypoints failed in both dry-run and execution. The public counterexample records this.
That recovery gap also existed in the baseline, so it cannot all be attributed to the final contributor. The repair had to reach the normal producer while continuing to reject real changes to text, continuation, ownership, or validation. A correctly constructed typed request proves only that the inner boundary can handle it.
-
9. Recover the original result while protecting current authority
+
11. Recover the original result while protecting current authority
Recovery can confuse two points in time: whether the original operation was valid, and whether today's executor may continue changing state.
Suppose a team-plan committed but its response was lost. After an upgrade, the caller retries the same operation ID under stricter admission rules. Rejecting it as fresh work first can hide the original success. A closing recovery review caught that problem.
Separating original-receipt recovery from current execution authority Scroll on narrow screens; open the image for full size.
@@ -239,25 +338,29 @@
9. Recover the original result while protecting current autho
Types express the distinction too. Historical decoding still recognizes legacy; current fresh-execution handoff configuration accepts soft_claim and hard_lease. Reading an old record, recovering an original operation, and authorizing current execution each have independent conditions.
Atomic CLI self-claim in 2.2.0 (#7510, #7793) follows the same rule: one command atomically claims the task and acquires a hard_lease grant, returning progress and completion commands bound to the active lease_epoch, while replaying an old claim recovers only its original receipt without extending an expired generation.
An internal receipt also has a limited scope. If a remote external effect lacks a verifiable idempotent identity and readback, settling once in the control plane cannot establish that the remote effect executed exactly once. Uncertainty belongs at the boundary where it actually occurs.
-
10. CLI output budgets: protect decision semantics before compression
-
CLI language participates in an agent's decisions. This engineering constraint predates the final writer retirement and remained a validation boundary during migration.
12. Designing a CLI for Agents, not just shell users
+
A human shell CLI assumes an operator with out-of-band working memory: someone who remembers passing --limit 5, visually discounts a stale cache, avoids mutating state while inspecting, and pays almost nothing per printed byte. An LLM Agent has no implicit memory across compaction boundaries, interprets output literally, retries aggressively after timeouts, and pays in both context window and prefix KV cache for every stdout byte.
+
LoopX’s Agent-facing CLI turns shell invocations into a bounded, prefix-KV-preserving, CAS-fenced state-machine loop. Scroll on narrow screens; open the image for full size.
+
One decision source and runnable recovery commands
+
When check, plan, and execution commands assemble state independently, an Agent gets admitted at the start of a turn only to be rejected at settlement—triggering flag-guessing retry loops. Converging every turn entrypoint onto one shared decision snapshot (#4496) and moving primary-action selection into TypeScript (#7462, shrinking a 22,000-row backlog RPC payload from 2.35 MB to 959 bytes with 182-case byte parity) eliminated decision-to-settlement drift.
+
When an operation cannot proceed, the CLI returns copy-runnable recovery commands instead of prose tracebacks: separating an unbound turn receipt from a true version conflict and emitting exact prior-turn closeout commands (#4595, #4893, #6212), and distinguishing logical write-scope waits from directory collisions that an isolated git worktree can actually resolve (#9293).
+
Separating display truncation from task completion
+
After five incidents in 47 days (#5087) where an advisory Agent answered from stale or partial sources while health checks reported ok: true, #5085 introduced a kernel-sealed read envelope, extended to turn admission (#6679) and single-transaction task reads (#6874). Cached responses advance serving time without forging observation time, and task completeness is computed over the entire matching population before --limit slicing. Display caps set truncated: true without false alarms, whereas unreadable or omitted work forces complete: false with an explicit alert—preventing an Agent from ever mistaking top-N truncation for finished work.
+
Output budgets and prefix-KV cache economics
+
Since #2144, an interface budget contract and base/head differential verifiers (#6123, #9103) gate stdout bytes, line counts, per-task growth slopes, JSON key sets, and action digests across crowded multi-agent fixtures—for instance, stripping JSON indentation cut a 36-task output by ~18% (48,418 to 39,726 chars) with identical decoded semantics, while dropping an authority clause to pass a byte cap is forbidden. Three mechanisms extend that budget across multi-turn sessions:
-
Actually printed stdout, alongside the in-memory payload.
-
Distinct character, UTF-8 byte, line, and JSON-structure costs.
-
Base and head on the same fixture, plus growth as Todos and history accumulate.
-
Required fields, action signatures, semantic anchors, and explicit detail paths.
+
Cross-turn subtree deduplication (#7196, #8100, #8523): Unchanged >=1 KiB context subtrees deduplicate across turns via SHA-256 digests, and appended task notes transmit only new UTF-8 suffixes (#8523) while keeping live revisions and execution controls inline.
+
Suffix-only receipt folding that preserves prefix KV (#9213): Sliding-window or mid-history summarization rewrites early tokens and invalidates the model's prefix KV cache across the entire suffix. Instead, LoopX anchors the prefix digest when a task starts; once the task settles cleanly, it folds only the completed suffix into a compact receipt preserving failure facts and open obligations—verifying untouched prefix bytes, intact tool-call pairing, and a net token savings floor before swapping, or keeping raw history atomically.
+
Single-read status convergence (#7755, #9392): Decision paths skip UI-only log scans (#7755) and collapse N+1 deferred-task paging into one atomic task read with pre/post revision checks against mid-read races (#9392).
-
Presentation reduction belongs after complete planning. Information omitted from display differs from information never read. Projection envelopes likewise separate observation time, service time, source coverage, and completeness. Serving a cached result again must not make its facts newer.
-
Natural language requires clause-level review: obligations, ordering, evidence provenance, authority qualifiers, scope, continuation, and stop conditions. Removing a phrase such as “only when the original proof is valid” can change behavior even when every field remains.
-
One bounded example removed JSON indentation and separator whitespace. On the same historical fixture of 36 Todos and 12 runs, output fell from 48,418 to 39,726 characters, about 18%, with the complete decoded payload unchanged. This establishes a presentation-size change. Tokens, cost, and agent outcomes need separate measurements.
-
The budget protects an interface the consumer can use. Valuable guidance may justify increasing it with matched evidence. Dropping decision conditions to make a size test green damages the interface.
+
Side-effect-free previews and CAS + idempotent replay
+
Because Agents preview guards before acting and retry after dropped connections, inspection and mutation must never blur. Read-only --dry-run previews fence off all notification hooks, rollout logs, and cache writes (#8685), while request-scoped snapshots avoid wall-clock TTL staleness (#4694, #6992, #9433). Across mutating commands—single-attempt command receipts (#4286), task handoffs (--expected-revision + --operation-id, #4094), goal acceptance (--expected-provider-revision + --operation-id, #7088), and task leases (--expected-version + --idempotency-key, where the key identifies the lease generation across renewals, #8310)—explicit CAS flags reject concurrent stale bases while resending the exact original request (including its original CAS version and parameters) replays the committed receipt without executing twice.
A recoverable file is not the model’s memory
The same recovery distinction appears in context delivery: an old receipt cannot renew a lease, and a complete baseline on disk cannot prove that the model has read and understood its constraints.
The native file-delta path in 2.2.0 separates those facts. The codec verifies complete files, versions and scope within a valid cycle and reconstructs the current structure exactly. The Agent progressively reads the current full view for the intent, requirements and evidence its decision needs. Even a delta permits direct selection of current facts without first draining the old baseline. Compaction during unfinished work requires recovering missing facts while preserving the original task and settlement identity.
This makes file reconstruction and model knowledge separately inspectable. The worked voice-task example explains JSON Pointers and the default file path. A working file/reader mechanism still needs evaluation against actual research outcomes.
-
11. Final retirement: preserve credit and account for the deletions
+
13. Final retirement: preserve credit and account for the deletions
Late-September work had already removed an unused authority prototype and the experimental Todo event overlay, dual-writer, and backfill. Old sources containing data received explicit preservation or refusal handling. This did not remove all event logging or the new authority's atomic events and receipts.
October work further isolated ordinary Markdown writers and validated real subsequent writes without the old modules. Concentrated deletion became possible after consumer routes and replacement paths were connected.
Duang777 led #6396. Song and maintainer-side agents continued recovery, producer, and integration work along the original branch, preserving contribution history. This three-developer-and-agent relay was the closing phase of the two-month program.
@@ -297,9 +400,9 @@
11. Final retirement: preserve credit and account for the de
Many removed lines were old tests. Deleted test lines do not establish product capability; the important question is whether current entrypoints and independent counterexamples still protect the intended invariants. These counts describe the closing scope. They do not validate the whole migration.
-
12. Core control-plane statistics across the full period
+
14. Core control-plane statistics: 62-day cutover and 103-day convergence
The reproducible scope here is loopx/control_plane/**. App, benchmark, documentation, and test-suite directories outside it do not enter the core code counts. Internal testing/support tools inside this directory remain included.
-
The baseline is d1fe059, immediately before the formal TS RFC. The endpoint is the October 16 snapshot 488e443. The formal RFC to that endpoint spans roughly 62 days, covering 63 calendar dates; 62 of those dates contain a core mainline commit. The source comparison fixes both versions.
+
The initial 2.0 cutover baseline is d1fe059, immediately before the formal TS RFC, and its first endpoint is the October 16 snapshot 488e443 (~62 days, covering 63 calendar dates; 62 of those dates contain a core mainline commit; 62-day source comparison). The tables and charts directly below preserve that frozen October 16 snapshot unchanged, followed by the reproducible 103-day convergence snapshot through November 27 (953377fd7b).
Engineering activity over the whole period
@@ -449,7 +552,105 @@
How the work continued over time
Reproduce the inventory
Public-safe PR records, core mainline commits, and metric JSON accompany the draft. The PR cohort joins mainline commits touching the directory to GitHub merge metadata, counting each PR once. Two mainline commits have no verifiable merged-PR association; their commits and churn remain included.
The research enumerated public PRs, then checked against mainline Git history. Direct reads supplemented 14 PR metadata records missed by search indexing. Source snapshots and processing scripts remain in the research materials. This inventory does not estimate tokens, model cost, CI compute, engineer-hours, or benchmark gains.
-
13. Community contributions and the next step
+
103-day convergence snapshot (August 15 – November 27, 2026)
+
Re-running the exact method_version: 1 Git stock and first-parent --no-renames churn formulas from d1fe05932a through 953377fd7b (103-day source comparison) captures the post-cutover unified turn loop, task-semantics, Agent-CLI, zero-Any, and cloud storage SPI waves using strictly Git-reproducible counts (the committed core-pr-cohort.csv and core-statistics.json artifacts remain frozen at the October 16 API snapshot):
+
+
+
+
Metric
+
Baseline (d1fe05932a, Aug 15)
+
2.0 Snapshot (488e4438e0, Oct 16)
+
Post-2.0 Delta (Oct 16–Nov 27)
+
Current Snapshot (953377fd7b, Nov 27)
+
+
+
+
Elapsed span (active / calendar dates)
+
0 days
+
62 days (62 / 63)
+
+41.6 days (+42 active)
+
103 days (104 / 105)
+
+
+
Whole-repo 1st-parent mainline commits (at Nov 27)
+
—
+
—
+
—
+
9,024 (7,741 with #N in subject)
+
+
+
Whole-repo 1st-parent commits since Aug 15
+
0
+
3,003
+
+2,613
+
5,616
+
+
+
loopx/control_plane/ 1st-parent landings (since Aug 15)
+
0
+
1,144
+
+1,051
+
2,195 (2,759 all-time)
+
+
+
loopx/control_plane/ unique #N PRs in Git subjects (since Aug 15)
Cumulative Python churn (--no-renames, Aug 15–end)
+
—
+
+120,899 / −59,001
+
+68,061 / −40,800
+
+188,960 / −99,801 (net +89,159)
+
+
+
Immediately before #9223 extracted server-side PostgreSQL storage and the remote authority service behind the cloud SPI, core TypeScript stock stood at 435 files / 127,466 LOC (42.89%). Both endpoint-net and source-stock accounting identities hold identically across the 103-day span.
+
15. Community contributions and the next step
Multiple contributors advanced this program. Representative work is listed by its concrete boundary so readers can follow the history.
到 11 月初的 #7834,sqlite_v0 进一步接管了已完成与已替代 Todo 的归档权威(todo_archive 表):在 todo complete 与 todo supersede 提交事务内自动将超出有界窗口(最近 N = 5 条终态项)的历史项迁入 SQLite 归档,使活跃 ACTIVE_GOAL_STATE.md 投影体积与完整历史解耦,同时保留按 ID 精确回读与恢复回执的能力。
-
7. Song 的 Semantics:定义、生产、解释要接起来
+
到 11 月初的 #7834,SQLite 存储进一步接管了终态任务的归档权威:当任务完成或被单事务替代(#5698)时,超出活跃窗口(最近 N = 5 条终态项)的历史记录在同一次事务内迁入归档表,使实时状态视图体积与总历史解耦,同时保留按 ID 精确回读与回执重放。