Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
3c23613 to
606d131
Compare
|
Codex review: ready, awaiting a maintainer decision. What this changesThis PR connects device location updates to user-armed location reminders and immediate APNs notifications. Example: An iPhone leaves a user-armed 200-meter home fence.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⏳ Ready, awaiting maintainer decision Keep open: this PR supplies a missing location-event consumer and demonstrated arrival/departure notifications; its new contracts still need an owner decision, and product CI has not completed for the reviewed head. Priority: P2 Decision needed
Before mergeNone. Findings
Tests
Agent review detailsHow this fits togetherPaired devices send location fixes through Gateway node events; the plugin registry delivers validated fixes to memory-core, whose existing standing-intent worker records crossings and returns reminders for APNs delivery and passive session context. flowchart LR
A[Paired iPhone] --> B[Gateway payload validation]
B --> C[Active plugin consumer]
C --> D[Standing intent worker]
D --> E[Agent database]
D --> F[APNs notification]
D --> G[Passive session record]
Technical reviewBest possible solution: Retain the validated plugin seam and existing standing-intent owner, with an explicit owner-approved scope for location consumption, notification delivery, and SQLite-only evaluation. Do we have a high-confidence way to reproduce the issue? Current-main source connects the native location.update producer to an unsupported dispatcher default, corroborated by two users in #163480; no target code was executed during this review. Is this the best way to solve the issue? Using the plugin registry and existing standing-intent worker is coherent and avoids autonomous model turns; the unresolved question is whether the proposed reminder, push, persistence, and engine-support contracts are the intended first stage. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eedb353df007. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1281, Tests +2266, Docs +24, Config +4, Other +39. Total +3614 across 53 files. Added test files: 9. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (9 earlier review cycles; latest 8 shown)
Reviewed November 19, 2026, 3:12 PM ET / 20:12 UTC (Revision 10). |
218c210 to
f2bf15c
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…ings iOS nodes emit `location.update` on significant location changes, but the gateway dropped them as `unsupported_event` (openclaw#163480). This makes the event consumable and closes the chain: fix -> significance detection -> event-driven APNs notification, with no heartbeat, no session turn, and no coordinates in logs. Gateway and plugin surface - Validate `location.update` against a closed payload schema (lat, lon, accuracyMeters, source) and dispatch it to the node-event consumer registry; drop with `no_consumer` when nothing subscribes, and isolate consumer failures so one consumer cannot break the event path. - `registerNodeEventConsumer` is a plugin-API surface now; the gateway reads the active plugin registry at dispatch time rather than a process-global map, so it rides plugin reload and rollback. - The dispatch log line records event name and node id only. Significance - Armed location intents evaluate each fix against fence geometry with an accuracy-resolved haversine decision and a baseline-first state machine. - Enter fences fire on the first inside fix when armed from afar, instead of requiring a 0->1 crossing that can never happen when the fence was armed while already outside. - Crossings are direction-gated. `decideLocationFire` previously gated only one side of each transition, so an exit fence could fire on an arrival fix and an enter fence on a departure fix. Both were observed on real drives: a Goeteborg arrival fence fired on the user's morning departure, and a home exit fence fired while the user was arriving home. Two regression tests now cover the directions the existing test's comment promised but never asserted. Delivery - A fire pushes an APNs alert at fire time through the new `sendNodeIntentAlert` plugin-SDK surface (category `openclaw.location-intent`), so delivery no longer waits for the target session's next turn. The routed system-event enqueue stays as an in-session record; push failures are logged and never re-arm the one-shot. Structure - `location.update` handling and the chat subscribe/unsubscribe arm move to sibling modules (`server-node-events-location.ts`, `server-node-events-chat-subscription.ts`) alongside the existing `server-node-events-*.ts` handlers, keeping the dispatcher within its line-cap ratchet. Privacy - Fixes are evaluated only against intents the user explicitly armed and are then discarded: no coordinates reach logs, prompts, system events, or a third-party service. A fire pushes a notification and enqueues a passive record; it never starts an agent turn. Verified by a live drive with three fences (home exit, and two 1 km arrival fences): the exit fence baselined inside without firing, then fired once at 512 m out; both arrival fences fired on genuine crossings; zero evaluation errors. Consumer tests assert single push per fire, fire-on-first-inside-fix, no re-arm on push failure, and both direction gates.
…admission Two P1 findings from the automated review, both verified against the code before fixing: 1. The queued session record embedded the exact fix coordinates. That record drains into ordinary reply preparation on the target session's next turn, so a fired reminder followed by a normal conversation would send precise device location to the configured model — beyond the purpose the user consented to when arming the fence, and contradicting the PR's own evaluate-and-discard boundary. The record now carries the intent description only; a regression assert pins that no coordinate-like digits appear in the queued text. 2. Existing agent databases were rejected before the location columns could be added. The four additive standing_intents columns were absent from the schema-compatibility allowlist, so admission refused a pre-location database outright; and even past admission, both the canonical-section exec and the migration's canonical index repair created idx_standing_intents_location before trigger_kind existed, failing with "no such column" on exactly the databases the repair exists to serve. The fix follows the existing additive-column pattern: the columns join allowedMissingColumns (admission lets the pre-location database through), the index joins allowedMissingIndexes (lazy ensure repairs it), a minimal ensureStandingIntentsLocationColumns runs inside mutate() before any canonical repair so columns exist before the index, and the migration witness excludes the columns and the migration-created index from its crossing comparison — the same contracts the session additive columns and their repaired indexes already use. Verified: the previously failing schema-20 and schema-24 migration suites now pass (21/21), and the consumer, intents, and admission suites stay green (53/53 across the four affected files). The rig's own drive database (through which all fires were validated) never exercised these paths because it was created after the columns existed — that is precisely the gap the review caught.
…mports
The plugin contract boundary invariant ("keeps core tests off bundled
extension deep imports") rejects core tests that import anything under
extensions/ other than a plugin's public api.js surface. The gateway
location-update e2e test deep-imported memory-core internals
(location-intent-consumer.js, standing-intents.js) to arm an intent and
observe the routed wake, so test:contracts failed on the boundary check.
Restructure the test to verify what its position in src/gateway/ actually
owns: the gateway dispatch contract over a real paired-node WebSocket.
A recording consumer stub registers through the same core plugin-registry
surfaces the gateway reads at dispatch time, and the test now proves the
full boundary behavior end to end — a validated fix reaches the registered
consumer exactly once with the typed payload and sender node id, distinct
fixes are both delivered without gateway-side dedupe or transformation, a
malformed payload is rejected before any consumer runs, and retiring the
registry generation stops dispatch with no_consumer.
The removed coverage — the fire-to-wake chain with the real memory-core
consumer — is not lost: it is the exact subject of the extension's own
integration suites (location-intent-consumer.test.ts,
location-intents.test.ts), which own those internals and remain green.
…ation schema The automated review asked for exactly this evidence: no latest-stable upgrade run covered the changed standing_intents fields. Freeze the v2026.11.5 release's shipped agent schema (schema version 38, with the pre-location keywords-only standing_intents table) as a fixture, migrate a database seeded with a live keyword-intent row to the current schema, and prove: - the migration accepts the latest-stable database and advances it, - the four additive location columns and idx_standing_intents_location arrive, - the existing intent row survives untouched with absent-feature defaults, - a location intent in the stored kernel format is accepted by the migrated table's constraints. Fence evaluation and delivery on the post-migration shape are covered by memory-core's own suites; the schema they run against is identical to the post-migration shape proven here. The new test registers in the infra project (it needs the host-owned SQLite broker that the maintenance lease acquires), and the added test lines carry a justified allocation record per the test-lines ratchet.
Three findings from the automated review, each verified before fixing:
PostgreSQL: location-intent creation is rejected with an actionable error
("location-triggered standing intents are not supported on PostgreSQL
agents; this agent needs SQLite storage before fences can be armed").
Previously the tool reported the fence as armed while the fire path
silently discarded every fix, so the reminder could never fire. Keyword
intents keep working: their turn matching is engine-neutral. Regression
test in standing-intents.postgres.test.ts asserts the rejection and that
keyword intents still arm and match.
Fix-dropping: the consumer's in-flight set was keyed only by nodeId, so a
fix arriving mid-evaluation was discarded — an exit crossing that lands
while the inside baseline is still evaluating loses the reminder, and a
later return inside masks it. Replaced with an ordered per-node queue:
identical consecutive fixes coalesce, distinct fixes are preserved and
drained in order, and each fix is fully evaluated before the next.
Regression test drives back-to-back synchronous handle() calls so the
mid-evaluation arrival is deterministic.
SDK docs: the new public contracts are documented per the plugin SDK's
documentation requirement. registerNodeEventConsumer is documented in
docs/plugins/sdk-runtime.md (validated payload shape, single-consumer
registration, registry-generation retirement, no_consumer drop, handler
error isolation), and node-push-runtime's sendNodeIntentAlert in
docs/plugins/sdk-subpaths.md (payload, UTF-16-safe truncation budget,
result contract, stale-registration clearing, no-retry ownership).
The allocation record is extended to cover the two regression tests.
…n columns The review found that opening an existing PostgreSQL agent database after this change failed schema admission even for keyword-only users: the four location columns, their checks, and the new index changed the canonical PostgreSQL DDL, but no version bump or migration added them, so the DDL hash check at verifyPostgresSchemaDefinition threw a schema-drift error — and createAgentPostgresMigrations derived every historical definition from that same runtime DDL, silently making old versions inherit the new fields. Fix, following the existing versioned-migration pattern (schema 43 as the template): - Agent schema advances 43 -> 44 on both engines through the versioned owners. Schema 43 stays a supported witness version, and the backup descriptor's source list gains 43. - New AGENT_LOCATION_INTENTS_POSTGRES_MIGRATION_SQL adds the columns, NOT VALID checks (existing rows never violate: the columns are all-new), and the index to an existing standing_intents table in one transaction; fresh databases get them from the canonical DDL. - The PostgreSQL migration chain derives v43 as the pre-location shape (withoutAgentPostgresLocationIntents): the v43 entry migrates INTO that historical shape (fixing the inherited-fields drift), and the new v44 entry migrates v43 -> v44. Older derivations inherit it transitively. - SQLite mirrors through its existing additive machinery: the versioned cross-version step runs migrateAgentLocationIntentsInTransaction, which also converges pre-44 tables on every early-return migration branch, so no SQLite admission or index-repair path sees missing columns. - The now-duplicated ensureStandingIntentsLocationColumns is consolidated into migrateAgentLocationIntentsInTransaction (same body, one owner). Verified: the v2026.11.5 latest-stable upgrade test, the schema-20 and schema-24 migration suites, and the location kernel suites all pass (55/55); the SQLite catalog regenerates from source with zero drift.
…fication passes The review found the remaining upgrade failure: the three CHECK constraints were created NOT VALID, and PostgreSQL's pg_get_constraintdef records that suffix, so verifyAndRecordPostgresSchema — which compares exact constraint definitions against the canonical DDL's validated checks — reported "PostgreSQL schema drift detected against generated DDL" when the migration adapter validated the destination. The optimization was unnecessary anyway: ALTER TABLE ADD COLUMN fills existing rows with NULL, which satisfies each constraint's IS NULL guard trivially, so validation is instant. Create all three constraints validated so the migrated destination's constraint definitions are byte-identical to the canonical DDL the fingerprint comparison expects.
… index The review's remaining P1: the migration's CREATE INDEX used PostgreSQL's default ASC NULLS LAST for the two nullable keys, but the canonical DDL explicitly declares NULLS FIRST. pg_get_indexdef records the difference, so verifyAndRecordPostgresSchema rejected the upgraded destination with "PostgreSQL schema drift detected against generated DDL" even after the NOT VALID repair — affecting keyword-only users too. Declare NULLS FIRST on both nullable keys so the migrated index definition is byte-identical to the canonical DDL the fingerprint comparison expects.
…eal adapter Evidence for the review's before-merge items: an existing PostgreSQL agent store (built from the v2026.11.5 shipped schema, schema 43, pre-location) migrates to schema 44 through the engine's own reopen-driven migration, and verifyAndRecordPostgresSchema validates the destination — the exact step the review's P1 said failed. The test seeds a live keyword standing-intent row, runs the upgrade, and proves: the four additive location columns and idx_standing_intents_location (NULLS FIRST, matching canonical DDL) arrive; the existing row survives untouched with absent-feature defaults; a location intent in the stored kernel format is accepted by the migrated constraints; and the existing keyword intent stays queryable. The evidence namespace is dropped afterwards so the server stays clean. Registered in the infra project (needs the host-owned SQLite broker). The connection arrives via OPENCLAW_PG_EVIDENCE_CONNECTION or the workspace connection file (never committed); the test skips without either. Also remove the manual migration.sql application from my earlier draft: the drift error it produced was a test artifact (schema advanced while schema_meta still recorded v43), not a product defect — the engine's reopen-driven migration is the code path a real upgrade takes.
…n, evidence privacy, budget, and the shipped-upgrade chain Four findings from the latest review, each verified against the live PostgreSQL server: 1. Async consumer rejections escaped isolation. A consumer declared `async` is assignable to the void callback, but the dispatcher discarded its promise, so a rejection reached the process-level unhandled-rejection handler (which exits the Gateway). The consumer type now allows `void | Promise<void>`, and the dispatcher observes the returned promise: a rejection is caught and logged, and the event still acks. A regression test drives an async consumer that rejects, asserts dispatch success, and asserts the logged warning — it fails without the fix. 2. Private host details in the evidence test. The committed header referenced a private server address and the connection resolution fell back to a named personal home directory. Removed: the connection now arrives only via the OPENCLAW_PG_EVIDENCE_CONNECTION environment variable (matching the workboard connection convention), the debug log block and unused fs/os imports are gone, and the test skips without the env var — no committed private details. 3. Test-line budget. The evidence test (258 lines) pushed introduced growth past the recorded allocation. The allocation record now covers the full growth (954) with per-block justification. 4. The evidence predecessor was v43, but the shipped v2026.11.5 release carries schema 38. The test now builds the predecessor from the v39 migration step's fromSchema — the real release shape — so the upgrade run exercises the complete shipped 38 -> 44 migration chain through the engine. Verified against the live PostgreSQL 16 server: destination admission succeeds (version 44), the four location columns and the NULLS FIRST index arrive, the existing keyword reminder survives usable, and a location intent is accepted by the migrated constraints.
1c0295e to
8b19bac
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Resolves #163480
What Problem This Solves
iOS nodes emit
location.updateevents on significant location changes, butthe gateway drops them as
unsupported_event— verified by two independentusers on current builds (#163480). This PR makes the event consumable and
closes the full chain: fix → significance detection → event-driven APNs
notification, with no heartbeat, no session turn, and no coordinates in logs.
location.updateis validated, dispatched to the node-eventconsumer registry, and instrumented at the dispatch boundary. The response
ack path no longer crashes (
logGateway.info→warn— every event ackpreviously failed with
UNAVAILABLEafter dispatch).registerNodeEventConsumer— a plugin-API subscriptionhook for gateway-validated node events (currently allowlisted to
location.update). This is the "plugin hook" requested in [Feature]: iOS app should send location updates in the background by itself (no location.update seen while travelling) #163480.fence geometry. Enter fences fire on the first inside fix when armed from
afar (previously required a 0→1 crossing that never happened when the
intent was armed while already outside); stale-facts-cache reads no longer
mask fires.
arrival fix, and an enter fence no longer fires on a departure fix — see
below. This was found during live verification, not by the test suite.
sendNodeIntentAlert, categoryopenclaw.location-intent) — delivery nolonger waits for the target session's next turn. The routed system-event
enqueue is retained as an in-session record; push failures are logged and
never re-arm the one-shot.
Direction-gating bug (found and fixed during live verification)
decideLocationFiregated only one side of each transition on direction.The inside branch fired for
previous === 0regardless of direction, and theoutside branch fired for
previous === 1regardless of direction. Consequencesobserved on real drives:
morning departure from inside the fence.
arriving home (the fix that also correctly fired the Göteborg arrival
fence in the same second).
Both branches are now direction-gated:
enterfires only on 0→1 (includingthe first inside fix when armed from afar),
exitfires only on 1→0. Eachbranch carries the live-fire evidence in a comment, and two regression tests
cover both directions — the existing test's comment promised this behavior but
never asserted it, which is how the bug survived review.
Evidence
2026-11-14, live drive: Skene fence (1.5 km, enter) fired on a real
outside→inside crossing from an unsolicited background fix; the APNs alert
appeared on the owner's phone (screenshot-timestamped, matching the log
fire and the intent description text). Exactly one fire, no duplicates.
2026-11-16: home-exit fence (200 m) fired on a real departure; the
ack-crash fix verified live (three fixes traced, zero
UNAVAILABLE).2026-11-17, full drive test (3/3 fences, 0 evaluation errors):
All three notifications owner-confirmed on the phone (screenshots matching
the log timestamps). The exit fence baseline-then-fire sequence is the live
proof of the direction-gate fix; the destination fire (52 m from a decoded
Plus code) validates arrival geometry end to end.
Consumer tests assert: single push per fire, fire-on-first-inside-fix,
no re-arm on push failure, and both direction gates.
2026-11-18, latest-stable upgrade proof: the review asked for upgrade
evidence covering the changed
standing_intentsfields. The v2026.11.5release's shipped agent schema (schema version 38, pre-location
standing_intents) is frozen as a fixture; a database built from itmigrates to the current schema, the four additive location columns and
idx_standing_intents_locationarrive, an existing keyword-intent rowsurvives untouched with absent-feature defaults, and a location intent in
the stored kernel format is accepted by the migrated table's constraints.
Covered by
openclaw-agent-latest-stable-upgrade.test.ts; fenceevaluation and delivery on the identical post-migration shape are covered
by memory-core's suites. The added test lines carry a justified allocation
record (
config/test-lines-allocations/200867-location-update-consumer.txt).2026-11-18, PostgreSQL store upgrade (review P1): opening an existing
PostgreSQL agent database previously failed schema admission after this
change — the location columns changed the canonical DDL with no version
bump or migration, so
verifyPostgresSchemaDefinitionthrew aschema-drift error, and the migration derivator made every historical
version inherit the new fields. The agent schema now advances 43 → 44 on
both engines through the existing versioned-migration owners: a new
PostgreSQL migration adds the columns, NOT VALID checks (all-new columns
cannot be violated by existing rows), and the index in one transaction;
the v43 migration entry now targets the pre-location historical shape so
old versions keep their real catalog; SQLite converges through its
existing additive machinery on every migration branch. Schema 43 remains
a supported witness version. Verified by the same suites as above —
55/55 across migration, latest-stable, and location kernel tests.
2026-11-19, shipped PostgreSQL live-server upgrade (v2026.11.5,
schema 38 -> current, the complete migration chain): the prior entry
showed only the final v43 -> v44 hop. The test now builds the
predecessor from the v39 migration step's
fromSchema— the schema-38shape the v2026.11.5 release actually ships — so reopening at the
current schema runs the full shipped 38 -> 44 chain through the engine's
own reopen-driven migration on a live PostgreSQL 16 server. Terminal
output (redacted; connection string and namespace elided):
A keyword reminder armed on a real schema-38 v2026.11.5 store survives
the complete shipped upgrade chain usable, destination admission
validates the migrated schema against the canonical DDL, and a location
intent is accepted by the migrated constraints — the shipped-upgrade
evidence and the data-model compatibility proof for both remaining
before-merge items. Reproducible as
src/state/openclaw-agent-v44-postgres-upgrade.evidence.test.ts(infraproject) against any PostgreSQL 16 server; the connection arrives only
via the OPENCLAW_PG_EVIDENCE_CONNECTION environment variable (never
committed) and the test skips without it.
Known limitation: fence radius cannot buy lead time at driving speed
Reported by the owner on the 2026-11-17 drive: the store fence fired after
he had passed the store. Measured along-track against the store→destination
leg, the firing fix was +404 m past the store (137 m cross-track, 427 m
straight-line — i.e. comfortably inside the 1 km circle, 573 m from the
edge).
The cause is fix cadence, not fence logic:
significant-change cadence
fix lands inside is only ~47%, i.e. whether it fires before or after the POI
is close to a coin flip
Enlarging the radius does not fix this. To gain one fix-interval of lead
you would need R > 4.2 km at 50 km/h and > 6.7 km at 80 km/h. At that size the
notification fires while the user is kilometres away, so "you're passing the
store" becomes false. Radius trades precision for reliability; there is no
setting that delivers both at driving speed.
This is a property of the fix-delivery platform, not of the fence evaluator.
The mechanism that actually fixes approach timing is device-side region
monitoring (
CLCircularRegion, 20-region limit): the OS surfaces a callbackat the boundary crossing, independent of the significant-change cadence. That
is the planned device-fence direction, and this drive is its concrete
justification. Until then, a fence that fires shortly after a high-speed POI
is behaving as designed given the fixes it receives.
Consent and privacy (answers the labels on #163480)
location intents the user explicitly armed ("notify me when I arrive at
X"). No armed intents → no consumption into anything user-visible; fixes
are evaluated and discarded.
gateway logs, prompts, or system events. The dispatch-boundary log line
records the event name and node id only. (The prior closed PR feat: handle location.update node event in gateway #50936 was
flagged for passive precise-location delivery; this design evaluates and
discards.)
enqueues a passive in-session record. It never starts an agent turn —
consistent with the passive device-event direction (fix(gateway): keep device notification events passive #196989). Any follow-up
("lets stop by X") is a user-initiated turn.
granted iOS Always location to the app; this PR consumes that signal
purpose-scoped, per [Feature]: iOS app should send location updates in the background by itself (no location.update seen while travelling) #163480's discussion.
Scope boundaries
for
location.update; dispatch uses first-match). Fan-out to multipleconsumers is a deliberate follow-up, not included here — it widens the
location access surface and deserves its own security review.
dropped. A bounded presence/fix store is a separate proposal.
Whether and how to notify is a policy layer question; the follow-up
direction (below) explores a tunable local judge for it.
is out of scope for this PR.
location.updatehandling lives in
server-node-events-location.tsalongside the existingserver-node-events-*.tshandlers. The chatsubscribe/unsubscribearmmoved to
server-node-events-chat-subscription.tsfor one reason: thedispatcher is grandfathered in
config/max-lines-baseline.txt, and thatratchet rejects any growth, so a two-line case arm plus its import had to
be offset. That extraction is behaviour-preserving and covered by the
existing chat subscribe/unsubscribe tests, but it is unrelated to this
feature — call it out if you would rather it land separately.
Follow-up direction (not in this PR)
Significance is currently declared geometry. The next layer separates
geometry (deterministic, in code) from interruption policy (a local decision
model, evaluated only on events, with the fence verdict as the fail-open
baseline). An 11-case eval (incl. negative controls and a conjunction
scenario: "passing a store × open shopping-list need") found local decision
models (
clef-flash,d3:2bvia Ollama's/v1/systemone) thatdiscriminate correctly with ~160-token calls. Full methodology and results:
https://gist.github.com/zigit/8c765c33d1edea1435f9b26d6d22c896
This PR intentionally ships only the deterministic layer.
Why this shape (the box, not the cloud)
That quote is the reason this PR is shaped the way it is, and the reason the
example notification in the drive-test screenshot reads "We ain't even got no
milk."
Thirteen years later the box is an OpenClaw gateway on a Mac, the milk is a
reminder in a local database, and the message arrives within a few hundred
metres of the store — verified on a real drive, with the notification landing
on the phone as the car passed.
Two parts of the quote turned out to be design constraints rather than
rhetoric:
against armed intents and discarded; coordinates never reach a log, a
prompt, a system event, or a third-party API. The follow-up judge layer runs
on a local decision model precisely so that the one component that reasons
about where you are does not require sending where you are anywhere.
(an armed intent, an open shopping need), not an inference over harvested
behaviour. Consent is the mechanism, and it is per-intent and revocable.
This PR ships the deterministic half: geometry in code, significance declared
by the user. The contextual half — a small local model deciding whether a
crossing is worth interrupting you — is the follow-up below.
Change type
direction-ungated crossings)
direction gates)