diff --git a/README.md b/README.md index f2cbf0fe..401c539e 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ ownership and the contributor routine that keeps documentation current. | Command | What it does | | --- | --- | | `loopzero start ` | Create a worktree and branch from base; write the Context/Problem/Goal task template. | -| `loopzero check` | Run `workflow.toml` checks in a bwrap sandbox; exit code is the verdict. | +| `loopzero check` | Run trusted-base checks with local bwrap or the configured runner. | | `loopzero pr` | Push and open a draft PR from the task file, with its Validation section rendered. | | `loopzero review` | Run one Claude or Codex review on the exact head; post it and append its summary under Review. Exits 0 on approval, 5 on changes requested. | | `loopzero ready [--wait[=SECONDS]]` | Verify head, findings and CI; optionally wait for required checks on that head. | diff --git a/core/CONTRACT.md b/core/CONTRACT.md index 878373f8..3dac1a17 100644 --- a/core/CONTRACT.md +++ b/core/CONTRACT.md @@ -44,10 +44,11 @@ own delivery state; `.loopzero/` holds task text and local receipts. Merge is authorized by default under [merge authority](#merge-authority). -On every start/resume, run `loopzero status`, then rerun the last `--wait` -command if any; both are idempotent. Status derives the branch's stage from -Git, GitHub and the check receipt. Never end a turn waiting for notice of an -event that may already have happened; notifications never replace the waiter. +On start/resume, use `loopzero status` in an existing worktree to read Git, GitHub +and the receipt. Rerun the last `--wait` if pending. After ejection, read the +reason and follow [Mergify recovery](../SETUP.md#mergify). If cleanup removed the +worktree, verify the merge in GitHub. Never yield waiting for a notice that +may already have fired. Notifications never replace the waiter. Before yielding, record head, last exit code, awaited event and next command in one PR comment per owner. Post on first yield; update the existing comment ID with the full replacement Markdown from `body_file` on later yields: diff --git a/core/skills/review/SKILL.md b/core/skills/review/SKILL.md index e3c0220c..76f5c766 100644 --- a/core/skills/review/SKILL.md +++ b/core/skills/review/SKILL.md @@ -8,8 +8,8 @@ description: Assess a non-diff artifact, system, architecture, workflow, agent c Return a ranked, evidence-backed judgment at the requested altitude. Route diffs to [code-review](../code-review/SKILL.md), adding [security-review](../security-review/SKILL.md) for changed trust boundaries. -For designs, read [design guidance](../write-design-doc/reference.md) and -[design lenses](design-reference.md). Judge sufficiency for the +For designs, start with [Design Contract](../write-design-doc/reference.md#design-contract) +and [lenses](design-reference.md). Judge sufficiency for the next actor, respecting settled decisions unless their premises fail. Separate wording from material defects; do not demand detail irrelevant to that action. Return design findings in the response; publish to PR threads only when authorized. diff --git a/core/skills/write-design-doc/SKILL.md b/core/skills/write-design-doc/SKILL.md index e8bf4a65..38a082ce 100644 --- a/core/skills/write-design-doc/SKILL.md +++ b/core/skills/write-design-doc/SKILL.md @@ -9,10 +9,10 @@ Produce the smallest artifact that lets the next actor proceed without re-deriving intent or architecture. Do not implement it. Unless explicitly requested, skip the document for a clear, small, safely bounded change. -Read [shared design guidance](reference.md) for grounding, artifact choice, -decision records, conventions, and validation. Align material ambiguity before -drafting; preserve requester decisions and keep unresolved questions owned and -visibly blocking the relevant action. +Read only Grounding and Design Contract in [reference](reference.md) first. +Before drafting, read Artifact Choice conventions. Read its table if type is open. +Use Decisions for material choices, Artifact Lifecycle for links or time gates, +and Validate and matching Type-Specific Checks before handoff. Keep blockers owned. Follow [Reporting](../../CONTRACT.md#reporting) for the owner-facing opening and visuals. Write user scenarios before UI proposals, then validate material diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 55e9eb0d..f5acbb17 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -161,7 +161,7 @@ For a Codex executable installed inside protected native state, the implicit runtime mount exposes only the resolved executable and its existing sibling `codex-code-mode-host`, read-only. Neighboring history and configuration remain hidden; helper aliases into protected state and explicit state mounts fail closed. -Check, review, ready, merge, and status use the workflow at one remote-tracking +Check, pr, review, ready, merge, and status use the workflow at one remote-tracking delivery revision selected by the workflow at Git's local `origin/HEAD`. Missing trusted refs or workflows block these commands. An explicit `--config` supplies validated policy for bootstrap or operator overrides. @@ -510,8 +510,8 @@ command, version, sandbox configuration and the resolved base SHA. A stage runs fresh when a matched path cannot be identified as a readable regular file. The receipt fingerprint also binds the base SHA when reuse is configured, so advancing the base invalidates a pass at the same task head. -If the remote ref is absent, checks use the task's recorded base. Without -either base, local stages run fresh. +With explicit `--config`, reuse can fall back to the recorded task base if the +remote ref is absent. Without either base, local stages run fresh. The `"*"` entry adds shared inputs to listed commands. Unlisted commands reuse only when `"*"` includes `"."` (the whole tree); a partial or empty `"*"` leaves them unkeyed. Consumers own complete input declarations.