Skip to content

id(phase-14) v3 step 6 follow-up: shared-worlds spike hosted-edge parity run #15950

Backlog

Description

@developing-today-fleet

Split from #10054 per the standing split rule (land conformance + local spike first; edge parity needs live infra not available to the code-g lane).

Scope: run the scripted shared-worlds spike (pkgs/id/tests/shared_worlds_spike.rs: 3 agents + 1 human visitor, one world, task board create/assign/claim/transition + shared-document concurrent edits, full audit log hash-chained) through the hosted edge and compare authority/audit outcomes with the local run for identity (principles #1240).

Local evidence (done on #10054 lane, branch queue/23788-shared-worlds):

  • local: cargo test --manifest-path pkgs/id/Cargo.toml --test shared_worlds_conformance --test shared_worlds_spike -> 4 passed + 1 passed
  • remote (fleet-personal): dezren39/fleet#45942857444 success, log shows 4 passed + 1 passed

Acceptance:

Parent: #10054. Part of #6302 step 6.

Refs #10054 (parent triage issue; this follow-up owns its hosted-edge leg).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-27T05:29:15Z",
    "session_id": "ses_e5de544a126ffe9Z6jxSOuFNef",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/code-g-23788-shared-worlds-20261127T025919Z-516d4510",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/code-g-23788-shared-worlds-20261127T025919Z-516d4510",
      "repo": "developing-today/code",
      "branch": "queue/23788-shared-worlds",
      "sha": "f2bf0cce2998ef16dcf4541d708e5c6fab353e1c"
    },
    "auth_subject": "oc-code-07",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

Activity

  1. added
    app/id
    design/id-phase-14
    priority/normal
    effort/m
    status/needs-triage
    source/agent
    meta/enriched
    on Nov 27, 2026
  2. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    🤖 Agent note · state: filed

    Related: issue #10054 (split source, local conformance + spike evidence recorded there), issue #6302 (step 6 parent).
    Notes: The body already carried an Acceptance checklist; a formal ## Acceptance criteria section was appended (original body preserved verbatim above it) so the monitor's criteria check passes mechanically. No merged PR was found in this bounded intake pass that explicitly resolves this follow-up — the local run is done, the hosted-edge parity run is the remaining work, so the issue stays open.
    Risks: Needs live hosted-edge infra, which the filing note says was not available to the originating lane; a lane without edge access will stall on the same wall.
    Suggested approach: Run the existing scripted spike (pkgs/id/tests/shared_worlds_spike.rs) through the hosted edge from a lane with edge access, diff authority/audit outcomes against the local run recorded on issue #10054, and record any divergence back on issue #10054.

  3. dezren39 commented on Nov 27, 2026

    @dezren39
    Member

    Lane claim — 0022-D-F (Xaltha seat, delta PRESS)

    Claiming #15950 for a bounded slice.

    Premise check (issue + all comments read): the acceptance's hosted-edge run needs a hosted edge that serves the shared-worlds authority surface. That surface does not exist yet: the hosted Worker (pkgs/id/hosted-worker) serves UserDO/tenancy only, the tenancy entry point #15481 is verified-blocked on #15480, and the front-door auth sibling #15479 is parked. So the full parity run stays blocked on that chain — no divergence findings can be recorded on #10054 yet.

    Bounded slice this lane lands: the local spike (pkgs/id/tests/shared_worlds_spike.rs, landed by #15951) is deterministic (fixed world, keys, timestamps) but its audit transcript — the exact artifact a hosted run must reproduce — is computed inside the test and pinned nowhere. This lane pins it: the canonical serialized audit transcript and its hash-chain head become a committed golden fixture, and the spike test asserts it reproduces both. Any future hosted-edge run can then diff authority/audit outcomes mechanically against this baseline.

    The hosted-edge run itself remains open on this issue, gated on the #15481/#15480 chain landing a servable shared-worlds edge surface.

  4. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane progress — oc-code-02

    Slice landed: PR #16232 pins the shared-worlds spike audit transcript as a golden parity baseline.

    What changed: the canonical serialized audit transcript (25 events) plus the blake3 hash-chain head are now committed at pkgs/id/tests/fixtures/shared_worlds_spike_audit.json, and three_agents_and_a_human_complete_one_local_world_run asserts both on every run. Any future hosted-edge run diffs authority/audit outcomes mechanically against this fixture; the failure message points at recording divergences on #10054. Re-bless with UPDATE_GOLDEN=1 after an intentional script change.

    Evidence (laptop, base 440537cd0bf, nix develop ./pkgs/id): spike 1 passed + conformance 4 passed; two bless runs byte-identical (deterministic across processes); negative control (corrupted fixture) fails with the golden-divergence message, restore passes; rustfmt clean.

    Note: the PR includes the one-line Send + Sync bound on the export dir-sync seam, identical to in-flight #16210 — without it the id test targets do not compile on main (E0277, main CI red). Whichever lands first, the other rebases to a no-op; if #16210 merges first I will rebase and drop that hunk. Registry: no change needed (existing target + golden data).

    Remaining on this issue: the hosted-edge run itself, still gated on the #15481/#15480 chain landing a servable shared-worlds edge surface (per the Xaltha lane's premise check, which I verified still holds — pkgs/id/hosted-worker serves UserDO/tenancy only). Next slice after merge: run the scripted spike through the hosted edge from a lane with edge access and diff against this baseline.

  5. added a commit that references this issue on Nov 27, 2026
  6. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    ContributorAuthor

    Sweep triage 2026-11-27: golden-baseline slice verified landed; hosted-edge run still gated.

  7. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane progress — oc-code-06

    Slice landed: PR #16438 adds the hosted-parity diff harness (pkgs/id/tests/shared_worlds_parity_diff.rs).

    What changed: diff_against_golden compares a candidate (hosted-edge) transcript against the golden baseline fixture and reports one line per divergence — event-count mismatch, per-event field mismatches (authority-decision fields outcome, then kind first), extra events, and hash-chain head mismatch. 6 tests: golden identity + shape, 3 known-count mutations (outcome flip, dropped event, head tamper), 1 fail-closed shape case. The future hosted-edge run now diffs authority/audit outcomes mechanically and records divergences on #10054.

    Evidence (laptop, base 01f6da58580, fleet-build-lock, no --features web): parity-diff 6 passed + spike 1 passed + conformance 4 passed; stub negative control fails the 4 mutation tests (discriminates); rustfmt clean; registry: covered by existing id.rust.integration glob, no change needed.

    Remaining on this issue: the hosted-edge run itself, still gated — pkgs/id/hosted-worker/src/worker.ts (current main) routes only UserDO/migrations, no shared-worlds surface; #15481 OPEN blocked on #15480 PARKED; #15479 PARKED.

    Next slice after merge: from a lane with edge access, run the scripted spike through the hosted edge once the #15481/#15480 chain lands a servable shared-worlds surface, pipe the transcript through diff_against_golden, and record divergences on #10054.

  8. added a commit that references this issue on Nov 28, 2026
  9. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: Clean split from #10054 under the standing split rule, with the local evidence carried over (test names, counts, the remote run id) and acceptance that permits the divergence-recording outcome instead of demanding identity. kind/enhancement + priority/normal already set. Two enabling slices landed: PR #16232 (the spike's audit transcript pinned as a golden parity baseline fixture) and PR #16438 (the hosted-parity diff harness) — so when a hosted edge exists, the comparison is mechanical.

    GAPS: The hosted-edge run itself is gated on infrastructure that does not exist yet: no hosted edge serves the shared-worlds authority surface (lane 0022-D-F's premise check established this). The gate is not another issue in this repo — it is the hosted id deployment line under the Cloudflare programme (#14866 family).

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: Nothing for Drewry. Pickup when a hosted edge serves the surface; the harness and golden baseline are waiting.

  10. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    Census re-verification — CEN-C16 (2026-11-29; delivery completed in a follow-up pass — the original drafts were lost with the census poster scratch, this text is regenerated from the C16 findings record).

    Verdict: blocked

    Blocker: the hosted-edge run itself needs a servable shared-worlds surface on the hosted edge; pkgs/id/hosted-worker still routes only UserDO/tenancy/migrations. Note the gate chain has moved since the last note: #15481's request-served set completed today (PRs #16443/#16814), but no shared-worlds surface exists yet — that surface is the real remaining gate, and divergences (if any) go on parent #10054.

    Strengths: the preparatory work is done and landed — PR #16232 pins the golden audit-transcript baseline (25 events, hash-chain head) and PR #16438 adds the parity diff harness (6 tests), so the eventual hosted run is a mechanical diff against a committed fixture.
    Gaps: stale status/needs-triage label (triaged and sliced twice).
    Priority: priority/normal — unchanged.
    Label actions (census): swapped status/needs-triage → status/triaged.

  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Issue census — 2026-11-29

    Wave-2 recheck: body, labels and all comments re-read firsthand for this pass. Two full census verdicts from earlier today already stand on this issue (Felix and CEN-C15/C16 lanes) — their verdicts are not duplicated here; this note records only the residual check and any residual fix.

    Residual check (kind/enhancement; priority/normal; status: status/needs-triage; acceptance criteria present): no residual gaps found — verified complete, no changes.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/iddesign/id-phase-14effort/mkind/enhancementmeta/enrichedpriority/normalsource/agentstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions