Skip to content

docs: the Git mask-target record says only the installer creates them, but the server prepares them live #4470

Open

Description

@schlessera

Part of #4426 (follow-ups from #4278). Deferred from the final review of PR #4444.

Context

docs/decisions/governed-writable-workers.md:2853-2859 says that originally absent mask targets "are created only by the owned first-party installer". The server also creates them:

  • Before each maintenance checkpoint: the server creates them in the live .git (prepareMaintenanceGitTargets, packages/ui-server/src/brain/maintenance-git.ts:124-151). This includes operations that publish nothing, such as the storage-removal review (packages/ui-server/src/storage/removal-facts.ts:12-14).
  • During governed admission: resolveWorkerProtection creates them too (packages/ui-sdk/src/server/worker-launcher.ts:1061).

Main's status made the same directories live before the epic, so the record was already inaccurate there.

Scope

Amend the record only; no code change. The amendment should state that:

  • the server prepares the three empty targets live, as their owner, before the checkpoint;
  • the installer's scaffold path and live-absence check apply only to targets still absent from the checkpoint.

Acceptance criteria

  • The record names both creators and when each applies.
  • The record states that a publish:false operation may leave the three empty directories in the live .git, and why that is accepted.
  • Code citations in the amended paragraph hold under bun scripts/check-citations.ts.

Activity

  1. added
    type: docs
    area: docs
    priority: p3
    agent-ready
    on Nov 22, 2026
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

    agent-readyarea: docspriority: p3type: docs

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions