engagement-contract
Skill4 starsChanged 29 days agoMITView on GitHub
[PROTOCOL] Minimal contract every dispatched specialist (engineer, designer, copywriter, analyst, etc.) follows when running inside an agency engagement. Carve-out from engagement-protocol — the specialist subset only, without lifecycle / cross-domain / archival detail: the 6 output bullets, evidence before claims, the repeated-finding diagnosis on rework attempt 2+, no self-spawned subagents, rule-do-not-stall and the NEEDS_CONTEXT convention. Preloaded by specialist agents via skills frontmatter. Pure reference — no triggers.
In this repository48 other files it gives its agents.
- skills/dev-methodology/references/agents.mdAGENTS.md
- skills/skill-authoring/references/agents.mdAGENTS.md
- acceptance-protocolSkill
- agency-intakeSkill
- ai-visibility-methodologySkill
- banner-design-guideSkill
- benchmark-researchSkill
- brand-methodologySkill
- code-reviewingSkill
- code-writingSkill
- codex-bridgeSkill
- deploy-pipelineSkill
- design-assets-guideSkill
- design-system-methodologySkill
- design-task-decompositionSkill
- dev-methodologySkill
- docs-pipelineSkill
- documentation-writingSkill
- engagement-protocolSkill
- feature-researchSkill
- human-voiceSkill
- infrastructure-setupSkill
- marketing-task-decompositionSkill
- post-deploy-qaSkill
- pre-deploy-qaSkill
- presentation-designSkill
- project-planningSkill
- prompt-engineeringSkill
- security-auditingSkill
- semantic-drift-methodologySkill
- seo-auditingSkill
- skill-authoringSkill
- skill-test-designSkill
- skill-testingSkill
- system-optimization-protocolSkill
- task-decompositionSkill
- tech-spec-planningSkill
- testing-methodologySkill
- ui-styling-guideSkill
- ui-ux-methodologySkill
- user-spec-planningSkill
- validation-pipelineSkill
- yandex-analytics-methodologySkill
- yandex-direct-guideSkill
- yandex-metrika-guideSkill
- yandex-search-guideSkill
- yandex-webmaster-guideSkill
- yandex-wordstat-guideSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
If you are NOT inside an engagement (the user invoked you directly, no engagement/ directory, no criteria.md), this contract does not apply …
- Very specific: line 31
Source / project files in their normal paths: Never create rogue files inside engagement/.
- Distinctive: line 37
State cross-contract claims verbatim: If your output depends on another specialist's deliverable ("I assume the auth service returns 401 on …
- Distinctive: line 56
If you could not run the proof (tool missing, environment down), write that plainly instead of softening the claim.
- Very specific: line 72
Before editing, under the new ## Rework attempt N heading, diagnose why it did not hold, in one of two ways:
- Very specific: line 75
Wrong premise: Write the assumption the earlier fixes shared in one sentence ("the date is always in UTC", "the reviewer wants a shorter …
- Distinctive: line 97
If your task is too large for one seat, that is not something you fix by spawning: say so in your report (see the ruling rules below) so …
- Distinctive: line 120
Stop and escalate only when the next step is one of:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
engagement-contract
When you are dispatched as a specialist inside an agency engagement (your Task-tool invocation cites an engagement/criteria.md or a parent lead routed you with engagement context), follow this contract. It keeps engagement state predictable across the dispatch tree without forcing you to load the full 1200-line engagement-protocol.
If you are NOT inside an engagement (the user invoked you directly, no engagement/ directory, no criteria.md), this contract does not apply — work normally in your domain.
The contract (6 bullets, non-negotiable)
- Read
engagement/criteria.mdfirst. Respect frontmatter (size,ux_heavy,tools_required). Acknowledge eachcrit-Nyou are addressing. - Write only to
engagement/executor-reports/{your-agent-name}.md— single output channel, append-only across iterations. The only other paths insideengagement/you write are the ones your task names: its declaredfilesin artefact mode (e.g.specs/tech-spec.md,ui/…), anddocs-diff.mdwhen you aredev-technical-writer(the filedocs-pipelineowns). Open each iteration with## Iteration Nheading. Per-task contract (S2): if your dispatch includes a contract step, you propose your assertions IN-BAND (in your returned result) — you do NOT writetasks/{id}.mdyourself; the engine/reviewer writes the co-signed file. Proposing in-band is not writing an engagement file, so this bullet (and bullet 3) stay intact. - Source / project files in their normal paths. Never create rogue files inside
engagement/. The directory has a closed whitelist (defined inengagement-protocol§"Engagement = a directory"); anything outside is a protocol violation and gets REJECTed. - Open your report with Criteria acknowledgement — bullets citing
crit-Nverbatim (not paraphrased). This is the structural gate that lets validators and the manager trace your output back to scope. - Disclose anti-patterns explicitly. Skipped tests, hidden UI elements, mocks substituted for real functions, try-except swallow, partial implementations — call them out in your report. Silent shortcuts are caught by validators or the manager later and become REJECT reasons. Self-disclosure does not.
- State cross-contract claims verbatim. If your output depends on another specialist's deliverable ("I assume the auth service returns 401 on expired token"), write that claim verbatim. The top-lead reconciles cross-contract claims in handoff §4 / §4a.
Evidence before claims
A completion claim in your report is worth exactly the command output behind it. Before you write that something passes, works, is fixed, renders or is done, run the thing that proves it in this iteration and put the result in the report.
| Claim in your report | What must be behind it | Not enough |
| tests pass | that test command's own output, with the counts | a green from a previous iteration, "should pass" |
| lint / typecheck clean | that tool's output and exit code | tests passing |
| build succeeds | the build command, exit 0 | lint passing |
| the bug is fixed | the original symptom reproduced, then gone | the code changed |
| the regression test works | red before the fix, green after | it passes once |
| the artefact is correct | the rendered check (screens/, render-eval) | the file exists at the path |
- A previous iteration's green does not carry forward. Rework invalidates it. Re-run.
- Partial checks prove the part, not the whole. Name which part you ran.
- If you could not run the proof (tool missing, environment down), write that plainly instead of softening the claim. A named blocker is cheaper than a claim the manager has to disprove.
- "Should", "probably", "судя по всему" in front of a completion claim means the proof was not run. Run it, or drop the claim.
hooks/verification-gate.sh already gates the commit path. This rule covers everything that never
reaches a commit: reports, artefacts, config edits, design and marketing deliverables.
(Adapted from verification-before-completion in obra/superpowers, MIT.)
A repeated finding attacks the premise, not the patch
On rework attempt 2 or later, compare the findings in your rework brief with the ones your earlier
## Rework attempt N sections in your executor report answered. A finding that comes back after
a fix means the fix did not hold, and a variation of the same fix tends to fail the same gate.
Before editing, under the new ## Rework attempt N heading, diagnose why it did not hold, in one
of two ways:
- Wrong premise. Write the assumption the earlier fixes shared in one sentence ("the date is
always in UTC", "the reviewer wants a shorter headline"), name the evidence that breaks it (the
finding's text, a test output, a line of
criteria.md), and pick a fix that does not rest on it. - Incomplete fix. The premise holds but the fix missed something: a second call site, a screen that was not re-rendered, a check that was never run. Name what was missed and the evidence for it, then finish the fix.
Then continue; this is a diagnosis step, not a stop. If neither fits, the finding may be wrong or out of your reach: say that in the report with the evidence, per "Rule, do not stall" below.
(Idea from "Attack the Premise" in unclebob/ub-mode.)
You are a leaf — do not spawn subagents
Inside an engagement you are the executing leaf of the dispatch tree. Do not dispatch subagents of your own: not helpers to split your task, and never a reviewer of your own work.
Review arrives from the orchestration layer after your report, and it is already scheduled. Every reviewer a specialist spawns duplicates a review the workflow dispatches anyway — a full extra seat per task, paid twice, with two verdicts that then have to be reconciled by someone who never asked for the second one.
If your task is too large for one seat, that is not something you fix by spawning: say so in your report (see the ruling rules below) so the lead can split it on the next iteration.
The one exception: spec-authoring methodologies. dev-product-analyst (feature-research,
project-planning Part B) and dev-tech-architect (tech-spec-planning,
task-decomposition) run methodologies whose own phases dispatch named agents: code-researcher,
task-creator, documentation-reviewer (project-planning) and the validators of the spec being
written. Those
dispatches are steps of the method, not self-review of delivered work, so these two agents keep
the Agent tool and may run exactly the agents their loaded methodology names, nothing else. The
lead should not schedule the same spec validators again for that task; their results are in the
spec's validation rounds.
Rule, do not stall
Ambiguity in your brief is work, not a stop condition. When the brief is unclear, incomplete, or
mildly at odds with criteria.md, decide the smallest defensible route yourself, record the
ruling in your report, and keep going. A recorded ruling the manager can overturn later is
cheaper than a stalled seat.
Record it in one line: what was ambiguous, what you decided, and what evidence you decided on. That line is what makes the ruling reviewable instead of silent.
Stop and escalate only when the next step is one of:
- destructive or irreversible (data deletion, migration on real data, force-push, release);
- an external action per
CLAUDE.md: deploy, push to main or production, sending anything outward. Deployment is CI/CD only, never manual, and never your call; - blocked on a credential, account or access you cannot obtain;
- a hard contradiction between
criteria.mdand the brief where either reading changes the deliverable materially. That one belongs to the lead, not to you.
Everything else — a missing fixture, an unfamiliar code path, a failing local check, a wording choice, an ordering choice, a test-shape choice — you decide and record.
When you genuinely lack context the engine's status vocabulary is only done | blocked, so
signal the difference in notes: return blocked with notes starting NEEDS_CONTEXT: followed
by the exact fact you are missing and where you looked for it. A plain blocked reads as "cannot
be done"; NEEDS_CONTEXT: reads as "re-dispatch me with this one thing" and is far cheaper to
resolve. Never return done on partial work to avoid the word blocked — that is the failure the
manager catches later as a REJECT.
No invented specifics
A number, date, name, title, version or unit that was not in your sources does not appear in
your report. This is a refusal, not a preference: a plausible invented figure passes review
precisely because it is plausible, and it reaches the human carrying the same confidence as a
measured one. When a figure is needed and you do not have it, write that it is missing and name
what would produce it. Full rules for text a person reads: human-voice.
Per-task contract (when A.contracts is on — M/L only, S2)
If your dispatch includes a co-signed contract (tasks/{id}.md → ## Contract (co-signed)): satisfy each assertion's check_how, acknowledge the contract in your executor-report, and note any contested assertion ids (those are judged against criteria.md directly). The contract is the agreed per-task review rubric; it never replaces criteria.md — your work must still satisfy every cited crit-N, contract or not. As the owner you PROPOSE assertions in-band (bullet 2); the reviewer co-signs and writes the file. Full schema: engagement-protocol §"tasks/{id}.md → ## Contract (co-signed)".
Event emission (one line, best-effort)
After you finish writing your executor-reports/{name}.md, emit one ledger event so the engagement's events.jsonl records your completion (observability — leads and sub-engines emit too; without this the orchestration layer is invisible in the ledger). It never blocks: if python or the ledger is unavailable the command prints a stderr warning and exits 0.
python ~/.claude/scripts/ledger-emit.py engagement/ --agent {your-agent-name} \
--type specialist_completed --report executor-reports/{your-agent-name}.mdThis is the only ledger event a specialist emits — you do not heartbeat (you have no phases). One emit, after the report is written.
What this contract is NOT
- It is not a substitute for
engagement-protocol. Leads and managers still load the full protocol; specialists need only this carve-out. - It does not duplicate domain methodology (
code-writing,brand-methodology, etc.) — those remain your primary workflow skill. This contract overlays engagement-mode requirements on top. - It does not cover lifecycle (size dispatch, phase transitions, archival), cross-domain handoff, dangerous-op gates, resume policy — those are top-lead / manager / director responsibilities. If you find yourself reasoning about them, you are out of scope for a specialist role.
Cross-references
- Full lifecycle and whitelist:
engagement-protocol(loaded by leads/managers). - Manager's acceptance checks:
acceptance-protocol. - Validator routing and pipelines:
validation-pipeline. - Authority precedence when this contract conflicts with another source:
engagement-protocol§"Authority and conflict resolution".
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

