Teach the pipelines skill to manage runs instead of implementing
Rewrite SKILL.md to state the stance (reconnoitre, then route all work through Pipelines runs; manage and debug, never implement), keep the existing authoring/operations index, and route to four new references. Add references/orchestration.md (stance, work items, brief template, hard constraints, pipeline choice, running and watching), references/lanes.md (worktrees, devices, sync/merge, restart-replay cursor fix), references/debugging.md (eight symptom/confirm/do playbooks) and references/delivery.md (artifacts, LAN URLs, WIP naming, install boundaries), each with a clearly labelled project example where Android/device specifics apply. Append orchestration verification habits to references/verification.md and add the four new files to install.go's managed inventory.
This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
# Debugging wedged and failed runs
|
||||
|
||||
Debug from **retained evidence**, never from an agent's summary. Open the run with
|
||||
`CLI_PREFIX inspect RUN_ID --json` and read the exact stage outputs, outcomes,
|
||||
diagnostics, file changes and artifacts. Identify evidence-supported causes and say
|
||||
what remains unknown. Never fix a run's symptom by editing the project by hand: fix
|
||||
the pipeline definition or the Pipelines/harness service, or record the failure and
|
||||
continue.
|
||||
|
||||
Each playbook is *symptom → how to confirm → what to do*.
|
||||
|
||||
## HARNESS TRANSPORT errors
|
||||
|
||||
- **Symptom** A stage or run fails with the sanitized category `HARNESS TRANSPORT`;
|
||||
the model may have done work but no final result was read.
|
||||
- **Confirm** `inspect --json` shows the category on the failed stage. A request
|
||||
failure, an active-session poll failure and a final-readback failure all carry this
|
||||
one category.
|
||||
- **Do** Treat it as a transport failure, not a task failure. Distinguish a
|
||||
pre-admission failure (nothing executed) from a post-admission one (tools may have
|
||||
run). An explicit read-only stage may retry; a stage whose tools include `edit`/
|
||||
`shell`, or that has no tools block, **never replays admitted work**. Do not re-run
|
||||
a full agent stage merely to recover a response's formatting. If it recurs, check
|
||||
the service and harness health (`references/operations.md`); do not weaken the
|
||||
stage to get past it.
|
||||
|
||||
## Malformed model results
|
||||
|
||||
- **Symptom** The category `FINAL RESULT VALIDATION` names a duplicate nested field
|
||||
or malformed/ambiguous JSON with a byte offset.
|
||||
- **Confirm** Read the diagnostic and the retained final result: the stage's result
|
||||
does not match its `output` contract. A retained transcript can be a valid bounded
|
||||
preview envelope, not the complete history.
|
||||
- **Do** A malformed result on an explicit read-only stage may be re-emitted up to
|
||||
`retries` with its `format_repairs` evidence retained; a stage with `edit`/`shell`
|
||||
or no tools block is never replayed. Never accept prose, flattened output or a
|
||||
tool-call envelope as success. If one stage keeps producing invalid JSON, tighten
|
||||
its `output`/`prompt` in the **pipeline definition** (`references/format.md`) — a
|
||||
pipeline fix, not a project edit.
|
||||
|
||||
## A reviewer or visual reviewer that blocks, rejects repeatedly, or hangs
|
||||
|
||||
- **Symptom** The reviewer returns `rejected` on every visit, returns `blocked`, or
|
||||
the run stalls inside a reviewer stage.
|
||||
- **Confirm** Inspect every visit and read what the reviewer actually ran and saw. A
|
||||
rejection loop is bounded by the stage `limits` (`max_visits`); at the cap the
|
||||
rejection is retained and routes to `#failure`. `blocked` means the reviewer could
|
||||
not obtain the evidence it needed.
|
||||
- **Do**
|
||||
- A visual reviewer that returns `blocked` with no screenshots is right to refuse.
|
||||
Fix the capture path (below) rather than removing it.
|
||||
- Rejections that repeat the same finding mean either the implementer is not fixing
|
||||
it or the acceptance criteria contradict the brief. Read the retained findings,
|
||||
correct the brief or the pipeline's criteria, and re-run.
|
||||
- **Never** remove a review stage, relax an acceptance check, or approve the review
|
||||
yourself to get past it (`references/orchestration.md`).
|
||||
- A reviewer that hangs on an unbounded command (for example a filesystem-root
|
||||
scan) can leave a process in uninterruptible sleep and stall the server or
|
||||
Docker. Cancel the run, stop the offending command, and add a scope instruction
|
||||
to the brief or pipeline: bounded, relevant paths only.
|
||||
|
||||
## Workspace-guard refusals
|
||||
|
||||
- **Symptom** A run is refused with "run N is already active in workspace ...".
|
||||
- **Confirm** The message names the conflicting run and its workspace; the guard is
|
||||
working as designed — one active run per resolved workspace.
|
||||
- **Do** Wait for the conflicting run, or start this one in a different workspace
|
||||
(another worktree/checkout, which is what a lane is for — `references/lanes.md`).
|
||||
Do not delete the active run, the database or sessions to clear it. An **orphan**
|
||||
active session left by a restart with no owning active run still refuses new work
|
||||
until it is interrupted; reusing the active run's original request key reattaches
|
||||
idempotently.
|
||||
|
||||
## A client older than the server dropping fields
|
||||
|
||||
- **Symptom** `inspect --json` or `ping --json` is missing fields this skill
|
||||
describes, or a flag is rejected as unknown.
|
||||
- **Confirm** `ping --json` for the server build identity and `version --json` for the
|
||||
client. An older server omits `build`; an older client may not send newer fields.
|
||||
- **Do** Treat it as a version mismatch, not a run failure. State both versions and
|
||||
the mismatch. **Do not infer** that a source fix or an updated skill is deployed.
|
||||
Use only flags the installed help shows; do not restart or reinstall a service to
|
||||
"fix" it without the operator (`references/operations.md`).
|
||||
|
||||
## A server restart killing in-flight runs
|
||||
|
||||
- **Symptom** Runs that were active when the server restarted are now `interrupted`,
|
||||
with every step's `agent_active=false`.
|
||||
- **Confirm** The status is `interrupted`, not `failed`, and there is **no automatic
|
||||
replay**.
|
||||
- **Do** Recovery is explicit. Inspect what completed; retry only when the server is
|
||||
healthy and the previous attempt's cleanup has stopped. Never restart a server that
|
||||
has runs in flight — quiesce first (`references/lanes.md`). Keep the interrupted run
|
||||
as history; never describe a restart, retry or cancellation as rollback.
|
||||
|
||||
## Screenshot capture that silently produces non-images
|
||||
|
||||
- **Symptom** A run's "screenshot" artifact, or an image cited in an approval, is not
|
||||
an image at all — for example 100+ KB of text beginning with a
|
||||
`[Warning] Multiple displays were found` line — yet the capture command exited 0.
|
||||
- **Confirm** Check the **bytes** (magic bytes or the reported content type), not the
|
||||
`.png` name. A file that is not a real image is not evidence.
|
||||
- **Do** Capture on the device to a file and pull it — never write `exec-out` or a
|
||||
shell redirect straight to a `.png`; name the display explicitly when more than one
|
||||
exists; validate the pulled bytes before citing them. A capture that fails
|
||||
validation is deleted and the stage returns `blocked`; never cite it to support an
|
||||
approval. Put the capture helper in the repository so every UI run reuses one path.
|
||||
See the example in `references/delivery.md`.
|
||||
|
||||
## Duplicated work after a lane or chain restart
|
||||
|
||||
- **Symptom** Items already completed run again after a lane or chain script
|
||||
restarts: the same brief is re-invoked, side effects repeat, or a commit is made
|
||||
twice.
|
||||
- **Confirm** Compare the lane's list against its completed-items record. A list alone
|
||||
has no resume point.
|
||||
- **Do** Persist a cursor and resume from it (`references/lanes.md`). Record an item
|
||||
only once it has landed, and skip recorded items on startup. Never relaunch a
|
||||
duplicate of a run that is still active — reattach with its request key instead.
|
||||
@@ -0,0 +1,75 @@
|
||||
# Publish artefacts, name them honestly, keep installs the operator's
|
||||
|
||||
A run's job ends at a reviewed, committed change and, when the operator must try it,
|
||||
a published build. Publishing to a phone, a device or a service is a delivery step
|
||||
with its own rules.
|
||||
|
||||
## Run artifacts
|
||||
|
||||
- Every agent visit gets a per-run/step artifacts directory under the data directory.
|
||||
The directory is passed to the stage as `PIPELINES_ARTIFACTS_DIR` and stated in the
|
||||
agent prompt next to `Run directory:`; the instruction is to save images,
|
||||
screenshots, reports and logs there (`references/operations.md`).
|
||||
- After the visit the server makes one bounded inventory and records each file's name,
|
||||
size, content type and URL; they appear under the step's `artifacts` in
|
||||
`inspect RUN_ID --json` and are served at `GET /artifacts/<run>/<step>/<name>`.
|
||||
- Artifacts are **evidence, not a gate**: an absent, unreadable, symlinked or
|
||||
oversized file records nothing and never changes the verdict. Never invent an
|
||||
artifact or claim a stage produced one — the server observes the directory after the
|
||||
stage.
|
||||
|
||||
## Publish a build to the LAN
|
||||
|
||||
- When an item builds something the operator should try (an app, a binary, a report),
|
||||
have the run publish the built file into the **current run's** artifacts directory
|
||||
and report its LAN URL: `http://<server-host>:<port>/artifacts/<run>/<step>/<name>`.
|
||||
- **Verify the URL serves the real file** before reporting it; a printed path or an
|
||||
exit-0 publish is not proof. Fetch it and confirm the bytes are the artefact.
|
||||
- The phone or client reaches the server at its configured endpoint; never hardcode a
|
||||
server address into the project. A URL the operator's device cannot reach is not a
|
||||
delivery.
|
||||
|
||||
## Name a WIP so it cannot be mistaken for verified
|
||||
|
||||
- Give a not-yet-verified build a name that marks it: `wip-<short-HEAD>` (for example
|
||||
`myapp-wip-1fece88.apk`).
|
||||
- **Reserve the plain, unmarked name for the verified build**, so the operator and
|
||||
later runs can tell at a glance which artefact passed review and which did not.
|
||||
- Never overwrite or relabel a WIP as verified without the review that qualifies it.
|
||||
|
||||
## Install and deploy boundaries
|
||||
|
||||
- **Installing onto the operator's physical device is the operator's job, not a
|
||||
run's.** A run may install only on the emulator or device its lane owns
|
||||
(`references/lanes.md`).
|
||||
- **Restarting, rebuilding or reconfiguring the Pipelines/OpenCode service is the
|
||||
operator's job.** A run may not stop a server another run depends on.
|
||||
- A run may build and publish; it may not deploy a service, install to hardware the
|
||||
operator holds, or push or tag a shared branch.
|
||||
|
||||
## Drafts, approvals and immutable history
|
||||
|
||||
- Delivery still obeys the authoring rules (`SKILL.md`): drafts are retained,
|
||||
publication creates **immutable** versions, and submission, execution, retry,
|
||||
cancellation and deletion ask for explicit confirmation.
|
||||
- `--yes` approves only the specific action you named; it is not approval to publish,
|
||||
run or schedule. A run must not submit a pipeline or activate a schedule.
|
||||
|
||||
## Example (this repository, not a rule)
|
||||
|
||||
This repository's Android client is delivered as a debug APK:
|
||||
|
||||
- Build and publish the APK into the current run's artifacts directory as
|
||||
`pipelines-debug-wip-<short-HEAD>.apk` and report the LAN URL, for example
|
||||
`http://10.0.0.249:8080/artifacts/<run>/1/pipelines-debug-wip-1fece88.apk`. The
|
||||
plain name is reserved for the verified build.
|
||||
- Screenshots come from `android/scripts/capture_png.sh -s <serial> <out.png>` (and
|
||||
`--check <file.png>` to re-validate); it captures on the device, pulls and checks
|
||||
the PNG magic bytes, deleting a file that is not a real image. Never write
|
||||
`adb ... screencap` to a file through `exec-out` or a redirect.
|
||||
- The lane's emulator serial is fixed per lane (for example `emulator-5554` for one
|
||||
lane, `emulator-5556` for another); the operator's attached Pixel is never the
|
||||
runs' device.
|
||||
- This is the concrete instance of the general rules above; a different project
|
||||
substitutes its own build artefact, capture tool and device, and keeps the naming
|
||||
and boundary rules.
|
||||
@@ -0,0 +1,81 @@
|
||||
# Parallel lanes
|
||||
|
||||
A lane is one sequence of runs in its own workspace, on its own branch, with its own
|
||||
device. Several lanes run concurrently without colliding, and each lane advances its
|
||||
own list of briefs one item at a time.
|
||||
|
||||
## Why lanes, and what separates them
|
||||
|
||||
Runs in different resolved workspaces execute concurrently; a second run in a
|
||||
workspace an active run is already changing is refused, naming the conflicting run
|
||||
(`references/operations.md`). That guard is what makes lanes safe: give each lane its
|
||||
own checkout so its runs never share a workspace. Concurrency is **between lanes**,
|
||||
never inside one.
|
||||
|
||||
- **One git worktree per lane, on its own branch.** Create it with
|
||||
`git worktree add <path> -b <lane> main`. Never run two lanes in the same tree, and
|
||||
never run a lane in the main checkout while another lane is merging into it.
|
||||
- **One emulator or device per lane.** Name the lane's serial explicitly in every
|
||||
brief dispatched to that lane, and forbid the serials the other lanes own. Never
|
||||
point two lanes at one device, and never at the operator's physical device.
|
||||
- **One work list per lane** — a plain file of brief filenames, read one at a time.
|
||||
- A brief for a lane must name the lane's worktree and device, so the run cannot
|
||||
stray onto another lane's tree or device.
|
||||
|
||||
## Sync and merge
|
||||
|
||||
- **Sync before each item:** merge `main` into the lane branch so the item builds on
|
||||
the latest tree. If the sync conflicts, abort the merge and continue on the older
|
||||
base rather than hand-resolving mid-tick; record that it happened.
|
||||
- **Merge back only when main's tree is idle.** The main-lane publishes a busy marker
|
||||
while one of its items runs; merging lanes wait for it. Never merge into `main`
|
||||
while a run is using `main`'s working tree.
|
||||
- **One lane merges at a time** — take a lock around the merge so two lanes cannot
|
||||
merge simultaneously.
|
||||
- **Record a conflict, do not force it.** On a merge conflict into `main`, abort the
|
||||
merge and leave the work on the branch for a human to resolve; write it to a
|
||||
conflicts log. Never force-push, rebase, or otherwise rewrite around a conflict.
|
||||
The committer stage may resolve a conflict inside its own workspace, but a lane
|
||||
never silently discards the other side's work.
|
||||
- **Clear stale markers.** A marker left by a lane that died must not stall the
|
||||
others forever; expire markers older than a bounded age.
|
||||
|
||||
## The restart-replay hazard
|
||||
|
||||
A lane script that simply re-reads its list from the top **replays completed items**
|
||||
after a crash or restart: it re-invokes the model, repeats side effects and may
|
||||
re-commit already-landed work. A list is a plan, not a resume point.
|
||||
|
||||
- **Fix: persist a cursor.** After each item is fully committed and merged, append it
|
||||
to a per-lane `done` file. On startup, skip every item already recorded there and
|
||||
resume from the first unrecorded one. Record an item only once it has landed; an
|
||||
item that failed twice stays unrecorded so a later restart retries it deliberately.
|
||||
- An **interrupted run is not replayed automatically**; a retry is explicit
|
||||
(`references/operations.md`). Do not restart a lane to "get back to where it was"
|
||||
without the cursor, or it will re-run finished items. Never relaunch a duplicate of
|
||||
a run that is still active — reattach with its request key instead.
|
||||
|
||||
## Coordinating the shared server
|
||||
|
||||
- **Do not restart the shared Pipelines or OpenCode server while any lane has a run
|
||||
in flight.** A restart interrupts in-flight runs (`references/debugging.md`). A
|
||||
deploy/restart tick must first ask the other lanes to stop starting runs, wait for
|
||||
active runs to reach zero, then restart; if runs will not drain, defer.
|
||||
- All lanes read the one logical endpoint; a lane's workspace is what separates it,
|
||||
not a separate server.
|
||||
- A run that pauses the world (touching shared state, restarting a service) must hold
|
||||
the busy marker for the whole pause, not only while a model call runs.
|
||||
|
||||
## Example (this repository, not a rule)
|
||||
|
||||
The repository runs several lanes at once. Concretely, at the time of writing:
|
||||
|
||||
- Worktrees `lane-app2` (branch `lane-app2`) and `lane-go` (branch `lane-go`) under
|
||||
the temp directory, with a third main lane in `/Users/alan/repos/pipelines`.
|
||||
- Emulator ownership: lane A uses `emulator-5554`, lane B uses `emulator-5556`; a
|
||||
brief names its own serial and states the other's is forbidden.
|
||||
- The main lane uses a busy marker while its item runs; the app lanes merge into
|
||||
`main` when it is idle and record conflicts instead of forcing them.
|
||||
- Restarts are deferred: a deploy tick waits for active runs to reach zero before it
|
||||
stops the server. This is the pattern the general rules above describe, not a
|
||||
hardcoded configuration a new project must copy.
|
||||
@@ -0,0 +1,149 @@
|
||||
# Orchestrate work through runs
|
||||
|
||||
When the operator asks for a change to this project, the agent's product is a set of
|
||||
briefs and a set of managed runs, not the change itself. The implementer stage makes
|
||||
the change; the reviewer stages check it; the committer stage commits it. Route all
|
||||
project work through Pipelines runs.
|
||||
|
||||
## Stance
|
||||
|
||||
- **Reconnoitre first.** Read enough of the repository, its notes and recent history
|
||||
to write a truthful brief: name the exact files, functions, commands and existing
|
||||
helpers the change touches. Do not guess and do not hand-roll the change to avoid
|
||||
reading.
|
||||
- **Then route every work item through a run.** Do not edit the project's files
|
||||
yourself, not even a one-line unblock. A hand edit has no brief, no independent
|
||||
review and no recorded run, so nothing about it can be reviewed or trusted.
|
||||
- **Fix the cause, not the symptom.** When a run wedges, fix the pipeline definition,
|
||||
the stage configuration or the Pipelines/harness service. Do not reach around a
|
||||
stuck stage and finish its work by hand. Diagnose with `references/debugging.md`.
|
||||
- The agent decides scope, decomposition, pipeline choice and what to publish; the
|
||||
operator owns the decisions a run cannot make — which items to accept, what to
|
||||
publish, when to restart a service, when to install on real hardware. Ask only for
|
||||
those.
|
||||
|
||||
## Work items
|
||||
|
||||
Decompose the request into **single-purpose items, roughly an hour of agent work
|
||||
each**.
|
||||
|
||||
- One item is one coherent change with its own brief, its own evidence and its own
|
||||
review, so the operator can review it on its own.
|
||||
- One item = one run = one commit (the committer stage commits). Do not batch
|
||||
unrelated changes into one run; a run whose reviewer is arguing about two
|
||||
independent changes is unreviewable.
|
||||
- State dependencies and ordering: which items must land first and which are
|
||||
independent. Independent items may go to parallel lanes
|
||||
(`references/lanes.md`); dependent items run in order.
|
||||
- Prefer more, smaller items to fewer large ones: a smaller item is cheaper to
|
||||
review, cheaper to retry, and less likely to loop back through the reviewer.
|
||||
|
||||
## The brief
|
||||
|
||||
A brief is the entire task a run receives. The run does not see this conversation,
|
||||
the operator's intent beyond the brief's words, or any context that is not on disk.
|
||||
Write it self-contained.
|
||||
|
||||
Every brief has:
|
||||
|
||||
1. **Goal** — one line naming the change.
|
||||
2. **The observed problem** — what is wrong today and why it matters, in the
|
||||
repository's own terms, naming the exact files, commands or runs.
|
||||
3. **Requirements** — a short bulleted list of the exact behaviour, the surfaces it
|
||||
touches, and every constraint the change must honour.
|
||||
4. **Falsifiable evidence required** — the exact commands the run must run and the
|
||||
output it must report, plus the screenshots the reviewer must read. Say plainly:
|
||||
"report the exact commands and their observed results. Do not claim a check you
|
||||
did not run."
|
||||
5. **The hard constraints block** (below).
|
||||
6. **Publishing rules** (`references/delivery.md`).
|
||||
|
||||
Template:
|
||||
|
||||
```
|
||||
<one-line goal: the change, in the repository's own words.>
|
||||
|
||||
<what is wrong today and why it matters; name the exact files, commands or runs.>
|
||||
|
||||
- <requirement 1: the behaviour and the surface it touches>
|
||||
- <requirement 2>
|
||||
...
|
||||
|
||||
Evidence: <exact build/test commands> and <the screenshots or captures asked for>;
|
||||
report the exact commands and their observed results. Do not claim a check you did
|
||||
not run.
|
||||
|
||||
Constraints: <scope: the one subtree or package this item may touch>; no new
|
||||
dependencies; do not restart, rebuild or reconfigure the Pipelines or OpenCode
|
||||
server, the installer, the ntfy service or any other service - runs and lanes are
|
||||
active; never install on the operator's physical device; keep geometry and values
|
||||
from their single existing sources rather than new literals; commit locally only,
|
||||
never push; <the item's publishing rules>.
|
||||
```
|
||||
|
||||
Requirements must be concrete and checkable. Name files, functions, commands, and
|
||||
the existing helpers to reuse. State what must survive — existing behaviour, other
|
||||
lanes' work. If a requirement cannot be checked by a command or by an image a
|
||||
reviewer can open, it is not evidence: rewrite it.
|
||||
|
||||
Do not write a brief that asks a stage to do a vague job ("make the UI better"). A
|
||||
reviewer cannot falsify it and the run will drift. One item, one observable outcome.
|
||||
|
||||
## Hard constraints to carry into every brief
|
||||
|
||||
Adapt the scope and publishing lines per item; keep the rest.
|
||||
|
||||
- **Scope** — the single subtree or package the item may touch, and nothing else.
|
||||
- **No new dependencies** unless the brief argues the exception in-line.
|
||||
- **Do not restart, rebuild or reconfigure** the Pipelines server, the CLI, the
|
||||
installer, the OpenCode service or ntfy, and do not touch another lane's worktree
|
||||
or device.
|
||||
- **Never install on the operator's physical device** — only the lane's own emulator
|
||||
or device (`references/lanes.md`).
|
||||
- **Keep values from single sources** — geometry, tokens, sizes and constants come
|
||||
from the source that already owns them, not from new literals.
|
||||
- **Commit locally only, never push** — the committer stage commits, no other stage.
|
||||
- **Publish rules** — WIP artefact naming and LAN URLs per `references/delivery.md`.
|
||||
|
||||
## Pipeline choice
|
||||
|
||||
- Use a pipeline that keeps **implementer + reviewer + ui_reviewer + committer** for
|
||||
anything that matters. The planner is the only stage a leaner variant may drop.
|
||||
- **Never remove a review stage to go faster.** The reviewer stages are the
|
||||
independent evidence the operator reviews against; dropping them is exactly how a
|
||||
regression ships unreviewed.
|
||||
- The `ui_reviewer` must build, capture and read the actual screenshots, or return
|
||||
`skipped` with a reason when the change has no rendered surface. Never accept a UI
|
||||
change approved without the images.
|
||||
- The committer is the only stage that commits, and it stages only the run's changed
|
||||
files.
|
||||
- Choose per item: a logic, server or format change usually wants the planner
|
||||
(a plan/implement/review pipeline); a small, fully understood tweak may use the
|
||||
leaner implementer-first variant. Both keep all review stages.
|
||||
|
||||
## Running and watching
|
||||
|
||||
- Launch with the authoritative `CLI_PREFIX` (`pipelines run`). The brief text is the
|
||||
run's task; pass it whole. Read `references/operations.md` for the exact flags —
|
||||
`--json`, confirmation (`--yes`) and `--wait`/`--wait-timeout`.
|
||||
- Watch to a **terminal state** (`succeeded`, `failed`, `canceled`, `interrupted`).
|
||||
Poll `CLI_PREFIX inspect RUN_ID --json` (or use `--wait`) until terminal. A reached
|
||||
client wait limit is not a run failure: the run stays active; keep waiting or
|
||||
reattach with the original request key, never start a duplicate run.
|
||||
- Read the **outcomes**, not just the status: the option each stage returned, the
|
||||
evidence it recorded, and any run or step diagnostic. Interpret diagnostics by
|
||||
category (`references/debugging.md`).
|
||||
- **Retry once, then record and continue.** Retry a failed or interrupted item at
|
||||
most once. If it fails again, record the brief as failed and move to the next item;
|
||||
never loop or start duplicates to force a pass.
|
||||
- **Stop the chain on failure and verify by hand.** Do not push the next item on top
|
||||
of a broken tree. Inspect the failure, fix the pipeline or service cause, and
|
||||
verify the tree by hand before continuing. Report the failure; never hide it by
|
||||
re-running until something passes.
|
||||
|
||||
## What the operator reviews
|
||||
|
||||
From the run record alone, the operator must be able to see: the brief, the changed
|
||||
files and diff, the reviewer's exact commands and observed results, the screenshots
|
||||
the visual reviewer read, and the commit. Produce those, and say plainly what was
|
||||
**not tested** (`references/verification.md`).
|
||||
@@ -500,3 +500,28 @@ follow-up to that deployed build; it changes no runtime code or template source.
|
||||
These bounded fixtures establish the observed behavior on this instance, not a
|
||||
guarantee of every future model review, provider, task or platform. They do not
|
||||
establish fresh account sign-in or phone notification reception.
|
||||
|
||||
## Orchestration verification habits
|
||||
|
||||
A run's status and a stage's summary are **claims**, not evidence. When the agent
|
||||
manages runs rather than making the change, its job includes independently checking
|
||||
what each run claims.
|
||||
|
||||
- **Read the retained evidence yourself** — `inspect RUN_ID --json` for the exact
|
||||
stage outputs, outcomes, diagnostics, file changes and artifacts — instead of
|
||||
trusting the model-written summary of the run.
|
||||
- **Run the check.** Where an item claims a build or tests, run the exact command and
|
||||
read its output; "tests pass" without a command and its observed result is not a
|
||||
check. Never report a check you did not execute.
|
||||
- **Read the images.** Open the screenshots the reviewer cites; do not accept a
|
||||
description of an image you can open. Confirm a capture is a **real image** (magic
|
||||
bytes or the reported content type), not a text file named `.png`
|
||||
(`references/debugging.md`).
|
||||
- **Compare the built artefact with what was delivered.** Check the md5 (or
|
||||
equivalent) of what was built against what is installed or published, so a stale or
|
||||
substituted file cannot pass as the artefact (`references/delivery.md`).
|
||||
- **State "not tested" explicitly.** A run that `succeeded` means its stages reported
|
||||
success; it is not proof that the operator's acceptance criteria were met. Name what
|
||||
was not covered.
|
||||
- **Report failures as failures.** Never re-run until something passes and then call
|
||||
that verified; record the failure and its category.
|
||||
|
||||
Reference in New Issue
Block a user