Deliver work in the compozy/compozy repository. Use when dispatching or supervising sessions, opening or updating a PR, filing an issue, handling review feedback or CI, or declaring work done. Excludes product behavior of the shipped spec-cycle agents.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Eng Delivery?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/compozy-eng-delivery)
---
name: eng-delivery
description: Deliver work in the compozy/compozy repository. Use when dispatching or supervising sessions, opening or updating a PR, filing an issue, handling review feedback or CI, or declaring work done. Excludes product behavior of the shipped spec-cycle agents.
---
# Delivery
Repository rules for getting work from a dispatch to a merged PR. `CLAUDE.md` owns the CI-only gate and worktree rules; repeat them in every dispatch brief, because a child starts with only its brief and repository instructions.
Done means an open, ready PR on its final head, the merge-gate review criterion met for that head, every actionable review finding addressed, and `merge-gate` told. Merging belongs to `merge-gate`; a release needs a direct operator message to it.
## Dispatch
| Work | Provider | Model | Effort |
| --- | --- | --- | --- |
| Backend | `codex` | `gpt-6-astra` | `medium` |
| Frontend | `claude` | `claude-opus-5-5` | `medium` |
| Issue fix | `claude` | `claude-opus-5-5` | `medium` |
| Final review | `codex` and `claude` | `gpt-6-astra`, `claude-opus-5-5` | `xhigh`, `medium` |
Operator overrides win. Never substitute a model silently.
- The orchestrator is the quality guarantor. Send back unfinished work, and verify the result yourself before reporting it.
- Use child sessions from `compozy__session_create`, not subagents. A CLI fallback must pass `--parent <your session>`.
- Give each child a new worktree. Name it from the slice or issue so a retry cannot duplicate it, and keep the root checkout clean.
- Set provider, model and effort on the first prompt, confirm the effective runtime with `compozy__session_status`, and register a monitor. Do not answer a child's report in the same message chain; read it on the monitor wake.
- Keep about 4 workers active. Cut slices that can run in parallel and state which slice depends on which.
- Workers run no tests, lint, typecheck, build checks or gates locally, focused ones included; CI on the pushed head verifies. Say so explicitly in the brief, and have the report name the CI check that proves each change.
- Prototyped screens and flows follow their prototype.
- Workers do not co-edit shared files such as `docs/_memory/change-impact.md`. Their impact notes go in the PR body, and the orchestrator consolidates them.
## Integration
Squash each finished slice into the integration worktree and resolve conflicts there; regenerate generated files through their owner. After the last slice, run the final review tier read-only and fix what it finds before opening the PR.
Stop finished children once their work is integrated. After a merge, remove only the worktrees and branches you created.
## Issues
Search for a duplicate before creating one, and reuse an existing issue. A closed issue or an existing PR means checking whether work remains first.
File issues in English on GitHub with reproduction, actual and expected behavior, evidence with code pointers, acceptance criteria, and QA or compatibility impact. Remove private paths, internal runtime identifiers, credentials and unrelated log content. Verify publication.
Every issue gets a type when it is created, including follow-ups filed by executors: `gh issue create --type <Bug|Feature|Task>`, or `gh issue edit <n> --type <T>` immediately after. Use Bug for defects and regressions, Feature for new capabilities, and Task for tests, chores, build and dependency work.
Independent issues get separate worktrees; several symptoms of one defect stay together.
## Pull request
Write everything in English, from `.github/PULL_REQUEST_TEMPLATE.md`. Keep its exact three headings and checklist, fill every section, and leave no HTML comments.
- Title: `<type>: <description>` or `<type>!: <description>`, describing the result. Squash subjects become release notes, so if the title mentions the product, it says `CompozyOS`, never bare `Compozy`.
- Link the issue with `Closes #<n>`, or `Refs #<n>` when closing needs a check you cannot make. For work without an issue, include an explicit `No issue: <reason>` line.
- Cover the trigger, root cause, observable before and after, tradeoffs, verification, and cross-surface, compatibility and QA impact, for a reader without this conversation. Keep it current as remediation changes the work.
- Omit private identifiers, host paths and credentials.
- A draft PR or first push is a checkpoint, not delivery.
### Screenshots
Host UI evidence in the R2 bucket `compozy-pr-evidence`, never through `gh --attach`, whose URLs expire.
```bash
wrangler r2 object put compozy-pr-evidence/<slug>/<short-sha>/<NN>-<name>.png --file <abs-path> --content-type image/png --remote
curl -sI https://pub-6cb601c36b3b4de9bc57fae6b15686d0.r2.dev/<key>
```
`--remote` is required. Expect `200` and `image/png` before using the URL in the PR body.
## CI
The latest `PR body` check must be `completed/success` on the current head before `ready:` or merge; body edits rerun this lightweight workflow. It enforces nonempty template sections, no HTML comments, an issue link or `No issue: <reason>`, no host paths or GitHub-hosted images, and CompozyOS title naming. Release branches `release/v*` and dependency bots pass explicitly. pr-watcher also reviews concrete verification, the cross-surface impact audit and R2 screenshot responses for UI changes.
Merge-gate reads the live `CI_MERGE_QUEUE` variable and effective `main` rules before merging. An absent variable preserves the current direct-merge policy: the review criterion and successful `PR body` check hold; other CI may be pending or red and must be reported after landing. With `true`, both `Verify (fmt, lint, unit, build)` and `E2E (combined lane)` must succeed on the exact PR head before enqueueing; GitHub requires the same checks on the combined merge-group head. Explicit `false` is the approved no-queue fallback: both aggregates remain required and backend PRs automatically run heavy checks. Report a variable/rules mismatch instead of bypassing it. Maestro changes settings only with Pedro's go; the W6 PR records activation and rollback commands.
Queue entry is not a completed merge. Merge-gate uses its head-bound queue command, registers a pull-request monitor, and confirms `MERGED` before root sync and the next merge. On dequeue, inspect the matching merge-group run, report the failed condition, and require a fresh handoff; never requeue blindly or use `--admin`. The merge-gate instructions own queue and release serialization; CONTRIBUTING owns latency measurement and its revisit trigger.
Inspect these checks on the current head:
- `Verify (fmt, lint, unit, build)`, `E2E (combined lane)`, `PR title`, `PR body`, `React Doctor`
- Every other reported check, recording any result that is not successful or legitimately skipped; [Reviewers](#reviewers) owns the CodeRabbit criterion
Both gates always run and fail when `Detect changes` fails. The fast PR lane selects affected areas. Heavy lanes (integration, Windows and E2E) run on main pushes, nightly, manual and merge-group events. Every merge group verifies all areas, including Go race unit and full integration shards; replacement runs for the same queue ref cancel obsolete runs while main runs finish. PRs opt in early with `ci:full` (label events and re-runs honor it), CI changes or release PRs. An absent variable keeps this opt-in behavior; explicit `CI_MERGE_QUEUE=false` additionally selects backend PR heavy checks. `E2E (combined lane)` succeeds when heavy lanes defer. Pending, cancelled or missing is not green, and success on an earlier head does not count. `PR body` remains a PR-only gate; never require it, reviewer contexts or the informational performance census on merge groups.
The full Go integration lane uses `go-integration.yml`: CI calls it for main,
merge groups, nightly, manual and selected heavy PR runs; Release makes the sole call for release PRs and
requires its success before the release dry-run. Its eight shards reserve three
runners for daemon, two for globaldb and three for other packages. Go's selected
source files with and without `integration` determine exact test run lists; unit
tests and functions owned by the E2E plan run in their existing lanes. Race checks
stay enabled, with the unit lane's modernc-only checkptr exception and four parallel
tests; the weekly `go-checkptr.yml` retains full pointer checks. Main CI runs are
not cancelled and save a separate build/test cache for each integration group/shard.
Census refresh accepts completed same-repository shard receipts from failed or
successful CI/Release runs, including opt-in and release PRs, and preserves missing
observations. Compare actual shard wall times and runner-minutes before reducing
integration timeouts; invocation wall time includes compilation and setup.
CI Go test runners retry failed tests once with a five-failure cap; Playwright retries
once in CI only. Every recovery must have a `FLAKY` annotation and a structured receipt
(test, job/shard, run, SHA, test attempt and workflow attempt). A second failure still
fails the job. A failed test that skips or disappears on retry also fails reporting; only a
passing retry counts as recovery. The daily Go test census deduplicates the receipts into one rolling
seven-day issue; inspect that evidence instead of silently rerunning jobs.
E2E-023 lives in a separate nightly performance census, also exercised on PRs
explicitly labeled `ci:full`, outside both merge gates and the Release publish graph.
Five unretried executions retain every raw envelope; the switch and peer medians must
each stay at or below 50 ms. Every sample retains the 500 ms restore and functional
assertions. Missing, failed or retried samples fail the census. This is a statistical
performance signal, not proof that every frame stays below 50 ms.
Diagnose finished failures while other jobs run. Wait through a monitor, never a shell loop. A watch command can exit non-zero on a network error, so read the real conclusion with `gh run view`.
## Reviewers
CodeRabbit must meet merge-gate HEARTBEAT.md step 2: two distinct reviewed commits, a third after a heavy second round, or the fallback below. Every review thread must be resolved. Inspect Greptile and React Doctor results and address actionable findings as they arrive. Other pending or red checks do not block merging in absent mode; queue/fallback mode also requires both successful aggregates. Elapsed time or silence proves no CodeRabbit coverage. Do not install or configure a reviewer.
- Every push restarts CI and the reviewers, so remediation works in rounds: one push per round, never one per finding.
- CodeRabbit allows 8 reviews per hour across the repository, so parallel PRs stall on it. Do not request a re-review of an unchanged head.
- CodeRabbit pauses after several pushed commits and its check shows `skipping`. Comment `@coderabbitai review` before claiming coverage.
- **CodeRabbit fallback.** When CodeRabbit blocks the PR because it is rate-limited, refuses to re-review an already-reviewed head, or skips a PR over its 300-file limit, replace it:
1. Run a Claude Opus 5.5 reviewer subagent on the full PR diff. Use a plain reviewer brief, not `deep-review`. For the file limit only, an earlier external agent review of the same change, such as spec peer-review rounds, replaces this pass.
2. Post one PR comment that starts with `## CodeRabbit fallback review` and names the reviewed head, the trigger, and each finding, or links the earlier review. `merge-gate` accepts only this heading from `pedronauck`.
3. Fix or answer every finding like any other reviewer's.
4. Dismiss a stale CodeRabbit `CHANGES_REQUESTED` review with a message linking that comment.
Inspect Greptile, React Doctor and CI results and report non-green checks. In absent mode only `PR body` blocks the CI criterion; queue/fallback mode also requires both successful aggregates.
A round starts as soon as a reviewer posts findings or a check fails on the current head; do not wait for the rest of CI to finish first, because the fix push restarts CI anyway. Fold in every finding already posted, push once, then inspect CI and satisfy the review criterion on that new head. Collect every page of reviews, inline threads and PR comments, including collapsed sections and the CodeRabbit "Follow-up" and "outside diff" notes that exist only in review bodies, and address every actionable finding at any severity, including human feedback and findings marked outdated or outside changed lines. Green CI on a head without the required CodeRabbit rounds or fallback is not delivered.
1. Validate each finding against the current code and the contract.
2. Fix every valid, in-scope finding and every failed check, then push once. Run no tests or lint locally; CI on the new head verifies the fixes.
3. Reply to each thread with that pushed commit or other evidence, then resolve it. For a false positive, give a concrete rationale.
4. For a disputed or materially out-of-scope finding, reply with the rationale and escalate it. Resolve the thread once the operator or reviewer settles it; until then delivery stays open, because `merge-gate` and the `main` ruleset both require every thread resolved.
Start the next round on the new head until nothing actionable remains.
## Handoff
Find the `merge-gate` main session with `compozy agent instance list --agent merge-gate`. If the operator has not created the instance, report that as a blocker and leave delivery open. Capture the head, confirm it did not move during verification, then send that session one line with `compozy__session_prompt`:
```text
ready: #<number> <head-sha>
```
A refusal names the failed condition. Fix it, satisfy the review criterion on the new head, and hand off again with the new head.