GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — hold-work: guard a held or stopped copy's home in the CLI; tests and docs (#313 follow-ups) · Issue #368 · scuttletoby/t3code

hold-work: guard a held or stopped copy's home in the CLI; tests and docs (#313 follow-ups) #368

New issue
Copy link
New issue
Copy link
Closed
#398
Closed
hold-work: guard a held or stopped copy's home in the CLI; tests and docs (#313 follow-ups)#368
#398
Copy link

Description

@scuttletoby
scuttletoby
opened on Nov 17, 2026
Issue body actions

Follow-ups from the two round-2 SAFE lenses on #313 (hold-work: a held server does not start T3 Connect; fixes #190): state #313 (comment) and security #313 (comment). Recommendation: one PR for 1-3 (a marker file makes 2 and 3 cheap); 4 and 5 are docs.

  1. The CLI refusal has no test at its call site (cli/connect.ts ~512-514, in disconnectCloud). Deleting the call keeps every test green (both lenses' mutation). A later upstream merge could drop it, and t3 connect unlink on a held home would send the relay delete again. Add a connect.test.ts case: unlink on a held home is refused and no relay delete is sent.
  2. A stopped (or never started) copy is protected only by the docs. Unlink or logout pointed at a copy's home still deletes the live link, because the copy keeps the live server's link files and server-runtime.json. Cheap guard: the held boot (or the copy step) writes a marker file in the copy's home; the CLI refuses unlink/logout whenever it exists, running or not; only an explicit flag or removing the marker clears it.
  3. t3 connect link and t3 up turning Connect on are not refused on a held copy's home (possible, not proven): a refresh of an expired copied sign-in token may rotate it and break the live home's token. Add the same refusal (and the marker from 2) on the CLI link path.
  4. Docs: a managed policy that turns Connect off makes CloudLink.make unlink at start-up, before the wrapper exists, so a held start can delete the copy's own link files (nothing reaches the relay). The docs and PR body say a held start "changes no link file": add this exception. Also list HeldHooksWaker among the relay readers (safe: it runs only when a tunnel connects).
  5. Test nit: in the boot test, "relay reached after the normal start" is already met by agent activity requests, so it does not show that stopping released the tunnel; assert on the tunnel registration itself.

State question for the fix: what happens when the copy is started twice, stopped half-way through start-up, or made from a home linked before this change?

🤖 Generated with Claude Code

Activity

  1. scuttletoby
    added 3 commits that reference this issue on Nov 17, 2026

    hold-work: a marker guards a held or stopped copy's home in the CLI (#…

    71ded5e

    test(hold-work): a marked copy's normal boot holds Connect; marker wr…

    4b2b344

    hold-work: a marker guards a held or stopped copy's home in the CLI; …

    e66dd95
  2. scuttletoby
    closed this as completedin #398on Nov 18, 2026
  3. scuttletoby
    added 4 commits that reference this issue on Nov 18, 2026

    hold-work: a marker guards a held or stopped copy's home in the CLI; …

    f97b4e8

    hold-work: a marker guards a held or stopped copy's home in the CLI; …

    67c516a

    hold-work: a marker guards a held or stopped copy's home in the CLI; …

    a047981

    hold-work: a marker guards a held or stopped copy's home in the CLI; …

    94f9725
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.