agentleFS
ostrium-labsostrium-labs/loams-skills/skills/conformance-testing/SKILL.md

conformance-testing

Skill1 starsChanged 38 days agoApache-2.0View on GitHub

Design the test strategy for a Loams migration: unit, contract, integration, conformance, failure injection, load, and upgrade tests, with the gates that let a stage pass. Use when building the pilot or preparing for cutover.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Pin fixtures: Use the shared corpus for SDK behaviour.

    line 46
  2. Distinctive:

    Test consistency: Write, read in another process with the token.

    line 50
  3. Distinctive:

    Do not test only the happy path.

    line 70
  4. Distinctive:

    Do not load-test production without a stop switch and an owner.

    line 71
  5. Distinctive:

    Do not accept an upgrade without a rollback path.

    line 72

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

Conformance testing

The question is not "does it compile?" but "does it behave the same under failure, replay, and load?".

When to use

  • Stage 3, before the pilot is called done.
  • Stage 4, before data migration.
  • Stage 5, before cutover.
  • A cross-language or upgrade regression appears.

Inputs

  • The service contract and SLOs.
  • reference/sdk/runtime-contract.md and reference/sdk/fixtures.md.
  • The company's test infrastructure and CI.

Layers

LayerWhat it proves
UnitDomain invariants; no I/O
ContractThe API shape and error codes callers depend on
IntegrationThe service against a real loams dev
ConformanceThe SDK follows R1–R14 across languages
Failure injectionTimeouts, retries, duplicate writes, partial failure
Loadp95/p99, saturation, queue lag, recall
UpgradeA version change does not break data or clients
RestoreA backup can be restored inside the RTO

Procedure

  1. Write the acceptance gates per stage in company/testing/acceptance.md.
  2. Pin fixtures. Use the shared corpus for SDK behaviour; add company fixtures for the domain.
  3. Test idempotency. Send the same mutation twice; assert one effect and the same consistency token semantics.
  4. Test consistency. Write, read in another process with the token; assert read-your-write when required.
  5. Inject faults. Drop connections, delay, return Unavailable, ResourceExhausted, and DeadlineExceeded; assert bounded retries.
  6. Load test at 2× expected peak; record p95/p99 and the saturation point.
  7. Upgrade test on a copy: old data, new binary, old client, new client.
  8. Restore drill from the disk snapshot and the bucket.
  9. Wire CI: unit/contract on every PR; integration nightly; load and upgrade before a release.

Outputs

  • company/testing/acceptance.md.
  • company/testing/load-plan.md.
  • CI jobs and fixtures.
  • A gate report per stage.

Guardrails

  • A green unit suite is not a conformance result.
  • Do not test only the happy path.
  • Do not load-test production without a stop switch and an owner.
  • Do not accept an upgrade without a rollback path.

References

  • Runtime contract
  • Fixtures
  • Migration playbook

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.