Skip to content

reference workspace: contract, evidence, driver and proposal record kinds, and one session kind, from studio's design member #3148

Closed

Description

@lex00

Part of #3145.

Problem

Studio's design member holds record kinds chant's reference workspace doesn't have. The factory parses contracts directly instead of through a declared kind.

studio kind format location
contract design/contracts/C-NNN-*.md: id, title, status (draft/approved/retired), approved_sha, tier, supersedes (bare id), references [{criterion, asset}]; criteria - [aN] ... template/design/contracts/README.md, template/box/ops/factory/lib.mjs:235-268
contract check contracts/checks/<id>.test.js, tests named aN: ..., APP_URL, TAP template/box/ops/factory/check.mjs:34-56
evidence design/evidence/<sha256>.json: contract {id, sha}, check sha, commit, tree, runner, ok, criteria, output, source evidence.kind.mjs, evidence.schema.json
session JSON S-N.json with x-studio subjects template/design/sessions/
driver D-NNN-*.md {title, intent, members} template/design/drivers/README.md
proposal design/proposals/*.md {title, constrains}, agent notes exempt from the guard template/design/proposals/README.md
shared ids defs.schema.json template/design/schemas/

Also: studio's decisions carry x-studio {kind: "process", constrains: [C-...]}, sessions carry verdicts[].x-studio for subjects that aren't decisions, studio's decision.schema.json lacks chant's closed_digest, and the design member is kind: "other" where the reference workspace uses design.

chant's reader already handles the formats (ws-053, docs/design/workspace/record-formats.md, bare-id supersedes); what's missing is the kinds and schemas.

Proposal

  • contract kind (kind file + schema) in the reference workspace, with a check pin and criterion ids that acceptance and evidence can cite
  • evidence kind schema for check runs (content-addressed), written by workEvidence
  • one session kind: converge studio's on the reference markdown session, with subjects beyond decisions
  • constrains accepting contract: refs on decisions
  • driver and proposal kinds, or map proposals onto the existing lesson/preference kinds
  • studio adopts the design member kind and re-copies the current decision schema

Activity

  1. added
    enhancement
    area:workspace
    level:2
    boundaries
    on Oct 1, 2026
  2. lex00 commented on Oct 3, 2026

    @lex00
    ContributorAuthor

    Re-scoped in the October hud/studio burn-down (lex00's decision): this goal implemented the core of the workspace program (#3158, #3160, #3147, #3149, #3033, #3146, #3159, #3034, #3080, #3163, all merged) and leaves this issue for later. It no longer blocks a burn-down issue: arugula-salad/studio#287 (the factory reads and writes only through chant) is deferred on it, and hud#703's review home was settled on the reference workspace's existing session kind instead.

  3. lex00 commented on Oct 3, 2026

    @lex00
    ContributorAuthor

    Design recorded as ws-082 in #3400. The design member gets chant's own contract, evidence and driver kinds. A contract opens draft, is approved, then retired. Its criteria live in the front matter and its checks are pinned by hash. Once approved it changes only in state, checks and reviews, and verdicts carry the text digest that replaces studio's approved_sha. Evidence is content-addressed JSON with the fields studio's factory writes, and records new now writes that kind. Drivers have no lifecycle. The one session kind judges decisions, contracts and drivers through a new session.subjects.kinds. Decisions may constrain contract:<id>. Proposals get no kind of their own: they are proposed work items, lessons or decisions. Studio's side (re-copying the decision schema, the design member kind, moving criteria into front matter) stays with arugula-salad/studio#287 and #338.

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

    area:workspaceboundariesenhancementlevel:2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions