=== FILE: context/ACTIVE_TASKS.md ===
# SATNAV-KUIPER-30 — Independent WebKit offline recovery investigation

Date: 4 December 2026  
From: ChatGPT GPT-6.2  
To: Gemini — independent engineering reviewer  
Authority: CC-001 and the Course of Time  
Status: OPEN — inherited failure confirmed; root cause and correction unverified.

## 1. Executive summary

GridAtlas V9.223 has demonstrated substantial progress in automated navigation testing, but its inherited WebKit browser suite terminates during an offline page reload. The issue is not presently evidence of a failure in the compass, GPS positioning, route calculation or arrival algorithm. It is a specific failure of the saved-field-plan recovery scenario. Gemini is requested to independently examine the existing implementation and testing environment, determine why the reload fails, and propose the smallest defensible correction supported by reproducible evidence.

The active production repository pointer remains V9.197, generation 202611222343. The investigation concerns only the development candidate V9.223, generation 202612041613. No deployment, physical phone test, production modification or architectural replacement is authorised.

## 2. Verified evidence and exact reproduction

The original failing [CI run 47378699536](https://github.com/Ventusltd/gridatlas/actions/runs/47378699536) records Claude's candidate head `08f11b222c53c44d21efd5c145565817c04b43d1`. Seven of eight executed jobs passed: Chromium, four stability soaks, cartridge integrity and size safeguards. The [WebKit job 145200806729](https://github.com/Ventusltd/gridatlas/actions/runs/47378699536/job/145200806729) failed.

Its log confirms successful mobile matrix, return-to-start, arrow and arrival suites across four viewports. At 16:56:56 UTC, however, the following error occurred:

    playwright._impl._errors.Error: Page.reload: WebKit encountered an internal error

The process exited with status 1. The precise source is [g203-swarm-05-offline-browser.py, lines 60–71](https://github.com/Ventusltd/gridatlas/blob/cb4651a7c3d274fe66516ff1512749c472df5e8d/tools/satnav/g203-swarm-05-offline-browser.py#L60-L71). The test creates a touch-enabled 393 × 852 context with service workers allowed, establishes service-worker control, saves a plan, restores it, replaces it with a second plan and saves again. It then calls `ctx.set_offline(True)` followed by `page.reload(wait_until='domcontentloaded', timeout=30000)`. The latter throws before the next viewer assertion can execute.

Consequently, the failed WebKit run proves neither that the offline viewer works nor that the application cache is defective. It provides a precise reproduction point, not a root-cause diagnosis.

## 3. Intended behaviour versus assumptions

The existing contract is narrower than complete offline navigation. With a previously saved field plan, the application should reopen a lightweight offline viewer displaying the two saved pins, permit advancing from pin one to pin two, and leave GPS tracking off. After connectivity returns, the composed map must reopen and explicitly restore the same plan. Forgetting that plan must not delete a different generation's saved data. Reloading offline without a saved plan must return the expected 503 response and explanatory text. Storage denial must remain visible and recoverable.

Do not claim that live map tiles, road routing, address search, turn-by-turn guidance or a running journey are fully available offline merely because this contract passes. Those features require separate tests and data-availability guarantees. The intended behaviour here is graceful access to saved survey information, not an unqualified promise of complete offline operation.

## 4. Potential causes requiring investigation

First, WebKit or its Playwright integration may mishandle offline navigation when a controlled page is reloaded. Establish this with a minimal fixture using an activated service worker, a cached response and the same offline toggle. If the fixture fails independently of GridAtlas, record the browser revision, Playwright version, operating system, exact launch options and observed exception.

Second, the service worker may not reliably intercept the navigation request after the offline transition. Examine registration scope, activation, controller identity, fetch-event routing, request URLs and any redirects. Confirm that the saved-plan cache key corresponds to the actual numbered generation and that the offline response is self-contained.

Third, an asynchronous storage or lifecycle race may exist between saving the second plan, confirming the cache write, switching network state and reloading. Instrument completion of the cache write and worker readiness. Use deterministic readiness conditions rather than arbitrary sleeps or unbounded retries.

Fourth, a route or local-server fixture may differ between engines. Record HTTP behaviour while online, the precise navigation URL, origin, generation and whether a redirect or resource request bypasses the service worker. These are hypotheses, not established defects.

## 5. Independent experimental programme

Reproduce the unchanged baseline in Chromium and WebKit using the existing CI harness and pinned dependencies. Run the original exact command after starting its prescribed local server:

    G203_CANDIDATE_ROUTE=/atlas/v/202612041613/ LINE_TEST_BROWSERS=webkit python tools/satnav/g203-swarm-05-offline-browser.py

Then compare ordinary online reload, offline reload with a saved plan, offline reload without a plan, and online recovery. Capture browser console messages, page errors, failed requests, worker lifecycle and relevant cache metadata. Use synthetic coordinates only. Repeat controlled runs and report actual successes, failures and elapsed times; do not invent assertion counts or classify an isolated exception as flakiness without evidence.

Compare V9.222 and V9.223 under identical conditions. Inspect [offline-plan.mjs](https://github.com/Ventusltd/gridatlas/blob/cb4651a7c3d274fe66516ff1512749c472df5e8d/tools/satnav/field-reliability/offline-plan.mjs), the [original offline browser test](https://github.com/Ventusltd/gridatlas/blob/cb4651a7c3d274fe66516ff1512749c472df5e8d/tools/satnav/offline-plan-browser.py), the numbered composition and the actual service-worker implementation. Trace the authoritative cache and fetch paths before proposing changes.

## 6. Turn 02 and integration boundaries

[Turn 02](https://github.com/Ventusltd/gridatlas/blob/cb4651a7c3d274fe66516ff1512749c472df5e8d/tools/satnav/kuiper30/T02.md) extended existing CI eligibility to KUIPER-30 branches and added exact-head verification and failure classification. It changed only the existing workflow and documentation, not runtime code. Its [new CI run 47390122730](https://github.com/Ventusltd/gridatlas/actions/runs/47390122730) was still running when inspected; the exact-head browser checkout checks had passed. Refresh its result before drawing conclusions.

Do not suppress the exception, remove WebKit, skip offline assertions, or mark a failed gate green. If the browser harness is responsible, demonstrate an equivalent meaningful test that reproduces the user-facing contract. If GridAtlas is responsible, propose a targeted runtime correction and a regression test. Preserve the nine workflows, one map, one GPS watch, one navigation controller and immutable historical generations.

The [30-turn mandate](https://github.com/Ventusltd/gridatlas/blob/9567ff0922f5fb5b334965b1bd0dd9cddc03323d/tools/satnav/kuiper30/SCOPE.md) assigns offline and saved-plan verification to Turn 19. Earlier turns may carry this known gap only with explicit CC-001 authority. A diagnostic proposal must not silently bypass that governance.

## 7. Required return from Gemini

Return the exact source SHA, minimal reproduction, observed evidence, diagnosis with confidence and alternatives, a bounded unified diff if justified, commands and actual exit statuses, and remaining risks. Demonstrate red-before/green-after evidence in both browser engines and preserve every subsequent offline assertion. If execution is unavailable, label the proposal UNVERIFIED rather than asserting a fix.

This is an independent review request, not permission to edit GridAtlas or merge branches. Send the evidence to CC-001 for integration through the assigned KUIPER turn. The final release remains blocked until the required automated gate passes.

Signed: ChatGPT GPT-6.2 — independent engineering coordination.

---

# Historical assignment — Increment 004 (retained for reference)

The following earlier work packets are preserved as historical context. Their older candidate pins and Claude assignments do not supersede the KUIPER-30 mandate above.

# Increment 004 — SATNAV-KUIPER-20 work packets for Gemini (4 December 2026, 16:40 GMT)

Canonical Kuiper entry: https://ventusltd.github.io/kuiper-belt/agents/
Latest source keys: https://raw.githubusercontent.com/Ventusltd/kuiper-belt/main/agents/START.md
Machine-readable keys: https://raw.githubusercontent.com/Ventusltd/kuiper-belt/main/agents/START.json
Coordination: https://github.com/Ventusltd/neural-link-between-agents/issues/126 (permanent channel). This bridge is read-only. Return your work to the owner, who relays it to Claude A (the integrator).

## Ground truth (immutable keys)

- **Production:** GridAtlas V9.197. `atlas/current.json` blob is `7b4174dfeafaa7cd80df215e070a77deee7a1e1a`. Never propose changing it.
- **Development V9.222:** gridatlas PR #161, commit `915c1145ea9d17cd4e038c9185a9421e4505a886`, generation `202612041435`. CI run 47361489106 passed in Chromium and WebKit, including four 30-minute soaks.
- **Development V9.223 (current release-candidate line):** gridatlas PR #164, branch `engineering/claude-kuiper-v9223-rc`, commit `b47d7b75`, generation `202612041613`. Raw source base: `https://raw.githubusercontent.com/Ventusltd/gridatlas/b47d7b75/`
- **Records:** integration record at `tools/satnav/KUIPER-V9222-INTEGRATION.md`; composition at `atlas/v/202612041613/current.json`.
- **Owner directive (16:07):** automated Chromium/WebKit evidence is the development gate. Physical sensors are recorded as UNVERIFIED. Agents never declare acceptance.

Rules: read the real source at the pinned commit before you propose anything. Prefer the existing modules. Do not add a second GPS watch, a second map or a competing controller. Do not weaken assertions. Return an exact-head, bounded patch and a regression test that fails before the patch and passes after it. Give exact commands and the output you observed. Mark anything you could not run as UNVERIFIED. Do not publish personal location logs.

Other lanes are already owned. Do not duplicate them:
- Claude OPUS-1: static road and pavement routing.
- Claude OPUS-2: audit of PR #164.
- Claude OPUS-3: extended stability and memory soak.
- Claude OPUS-4: satellite priority and the access-land overlay.
- ChatGPT agent B: Turn 01 inventory and the UKPN retry work.

## G-1 — GPS stationary drift and teleport rejection (directive item 2)

Problem: a phone standing still produces fixes that wander by several metres. A single bad fix can also jump hundreds of metres. Both corrupt the distance and progress shown to the user and the track recorder's measured distance.

Sources to read at `b47d7b75`:
- `atlas/modules/202612041613-kuiper-r02-camera.js` (the GPS watch callback);
- `tools/satnav/gps/kuiper-v9221-fix-order.mjs`;
- `tools/satnav/gps/kuiper-v9222-admission.mjs`;
- `tools/satnav/track/recorder.mjs` and `tools/satnav/track/recorder.test.mjs` (the track recorder: `createTrackRecorder`, the 10000 ms gap rule, at most 20000 points);
- `tools/satnav/survey/model.mjs` (its consumer);
- `tools/satnav/vendor/9698781539e549deaa6ecaa4a2b34610c1f9fd29/nav/compass.mjs` (`fixQuality`: 10 s maximum age; poor accuracy is above its accuracy limit).

Deliver:
- A pure module that decides whether a fix contributes to accumulated distance. Base the decision on accuracy-aware displacement, for example ignoring moves within the combined accuracy radius, and on physically implausible implied speed. Its thresholds must come from stated physics, such as walking at up to about 3 m/s with a margin and driving at a stated maximum, not from numbers tuned to make tests pass.
- Node regression tests that fail on the current track recorder and pass with the module.
- The exact call-site change as a unified diff.

Fixes must still be displayed: only distance accumulation and the track are filtered.

## G-2 — UKPN substation integration gap audit (directive item 8)

Find out what "complete UKPN substation integration" still lacks in V9.223.

Sources to read:
- `atlas/modules/20261204-kuiper-ukpn-retry-native-viewport.js` (the UKPN viewport and bounded retry);
- `atlas/modules/202612012117-regional-card.js` (the UKPN secondary card);
- `atlas/modules/g203-regional-data-viewport.js`;
- the SatNav asset destination path in the camera (`installAssetActions`, `prepareAssetDestination`, `rankHigherVoltage` in `tools/satnav/guidance/convergence-unlimited.mjs`).

Deliver a table of each user-visible capability with these columns: works now (cite file:line); missing; and smallest change using existing modules. Candidate capabilities:
- select a substation, then send it to SatNav as a destination;
- nearest higher-voltage site;
- card details;
- behaviour when offline;
- licence and attribution display.

Then supply one bounded patch with a regression test for the top gap.

UKPN data must stay an independent layer. A failure to load it must never stop GPS or guidance.

## G-3 — Publication and rollback rehearsal (directive item 19)

Sources to read at `b47d7b75`:
- `.github/workflows/rollback-composition.yml`;
- `.github/workflows/202608301321-verify-live.yml`;
- `docs/RELEASE.md`, if present;
- `tools/scope/loop.mjs` (the state and lint commands);
- the pending preview publication in gridatlas PR #162, which is additive and leaves production unchanged.

Deliver a dry-run checklist for these steps:
1. Publish generation `202612041613` as an immutable preview.
2. If the owner accepts, promote it.
3. Roll back to V9.197.

For each step give the exact command or workflow input, the expected file and blob changes, what verifies success, and what must never be touched without explicit owner acceptance. Point out any gap in the rollback workflow, for example missing preconditions or an unverifiable step, with file:line references.

Do not execute anything against production.

## Return format

For each packet give:
1. The source commit you read.
2. Your findings, with file:line references.
3. The patch as a unified diff, where the packet asks for one.
4. The test file contents and commands.
5. The output you observed, or UNVERIFIED.
6. Unresolved risks.


=== FILE: context/SATNAV_ARCHITECTURE.md ===
# SatNav architecture
Verified source references: SOURCES.json. GridAtlas, SatNav and GlobalGrid2050 are existing repositories. MapLibre, GPS/compass, route modes, grid-layer integration and browser acceptance are active engineering areas. Preserve native controls and one GPS watch. Off-road 4x4, offline Valhalla/GraphHopper, Overpass power layers, PowerShell build and voice-to-GeoJSON are requested design topics, not verified deployed components. Route only on lawful permitted access. Validate source and licences before claiming implementation.


=== FILE: context/SCHEMAS_AND_PROFILES.md ===
# Schemas and profiles
Discover actual contracts via Genome Spider and Vedic before defining new ones. Proposed interface review: GeoJSON FeatureCollection with WGS84 longitude/latitude, source identifier, observation date, provenance and licence; unknown voltage remains unknown. Routing profiles distinguish pedestrian, road vehicle and permitted off-road access. Never infer access permission from geometry. Valhalla costing and PowerShell build examples remain pending verified source files.


=== FILE: context/AGENT_PROTOCOL.md ===
# Gemini interoperability protocol
Spider discovers dependencies; Genome Spider identifies duplication, drift, dead code, re-doing and uncomposed work; Kuiper navigates evidence-linked repositories; Vedic locates reusable commands and their source bindings. Read the pinned source index, then only necessary files. Prefer existing modules over rebuilding. Treat generated graphs as dated observations, not certification. No claim without an immutable source key.
Public bridge is read-only; Gemini supplies review/patch through the owner or an authorised GitHub client. Register one assignment and exclusive branch in Neural Link before editing. Report source commit, target paths, exact test commands and results, unresolved risks. No automatic merge or promotion. Do not publish credentials, private material or personal location logs. Use provider quotas normally.


=== FILE: context/SOURCES.json ===
{
  "schema": "ventus.bridge.sources.v1",
  "note": "Observed source pins, not live acceptance or automatic upstream sync. Refresh pins after independent verification.",
  "sources": [
    {
      "repository": "Ventusltd/spiders",
      "commit": "64c2ff737eb6429acfe324fba8c059d94e74dda9",
      "tree_url": "https://github.com/Ventusltd/spiders/tree/64c2ff737eb6429acfe324fba8c059d94e74dda9",
      "files": [
        {
          "path": "README.md",
          "url": "https://raw.githubusercontent.com/Ventusltd/spiders/64c2ff737eb6429acfe324fba8c059d94e74dda9/README.md"
        },
        {
          "path": "AI_NEW_REPO_MEMORY_LOADER.md",
          "url": "https://raw.githubusercontent.com/Ventusltd/spiders/64c2ff737eb6429acfe324fba8c059d94e74dda9/AI_NEW_REPO_MEMORY_LOADER.md"
        },
        {
          "path": "species/genome-spider/README.md",
          "url": "https://raw.githubusercontent.com/Ventusltd/spiders/64c2ff737eb6429acfe324fba8c059d94e74dda9/species/genome-spider/README.md"
        },
        {
          "path": "species/genome-spider/data/manifest.json",
          "url": "https://raw.githubusercontent.com/Ventusltd/spiders/64c2ff737eb6429acfe324fba8c059d94e74dda9/species/genome-spider/data/manifest.json"
        },
        {
          "path": "species/genome-spider/receipts/LATEST.json",
          "url": "https://raw.githubusercontent.com/Ventusltd/spiders/64c2ff737eb6429acfe324fba8c059d94e74dda9/species/genome-spider/receipts/LATEST.json"
        },
        {
          "path": "species/genome-spider/data/genome.json",
          "url": "https://raw.githubusercontent.com/Ventusltd/spiders/64c2ff737eb6429acfe324fba8c059d94e74dda9/species/genome-spider/data/genome.json"
        }
      ]
    },
    {
      "repository": "Ventusltd/kuiper-belt",
      "commit": "b81f91a05f39202662d89e2ba3d2bd94feb5eba7",
      "tree_url": "https://github.com/Ventusltd/kuiper-belt/tree/b81f91a05f39202662d89e2ba3d2bd94feb5eba7",
      "files": [
        {
          "path": "README.md",
          "url": "https://raw.githubusercontent.com/Ventusltd/kuiper-belt/b81f91a05f39202662d89e2ba3d2bd94feb5eba7/README.md"
        }
      ]
    },
    {
      "repository": "Ventusltd/vedic-",
      "commit": "1a2433bd5605e0beb36bc88eb0738d73ee0b2c5c",
      "tree_url": "https://github.com/Ventusltd/vedic-/tree/1a2433bd5605e0beb36bc88eb0738d73ee0b2c5c",
      "files": [
        {
          "path": "README.md",
          "url": "https://raw.githubusercontent.com/Ventusltd/vedic-/1a2433bd5605e0beb36bc88eb0738d73ee0b2c5c/README.md"
        },
        {
          "path": "docs/PAGED-COMMAND-REUSE.md",
          "url": "https://raw.githubusercontent.com/Ventusltd/vedic-/1a2433bd5605e0beb36bc88eb0738d73ee0b2c5c/docs/PAGED-COMMAND-REUSE.md"
        },
        {
          "path": "docs/SATNAV-SEVEN-COMMANDS-20261129.md",
          "url": "https://raw.githubusercontent.com/Ventusltd/vedic-/1a2433bd5605e0beb36bc88eb0738d73ee0b2c5c/docs/SATNAV-SEVEN-COMMANDS-20261129.md"
        },
        {
          "path": "data/command-execution-bindings.json",
          "url": "https://raw.githubusercontent.com/Ventusltd/vedic-/1a2433bd5605e0beb36bc88eb0738d73ee0b2c5c/data/command-execution-bindings.json"
        }
      ]
    },
    {
      "repository": "Ventusltd/gridatlas",
      "commit": "f944f8dcbc09cd09c0895f0126682ec241cd576f",
      "tree_url": "https://github.com/Ventusltd/gridatlas/tree/f944f8dcbc09cd09c0895f0126682ec241cd576f",
      "files": []
    },
    {
      "repository": "Ventusltd/satnav",
      "commit": "ea69138ca5d5a9632233220e5cbe1cd3f1c83432",
      "tree_url": "https://github.com/Ventusltd/satnav/tree/ea69138ca5d5a9632233220e5cbe1cd3f1c83432",
      "files": []
    },
    {
      "repository": "Ventusltd/globalgrid2050",
      "commit": "5988e467cf07dc28f0ea4a28be99c34b980e975a",
      "tree_url": "https://github.com/Ventusltd/globalgrid2050/tree/5988e467cf07dc28f0ea4a28be99c34b980e975a",
      "files": []
    },
    {
      "repository": "Ventusltd/neural-link-between-agents",
      "commit": "076c41d102681122581f1cc6cd06f37982a1fa42",
      "tree_url": "https://github.com/Ventusltd/neural-link-between-agents/tree/076c41d102681122581f1cc6cd06f37982a1fa42",
      "files": [
        {
          "path": "SESSIONS/2026-12-04-SATNAV-KUIPER-20/STATE.json",
          "url": "https://raw.githubusercontent.com/Ventusltd/neural-link-between-agents/076c41d102681122581f1cc6cd06f37982a1fa42/SESSIONS/2026-12-04-SATNAV-KUIPER-20/STATE.json"
        }
      ]
    },
    {
      "repository": "Ventusltd/ventus-grid-engine",
      "commit": "ad566356a44e006682e956483d569f31ddbb9630",
      "tree_url": "https://github.com/Ventusltd/ventus-grid-engine/tree/ad566356a44e006682e956483d569f31ddbb9630",
      "files": []
    },
    {
      "repository": "Ventusltd/registry_of_all_content_in_repos_and_dependencies",
      "commit": "4088117acd2c2d1ea3596779e13373fbb709c696",
      "tree_url": "https://github.com/Ventusltd/registry_of_all_content_in_repos_and_dependencies/tree/4088117acd2c2d1ea3596779e13373fbb709c696",
      "files": []
    }
  ]
}
