seam-audit
Audit the boundary where two components represent the same concept, because each side can pass its own tests while the combined system is wrong. Use when a value looks coherent but is wrong, when a projection or compatibility view stands in for a full record, when sync or merge involves deletes, when status codes or result shapes cross a boundary, or when "unknown" may become zero, false, or success as it crosses between two components. Do not use for a defect inside one component (use systemic-bug-instinct), for grading one claim's certainty (use truth-boundary), or for a financial repair's preview and commit (use ledger-repair).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- seam-audit
- description
- Audit the boundary where two components represent the same concept, because each side can pass its own tests while the combined system is wrong. Use when a value looks coherent but is wrong, when a projection or compatibility view stands in for a full record, when sync or merge involves deletes, when status codes or result shapes cross a boundary, or when "unknown" may become zero, false, or success as it crosses between two components. Do not use for a defect inside one component (use systemic-bug-instinct), for grading one claim's certainty (use truth-boundary), or for a financial repair's preview and commit (use ledger-repair).
02 资源文件 1
- 参考文档agents/openai.yaml95 B
03 SKILL.md 正文
Seam Audit
Rule
Each side can be right while the system is wrong. Audit the join, not just the parts.
Most dangerous defects produce values that look coherent. They live where two representations of one idea meet: a reader and a writer, a preview and a commit, a list view and the full record, two devices merging. Local tests pass on both sides because each side is internally consistent.
Workflow
- Name the concept and every place it is represented. List each component that holds, reads, writes, or displays it.
- Ask the seam questions for each pair:
- Definition. Do both sides mean the same thing by the word, such as "unverified", "deleted", "complete", "available"?
- Shape. Does a result field read on one side exist under that name on the other? A success flag spelled differently reads as failure, or as success, by accident.
- Projection. Does a summary or list view drop fields that carry the meaning, and does anything downstream treat it as the full record?
- Preview and commit. Does the dry run check the same conditions as the real write?
- Readers. When several readers parse one external format, do they accept and reject the same files when each parses by the format's own quoting and spacing rules, never by matching raw text? Prefer one shared parser. Where several must remain, test them all against one shared synthetic fixture, so a format change reaches every one.
- Clocks. Are event time, recorded time, settlement time, and effective time being collapsed into one?
- Lifecycle. Does a delete stay deleted under merge, replay, or sync from another device?
- Grade. Does an evidence or confidence level mean the same thing to the retriever, the scorer, the display, and the writer?
- Unknown. Is "unknown" or "not available" turned into 0, false, empty, or success anywhere along the path?
- Force the two sides to meet. Drive real inputs through both components together, rather than testing each with mocks of the other. Record CONTROL (expected behavior), MUTATION (the condition under test), RESTORE (back to control), and the outputs, as in
swarmaudit-graph Phase B. - Fix at the shared definition. Route both sides through one canonical definition, shape, or clock, rather than patching the side where the symptom appeared.
- Pin the seam. Add a test that exercises both sides together and fails if they diverge again.
Anti-patterns
- Fixing the display because that is where the wrong number showed up.
- Two tests, one per side, each mocking the other.
- A second, simpler checker written for one side that drifts from the real one.
Relationship
systemic-bug-instinct owns the diagnosis; seam-audit is the checklist for where its blast-radius search looks. truth-boundary grades a single claim; this checks that the grade survives the crossing. The audit-graph topology in swarm scales this to many seams at once.
Falsify it
For each pair, construct one input where the two sides should disagree if the seam were broken, such as a deleted record from another device, a withheld value, or a dry run of a write that should be refused. Run it through both together. If you cannot construct such an input, you have not identified the seam yet.
Stop conditions
- The canonical definition is contested and no authority has decided it.
- Forcing the sides together would write to real data.
Output
CONCEPT · REPRESENTATIONS · SEAM QUESTIONS FAILED · JOINT TEST (CONTROL, MUTATION, RESTORE, outputs) · CANONICAL FIX LOCUS · PINNING TEST.
04 同仓库更多 Skills
verify-before-cite
Live-verify work state before reporting or relying on it, and reconcile every place that state is recorded. Use before a status report, standup, handoff, or "what's open" answer; when a tracker, queue, memory note, or prior session says something is pending, merged, shipped, or blocked; after any merge, release, or promotion; or when records in two places disagree. Do not use to judge whether a claim about data or numbers is proven.
truth-boundary
Enforce provenance and uncertainty boundaries. Use when a system mixes observed, authoritative, user-attested, derived, estimated, inferred, reconstructed, or unknown values; when missing data could become zero; or when downstream output may overstate certainty. Also use when told to fill a missing, failed, or empty value with zero, a default, or a guess so the work can keep going.
systemic-bug-instinct
Use first, before reading, searching or editing code, whenever a defect, wrong value or balance, stale state, edge-case failure, broken workflow, or misleading UI is reported and a fix is requested, even when the request names the one file to patch. Diagnoses the bug as a possibly systemic failure to find the root mechanism, failure class, blast radius across sibling consumers, fix location, and regression guard. Do not use for a one-line typo or syntax fix, for two components that disagree about one concept (use seam-audit), for a dense screen whose value may be a presentation problem (use operator-ui-audit), or for financial records that contradict each other (use accounting-integrity).
swarm
Design and run the smallest effective multi-agent harness for complex work. Use when the user explicitly says SWARM or asks for a swarm, multi-agent workflow, adaptive orchestration, harness design, parallel investigation, independent falsification, architecture reconciliation, broad audit, competing root-cause hypotheses, or high-risk work that benefits from independent reasoning lanes. Do not use for trivial edits or linear tasks one agent can complete cheaply; the best swarm may use zero subagents. SWARM grants orchestration, not broader implementation, merge, deploy, credential, financial, or destructive authority.
shipping-lanes
Design, run, or adopt a pipeline in which agent-written changes are reviewed and merged without a person in the routine loop, with review and landing matched to each change's risk. Use when setting up or changing how PRs get reviewed and merged by agents; when every change waits on one person, or none gets reviewed; when a reviewer is only reached if the author asks for it; when docs and permission changes take the same path; or when bringing a new repository onto the shared shipping system. Do not use to decide whether one specific merge is authorised (use merge-authority), to judge a finished-looking result (use false-competence-check), or to prove a single guard is reached (use reachability-proof).
risk-kernel
Design structural safety for an agent that acts without per-action human approval. Use when an agent will execute, trade, spend, deploy, send, or mutate real state autonomously; when someone proposes prompt instructions or policy text as the safety layer; when an agent can edit its own strategy, limits, or stage; or when reviewing whether a forbidden capability is truly unreachable. Do not use to judge whether an individual action is a good idea.