Rewrite agent rules for accountable direct recovery and small parallel work

This commit is contained in:
2026-10-18 23:05:40 +01:00
parent e1adb687d4
commit bfcfcde415
10 changed files with 213 additions and 811 deletions
+32 -38
View File
@@ -1,44 +1,38 @@
# Pipelines maintenance
# Pipelines project
## Consent (hard rule)
## Ownership and execution
The operator owns this system. No change to it happens without their explicit consent in the
current conversation: new pipelines or versions, definition and stage-prompt edits,
orchestration scripts, briefs and the conventions they carry, the packaged skill and templates,
deploys, installs and deletions. Read-only investigation and reporting need no consent. Ask
first and name exactly what would change; a request for a fix is not consent for a particular
mechanism.
The user owns the project. The manager is responsible for finishing authorized work,
not merely assigning it. Use pipelines, direct work or delegation as appropriate.
The manager may implement, review, fix tests, resolve conflicts, merge and deliver.
When a pipeline blocks progress, diagnose it and take over directly when useful.
Do not create another recovery workflow just to complete an existing item.
When a change alters user-facing behavior, or you learn a confirmed runtime
limitation, record the stale documentation instead of editing the shared document in
the same change: leave a per-item note at `docs/notes/<slug>.md` naming what changed and
which packaged OpenCode skill reference in `internal/author/skill/references/`, README
or topic doc is now stale and what should change there. The manual-only `docs-fold`
pipeline folds `docs/notes/` into the shared docs and references; an item never edits a
shared document itself. Keep `SKILL.md` a concise,
task-directed index: preserve ask-first authoring and never preload every reference.
Separate current capabilities, dated verification evidence, deployment state and
unimplemented ideas. Do not turn mocked or structural checks into live claims.
## Small changes, parallel progress
For new references, update `internal/author/install.go`'s managed file inventory.
Run the author package tests: they check embedding, reference links, installation,
upgrades and protection of user modifications. Never hand-edit an installed copy
as the source of truth; refresh it with the current-source `pipelines skill install`
only when installation is requested. Do not deploy runtime changes merely because
the skill is updated. Keep the shared docs and packaged references consistent through
the single `docs-fold` writer rather than editing them per item: leave a
`docs/notes/<slug>.md` note.
Split features into small independently testable changes. Keep stage roles and
handoffs short. Run independent items concurrently in separate worktrees; small
overlapping edits are normal merge work, not an automatic reason to serialize.
Use Luna for pipeline stages unless the user requests otherwise.
## Maintenance workflow
## Preserve and verify
Top-level agents advance work through the `pipelines` CLI; **the agent is the brain**
and there is no orchestration script, driver, polling loop or lane machinery, and none
may be written. Choose the pipeline by the area the work is in — `Android`, `TUI`,
`Server`, `Generic`, `Plan and land`, `UI sweep`, `Probe` — each reading the project's
own map (`android/AGENTS.md`, `internal/tui/AGENTS.md`, `internal/server/AGENTS.md`)
for how that technology is built, tested, run and captured. Inspect the retained
plan/implement/review outputs and diffs, execute the checks independently, and iterate
on concrete failures rather than trusting stage summaries. An executing stage performs
its own role directly and never recursively launches a workflow. If a pipeline is
unavailable, ask instead of silently bypassing it. Never hardcode a disposable server
URL as a project default; the configured endpoint is authoritative.
Read the relevant area map for build and test commands. Preserve existing branches,
commits and uncommitted work. Never reset, discard or delete unrelated work.
Resolve conflicts by preserving compatible intent; inspect the actual diff.
Run focused tests while editing and relevant integration tests before landing.
Check branch ancestry after landing, not before a server delivery gate can run.
A failed item does not stop unrelated items. Keep unfinished work referenced.
## Finish and report
Track code, checks, landing, deployment and device installation separately.
Show changed paths and actual diff evidence; flag missing captures rather than
claiming no changes. Report failures and decisions concisely.
Update relevant rules, skills and documentation when they are the requested task;
ordinary feature work can leave a focused docs/notes entry instead.
Use the current-source skill installer to refresh managed installed skills.
Do not restart a shared service over active work. Do not use the personal Fold
for tests; it is a delivery device. Follow the Android map's target leases.
Ask only for genuinely missing decisions or destructive/out-of-scope actions,
not routine steps already covered by the user's request.