agentleFS
ArenukvernArenukvern/skill_steward/skills/harness-engineering-lifecycle/SKILL.md

harness-engineering-lifecycle

Skill14 starsChanged 5 months agoMITView on GitHub

For generalizing a proven local steward.yaml harness across producer-consumer repos, polyrepo CLI/MCP integration, and sibling-repo dogfood after a contract exists. Not for cold-start adoption, first steward.yaml, first quick probe, or skill packaging—use repo-quality-system-lifecycle or skill-authoring-lifecycle.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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
  1. Distinctive:

    When engineering a harness beyond one local contract, follow the Cascading Agent Surface guidelines.

    line 35
  2. Very specific:

    Declarative configuration: Use a configuration file (like steward.yaml) to specify:

    line 45
  3. Very specific:

    Pruned traversals: Never perform recursive file-walking (list(recursive: true)) without pruning standard build/VCS folders early.

    line 49
  4. Very specific:

    Generalized checks: Do not hardcode linters. Use parameterized declarative engines (e.g.

    line 50
  5. Distinctive:

    When you make changes to the harness (Producer), you must validate it against dependent downstream projects (Consumer).

    line 54
  6. Distinctive:

    Capture Adoption Friction: Run the consumer's validation suite using the local producer build.

    line 58
  7. Very specific:

    Consumer Configuration Remediation: Update the *Consumer* repository to leverage the new generalized features (e.g.

    line 60
  8. Distinctive:

    Dual Verification: Verify that the consumer suite passes, and the producer suite passes.

    line 61
  9. Distinctive:

    Before promoting a generalized harness change, capture the proof from both sides.

    line 68
  10. Distinctive:

    Do not promote a local fix into the generalized harness when only one consumer has a private path workaround.

    line 78

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

Harness Engineering Lifecycle

Evolve a proven repo-local contract into a generalized harness, then dogfood it across a producer-consumer boundary. Ordinary work: work discipline.

The former mcp-harness-repo-maintainer skill was removed in 0.6.0. Cold start and cross-repo generalization are one lifecycle: do not add typed actions, probes, or benchmarks until a local contract exists and the native gate is the thing you rerun. Green Steward artifacts are not a product use-path.

When to use

  • Evolving custom validation scripts into a central linter engine.
  • Extending steward CLI features for large polyrepos.
  • Testing a local CLI/harness build against a sibling repository to catch path-resolution crashes or integration friction.
  • Turning repeated local benchmark/probe findings into a reusable harness feature.

When not to use

  • Initial steward.yaml adoption or first quick probe in one repo — use repo-quality-system-lifecycle (catalog cold-start route).
  • Skill creation, registry updates, or marketplace packaging — use skill-authoring-lifecycle.
  • Product-specific diagnostics before a cold-start contract exists — first add a bounded action, probe, and scenario in the target repo.

Part 1: The Cascading Agent Surface (Architecture & Generalization)

When engineering a harness beyond one local contract, follow the Cascading Agent Surface guidelines. A strict separation of tools vs skills can fail once repo workflows span multiple packages, adapters, or consumers. Instead, link them using domain-agnostic abstractions:

  1. Layer 0 (The Embedded Agent Surface): The target application or engine must natively expose its internal state via explicit hooks (e.g., RPC or memory probes). Do not rely on brittle UI scraping or black-box testing.
  2. Layer 1 (The Protocol Adapter): Build generalized MCP servers or protocol adapters to connect to Layer 0. These tools provide raw visibility and actuation (e.g., taking screenshots, reading memory) but must contain NO business logic.
  3. Layer 2 (The Orchestrator): Build specialized harness CLIs that use their own automation/scripting to chain multiple Layer 1 actions together. The Orchestrator's primary job is the Fast Feedback Loop: it must emit structured, diagnostic JSON to pinpoint exactly what broke across boundaries.
  4. Layer 3 (The AI Wrapper): Following the agentskills.io spec, Skills can and should contain thin-wrapper tools (scripts). The Skill acts as the AI's brain: it teaches the AI how to trigger Layer 2, interpret its complex JSON heuristics, and safely execute domain-specific recovery tools.

Generalization Principles

  1. Decouple transport from engine: Command interfaces (CLI) and JSON-RPC (MCP) are thin wrappers. All logic lives in a reusable core package.
  2. Declarative configuration: Use a configuration file (like steward.yaml) to specify:
    • Branding: Name and description of the harness.
    • Actions: Typed, bounded repo-local commands with effects, limits, outputs, and evidence policy.
    • Documentation lattice: Maps of labels to specific doc files.
  3. Pruned traversals: Never perform recursive file-walking (list(recursive: true)) without pruning standard build/VCS folders early.
  4. Generalized checks: Do not hardcode linters. Use parameterized declarative engines (e.g. disallowed-substrings).

Part 2: Cross-Repo Remediation (Testing)

When you make changes to the harness (Producer), you must validate it against dependent downstream projects (Consumer).

  1. Establish Sibling Baseline: Locate the consumer repository (e.g. ../<consumer-repo-name>). Run its tests to ensure it starts green. Do not change it yet.
  2. Deploy Local Producer: Build and install the local development version of your harness.
  3. Capture Adoption Friction: Run the consumer's validation suite using the local producer build. Document path crashes or fragile rules in a scratchpad.
  4. Core Remediation: Fix the root causes in the Producer codebase. Generalize the fix; do not write consumer-specific hacks.
  5. Consumer Configuration Remediation: Update the Consumer repository to leverage the new generalized features (e.g. updating its steward.yaml).
  6. Dual Verification: Verify that the consumer suite passes, and the producer suite passes.
  7. Durable Knowledge: Extract any learnings to ADRs or FAQs using the repository-governance-lifecycle skill.

Detour stop rule: Apply work discipline §2 if producer install/wiring fails twice; record friction, use the consumer native gate when possible, and do not promote a generalized harness capability from that detour.

Producer/consumer proof artifacts

Before promoting a generalized harness change, capture the proof from both sides.

SideRequired artifactPurpose
ProducerChanged schema/action/rule with tests or validator outputShows the generalized feature works in the source harness.
ConsumerUpdated steward.yaml or scenario manifestShows adoption does not require local-path magic.
ConsumerBenchmark summary or truthful durability_blocked outputShows a fresh agent can see what is proven and what is blocked.
BothValidation commands and versionsMakes failures reproducible across repos.
DocsADR/FAQ update when the boundary changedKeeps future agents from rediscovering the same split.

Do not promote a local fix into the generalized harness when only one consumer has a private path workaround. Keep it local until the contract, schema, or rule has a reusable shape and at least one held-out or future-agent repeat proves it transfers.

Install

npx skills add arenukvern/skill_steward --skill harness-engineering-lifecycle

Sources

See references/sources.md.

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.