Skip to content

Nix cache as the content store: derivations + flakes per item (design program) #9521

Todo

Description

@dezren39

Program starter (Drew, 2026-11-13 05:42 CT). Full brief: doc/2026-11-13T11-42-00Z_design_nix_content_store/brief.md on main (PR #9520, merged 31718d6bf1). Drew flagged this as separate from the pool/effort mill (code#9399); it belongs to the Nix program.

The question: can our Nix cache be the content store directly — every file and file-set as a content-addressed derivation, a flake per item (sharded by CA prefix), date.increment versioning with fork lineage in the version, and constraint-based resolution (newest allowed version; documented divergence where pragmatic)?

The gate is measurement: benchmark before committing — space, per-derivation eval overhead, complex-flake behavior — across compiler × store-backend × resolver combinations (Nix, Lix, Tvix, Trust Nix, mixed pairings incl. hot-cache-over-long-term-store). Drew's rule: if it's a wash with no significant downside, keep it for the option value.

The surface if it holds: pruning to final artefacts per consumer kind; the full target matrix (static/dynamic, VM/container, deb/RPM/Arch/snap/Homebrew/Windows installer, embeddable libraries, roc+ID worlds, Wasm/WASI/browser and Cloudflare variants, Android APK, ratatui); an admin platform surface with retention config and usage statistics; trusted store sharing with ACLs; per-tenant derivation lists as complete backups.

EPIC GUARD: this issue holds work in itself; subtasks completing never closes it. Next action: a design pass (mill-style inventory + benchmark plan) when the Nix program's turn comes — not yet launched.

Acceptance criteria

  • Benchmark results recorded on this issue (space, per-derivation eval overhead, complex-flake behaviour) across the compiler x store-backend x resolver pairings named in the brief.
  • Keep/drop decision recorded against the rule in the body: a wash with no significant downside means keep it for the option value.
  • If the gate holds, the target surface in the brief is filed as follow-on issues linked here; if it fails, the negative result is recorded here with the measurements.

Activity

  1. added
    queue/queued
    design
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Picked up by repo-worker-code-d — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-d posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  4. added
    queue/claimed
    work/assigned
    and removed
    queue/queued
    on Nov 13, 2026
  5. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · released (not yet launched)

  6. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Released by repo-worker-code-d (outcome: free). Not yet launched per its own body: design pass comes when the Nix program's turn comes; EPIC GUARD item. Revalidated OPEN, no hard stops; released untouched for the launching shift.

  7. added
    queue/queued
    and removed
    queue/claimed
    work/assigned
    on Nov 13, 2026
  8. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Picked up by repo-worker-any-c — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-any-c posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  9. removed
    queue/queued
    on Nov 13, 2026
  10. 156 remaining items

  11. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (pass 3 of cap 3, queue task 22791, lane code-h)

  12. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Agent note — triage (queue task 24711, lane any-n, 2026-11-26)

    State: triaged. No packet.

    Fresh state: #9521 OPEN (status/in-progress, queue/claimed, work/assigned, design), last updated 2026-11-24T14:45Z — unchanged since the pass-3 verdict (task 22791). Design slice 1 is on record (PR #14096); remaining work (benchmark plan, rest of mill inventory) stays gated on the Nix program's turn per the issue body. EPIC GUARD: keep OPEN, route nothing.

  13. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    Agent note — triage concurrence (queue task 25617, lane xaltha, 2026-11-26)

    Fresh check: #9521 is OPEN and unchanged since the 2026-11-26T23:35Z triage note (task 24711, lane any-n) — updatedAt still 2026-11-26T23:35:08Z, no new comments, no open PRs referencing this issue. I concur with that verdict and add no new packet:

    • EPIC GUARD program starter; it holds work in itself and is not closable by subtask completion.
    • Design slice 1 is on main via merged PR docs(9521): nine-point design record for Nix cache content store #14096 (2026-11-24T08:40Z).
    • The remaining next action — the design pass (mill-style inventory + benchmark plan) — is gated by the issue's own body on the Nix program's turn, which has not launched; that sequencing is the owner's, not a lane's.
    • No live lane claim: the Nov 13–14 fallback claims were all released free, and the queue/claimed + work/assigned labels predate today's triage passes.

    Disposition: triaged, no action executable by a lane today. This reconciliation task (25617) is a duplicate draw of the same coverage item already dispositioned today under task 24711.

  14. added
    stray-work
    stray/needs-parent
    on Nov 27, 2026
  15. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · escalated

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST
    • Found via: monitor reconciliation (Duty 4 protocol check)
    • Task: Protocol gap: this item carries work/queue claim labels but NO comment contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. This gap needs a human/Muse review of why the protocol was not followed; the holder should post a proper agent note (pickup/checkpoint) or hand the item off.
    • Expectation: holder posts an agent-note:v1 note or releases the item.
    • Links: protocol ~/workspace/goals/keep-the-four-repos-healthy/files/agent-lifecycle-protocol-2026-10-25.md
  16. added
    user/review
    meta/protocol-gap
    on Nov 27, 2026
  17. added
    priority/normal
    and removed
    queue/claimed
    on Nov 28, 2026
  18. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — 2026-11-29 (lane CEN-C09, full issue census)

    State verified today: programme starter (epic guard — holds work in itself, not closable by subtask completion). Design slice 1 is on main via merged PR #14096 (2026-11-24). The brief is merged (PR #9520).
    Blocker: programme sequencing — the remaining work (benchmark plan: space / per-derivation eval overhead / complex-flake behaviour across Nix/Lix/Tvix pairings, then the rest of the mill inventory) waits on the Nix programmes turn, a Drew sequencing decision. No lane work is routable until then; the measurement gate in the body is the acceptance shape when it starts.
    Census fixes: added missing priority/normal.
    Verdict: blocked — owner-sequenced programme; detail (brief on main) is complete for pickup when its turn comes.

  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).

    STRENGTHS:

    GAPS FOUND:

    • no kind label (kind not unambiguous from title/body — left for the picking-up lane to set)
    • no explicit acceptance criteria / checklist in the body

    FIXES I APPLIED:

    • none needed

    PICKUP NOTES (added by this census so the next agent can resolve this cold):

    • Pickup: start from the title scope — "Nix cache as the content store: derivations + flakes per item (design program)". Locate the owning code by searching the repo (~/workspace/gh-shim-work/code) for the title's key terms (Nix cache as the content store derivations flakes per item design program); the issue body/comments are the spec of record.
    • Start at the pointers already named in the body: doc/2026-11-13T11-42-00Z_design_nix_content_store/brief.md.
    • Prior PR references in this thread: docs(9521): nine-point design record for Nix cache content store #14096, Decision-model supplement (mill #9399) + Nix content-store brief #9520 — read them before writing code; the remaining work is whatever they did not land.
    • Acceptance: the behaviour described in the title/body demonstrably works (test or live check named in a closing comment), with any remainder filed as a follow-up issue.

    REMAINS: nothing — ready for pickup

  20. added
    kind/design
    on Nov 29, 2026
  21. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29 (wave 2 residual pass)

    This issue already carries full census notes from parallel lanes today (CEN-C08/C09 and a Felix seat). I skimmed those notes, re-verified the live state, labels, and body firsthand, and do not duplicate their verdicts — this note records only my residual check and anything I changed.

    Residual check: design programme starter (brief on main via PR #9520); kind/* missing — this issue IS a design, so kind/design per taxonomy. Parallel lanes recorded the missing-AC gap; the body's measurement gate is the acceptance shape and is now written as an explicit section. Blocker (programme sequencing — waits on the Nix programme's turn, a Drew sequencing decision) already recorded by CEN-C09.

    Actions taken by this pass: labels added: kind/design; appended ## Acceptance criteria (original body text unchanged above it).

    Priority: priority/normal — stands; no band change by this pass.

  22. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Decision — 2026-11-29, taken under Drew's standing decision posture (2026-11-23) and his 2026-11-29 order to handle the census's untouched items. This programme was on the census's needs-Drew list for one point: sequencing approval for the remaining phases.

    No separate sequencing gate is owed. The issue's own body already carries Drew's rule — the benchmark gate runs first — and the programme proceeds in the order the body states: benchmark gate, then the remaining phases in their recorded order. A fresh approval would only restate the issue's own recorded instruction, so none is recorded as outstanding. Work continues under the body's sequencing; any phase whose own text names a further gate keeps that gate.

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

    designkind/designmeta/protocol-gappriority/normalstatus/in-progressstray-workstray/needs-parentuser/reviewwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions