From e5a2d31a394e42dc5310d670a4a64fa2585f09e8 Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 04:18:38 +0100 Subject: [PATCH 1/6] Read design reference sections when the task needs them Co-Authored-By: Codex --- core/skills/review/SKILL.md | 4 ++-- core/skills/write-design-doc/SKILL.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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..e69b33b9 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 [the reference](reference.md) up front. +Read Artifact Choice if undecided, Decisions for material choices, Artifact +Lifecycle for relationships or time gates, and Validate and the applicable +Type-Specific Checks before handoff. Resolve ambiguity and keep blockers owned. Follow [Reporting](../../CONTRACT.md#reporting) for the owner-facing opening and visuals. Write user scenarios before UI proposals, then validate material From 2849bb79c7342a73a8d33197891819c90d3ae028 Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 04:18:39 +0100 Subject: [PATCH 2/6] Shorten the delegate brief guide Co-Authored-By: Codex --- docs/DELEGATION.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/docs/DELEGATION.md b/docs/DELEGATION.md index 7a56dfde..2b0d9c47 100644 --- a/docs/DELEGATION.md +++ b/docs/DELEGATION.md @@ -414,7 +414,7 @@ Model/effort: Effort policy: Children inherit this policy; return to the parent before raising effort or launching a stronger model. Launch policy: Children inherit this rule: never approval-required; use auto only for read-only children and say "read-only, do not edit" in the brief; a child that runs commands or edits inherits the parent's mode, because auto can stall on approval review. After launch, verify pendingRequestCount 0 and a completed tool call. Waiting: One blocking wait: Codex exec/write_stdin yield >=30 s (>=120 s for builds, tests, CI, review, ready or merge); shell `until ; do sleep 30; done`. Claude: background notification or t3_background_wait. Read the completed result once; never use t3_thread_read/task_status for liveness. Every ended turn wakes the parent: end it only with a final result, a blocker or a question, never with a progress note while your own job runs. -Output: Cap at the producer: REST `gh api --jq` selected fields, shell `| head -c 2000`; t3_thread_read limit <=2, maxCharsPerItem <=600. +Output: Include the limits from Coordinator rollover in the brief. Shell commands: Keep cleanup/removal and commit operations separate and simple; do not hide commands in scripts to evade approval review. Verification: Integration executor: @@ -424,17 +424,7 @@ Return: ). -Verification: Focused regression and browser observation on the local fixture, within existing task permissions; report unavailable proof. -Integration executor: Parent integrates and owns the sole loopzero ready --wait; child starts no waiter. -Return: Tested changes and evidence to parent; parent finishes through readiness, leaving merge to the requester. -``` - -The source request supplies authority; neither this example nor a finish label -grants it. Follow the [Worker role](#team-roles) for blockers. +Follow the [Worker role](#team-roles) for blockers. The owner decides and continues anything within its authority; only a decision reserved to a person goes to the harness question tool with the PR/task link, exact decision and recommended option. If From 52974fb98ada4ee5f28dec9637f861e2de166b32 Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 04:30:06 +0100 Subject: [PATCH 3/6] Read existing design conventions before drafting Co-Authored-By: Codex --- core/skills/write-design-doc/SKILL.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/skills/write-design-doc/SKILL.md b/core/skills/write-design-doc/SKILL.md index e69b33b9..b09db770 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 only Grounding and Design Contract in [the reference](reference.md) up front. -Read Artifact Choice if undecided, Decisions for material choices, Artifact -Lifecycle for relationships or time gates, and Validate and the applicable -Type-Specific Checks before handoff. Resolve ambiguity and keep blockers owned. +Read only Grounding and Design Contract in [reference](reference.md) initially. +Before drafting, read Artifact Choice conventions and 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 From 40a03f05d4ce9172894768d56270dc0e8fb9a1fc Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 04:30:30 +0100 Subject: [PATCH 4/6] Separate the convention read from the conditional type table Co-Authored-By: Codex --- core/skills/write-design-doc/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/skills/write-design-doc/SKILL.md b/core/skills/write-design-doc/SKILL.md index b09db770..38a082ce 100644 --- a/core/skills/write-design-doc/SKILL.md +++ b/core/skills/write-design-doc/SKILL.md @@ -9,8 +9,8 @@ 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 only Grounding and Design Contract in [reference](reference.md) initially. -Before drafting, read Artifact Choice conventions and its table if type is open. +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. From 88f19cd43b7a8d8ba7cfbdf68c1afe364c87ba03 Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 04:33:07 +0100 Subject: [PATCH 5/6] Clarify that the dispatcher expands the output limits Co-Authored-By: Codex --- docs/DELEGATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/DELEGATION.md b/docs/DELEGATION.md index 2b0d9c47..b5f6da56 100644 --- a/docs/DELEGATION.md +++ b/docs/DELEGATION.md @@ -414,7 +414,7 @@ Model/effort: Effort policy: Children inherit this policy; return to the parent before raising effort or launching a stronger model. Launch policy: Children inherit this rule: never approval-required; use auto only for read-only children and say "read-only, do not edit" in the brief; a child that runs commands or edits inherits the parent's mode, because auto can stall on approval review. After launch, verify pendingRequestCount 0 and a completed tool call. Waiting: One blocking wait: Codex exec/write_stdin yield >=30 s (>=120 s for builds, tests, CI, review, ready or merge); shell `until ; do sleep 30; done`. Claude: background notification or t3_background_wait. Read the completed result once; never use t3_thread_read/task_status for liveness. Every ended turn wakes the parent: end it only with a final result, a blocker or a question, never with a progress note while your own job runs. -Output: Include the limits from Coordinator rollover in the brief. +Output: Shell commands: Keep cleanup/removal and commit operations separate and simple; do not hide commands in scripts to evade approval review. Verification: Integration executor: From a6871b96790c2ddf60adfaf1292e9273a07b29de Mon Sep 17 00:00:00 2001 From: eowca <4008965+eowca@users.noreply.github.com> Date: Thu, 26 Nov 2026 07:53:02 +0100 Subject: [PATCH 6/6] Clarify trusted and delegated check execution Architecture-Review: unchanged; the documented behavior matches the current CLI without changing the delivery interface. Co-Authored-By: Codex --- README.md | 2 +- docs/ARCHITECTURE.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4a50355e..cc1cfd90 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/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 1d67cb81..e45b53ee 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -157,7 +157,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. @@ -497,8 +497,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.