Skip to content

ci: native diagram installation identity depends on the installing umask, and the recovery steps don't say so #3339

Closed

Description

@schlessera

Problem

The native diagram installation digest (diagramInstallationIdentity, scripts/diagram-export-installation.mjs:24-38) includes file modes. When an install is made under umask 0077, the unchanged epic base hashes to b846ed2b… instead of the qualified 0c2758c0…, with the same package, file and byte counts. Only umask 022 matches. The recovery message (FROZEN_NATIVE_INSTALLATION_MUST_MATCH_QUALIFIED_BYTES: recover this owned install from a fresh private cache) and the install-recovery steps in CONTRIBUTING.md don't say this, so following them under a restrictive umask can never succeed.

Found while working #2509 (PR #3320, comment #3320 (comment)).

Acceptance criteria

  • Either the recovery steps and the error text name the required umask (022) and show the exact install command, or the identity is computed from normalised modes, so a restrictive umask doesn't change it. If the identity changes, that needs its own requalification.
  • A test shows that an install under umask 0077 either matches after the documented recovery, or is refused with a message that names the umask.

Activity

  1. added
    type: fixSomething is broken and must behave the way it is documented.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    priority: p3Someday. Needs a driving use case before it starts.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 2, 2026
  2. self-assigned this
    on Nov 3, 2026
  3. schlessera commented on Nov 3, 2026

    @schlessera
    OwnerAuthor

    Claiming (token claim-3339-u022a). Branch: fix/3339-diagram-install-umask. Approach: option (a). The recovery steps and the installation-mismatch diagnostic will name umask 022 and the exact install command. The identity stays unchanged, because scripts/diagram-export-installation.mjs is itself part of the frozen qualified source inventory (diagramSourceSetup), so normalising modes there would change both qualified pins. Collision check: closure-only overlaps with open drafts, and no PR changes the same paths.

  4. added this to the 0.45.0 milestone on Nov 3, 2026
  5. schlessera commented on Nov 3, 2026

    @schlessera
    OwnerAuthor

    Handoff: draft PR #3403 (head a47cbd450ed4daa27d7b1cab9f387960eb3f592b) implements option (a) with failing-first, recovery and mutation receipts, and is ready to confirm. Main is not red, but another candidate holds the integration lease, so confirmation was not requested. To resume, run bun scripts/integrate.ts confirm 3403 --issues schlessera/brain-kit#3339 from a current origin/main checkout once the lease is free. Releasing the claim.

  6. removed their assignment
    on Nov 3, 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-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p3Someday. Needs a driving use case before it starts.type: fixSomething is broken and must behave the way it is documented.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions