web: shared chat stars, pipeline mini graphs and agent questions
- Persist chat stars in the operator-session registry (chat_star) so every browser/device shows the same Starred group; migrate old local stars once. - Add a compact pipeline graph shape to list responses and draw a lightweight list miniature; replace the cryptic id/version line with the stage count. - Surface OpenCode form questions as a chat card (chat_answer), replay a pending form to late subscribers, and notify for background questions. - Make the mobile dock's Search cell equal to every destination, keep the tab row visible with 100svh, and let Source use the full pane height. - Let a fresh sign-in auto-connect to its own origin; use a Lax session cookie with Expires so Remember me survives app/link launches. - Keep shipped starters and the skill agnostic: no repository paths, project areas or personal device commands; add Diagnose/Fix and Research starters. - Refresh the installed skill and document the new browser conventions.
This commit is contained in:
@@ -5,51 +5,64 @@ description: Use and author Pipelines workflows, inspect runs, and recover or de
|
||||
|
||||
# Pipelines
|
||||
|
||||
Pipelines are optional execution tools. The manager may also implement, test,
|
||||
review, resolve conflicts, merge and deliver directly. Do not turn a failed
|
||||
workflow into repeated whole-run retries or another pipeline's landing job.
|
||||
Pipelines are reusable workflows for repositories. They are optional: direct
|
||||
work, delegation and a pipeline are all valid routes. Use whichever finishes the
|
||||
task with the least ceremony, and keep work small enough to verify.
|
||||
|
||||
## Work
|
||||
## Using it
|
||||
|
||||
Read the task and relevant project map before asking questions. Split changes
|
||||
into small verifiable items, each with one goal and short acceptance checks.
|
||||
Run independent items concurrently; use separate worktrees and the agreed model.
|
||||
Preserve partial work and inspect real diffs and command results. A failed item
|
||||
does not freeze unrelated work. Continue at the necessary stage or recover directly.
|
||||
`pipelines list` shows the registered workflows; `pipelines runs` shows history.
|
||||
Start a run with `pipelines run <name> "<task>"`, and inspect it with
|
||||
`pipelines inspect <id>`. `pipelines wait <id>` blocks until it finishes.
|
||||
|
||||
## Definitions
|
||||
A failed run keeps its worktree and commits. Read `pipelines inspect <id> --json`
|
||||
before deciding: resume the failed stage (`pipelines retry <id>`), fix directly,
|
||||
or continue from the preserved branch.
|
||||
|
||||
Edit a retained draft, not immutable history. Give each stage one simple job and
|
||||
only the input it needs. Preserve review gates, runtime limits, permissions and
|
||||
the user's constraints unless asked to change them.
|
||||
Use `pipelines validate DRAFT --json` before publication. Publish or execute when
|
||||
the user requests it; do not ask again for routine steps already authorized.
|
||||
Keep version guards. `--yes` is not a conflict policy; never silently force an
|
||||
update over somebody else's version. A draft-only request does not authorize a run.
|
||||
## Authoring
|
||||
|
||||
For delivery-enabled stages, the committer prepares a clean checked candidate and
|
||||
returns success; the server lands afterward. Check ancestry after landing, not as
|
||||
a precondition that prevents the gate running. Direct recovery may merge reviewed
|
||||
work itself, while preserving unrelated changes and checking the result.
|
||||
A definition is Markdown: `# stage <Name>` sections with `prompt`, `configs`,
|
||||
`tools`, `edges`, and optional `limits`/`checks`/`settings`. Start from
|
||||
`examples/`. Use stage names that describe the work:
|
||||
|
||||
`Plan` · `Code` · `Review` · `UIReview` · `Land` (`Prepare` and `Survey` are
|
||||
useful variants).
|
||||
|
||||
Keep prompts short and objective: what the stage should produce and any real
|
||||
constraints. The runner enforces turns, tools and limits; prompts do not need to
|
||||
repeat them. Only `# outcome` is parsed from `output.md`; everything else is
|
||||
free markdown. Use `links` and `memory` only when they clarify a handoff.
|
||||
|
||||
`pipelines validate DRAFT` checks a draft; `pipelines submit DRAFT` publishes a
|
||||
new immutable version. `pipelines help <command>` has flags.
|
||||
|
||||
## Turns and artifacts
|
||||
|
||||
Each visit has `input.md` (the run prompt or previous body), `memory.md`
|
||||
(completed turns), `output.md`, and `private/`. Every run also has one shared
|
||||
`public/` directory, addressed by its absolute path; files there are visible to
|
||||
later stages and are the stage's real artifacts. `input.md`, `memory.md`,
|
||||
`output.md` and `session.html` are system evidence for auditing, not stage
|
||||
output.
|
||||
|
||||
## References
|
||||
|
||||
Do not preload references. Read only the reference needed for the current task:
|
||||
Read only what the task needs:
|
||||
|
||||
| Need | Reference |
|
||||
| --- | --- |
|
||||
| Small tasks and stage roles | `references/orchestration.md` |
|
||||
| Queue and parallel work | `references/work.md`, `references/queue.md` |
|
||||
| Failures and recovery | `references/debugging.md` |
|
||||
| Definition syntax and turn files | `references/format.md` |
|
||||
| Limits, tools and permissions | `references/control.md` |
|
||||
| Stages, parallel work, recovery | `references/orchestration.md` |
|
||||
| CLI, storage and evidence | `references/operations.md` |
|
||||
| Verification and accounting | `references/verification.md` |
|
||||
| Failures | `references/debugging.md` |
|
||||
| Delivery and installation | `references/delivery.md` |
|
||||
| Definition syntax and handoffs | `references/format.md`, `references/control.md` |
|
||||
| Harnesses and models | `references/harnesses.md` |
|
||||
| Notifications | `references/notifications.md` |
|
||||
| CLI, storage and retained evidence | `references/operations.md` |
|
||||
| Transfer and version conflicts | `references/transfer.md` |
|
||||
| Verification and accounting | `references/verification.md` |
|
||||
| Transfer and versions | `references/transfer.md` |
|
||||
| Hosting, auth and deployment | `references/access.md` |
|
||||
| Queue and work items | `references/work.md`, `references/queue.md` |
|
||||
|
||||
Use command-specific `pipelines help COMMAND` rather than guessing flags.
|
||||
Distinguish validation, executed tests, landed source and deployed behavior.
|
||||
Preserve history, branches and user data. Do not disrupt active services or device
|
||||
users. Ask before destructive or out-of-scope actions, not ordinary implementation.
|
||||
Ask about real ambiguity, destructive actions or changes outside the request;
|
||||
routine steps of an authorized task do not need another confirmation.
|
||||
|
||||
Reference in New Issue
Block a user