Skip to content

The catalog travels with the graph #581

Closed
8 of 8 issues completed
Closed

Description

@David-Noble-at-work

Plan: resource-construction.md

The graph's resource catalog represents input intent — what must exist when the graph runs. Ruled
2026-08-20:

  1. At plan time, a resource-typed parameter's string value mints a pending entry (no existence check); a
    promise value records the promise, no entry; a product is a runtime fact with no plan-time presence.
  2. The catalog serializes with the graph — a mandatory section, present even when empty. A document
    without it does not load; a graph without a catalog fails pre-flight hard. Schema stays 1; existing
    documents are rewritten by re-planning.
  3. Identity is the slash-canonical root-relative path; the fsroot is a run parameter, unknown until
    execution (home scope binds per account; system scope per host). Plan-space paths follow the git model —
    a leading slash anchors at the fsroot. (The identity half is feature Paths and URIs: neutral identity, native access #546's; its task is filed there.)

Acceptance: the two demonstration pins — pkg/op/provider/plan/catalog_contract_test.go and
cmd/devlore-test/devloretest/data/test_graph_catalog_contract.star — green with the ruled assertions
(source present as pending; destination absent).

Tasks: filed per plan phase.

Plan and design documents

Kind Document
Plan docs/plans/resource-construction.md

Sub-issues

Sub-issues

8 of 8 Issues completed
Loading 8 sub-issues

Activity

  1. David-Noble-at-work commented on Aug 23, 2026

    @David-Noble-at-work
    ContributorAuthor

    Complete 2026-08-23. Every phase task closed — #582 (design integration), #583 (the serialized section), #584 (rel identity), #585 (plan-time claiming), #586 (run time consumes the catalog), #587 (closure) — across PRs #592–#615 plus #623.

    The catalog travels with the graph. It serializes as a mandatory section (absent = a hard load and pre-flight failure); file identity is the slash-canonical rel with the fsroot bound at run; plan-time claiming mints pending intent with scoped verification, MissingResourcePolicy, and the consumed-Gone guard; and at dispatch a string is a key, never a constructor — resource-typed slots resolve against the run catalog and a miss refuses, with run-computed paths entering through file.discover/file.resolve under kind-honest claims.

    The campaign's divergence table — the six defects that opened the plan — has no surviving row. 4-resource-management.status.md records the convergence; the Windows CI leg went 28 → 0 during phase 2 and has stayed there.

    Follow-on feature: #616 (AnyEntry — claims that assert existence, not kind), which amends phase 4's file.move_directory.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions