Skip to content

Decide what .behold/layout.json is: a per-user cache outside the project, or a shared layout as a declared chant diagram #469

Closed

Description

@lex00

Part of the boundaries epic, INTENTIUS/chant#3166.

Problem

.behold/layout.json is the one file behold writes inside a served project (README "The hand-layout sidecar", src/layout.ts). The README says two things about it: the layout is "shareable, reviewable in a diff, and honoured by behold export", and also ".behold/ is per-user state ... add it to the served project's .gitignore". Under the workspace spec's rule that the repo is the database (INTENTIUS/chant#3158), it has to be one or the other:

  • a cache: one operator's arrangement, kept outside the project (with ~/.behold/ or localStorage), never in the tree; or
  • a fact: a shared team view of the estate, in which case it's a workspace artifact. chant already has diagrams (declared artifacts pinned to the renderer that made them, workspace-declaration.mdx §Diagrams), and it would be written through chant like any other fact, not by behold directly.

Proposal

Decide which (or support both: per-user deltas as cache, a named shared layout as a declared diagram). Either way behold stops writing into the served project itself.

Done when

behold writes nothing inside a served project, and a shared layout, if kept, is a declared artifact chant validates.

Activity

  1. added
    question
    boundaries
    workspace-pane
    on Oct 1, 2026
  2. lex00 commented on Oct 23, 2026

    @lex00
    ContributorAuthor

    Maintainer ruling (2026-10-23)

    .behold/layout.json becomes a per-user cache outside the project, so behold writes nothing in a served project at all. AGENTS.md's invariant changes to match when this is built.

  3. added 2 commits that reference this issue on Oct 24, 2026
  4. lex00 commented on Oct 24, 2026

    @lex00
    ContributorAuthor

    Landed on integration/chant-goal in 378e56a (merge of 24a8061). The hand layout is now a per-user cache at <user cache>/behold/layouts/<sha256(realpath)[:32]>.json (~/Library/Caches, %LOCALAPPDATA%, $XDG_CACHE_HOME or ~/.cache; BEHOLD_CACHE_DIR moves it), 0600 in a 0700 dir like the serve registry. An existing .behold/layout.json is read once into the cache and never written or deleted. AGENTS.md's Invariant now says behold writes nothing in a served project; doctor --fix copies a loose estate's layout to the root's cache entry. No shared/declared-diagram layout was built (the ruling chose cache only).

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

    boundariesquestionworkspace-pane

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions