Skip to content

core: verify media hygiene review end to end across CLI, server, worker and browser #2783

Closed

Description

@schlessera

Context

Part of the epic #1777 (resolve pending media through hygiene review). Read the epic for every maintainer ruling.

Blocked by #2782

The inventory, effects and review children each prove their own boundary. This task proves the workflow end to end through the real CLI, server, native worker and browser paths, and updates the user docs and the sync skill.

Design: rev 4 §10, rev 5 §12, rev 6 §6 and rev 6.1 §3.

Scope

  • An integrated offline suite on an Odysseus fixture brain: sync reports only the count; review selects each media finding; each of the five actions runs through the browser; a following ordinary sync shows the resulting persistence and count; Undo restores bytes; restart and reconnect mid-pass keep deferrals and counts.
  • Parity between offline brain sync and the server for count and selection across the whole flow.
  • docs/media.md, the sync and hygiene docs and the /sync skill describe count-only reporting, the five actions and that Git does not persist ignored or scratch bytes.

Out of scope

  • New behaviour; a gap found here is fixed in the owning child's code with its own test.

Acceptance criteria

  • The end-to-end suite passes, inspecting actual file, config, reference and pin bytes after each action and Undo.
  • Count and selection agree between CLI and server at every step.
  • Capacity, stale-premise, interruption, disposition/count and isolation mutations each fail their intended end-to-end assertion and are restored, recorded in the PR.
  • Docs and the /sync skill no longer ask per file about media and describe only released behaviour.

Verification

bun run test
bun run build && bun run test:layout
bun run check:pr --base origin/main

Offline and keyless.

Contract impact

None beyond what the other children added.

Activity

  1. added
    type: test
    area: core
    area: ui-server
    area: docs
    priority: p2
    agent-ready
    blocked
    on Oct 24, 2026
  2. removed
    blocked
    on Nov 6, 2026
  3. schlessera commented on Nov 6, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #2782, its only blocker, closed when #3594 landed on main as 75ca273. Nothing else blocks it. I've only removed blocked; nobody has picked this up.

  4. added this to the 0.45.0 milestone on Nov 8, 2026
  5. self-assigned this
    on Nov 8, 2026
  6. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Claiming this for implementation (claim token wi-2783-ae8b), on branch feat/verify-media-hygiene-e2e from origin/main e4d4ac843. The PR targets main.

  7. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3722, squash-merged as 69e45194f3b17f9de4b43b91f8af732bb78bcfc1 on main. Candidate CI 42494314232 passed every selected job, and the squash tree matches the tested head 2f3e06c7d.

    • End-to-end suite (packages/ui-server/tests/media-review-flow.test.ts): each of the five actions runs over the review socket against a real CLI, brain sync and a restartable server. Every step reads file, config, reference, pin and kept-log bytes, and server, CLI and sync agree on count and selection throughout. The suite also covers restart and reconnect mid-pass.
    • Browser (hygiene-media-flow.layout.tsx): the same actions run from the card, Undo from the receipt, and Leave pending across a host restart.
    • Worker scenario: passed in hosted unit (3), and in runtime_host's Claude UID 1000 cell, where it runs as the app UID.
    • Mutations: capacity, stale premise, interruption, disposition/count and isolation each failed its named assertion and were restored; the receipts are in the PR.
    • One gap fixed in the owning review code, with its own test: an Undo while another card was pending, or after the pass ended, left the server's media count stale.
    • Docs: docs/media.md, docs/cli.md and the /sync skill now describe count-only reporting and the five actions, and no longer ask about each file.

    Epic #1777 still has one open child, #3591 (p3).

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

Metadata

Metadata

Assignees

Labels

agent-readyarea: corearea: docsarea: skillsarea: ui-serverpriority: p2type: test

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions