Skip to main content
Reference planning 3 min read Updated

project-contract

Project contract

Dreamwork needs a set of project facts. It reads them from the applicable AGENTS.md files and the documents they link to. It never brings them from another project, the skill or the model config.

Resolve each fact during planning and record the resolved value with its source (file and heading) in the plan. If a fact is missing or two sources conflict, ask the human one question at a time with a recommendation, and offer the exact AGENTS.md text that would settle it so the next run does not ask again. Edit AGENTS.md only if the human approves that text as part of the plan.

Facts

FactWhat to resolveDefault if AGENTS.md is silent
Run recordsTracked directory for run recordsdocs/dreamwork/runs
Local stateIgnored runtime directory for live state, staging and raw logs.agents/dreamwork (must be git-ignored; never force-add)
Run branchBranch name pattern for staged workdreamwork/<run-id>
Command environmentHow to run build, lint and test commands (shells, wrappers, required variables)none: ask
GatesRequired checks per change type, final checks before landing, and the pre-commit hook commandnone: ask
ServicesStartup, readiness, isolation (ports, state directories), and teardown for live checksnone, if no live checks are planned
IssuesTracker, stable IDs, labels, dependencies, lifecycle states and transitions, review dossier location, link and index rulesnone: ask (see issues)
Grouping documentsWhether the project groups issues into epics/waves, where they live, their format and how a run updates themnone: selection by IDs, labels or prompt only
CommitsMessage convention, hook environment, attributionthe repository’s existing history style
EvidenceWhat may be committed, path portability, secret handlingrepository-relative paths, no secrets, raw logs local
UAT launchCommand and checkout to start the app for a human, how to reach it (URL, window), and teardownnone: ask during planning if any issue has UAT items
Visual captureHow agents capture screenshots or recordings of UI states for reviewnone: plan per issue or note the gap
Human-only checksChecks that cannot be automated (physical keys, real devices, taste) and approved automated substitutesnone
Specs and decisionsWhere component specs and settled decisions live, and which to read per areawhatever AGENTS.md routes to

Defaults are generic conveniences. State them in the plan so approval covers them.

Rules

  • Applicable AGENTS.md instructions are mandatory even when they repeat or exceed this skill. When they conflict with this skill on project matters (commands, paths, conventions), the project wins. On workflow authority (human gates, review independence, landing), this skill wins; raise the conflict in the plan.
  • Resolve paths against the initiating repository root and reject anything that escapes it after resolving symlinks. Run records and local state must be disjoint, and local state must contain no issue sources or instruction files.
  • Pass the resolved contract to children as text and paths in their briefs. A child rereads AGENTS.md in its own checkout and reports any difference.
  • Dreamwork handles one repository per run. Escalate multi-repository requests during planning.

Suggested AGENTS.md section

Offer something like this when facts are missing. Fill in real values; never commit placeholders.

## Dreamwork

- Run records: `docs/dreamwork/runs`; local state: `.agents/dreamwork` (git-ignored).
- Command environment: <how to run commands>.
- Gates: <per change type>; final gates: <list>; hooks: <command>.
- Services: <start, readiness, isolation variables, teardown>.
- UAT launch: <command, checkout, URL or window, teardown>.
- Visual capture: <screenshot or recording method>.
- Human-only checks: <list and approved substitutes>.