Skip to content

Prototype: declarative TrackingReconcile pure core - #188

Draft
kyleve wants to merge 1 commit into
cursor/tla-protocol-expansionfrom
cursor/prototype-tracking-reconcile-pure-core
Draft

Prototype: declarative TrackingReconcile pure core#188
kyleve wants to merge 1 commit into
cursor/tla-protocol-expansionfrom
cursor/prototype-tracking-reconcile-pure-core

Conversation

@kyleve

@kyleve kyleve commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Prototype (draft) — stacked on #184

Exploratory follow-on to TLA+ protocol expansion for Where. Not merge-ready — validates whether extracting the tracking-toggle protocol into pure WhereCore functions makes the spec mapping easier to digest.

Hypothesis

The interesting parts of TrackingReconciliation are declarative (effective = desired ∧ auth, publish-at-quiescence, preempt-on-stop). They should live in testable pure functions, with async orchestration calling through.

What this adds

  • TrackingReconcile — pure effective/publish/preempt decisions, doc-linked to TLA properties
  • LocationIngestorStart — post-locationSource.start() branch
  • Unit tests mirroring Coalesced.cfg scenarios (no Task / ingestor fakes)
  • Thin wiring in WhereSession.trackingWorkerLoop and LocationIngestor.start()

Non-goals

  • Generic coalescing worker abstraction
  • Launch/handoff/scope protocols
  • Full migration of every tracking entry point beyond current worker

Verification

  • TrackingReconcileTests, LocationIngestorStartDecisionTests
  • WhereSessionTrackingTests (including newerStopWinsOverInFlightStart)

Next step if this lands

Consider whether a shared coalescing-worker helper pulls its weight once a second protocol wants the same loop.

Open in Web Open in Cursor 

Extract tracking-toggle decision logic into WhereCore pure functions
mirroring TrackingReconciliation TLA properties, wire WhereSession and
LocationIngestor.start() to call them. Exploratory follow-on to #184.

Co-authored-by: Cursor <cursoragent@cursor.com>
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