Skip to content

id: loc.* capability — position/watch with an accuracy ceiling and per-use consent (#2027) #2341

Closed

Description

@dezren39

Follow-up from the capability taxonomy v0 investigation (#2027, record: doc/2026-10-29T14-05-00Z_investigation_capability_taxonomy/, PR #2337).

Goal

loc.* capabilities — loc.position (one-shot) and loc.watch (subscription with an interval floor) — with an accuracy ceiling, and the consent seam they exercise.

Scope

  • Reading carries {lat, lon, accuracy_m, fix_age_ms, source}; source ∈ gnss | network | ip | caller_supplied, never silently degraded.
  • Precision ceiling: the device's outside_ceiling + precision_ceiling reason. An imprecise fix must be refusable rather than plausible-looking.
  • Sensor caps are not wildcard-grantable — refine the existing grant ledger so * never reaches loc.*.
  • Consent: cap_denied + consent_required / os_permission_denied; withdrawal arrives as {"cap":"loc.watch","event":"revoked","reason":"consent_withdrawn"} and closes the stream.
  • no_fix on failed when there is no sky view.

Acceptance

  • Both names in CATALOG with providers; tests for precision-ceiling refusal, wildcard-not-reaching, and an open loc.watch receiving a revocation event.
  • Documented interval floor and battery note for long watches.
  • Per-platform: browser geolocation, phone tiers, ESP32 GNSS.

Out of scope

Geofencing, trail history, reverse geocoding, any persistent location store.

Acceptance criteria

  • loc.position and loc.watch are in CATALOG with providers; readings carry {lat, lon, accuracy_m, fix_age_ms, source} with source in gnss|network|ip|caller_supplied, never silently degraded
  • Tests cover: precision-ceiling refusal (outside_ceiling + precision_ceiling), wildcard grants never reaching loc.* in the grant ledger, and an open loc.watch receiving the consent_withdrawn revocation event and closing
  • Consent refusals use cap_denied + consent_required / os_permission_denied; no_fix on failed when there is no sky view
  • Documented interval floor and battery note for long watches; per-platform notes (browser geolocation, phone tiers, ESP32 GNSS)

Activity

  1. added
    kind/featureNew feature or capability request
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: parent investigation #2027 (record: PR #2337); siblings #2338-#2345 are the other taxonomy follow-ups

    Notes: Filed 2026-10-29T14:04Z from #2027. Still live: no open or merged PR implements it. This is the family's consent-seam exercise — the grant-ledger change (no wildcard reach) touches shared code, hence effort/l.

    Risks: Location is the most sensitive capability in the taxonomy: a wildcard grant reaching loc.* or a silently degraded fix are both trust-breaking. The refusal tests matter more than the happy path.

    Suggested approach: Grant-ledger wildcard exclusion first (with its test), then position, then watch + revocation.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-29T14:30Z (09:30 CDT)
    • Found via: monitor reconciliation
    • Task: Duty 2 intake enrichment — acceptance criteria appended (original body preserved verbatim above it), labels normalized, meta/enriched applied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.
    • Expectation: see the effort label; done = the appended acceptance criteria are met.
    • Links: this issue
  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 3, 2026
  6. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — task 7915 triaged (Lane A worker, 2026-11-03): issue #2341 is STILL LIVE and unimplemented at current main; fix path scoped below.

    Evidence (fresh reads at origin/main 1c1aa4a, 2026-11-03):

    Fix path: (1) add loc.position + loc.watch to the CATALOG in world_caps.rs with the reading shape {lat, lon, accuracy_m, fix_age_ms, source}; (2) refine the grant ledger so * never reaches loc.* (sensor caps excluded from wildcard grants); (3) precision-ceiling refusal (outside_ceiling + precision_ceiling), consent refusals via cap_denied + consent_required/os_permission_denied, consent_withdrawn revocation event closing an open watch, no_fix on failed; (4) providers per platform (browser geolocation, phone tiers, ESP32 GNSS) with documented interval floor + battery note; (5) the three named tests. Issue stays open as the implementation record (effort/l, multi-platform — not a small fix).

  7. 152 remaining items

  8. added 7 commits that reference this issue on Nov 11, 2026
  9. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    Done — task 9301 complete, closing issue #2341.

    PR #8643 (loc.position/loc.watch world-actor wiring, slice 2) was squash-merged to main as 83707d5 at 2026-11-12T00:01:28Z, after a rebase onto current main (final head 4350819). Verified on origin/main: the merge commit is main's HEAD and the actor carries the loc wiring.

    Acceptance, all boxes met:

    • loc.position/loc.watch in CATALOG with actor providers; readings carry {lat, lon, accuracy_m, fix_age_ms, source}, never fabricated (default host has no source → no_fix) and never silently degraded (over-ceiling fix refused, not coarsened).
    • Consent refusals are cap_denied + consent_required / os_permission_denied; an open loc.watch receives exactly {"cap":"loc.watch","event":"revoked","reason":"consent_withdrawn"} and closes.
    • Interval floor (5s) + battery note + per-platform notes (browser / phones / ESP32 GNSS) are in doc/2026-11-04T06-40-00Z_feature_loc-capability.md from slice 1.

    Tests on the final head (laptop): cargo test -p id-caps 87/87; cargo test -p id-worlds world:: 307/307 including all 8 loc tests by name (consent refusals, no_fix, malformed + precision-ceiling refusals, watch delivery + revocation closing, disarm on authority removal, timer pruning, MAX_LOC_WATCHES); cargo test -p id --lib world:: 12/12. Codex review on the final head: completed, no findings. PR checks were cancelled in the repo-wide runner stall (none failing); merge proceeded on targeted-test + Codex evidence under the standing merge authority.

    En route, two pre-existing main breakages from same-day PR collisions were found: the WatchCycle view breakage was filed as issue #8799 and fixed the same pass (PR #8800, merged b5c462f); the probe_attestation_sign arity breakage is filed as issue #8801 for its own task.

    Earlier parks on this task treated PR #8643 as Drew-owned; per Drew's 2026-11-11 ruling (dezren39 is the fleet working identity; "I don't have any PRs") that was not a hold, and the PR was shepherded as ordinary work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted teststask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions