agentleFS
tuoithotuoitho/contract-first-agent-workflow/skills/executing-persistent-workstreams/SKILL.md

executing-persistent-workstreams

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Use when a workstream contract assigns related behaviors to the same implementation owner (service, module, frontend, producer/consumer) and implementation context should persist across them.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After the last owned behavior:

    line 26
  2. Distinctive:

    Do not let chat/session memory become source of truth.

    line 35
  3. Very specific:

    If implementation exposes a missing, contradictory, or incorrect frozen contract, stop that affected behavior and invoke …

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Executing Persistent Workstreams

One workstream owner retains implementation context across the behaviors assigned in its workstream contract.

Session scope

At session start read the current repository state, approved requirements/design (including the verification strategy), frozen contracts owned or consumed by the workstream, and the workstream contract at .dream/specs/<feature>/workstreams/<owner-id>.md.

Execute owned behaviors in dependency order. For each behavior:

  1. establish its contract/scenario acceptance boundary;
  2. implement using repository conventions and normal TDD discipline;
  3. invoke verifying-task-gates at task level: focused tests for the changed behavior plus relevant regression and build/static checks;
  4. checkpoint material repository decisions and progress;
  5. continue to the next owned behavior in the same workstream.

Task-level verification stays local. Do not start application servers, browsers, or broad cross-cutting suites after every internal step; broader layers belong to workstream and feature verification.

Workstream completion

After the last owned behavior:

  1. execute the remaining verification layers assigned to this workstream in its Verification Obligations (typically required integration tests and executable contract checks);
  2. record per-layer evidence: verification layer; command/tool; result (PASS/FAIL/BLOCKED); relevant test/scenario; any required layer not executed and why;
  3. report completion against specific contract revisions (verified_against), never as unqualified "done";
  4. apply reviewing-workstreams at meaningful batch boundaries per the orchestrator.

A required layer that was not executed is NOT considered passed.

Do not let chat/session memory become source of truth. Persist material decisions in repository artifacts; a replacement owner must be able to resume from repository + specs + workstream contract status.

Contract rule

If implementation exposes a missing, contradictory, or incorrect frozen contract, stop that affected behavior and invoke managing-contract-revisions. Do not make an undocumented provider/consumer agreement inside the session.

Context reset

Retain the owner while the workstream remains coherent. Start a fresh owner when context has become dominated by obsolete attempts, or when the next work crosses into a genuinely independent bounded context. A fresh owner must rediscover from repository artifacts, not inherit private reasoning transcripts.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.