agentleFS
JayuanlabJayuanlab/zhiyu/skills/harness-quality-control/SKILL.md

harness-quality-control

Skill0 starsChanged 2 months agoApache-2.0View on GitHub

Audit Zhiyu Work Harness quality from structured run evidence, diagnose recurring failures, run isolated baseline-versus-candidate evaluations, and submit owner-reviewable Harness Change Proposal v2 records. Use for scheduled Harness quality audits, repeated Work or Loop failures, candidate regression checks, and evidence-backed prompt, skill, loop, memory-profile, context-policy, or artifact-policy improvements. Never use it to publish changes, alter permissions or grants, weaken denied rules, expose cross-Work memory, or execute real-world actions.

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. About 0 are common, 17 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    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:

    Treat a Work Harness as a versioned controller.

    line 8
  2. Very specific:

    Call workshopInspectHarnessQuality for one target Work.

    line 17
  3. Distinctive:

    Check evidence completeness before interpreting failures.

    line 18
  4. Distinctive:

    Look for a recurring pattern across at least two independent Evidence Bundles.

    line 20
  5. Distinctive:

    If evidence is insufficient, write an observation and request more capture.

    line 21
  6. Very specific:

    Create a falsifiable Proposal v2 with workshopCreateHarnessProposal.

    line 23
  7. Distinctive:

    Stop. The owner must approve and materialize the candidate.

    line 24
  8. Very specific:

    After owner materialization, call workshopCreateHarnessEvaluationCampaign, then workshopRunHarnessEvaluation.

    line 25
  9. Distinctive:

    Read references/proposal-contract.md before constructing a proposal or interpreting a campaign.

    line 28
  10. Distinctive:

    Use event or run references only when the target Work can independently resolve them.

    line 33
  11. Distinctive:

    Do not copy raw event bodies, memory content, credentials, user messages, or hidden evaluation fixtures into a proposal.

    line 34
  12. Very specific:

    Never target system_protected, observe_only, or risk protected components.

    line 41
  13. Distinctive:

    Never remove denied actions, change permission or grant policy, disable audit, weaken protected verifiers, or expand real-world action …

    line 42
  14. Distinctive:

    Prefer a JSON Merge Patch that changes the smallest useful surface.

    line 43
  15. Distinctive:

    Keep the base Work Version, Snapshot ID, component hash, and before Revision exactly as returned by inspection.

    line 44
  16. Distinctive:

    Use numeric prediction thresholds so attribution can confirm or refute them.

    line 46
  17. Distinctive:

    Run only built-in deterministic replay, dry-run, or simulation fixtures.

    line 51
  18. Distinctive:

    Treat external send, real funds, deletion, payment, permission changes, and grant changes as forbidden.

    line 52
  19. Distinctive:

    Treat missing runs, timeouts, runtime-contract drift, and insufficient samples as inconclusive.

    line 54
  20. Distinctive:

    Do not inspect, rewrite, or optimize against hidden holdout fixtures.

    line 55
  21. Distinctive:

    Never claim that production changed unless a separate owner-controlled publish event exists.

    line 69

≈ “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.

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

Harness Quality Control

Treat a Work Harness as a versioned controller. Improve it only through an observable, falsifiable loop:

run evidence -> diagnosis -> narrow hypothesis -> proposal -> owner approval
-> isolated candidate -> matched evaluation -> verdict -> owner decision

Audit Workflow

  1. Call workshopInspectHarnessQuality for one target Work.
  2. Check evidence completeness before interpreting failures. Treat partial capture as uncertainty.
  3. Separate data, access, tool, context, memory, planning, verification, artifact, and external-dependency symptoms.
  4. Look for a recurring pattern across at least two independent Evidence Bundles. A deterministic configuration defect may be proposed from one verified case.
  5. If evidence is insufficient, write an observation and request more capture. Do not create a speculative proposal.
  6. Select one primary Harness component type. Set attributionLimited=true only when a coupled change is unavoidable and explain why attribution will be weaker.
  7. Create a falsifiable Proposal v2 with workshopCreateHarnessProposal.
  8. Stop. The owner must approve and materialize the candidate.
  9. After owner materialization, call workshopCreateHarnessEvaluationCampaign, then workshopRunHarnessEvaluation.
  10. Report the scenario-level verdict and leave production publishing to the owner.

Read references/proposal-contract.md before constructing a proposal or interpreting a campaign.

Evidence Rules

  • Cite only verifiedEvidenceRef values returned by the inspection tool as verified Harness evidence.
  • Use event or run references only when the target Work can independently resolve them.
  • Do not copy raw event bodies, memory content, credentials, user messages, or hidden evaluation fixtures into a proposal.
  • A denied candidate count normally proves policy enforcement. It does not prove a missing grant.
  • Missing context logs mean unobserved execution, not a dormant or broken Work.
  • Correlation across runs is a root-cause candidate, not proof. Keep confidence and alternative causes explicit.

Change Rules

  • Never target system_protected, observe_only, or risk protected components.
  • Never remove denied actions, change permission or grant policy, disable audit, weaken protected verifiers, or expand real-world action powers.
  • Prefer a JSON Merge Patch that changes the smallest useful surface.
  • Keep the base Work Version, Snapshot ID, component hash, and before Revision exactly as returned by inspection.
  • Include at least one predicted fix, one regression guard, measurable success criteria, and a component or Work-version rollback plan.
  • Use numeric prediction thresholds so attribution can confirm or refute them.

Evaluation Rules

  • Compare baseline and candidate under the same runtime contract and budget.
  • Run only built-in deterministic replay, dry-run, or simulation fixtures.
  • Treat external send, real funds, deletion, payment, permission changes, and grant changes as forbidden.
  • Let hard-invariant failures dominate aggregate scores.
  • Treat missing runs, timeouts, runtime-contract drift, and insufficient samples as inconclusive.
  • Do not inspect, rewrite, or optimize against hidden holdout fixtures.
  • A confirmed candidate is still not published. It remains an owner decision.

Finish Each Run

Record:

  • observation window and Evidence Bundle ids;
  • failure pattern and confidence;
  • whether a proposal was created or withheld;
  • proposal, campaign, and verdict ids when present;
  • hard-invariant failures and regressions;
  • the next checkpoint or owner action.

Never claim that production changed unless a separate owner-controlled publish event exists.

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.