Repository navigation
Conversation
Log location change detection, payload encode failure, and gateway send lifecycle in SignificantLocationMonitor.
Add location.update case to handleNodeEvent that enqueues a system event and triggers a heartbeat wake. Classify location-update reason as wake to bypass file gates and inspect pending location events in the heartbeat prompt. Add info-level logging for received events.
Add location.update event section to location-command.md with payload spec, heartbeat delivery details, and iOS significant location monitoring. Add cross-reference in nodes index. Update bridge protocol event list.
Greptile SummaryThis PR wires up Key observations:
Confidence Score: 3/5
|
Exact lat/lon are sensitive PII. Keep accuracyMeters at info level and move coordinates to debug which is stripped from release builds.
Add buildLocationEventPrompt that embeds location data directly in the heartbeat prompt, matching the cron event pattern. Return hasLocationEvents from resolveHeartbeatRunPrompt and set Provider to location-event for telemetry. Fix test mocks for logGateway.info.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3997e94a4f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Normalize the node-provided source string with compactNotificationEventText to collapse whitespace and cap length before interpolating into system-event summaries and log lines.
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Current main still has the source-level gap: iOS emits Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes, source-level: current main's iOS Is this the best way to solve the issue? No, not as submitted: the direction is focused and useful, but the branch must be rebased to current heartbeat wake APIs, fully sanitize node-controlled fields, and prove the real iOS-to-heartbeat behavior before it is the right merge shape. Security review: Security review needs attention: The diff has no supply-chain change, but it expands passive precise-location delivery into agent/system context and leaves one node-controlled field insufficiently sanitized.
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 578e73f66763. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
ClawSweeper applied the proposed close for this PR.
|
Summary
location.updateevents sent from iOS nodes vianode.eventwere silently dropped by the gateway (defaultcase inhandleNodeEvent)location.updatehandler in gateway that enqueues a system event and wakes the heartbeat; classifiedlocation-updateaswakereason; added tagged-event detection (location:*) so pending location events are included in the heartbeat prompt; added logging on both iOS and gateway sideslocation.getcommand flow, node command policy, iOS location permissions model, or heartbeat prompt templatesChange Type (select all)
Scope (select all touched areas)
Linked Issue/PR
None
User-visible / Behavior Changes
location.updateevents from iOS nodes now trigger a heartbeat wake and appear in the agent heartbeat prompt as a system eventlocation.update received node=<id> source=<source>at info level when an event arrivesSecurity Impact (required)
NoNoNoNoNoRepro + Verification
Environment
pnpm gateway:watchlocationMode: .always,authorizedAlwaysSteps
pnpm gateway:watchHEARTBEAT.md:Expected
location.update sent to gateway[gateway] location.update received node=... source=ios-significant-locationmemory/YYYY-MM-DD.mdis updated with a Location Log table:Actual
Same as expected.
Evidence
Human Verification (required)
location.update,sendEventcompletes without error, gatewaydist/contains handler code after buildlat/lon(early return), missingaccuracyMeters/source(optional), consecutive duplicate events (deduplicated byenqueueSystemEvent)Review Conversations
Compatibility / Migration
YesNoNoFailure Recovery (if this breaks)
feature/location-update; thedefaultcase resumes silently dropping the eventsrc/gateway/server-node-events.ts,src/infra/heartbeat-reason.ts,src/infra/heartbeat-runner.tsenqueueSystemEventdedup)Risks and Mitigations
enqueueSystemEventdeduplicates consecutive identical events percontextKey(location:<nodeId>), and the heartbeat coalesce window (250ms) batches rapid wakes