Skip to content

The store writes latest.yaml as a symlink an ordinary Windows user cannot create #438

Open

Description

@David-Noble-at-work

cmd/internal/cli/store.go:141 creates latest.yaml with Symlink.
On Windows that needs SeCreateSymbolicLinkPrivilege or Developer Mode; an ordinary user has neither.

The failure is quiet and costs data. All nine call sites warn rather than fail, so: the trace document
lands on disk, latest.yaml does not exist, appendIndexEntry -- which sits after the link -- never
runs, and the command reports success. The run index silently loses every trace on that machine.
That ordering is a defect on every platform, not only Windows.

Nothing reads the link. LoadLatestTrace is its only reader and has no callers anywhere, so the first
question is whether the entry point earns its place, not how to spell it on Windows. Four options with
their residuals are in the charter.

CI cannot see this. The Actions Windows runner holds the symlink privilege, so no coverage added there
will ever fail. The proof run must deny the privilege -- the sharper form of the lesson phase 2 learned
by testing the safest root instead of the one production uses.

Charter: step 60.

Plan and design documents

Kind Document
Plan docs/plans/extract-starlark-from-op/phase-8/steps/60-execution-store-cross-platform.md

Activity

  1. David-Noble-at-work commented on Nov 9, 2026

    @David-Noble-at-work
    ContributorAuthor

    star github triage sweep added this issue to Triage: devlore, for the rule it breaks:

    • no-evidence: no Evidence of completion section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions