[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71G07DG6FYREQ3P8FA06BSX":3,"skill-same:01M71G07DG6FYREQ3P8FA06BSX":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M71G07DG6FYREQ3P8FA06BSX","audit-python-test",null,"Python test-evidence audit methodology — judges the Python tests in scope against the product-tree and Python-specific evidence properties.","outcomeeng\u002Fplugins","outcomeeng","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257335685?v=4","01M71FRVRF36XYR3HRSCGFHK2R","Outcome Engineering","01M71FRVS4BZG17DWANFJ7EPNY",1,"MIT","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fpython\u002Fskills\u002Faudit-python-test\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"audit","python","audit python test","test","Bash","audit methodology","use","methodology","tests","git","grep","tool","read","scope","product","diff","properties","evidence","tree","2026-11-10 10:12:30",false,"---\nname: audit-python-test\ndescription: >-\n  Python test-evidence audit methodology — judges the Python tests in scope\n  against the product-tree and Python-specific evidence properties.\nallowed-tools: Read, Grep, Glob, Bash(git diff:*), {{! tool('use_skill') !}}\n---\n\n\u003Cobjective>\nA verdict on Python test evidence — APPROVED, or REJECTED with each finding naming the assertion or evidence artifact, the failed evidence property, and the evidence.\n\u003C\u002Fobjective>\n\n\u003Cconstraints>\n\nThis audit is read-only. Produce a verdict over test evidence; never edit tests, production code, specs, fixtures, harnesses, generators, or project configuration.\n\n\u003C\u002Fconstraints>\n\n\u003Caudit_workflow>\n\n\u003Cprerequisites>\n\n{!% require_skill 'python:python-code-standards' %!}\n\n{!% require_skill 'python:python-test-standards' %!}\n\n{!% require_skill 'product-tree:audit-tests' %!}\n\n{!% require_skill 'product-tree:test' %!}\n\nRead `spx\u002Flocal\u002Fpython.md` and `spx\u002Flocal\u002Fpython-tests.md` when they exist; otherwise apply the loaded skills only. Each overlay routes behavior to the product's governing specs and decisions, supplements the loaded skills, and does not declare product truth.\n\nUse skill `product-tree:contextualize` on the spec node under audit — `\u003CPRODUCT_TREE_CONTEXT>` marker must be present before Gate 1.\n\n\u003C\u002Fprerequisites>\n\n\u003Caudit_scope>\nBegin with the current governing spec and its current evidence links. A deleted test or test-infrastructure path belongs to this audit only when a current `[test]` assertion still links it or a current linked test still imports it. When the current spec carries no `[test]` link to the deleted path and no current evidence chain references it, classify the retired path as outside current Python test-evidence scope and return `NOT_APPLICABLE` for that path. Never demand restoration of deterministic evidence solely because the base revision or changeset deletion names the retired path. When a current `[test]` assertion still links a missing path, report missing evidence against that current assertion.\n\nUse read-only `git diff` only when the supplied changeset scope requires confirming whether an evidence path was deleted. Run no other shell command from this concern skill.\n\nFor every in-scope test assertion, inspect the full evidence chain:\n\n- The spec assertion and selected assertion type\n- The executed test file\n- Imported production modules\n- Imported `\u003Cpackage>_testing.harnesses.*` modules\n- Imported `\u003Cpackage>_testing.generators.*` modules\n- Inert fixture path providers and fixture data files referenced by the test\n- `conftest.py` files that apply to the test\n\nDo not approve a test by looking only at the test file. Laundering and severed coupling can live in generators, harnesses, fixture path providers, and pytest discovery shims.\n\u003C\u002Faudit_scope>\n\n\u003Cno_deterministic_verification>\nThis audit runs no deterministic verification — no test collection, lint, type-check, coverage, or naming-convention command. Spend the whole audit on reading the evidence chain.\n\u003C\u002Fno_deterministic_verification>\n\n\u003Cstructural_reading>\nBefore Gate 1, read each in-scope test filename. Canonical Python evidence files match `test_\u003Csubject>.\u003Cevidence>.\u003Clevel>[.\u003Crunner>].py`, where `\u003Cevidence>` is `scenario`, `mapping`, `conformance`, `property`, or `compliance` and `\u003Clevel>` is `l1`, `l2`, or `l3`. Reject the legacy suffixes `\u002Fpython-test-standards` names — `.unit.py`, `.integration.py`, `.e2e.py`, `.spec.py` — as a Gate 1 `filename_policy` finding carrying property `alignment` from the base `\u002Faudit-tests` enum, since a filename that misdeclares its evidence type or level misaligns the file with the assertion it claims to evidence. The project's validation owns the convention; fold this reading observation into Gate 1 rather than running a naming-convention command.\n\u003C\u002Fstructural_reading>\n\n\u003Ctest_file_declarations>\nApply the base `\u002Faudit-tests` semantic binding screen before coupling. Python assignments, annotated assignments, named expressions, loop bindings, context-manager bindings, exception bindings, pattern bindings, pytest fixture parameters, and property-generated parameters are valid when they only receive actual results, source-owned contracts, generated values, harness observations, callback inputs, resource handles, or fixture paths and introduce no data or policy. In particular, accept `tmp_path`, `observations = harness_call(...)`, and assertion-local comprehensions over those observations; none chooses a case, expectation, or policy. Emit a finding carrying property `declarations` and the base `\u002Faudit-tests` rule label the choice matches — `test-owned configuration` when a binding chooses runner settings, seed policy, retries, setup policy, or lifecycle policy, and `test-owned data` when it chooses hand-picked data, boundary bags, expected outputs, fixture contents, or generator domains. Keep the two labels distinct; collapsing them loses the difference between a configuration defect and a data defect. Local functions are findings when they own those choices — property `declarations` — or when they move a predicate or assertion call out of the linked test function or callback — property `predicate-ownership`, rule `assertion-seam`, remediation target `test-file`.\n\u003C\u002Ftest_file_declarations>\n\n\u003Cgate_1_assertion>\nEntry point is the spec, not the test file.\n\nJudge every in-scope assertion against each audit below. A `REJECT` finding from any audit rejects the assertion it names and moves to the next assertion. An audit whose subject is an imported artifact rather than an assertion — a generator, a harness, an inert fixture, or a `conftest.py` shim — attributes its finding to every in-scope assertion whose evidence chain reaches that artifact, so each finding carries the `assertion` field the base schema requires. The `\u003Cstructural_reading>` and `\u003Ctest_file_declarations>` observations above are folded into this gate rather than reported as a separate deterministic gate.\n\n\u003Ccoupling_audit>\nA `\u003Cpackage>_testing.generators` import is an input-domain provider, audited in `\u003Cgenerator_audit>` rather than classified as coupling here.\n\nImports inside `if TYPE_CHECKING:` do not create runtime coupling. A test with only framework, stdlib, and type-only imports is a tautology unless it reaches production through a harness that itself reaches production.\n\nWhen a test imports a harness, inspect the harness and verify it calls the production behavior the assertion is about. A harness that builds expected values without exercising production is severed coupling.\n\nSpecialize each category of the coupling taxonomy `\u002Faudit-tests` owns to Python imports. Classify from the table below rather than a subset of it; every category the canonical taxonomy names appears here, so a category missing from this table would silently narrow the verdict.\n\n| Category           | Python-specific definition                                                                                                                      | Verdict                                         |\n| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |\n| Direct             | Test imports and calls the governed Python module, function, or class                                                                           | Proceed                                         |\n| Indirect           | Test imports a `\u003Cpackage>_testing.harnesses` module that calls the governed path                                                                | Proceed after harness tracing                   |\n| Transitive         | Test imports a public consumer of the governed module                                                                                           | Proceed if the level matches                    |\n| Laundered indirect | Imports a `\u003Cpackage>_testing` module that exists only to expose hardcoded values back to the test                                               | REJECT — laundering                             |\n| False              | Test imports the module but never calls the assertion-relevant symbols                                                                          | REJECT                                          |\n| Partial            | Test calls the module with the wrong inputs or path, missing the assertion-relevant behavior                                                    | REJECT                                          |\n| None               | Test imports only pytest, Hypothesis, stdlib, or type-only symbols, with zero production coupling                                               | REJECT — tautology                              |\n| Severed            | Test or harness replaces the governed behavior with `unittest.mock`, `MagicMock`, `mocker.patch`, monkeypatch, or an alternate import           | REJECT — coupling severed                       |\n| Prose-coupling     | Reads an authored prose\u002Fdoc body (skill, spec, prompt) and asserts its content, directly or through a harness constant or infrastructure reader | REJECT — couples to authored text, not behavior |\n\nFramework and stdlib imports such as `pytest`, `hypothesis`, `json`, and `pathlib` do not count as coupling by themselves. The Prose-coupling row is the table-side form of a test reading a `src\u002F` or authored-doc body; both reach the same REJECT.\n\nA severed, false, partial, or absent coupling carries property `coupling` from the base enum.\n\u003C\u002Fcoupling_audit>\n\n\u003Cfalsifiability_audit>\nReject replacement of the behavior under test:\n\n- `unittest.mock.patch` replacing the production function, class, module, client, or repository the assertion claims to verify\n- `Mock()` or `MagicMock()` standing in for behavior the assertion claims to verify\n- `mocker.patch(...)` replacing the dependency under test\n- `monkeypatch` replacing the behavior under test\n- `sys.path` or `importlib` tricks that cause tests to import alternate modules\n\nAccept explicit test doubles only when they are passed through dependency injection and map to a `\u002Ftest` Stage 5 exception:\n\n| Exception             | Python pattern                             |\n| --------------------- | ------------------------------------------ |\n| Failure modes         | Class implementing a protocol and raising  |\n| Interaction protocols | Class with typed call recording            |\n| Time\u002Fconcurrency      | Injected clock or controllable scheduler   |\n| Safety                | Class that records intent                  |\n| Combinatorial cost    | Configurable class mirroring real behavior |\n| Observability         | Class capturing hidden boundary details    |\n| Contract probes       | Stub validated against a real schema       |\n\nReplacing the behavior under test carries property `falsifiability` from the base enum — a severed seam means no production mutation can break the test.\n\n\u003C\u002Ffalsifiability_audit>\n\n\u003Csource_ownership_audit>\nThe audit asks one question per test case: *where does this case come from?* The legitimate sources:\n\n| Assertion type | Case source                                                                                                                                                              |\n| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| Scenario       | The spec assertion text — the case is declared by the spec, not invented by the test author                                                                              |\n| Mapping        | A finite source-owned enumeration (enum, registry, schema, structured metadata)                                                                                          |\n| Property       | A generator over a domain — the author writes the invariant, the generator owns the cases                                                                                |\n| Conformance    | An external oracle (schema validator, reference implementation, parser the test doesn't author)                                                                          |\n| Compliance     | The decision record being enforced — the case is the rule itself                                                                                                         |\n| Any (fixture)  | An inert fixture file under `\u003Cpackage>_testing\u002Ffixtures\u002F`, passed to the code under test as a file path or byte stream — the file's whole real-world payload is the case |\n\nThe first five rows pair an assertion type with the case source it normally takes. The Fixture row is cross-cutting: any assertion type may use an inert fixture file as the case. An auditor classifying a test case checks both the assertion type and whether the case is a whole-payload fixture file.\n\nA case that does not have a documentable source outside the author's head is a tautology dressed as a measurement — the test confirms the author's understanding forever, never the spec. The defect is in the case's *origin*. Lexical location (`Final` at module scope, plain assignment, inline literal), syntactic form, and reuse pattern (shared bag, single-value, parametrize row) are irrelevant — the audit names them only as forms the same defect takes.\n\n**Vocabulary check (where the values live).** Independently of case provenance, the *values* used in cases must come from the right home:\n\n| Value kind                                                   | Lives in                                                                        |\n| ------------------------------------------------------------ | ------------------------------------------------------------------------------- |\n| Production vocabulary (labels, paths, schema fields, tokens) | Owning production module, imported                                              |\n| Variable input domain                                        | Generator under `\u003Cpackage>_testing\u002Fgenerators\u002F`                                 |\n| Resource-bound or runner-tuning value (timeouts, retries)    | The harness module that owns the resource, under `\u003Cpackage>_testing\u002Fharnesses\u002F` |\n| Whole-payload real-world sample                              | Inert fixture file under `\u003Cpackage>_testing\u002Ffixtures\u002F`, read by path            |\n| One-off descriptive text (test titles, diagnostic messages)  | Inline in the test function body                                                |\n\nFor each test case, name the source. REJECT against the missing source when:\n\n- The case's value is production vocabulary the test re-declares instead of imports.\n- The case's value is a container key or f-string template key hand-written by the author — keys are vocabulary; the key belongs to the owning production module.\n- The case's value is a hand-copied YAML\u002FHCL\u002Fbash\u002FJSON schema field name — artifacts are downstream; the Python module that renders or consumes the artifact owns the vocabulary, and that module must be created if it does not yet exist.\n- The case's value is a runner-tuning literal at test scope — the harness that owns the resource owns the timeout, retry count, or polling interval.\n- The case's input or expected output is hand-picked by the author with no source the audit can name — REJECT, the case is a tautology regardless of where it sits lexically.\n\nWhen the missing source is an architectural defect (the Python module that should own the vocabulary does not yet exist), name the module that should be created and the product-tree node that should govern it.\n\nA case or value copied from the module under test carries property `source-ownership`, rule `source-ownership`, remediation target `source-contract`; an expected output computed by the same production path that produces the actual output carries property `oracle-independence`, remediation target `independent-oracle`. These are the two base-enum properties this audit judges.\n\nPass only when every case is traceable to a source independent of the author and every value lives in its proper home.\n\u003C\u002Fsource_ownership_audit>\n\n\u003Cgenerator_audit>\nAudit every imported generator:\n\n- It represents a variable input domain with meaningful variation, composition, or shrinkage\n- It does not duplicate source-owned vocabulary\n- It does not hide arbitrary example values behind a strategy name\n- It derives expected outputs from generated inputs, an independent oracle, or a source outside the module under test\n\nProperty evidence requires a meaningful property. `@given` that only checks for lack of exceptions is insufficient.\n\nA strategy that collapses to a single example or checks only for the absence of exceptions carries property `falsifiability`; a generator that duplicates source-owned vocabulary carries property `source-ownership`, rule `source-ownership`, remediation target `source-contract`; an expected output derived from the module under test carries property `oracle-independence`, remediation target `independent-oracle`.\n\u003C\u002Fgenerator_audit>\n\n\u003Charness_audit>\nAudit every imported harness:\n\n- It manages setup, teardown, cleanup, dependency checks, or access to external behavior\n- It reaches the production behavior the assertion is about\n- It does not replace the behavior under test with framework mocks, monkeypatches, environment stubs, network fakes, or alternate imports\n- It cleans up temp dirs, subprocesses, services, Docker resources, browsers, databases, and environment changes\n- It does not own arbitrary test data that belongs in source modules or generators\n\nA harness that severs the asserted behavior — replacing it or failing to reach production — carries property `coupling`; a harness that owns setup policy, resource-tuning values, or arbitrary test data carries property `declarations`.\n\nPytest fixture callables that perform setup, teardown, cleanup, or dependency access are harness entrypoints. They belong under `\u003Cpackage>_testing.harnesses.*`.\n\u003C\u002Fharness_audit>\n\n\u003Cfixture_audit>\nAudit inert fixture files and fixture path providers:\n\n- Fixture files are real-world payloads whose complete shape matters to the assertion\n- Tests consume fixture files by path, reading, or copying\n- Tests do not import fixture files as Python modules\n- Fixture files do not store isolated strings or numbers as test data\n\nReject Python modules under `\u003Cpackage>_testing\u002Ffixtures\u002F` that export pytest fixture body functions. That category is for inert data files under the PDR vocabulary.\n\u003C\u002Ffixture_audit>\n\n\u003Cconftest_audit>\nInspect every `conftest.py` that applies to the test path.\n\nAllowed content:\n\n- Explicit imports of pytest fixture callables from `\u003Cpackage>_testing.harnesses.*`\n- Pytest marker registration\n- Pytest hooks that configure collection or reporting\n\nRejected content:\n\n- Fixture body code\n- Harness classes or setup policy\n- Generated data\n- Source-owned protocol values\n- Star imports from test infrastructure packages\n- Mocking, monkeypatching, or import-path mutation\n\nA rejected `conftest.py` discovery defect carries property `evidence-chain-completeness` from the base enum — the shim breaks the chain from the assertion to the imported infrastructure.\n\n\u003C\u002Fconftest_audit>\n\nGate 1 status:\n\n- PASS if no Gate 1 finding carries severity `REJECT`.\n- FAIL if any Gate 1 finding carries severity `REJECT`.\n\n\u003C\u002Fgate_1_assertion>\n\n\u003Cgate_2_architectural>\nRuns only if Gate 1 is PASS.\n\n\u003Carchitectural_dry_audit>\nWhen two or more in-scope tests repeat setup or infrastructure logic, reject the duplication and identify the canonical destination:\n\n| Repeated pattern                                      | Destination                           |\n| ----------------------------------------------------- | ------------------------------------- |\n| Temp product scaffolding                              | `\u003Cpackage>_testing.harnesses.*`       |\n| Subprocess or CLI execution setup                     | `\u003Cpackage>_testing.harnesses.*`       |\n| Database, Docker, browser, service, or API setup      | `\u003Cpackage>_testing.harnesses.*`       |\n| Domain-shaped input construction with variable values | `\u003Cpackage>_testing.generators.*`      |\n| Real-world payload samples                            | `\u003Cpackage>_testing\u002Ffixtures\u002F` as data |\n\nDo not recommend `tests\u002Fhelpers`, `tests\u002Fsupport`, node-local test-infrastructure modules, or fixture body code in `conftest.py`.\n\u003C\u002Farchitectural_dry_audit>\n\nGate 2 status:\n\n- PASS if no repeated setup or infrastructure pattern appears in two or more in-scope tests.\n- FAIL if any repeated setup or infrastructure pattern appears in two or more in-scope tests.\n\n\u003C\u002Fgate_2_architectural>\n\n\u003C\u002Faudit_workflow>\n\n\u003Cverdict_format>\nThis skill composes the base `\u002Faudit-tests` verdict: the row names (`gate-1-assertion`, `gate-2-architectural`), the JSON schema, and the closed `property` enum are defined in its `\u003Cverdict_format>` and are not redefined here. This skill contributes Python-specific finding detail into those rows. Put evidence-property findings in `gate-1-assertion` and repeated setup or test-infrastructure extraction findings from `\u003Carchitectural_dry_audit>` in `gate-2-architectural`. Append findings to the matching base rows; never replace a row or emit `gate-0-deterministic`.\n\nEvery finding carries a `property` drawn from the base `\u002Faudit-tests` enum, attributed inline at the audit above that raised it — this skill never re-enumerates the enum or remaps its members here. A Python concern with no home in the base enum is a signal to extend that enum in `\u002Faudit-tests`, never to invent a value here.\n\nEach finding carries the base nine-field record. These Python-specific details accompany that record rather than replacing any of its fields:\n\n- Exact file and line\n- The imported chain when the defect is outside the test file\n- Required fix\n\nEmit `APPROVED` only when all evidence-property checks pass. Emit `REJECTED` when any property fails.\n\nWhen `\u003Caudit_scope>` finds that a retired path has no current `[test]` assertion or current evidence-chain owner, emit this alternate concern result instead of the inherited rows:\n\n```json\n{\n  \"status\": \"NOT_APPLICABLE\",\n  \"subjects\": [\"\u003Cretired-repository-relative-path>\"],\n  \"explanation\": \"No current [test] assertion or evidence chain references the retired path.\"\n}\n```\n\nEmit this shape only when every supplied subject is outside current Python test-evidence scope. A current broken `[test]` link remains applicable and produces the inherited `REJECTED` verdict.\n\u003C\u002Fverdict_format>\n\n\u003Cfailure_modes>\nFailure 1: Accepted `TYPE_CHECKING` import as coupling.\n\nWhat happened: Claude saw `from product.theme import ThemeColor` inside an `if TYPE_CHECKING:` block and counted it as runtime coupling. The test declared its own color values and never executed production code.\n\nWhy it failed: Type-only imports disappear at runtime and cannot couple executed evidence to production behavior.\n\nHow to avoid: Ignore type-only imports for coupling.\n\nFailure 2: Missed coupling severed by `@patch`.\n\nWhat happened: Claude saw a production import and approved the test, while `@patch(\"product.database.query\")` replaced the imported behavior.\n\nWhy it failed: The patch severed the runtime path the import appeared to exercise.\n\nHow to avoid: Check decorators, fixtures, monkeypatch usage, and harness setup code.\n\nFailure 3: Accepted a generator that only hid a constant.\n\nWhat happened: Claude saw a Hypothesis strategy and treated it as property evidence. The strategy returned one copied source value through `st.just(...)`.\n\nWhy it failed: Framework syntax wrapped one example without creating a variable property domain.\n\nHow to avoid: Inspect generator bodies and require meaningful variation.\n\nFailure 4: Accepted pytest fixture body code in `conftest.py`.\n\nWhat happened: Claude treated pytest discovery as a reason to put setup logic in `conftest.py`.\n\nWhy it failed: Discovery wiring became the owner of harness behavior, hiding setup and lifecycle policy outside the canonical test-infrastructure home.\n\nHow to avoid: Check every applicable `conftest.py`; require harness logic to live in the product's test-infrastructure implementation home.\n\nFailure 5: Accepted a hand-picked test case as evidence.\n\nWhat happened: Claude saw `parse(\"name=alice\")` followed by `assert result.name == \"alice\"` and approved the test. The author invented the string to show their understanding of the parser.\n\nWhy it failed: The same mental model produced the case and the implementation, so every run confirmed self-consistency rather than the spec assertion.\n\nHow to avoid: Ask where every case comes from: a generator, an oracle, a fixture, source-owned vocabulary, or the spec assertion text itself. If the author chose it because it seemed reasonable, REJECT.\n\nFailure 6: Container-literal keys treated as opaque scaffolding.\n\nWhat happened: Claude saw `INVENTORY_JSON = f'{{\"flatcar-version\":\"{VERSION}\",...}}'` and classified it as test-fixture scaffolding because the *values* were synthetic. The author hand-wrote production-owned label vocabulary into the keys.\n\nWhy it failed: Container keys are protocol vocabulary; synthetic values do not make copied keys source-owned.\n\nHow to avoid: Audit keys and values separately; require `json.dumps({LABEL: synthetic_value, ...})` with `LABEL` imported from its owner.\n\nFailure 7: \"Artifact is the source-of-truth\" rationalization.\n\nWhat happened: Claude accepted a hand-copied YAML field name, HCL attribute, or systemd unit path because the value appeared in a parsed artifact and no Python module owned it.\n\nWhy it failed: Artifacts are downstream of Python; a missing renderer or consumer module is an architecture defect rather than permission to copy vocabulary into evidence.\n\nHow to avoid: Name the missing source-of-truth module and the product-tree node that should govern it; REJECT against the missing module.\n\nFailure 8: Required restoration of retired deterministic evidence.\n\nWhat happened: Claude followed a base revision's former link to a deleted Python test and harness and rejected the implementation because the deleted files no longer supplied deterministic evidence. The current spec had reclassified the assertions to audit evidence.\n\nWhy it failed: Historical evidence ownership overrode the current governing declaration.\n\nHow to avoid: Derive applicability from current spec links first; return `NOT_APPLICABLE` for a retired deleted path, and report missing evidence only when a current `[test]` assertion still links it.\n\u003C\u002Ffailure_modes>\n\n\u003Csuccess_criteria>\nThe Python test verdict is sound when:\n\n- Every in-scope test was judged on all evidence properties this skill owns with none skipped — coupling, falsifiability, alignment, source ownership, and the Python-specific checks (generators, harnesses, fixtures, `conftest.py`); coverage is judged by the base `\u002Faudit-tests` step that owns it and is never claimed here. Gate 2 was judged when Gate 1 passed and omitted only when Gate 1 rejected the evidence.\n- Every deleted test or test-infrastructure path was classified from current spec links and current evidence chains, with retired evidence returned as `NOT_APPLICABLE` and current broken `[test]` links reported as missing evidence.\n- Applicable scope states an overall `APPROVED` \u002F `REJECTED` with no assertion left unevaluated; a composition-only retired-path scope emits the defined `NOT_APPLICABLE` result.\n- Each finding with inherited severity `REJECT` is falsifiable: it names the assertion or evidence artifact, the failed property, the gate that raised it, and the evidence — including, where the defect is a missing source contract, the production module that should own the vocabulary. The overall verdict remains `REJECTED`.\n- The same test node yields the same verdict regardless of run order (reproducible).\n\n\u003C\u002Fsuccess_criteria>\n\n\u003Creference_guides>\n\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fpython-test-audit-examples.md` — worked Python test-audit analysis cases (an approved audit, a rejection for `@patch` severing runtime coupling, and a rejection for a `TYPE_CHECKING` import disguised as coupling). Use them to inspect evidence; `\u003Cverdict_format>` and the inherited `\u002Faudit-tests` JSON schema remain the output contract.\n\n\u003C\u002Freference_guides>\n","\u003Cobjective>\nA verdict on Python test evidence — APPROVED, or REJECTED with each finding naming the assertion or evidence artifact, the failed evidence property, and the evidence.\n\u003C\u002Fobjective>\n\n\u003Cconstraints>\n\nThis audit is read-only. Produce a verdict over test evidence; never edit tests, production code, specs, fixtures, harnesses, generators, or project configuration.\n\n\u003C\u002Fconstraints>\n\n\u003Caudit_workflow>\n\n\u003Cprerequisites>\n\n{!% require_skill 'python:python-code-standards' %!}\n\n{!% require_skill 'python:python-test-standards' %!}\n\n{!% require_skill 'product-tree:audit-tests' %!}\n\n{!% require_skill 'product-tree:test' %!}\n\nRead `spx\u002Flocal\u002Fpython.md` and `spx\u002Flocal\u002Fpython-tests.md` when they exist; otherwise apply the loaded skills only. Each overlay routes behavior to the product's governing specs and decisions, supplements the loaded skills, and does not declare product truth.\n\nUse skill `product-tree:contextualize` on the spec node under audit — `\u003CPRODUCT_TREE_CONTEXT>` marker must be present before Gate 1.\n\n\u003C\u002Fprerequisites>\n\n\u003Caudit_scope>\nBegin with the current governing spec and its current evidence links. A deleted test or test-infrastructure path belongs to this audit only when a current `[test]` assertion still links it or a current linked test still imports it. When the current spec carries no `[test]` link to the deleted path and no current evidence chain references it, classify the retired path as outside current Python test-evidence scope and return `NOT_APPLICABLE` for that path. Never demand restoration of deterministic evidence solely because the base revision or changeset deletion names the retired path. When a current `[test]` assertion still links a missing path, report missing evidence against that current assertion.\n\nUse read-only `git diff` only when the supplied changeset scope requires confirming whether an evidence path was deleted. Run no other shell command from this concern skill.\n\nFor every in-scope test assertion, inspect the full evidence chain:\n\n- The spec assertion and selected assertion type\n- The executed test file\n- Imported production modules\n- Imported `\u003Cpackage>_testing.harnesses.*` modules\n- Imported `\u003Cpackage>_testing.generators.*` modules\n- Inert fixture path providers and fixture data files referenced by the test\n- `conftest.py` files that apply to the test\n\nDo not approve a test by looking only at the test file. Laundering and severed coupling can live in generators, harnesses, fixture path providers, and pytest discovery shims.\n\u003C\u002Faudit_scope>\n\n\u003Cno_deterministic_verification>\nThis audit runs no deterministic verification — no test collection, lint, type-check, coverage, or naming-convention command. Spend the whole audit on reading the evidence chain.\n\u003C\u002Fno_deterministic_verification>\n\n\u003Cstructural_reading>\nBefore Gate 1, read each in-scope test filename. Canonical Python evidence files match `test_\u003Csubject>.\u003Cevidence>.\u003Clevel>[.\u003Crunner>].py`, where `\u003Cevidence>` is `scenario`, `mapping`, `conformance`, `property`, or `compliance` and `\u003Clevel>` is `l1`, `l2`, or `l3`. Reject the legacy suffixes `\u002Fpython-test-standards` names — `.unit.py`, `.integration.py`, `.e2e.py`, `.spec.py` — as a Gate 1 `filename_policy` finding carrying property `alignment` from the base `\u002Faudit-tests` enum, since a filename that misdeclares its evidence type or level misaligns the file with the assertion it claims to evidence. The project's validation owns the convention; fold this reading observation into Gate 1 rather than running a naming-convention command.\n\u003C\u002Fstructural_reading>\n\n\u003Ctest_file_declarations>\nApply the base `\u002Faudit-tests` semantic binding screen before coupling. Python assignments, annotated assignments, named expressions, loop bindings, context-manager bindings, exception bindings, pattern bindings, pytest fixture parameters, and property-generated parameters are valid when they only receive actual results, source-owned contracts, generated values, harness observations, callback inputs, resource handles, or fixture paths and introduce no data or policy. In particular, accept `tmp_path`, `observations = harness_call(...)`, and assertion-local comprehensions over those observations; none chooses a case, expectation, or policy. Emit a finding carrying property `declarations` and the base `\u002Faudit-tests` rule label the choice matches — `test-owned configuration` when a binding chooses runner settings, seed policy, retries, setup policy, or lifecycle policy, and `test-owned data` when it chooses hand-picked data, boundary bags, expected outputs, fixture contents, or generator domains. Keep the two labels distinct; collapsing them loses the difference between a configuration defect and a data defect. Local functions are findings when they own those choices — property `declarations` — or when they move a predicate or assertion call out of the linked test function or callback — property `predicate-ownership`, rule `assertion-seam`, remediation target `test-file`.\n\u003C\u002Ftest_file_declarations>\n\n\u003Cgate_1_assertion>\nEntry point is the spec, not the test file.\n\nJudge every in-scope assertion against each audit below. A `REJECT` finding from any audit rejects the assertion it names and moves to the next assertion. An audit whose subject is an imported artifact rather than an assertion — a generator, a harness, an inert fixture, or a `conftest.py` shim — attributes its finding to every in-scope assertion whose evidence chain reaches that artifact, so each finding carries the `assertion` field the base schema requires. The `\u003Cstructural_reading>` and `\u003Ctest_file_declarations>` observations above are folded into this gate rather than reported as a separate deterministic gate.\n\n\u003Ccoupling_audit>\nA `\u003Cpackage>_testing.generators` import is an input-domain provider, audited in `\u003Cgenerator_audit>` rather than classified as coupling here.\n\nImports inside `if TYPE_CHECKING:` do not create runtime coupling. A test with only framework, stdlib, and type-only imports is a tautology unless it reaches production through a harness that itself reaches production.\n\nWhen a test imports a harness, inspect the harness and verify it calls the production behavior the assertion is about. A harness that builds expected values without exercising production is severed coupling.\n\nSpecialize each category of the coupling taxonomy `\u002Faudit-tests` owns to Python imports. Classify from the table below rather than a subset of it; every category the canonical taxonomy names appears here, so a category missing from this table would silently narrow the verdict.\n\n| Category           | Python-specific definition                                                                                                                      | Verdict                                         |\n| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |\n| Direct             | Test imports and calls the governed Python module, function, or class                                                                           | Proceed                                         |\n| Indirect           | Test imports a `\u003Cpackage>_testing.harnesses` module that calls the governed path                                                                | Proceed after harness tracing                   |\n| Transitive         | Test imports a public consumer of the governed module                                                                                           | Proceed if the level matches                    |\n| Laundered indirect | Imports a `\u003Cpackage>_testing` module that exists only to expose hardcoded values back to the test                                               | REJECT — laundering                             |\n| False              | Test imports the module but never calls the assertion-relevant symbols                                                                          | REJECT                                          |\n| Partial            | Test calls the module with the wrong inputs or path, missing the assertion-relevant behavior                                                    | REJECT                                          |\n| None               | Test imports only pytest, Hypothesis, stdlib, or type-only symbols, with zero production coupling                                               | REJECT — tautology                              |\n| Severed            | Test or harness replaces the governed behavior with `unittest.mock`, `MagicMock`, `mocker.patch`, monkeypatch, or an alternate import           | REJECT — coupling severed                       |\n| Prose-coupling     | Reads an authored prose\u002Fdoc body (skill, spec, prompt) and asserts its content, directly or through a harness constant or infrastructure reader | REJECT — couples to authored text, not behavior |\n\nFramework and stdlib imports such as `pytest`, `hypothesis`, `json`, and `pathlib` do not count as coupling by themselves. The Prose-coupling row is the table-side form of a test reading a `src\u002F` or authored-doc body; both reach the same REJECT.\n\nA severed, false, partial, or absent coupling carries property `coupling` from the base enum.\n\u003C\u002Fcoupling_audit>\n\n\u003Cfalsifiability_audit>\nReject replacement of the behavior under test:\n\n- `unittest.mock.patch` replacing the production function, class, module, client, or repository the assertion claims to verify\n- `Mock()` or `MagicMock()` standing in for behavior the assertion claims to verify\n- `mocker.patch(...)` replacing the dependency under test\n- `monkeypatch` replacing the behavior under test\n- `sys.path` or `importlib` tricks that cause tests to import alternate modules\n\nAccept explicit test doubles only when they are passed through dependency injection and map to a `\u002Ftest` Stage 5 exception:\n\n| Exception             | Python pattern                             |\n| --------------------- | ------------------------------------------ |\n| Failure modes         | Class implementing a protocol and raising  |\n| Interaction protocols | Class with typed call recording            |\n| Time\u002Fconcurrency      | Injected clock or controllable scheduler   |\n| Safety                | Class that records intent                  |\n| Combinatorial cost    | Configurable class mirroring real behavior |\n| Observability         | Class capturing hidden boundary details    |\n| Contract probes       | Stub validated against a real schema       |\n\nReplacing the behavior under test carries property `falsifiability` from the base enum — a severed seam means no production mutation can break the test.\n\n\u003C\u002Ffalsifiability_audit>\n\n\u003Csource_ownership_audit>\nThe audit asks one question per test case: *where does this case come from?* The legitimate sources:\n\n| Assertion type | Case source                                                                                                                                                              |\n| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| Scenario       | The spec assertion text — the case is declared by the spec, not invented by the test author                                                                              |\n| Mapping        | A finite source-owned enumeration (enum, registry, schema, structured metadata)                                                                                          |\n| Property       | A generator over a domain — the author writes the invariant, the generator owns the cases                                                                                |\n| Conformance    | An external oracle (schema validator, reference implementation, parser the test doesn't author)                                                                          |\n| Compliance     | The decision record being enforced — the case is the rule itself                                                                                                         |\n| Any (fixture)  | An inert fixture file under `\u003Cpackage>_testing\u002Ffixtures\u002F`, passed to the code under test as a file path or byte stream — the file's whole real-world payload is the case |\n\nThe first five rows pair an assertion type with the case source it normally takes. The Fixture row is cross-cutting: any assertion type may use an inert fixture file as the case. An auditor classifying a test case checks both the assertion type and whether the case is a whole-payload fixture file.\n\nA case that does not have a documentable source outside the author's head is a tautology dressed as a measurement — the test confirms the author's understanding forever, never the spec. The defect is in the case's *origin*. Lexical location (`Final` at module scope, plain assignment, inline literal), syntactic form, and reuse pattern (shared bag, single-value, parametrize row) are irrelevant — the audit names them only as forms the same defect takes.\n\n**Vocabulary check (where the values live).** Independently of case provenance, the *values* used in cases must come from the right home:\n\n| Value kind                                                   | Lives in                                                                        |\n| ------------------------------------------------------------ | ------------------------------------------------------------------------------- |\n| Production vocabulary (labels, paths, schema fields, tokens) | Owning production module, imported                                              |\n| Variable input domain                                        | Generator under `\u003Cpackage>_testing\u002Fgenerators\u002F`                                 |\n| Resource-bound or runner-tuning value (timeouts, retries)    | The harness module that owns the resource, under `\u003Cpackage>_testing\u002Fharnesses\u002F` |\n| Whole-payload real-world sample                              | Inert fixture file under `\u003Cpackage>_testing\u002Ffixtures\u002F`, read by path            |\n| One-off descriptive text (test titles, diagnostic messages)  | Inline in the test function body                                                |\n\nFor each test case, name the source. REJECT against the missing source when:\n\n- The case's value is production vocabulary the test re-declares instead of imports.\n- The case's value is a container key or f-string template key hand-written by the author — keys are vocabulary; the key belongs to the owning production module.\n- The case's value is a hand-copied YAML\u002FHCL\u002Fbash\u002FJSON schema field name — artifacts are downstream; the Python module that renders or consumes the artifact owns the vocabulary, and that module must be created if it does not yet exist.\n- The case's value is a runner-tuning literal at test scope — the harness that owns the resource owns the timeout, retry count, or polling interval.\n- The case's input or expected output is hand-picked by the author with no source the audit can name — REJECT, the case is a tautology regardless of where it sits lexically.\n\nWhen the missing source is an architectural defect (the Python module that should own the vocabulary does not yet exist), name the module that should be created and the product-tree node that should govern it.\n\nA case or value copied from the module under test carries property `source-ownership`, rule `source-ownership`, remediation target `source-contract`; an expected output computed by the same production path that produces the actual output carries property `oracle-independence`, remediation target `independent-oracle`. These are the two base-enum properties this audit judges.\n\nPass only when every case is traceable to a source independent of the author and every value lives in its proper home.\n\u003C\u002Fsource_ownership_audit>\n\n\u003Cgenerator_audit>\nAudit every imported generator:\n\n- It represents a variable input domain with meaningful variation, composition, or shrinkage\n- It does not duplicate source-owned vocabulary\n- It does not hide arbitrary example values behind a strategy name\n- It derives expected outputs from generated inputs, an independent oracle, or a source outside the module under test\n\nProperty evidence requires a meaningful property. `@given` that only checks for lack of exceptions is insufficient.\n\nA strategy that collapses to a single example or checks only for the absence of exceptions carries property `falsifiability`; a generator that duplicates source-owned vocabulary carries property `source-ownership`, rule `source-ownership`, remediation target `source-contract`; an expected output derived from the module under test carries property `oracle-independence`, remediation target `independent-oracle`.\n\u003C\u002Fgenerator_audit>\n\n\u003Charness_audit>\nAudit every imported harness:\n\n- It manages setup, teardown, cleanup, dependency checks, or access to external behavior\n- It reaches the production behavior the assertion is about\n- It does not replace the behavior under test with framework mocks, monkeypatches, environment stubs, network fakes, or alternate imports\n- It cleans up temp dirs, subprocesses, services, Docker resources, browsers, databases, and environment changes\n- It does not own arbitrary test data that belongs in source modules or generators\n\nA harness that severs the asserted behavior — replacing it or failing to reach production — carries property `coupling`; a harness that owns setup policy, resource-tuning values, or arbitrary test data carries property `declarations`.\n\nPytest fixture callables that perform setup, teardown, cleanup, or dependency access are harness entrypoints. They belong under `\u003Cpackage>_testing.harnesses.*`.\n\u003C\u002Fharness_audit>\n\n\u003Cfixture_audit>\nAudit inert fixture files and fixture path providers:\n\n- Fixture files are real-world payloads whose complete shape matters to the assertion\n- Tests consume fixture files by path, reading, or copying\n- Tests do not import fixture files as Python modules\n- Fixture files do not store isolated strings or numbers as test data\n\nReject Python modules under `\u003Cpackage>_testing\u002Ffixtures\u002F` that export pytest fixture body functions. That category is for inert data files under the PDR vocabulary.\n\u003C\u002Ffixture_audit>\n\n\u003Cconftest_audit>\nInspect every `conftest.py` that applies to the test path.\n\nAllowed content:\n\n- Explicit imports of pytest fixture callables from `\u003Cpackage>_testing.harnesses.*`\n- Pytest marker registration\n- Pytest hooks that configure collection or reporting\n\nRejected content:\n\n- Fixture body code\n- Harness classes or setup policy\n- Generated data\n- Source-owned protocol values\n- Star imports from test infrastructure packages\n- Mocking, monkeypatching, or import-path mutation\n\nA rejected `conftest.py` discovery defect carries property `evidence-chain-completeness` from the base enum — the shim breaks the chain from the assertion to the imported infrastructure.\n\n\u003C\u002Fconftest_audit>\n\nGate 1 status:\n\n- PASS if no Gate 1 finding carries severity `REJECT`.\n- FAIL if any Gate 1 finding carries severity `REJECT`.\n\n\u003C\u002Fgate_1_assertion>\n\n\u003Cgate_2_architectural>\nRuns only if Gate 1 is PASS.\n\n\u003Carchitectural_dry_audit>\nWhen two or more in-scope tests repeat setup or infrastructure logic, reject the duplication and identify the canonical destination:\n\n| Repeated pattern                                      | Destination                           |\n| ----------------------------------------------------- | ------------------------------------- |\n| Temp product scaffolding                              | `\u003Cpackage>_testing.harnesses.*`       |\n| Subprocess or CLI execution setup                     | `\u003Cpackage>_testing.harnesses.*`       |\n| Database, Docker, browser, service, or API setup      | `\u003Cpackage>_testing.harnesses.*`       |\n| Domain-shaped input construction with variable values | `\u003Cpackage>_testing.generators.*`      |\n| Real-world payload samples                            | `\u003Cpackage>_testing\u002Ffixtures\u002F` as data |\n\nDo not recommend `tests\u002Fhelpers`, `tests\u002Fsupport`, node-local test-infrastructure modules, or fixture body code in `conftest.py`.\n\u003C\u002Farchitectural_dry_audit>\n\nGate 2 status:\n\n- PASS if no repeated setup or infrastructure pattern appears in two or more in-scope tests.\n- FAIL if any repeated setup or infrastructure pattern appears in two or more in-scope tests.\n\n\u003C\u002Fgate_2_architectural>\n\n\u003C\u002Faudit_workflow>\n\n\u003Cverdict_format>\nThis skill composes the base `\u002Faudit-tests` verdict: the row names (`gate-1-assertion`, `gate-2-architectural`), the JSON schema, and the closed `property` enum are defined in its `\u003Cverdict_format>` and are not redefined here. This skill contributes Python-specific finding detail into those rows. Put evidence-property findings in `gate-1-assertion` and repeated setup or test-infrastructure extraction findings from `\u003Carchitectural_dry_audit>` in `gate-2-architectural`. Append findings to the matching base rows; never replace a row or emit `gate-0-deterministic`.\n\nEvery finding carries a `property` drawn from the base `\u002Faudit-tests` enum, attributed inline at the audit above that raised it — this skill never re-enumerates the enum or remaps its members here. A Python concern with no home in the base enum is a signal to extend that enum in `\u002Faudit-tests`, never to invent a value here.\n\nEach finding carries the base nine-field record. These Python-specific details accompany that record rather than replacing any of its fields:\n\n- Exact file and line\n- The imported chain when the defect is outside the test file\n- Required fix\n\nEmit `APPROVED` only when all evidence-property checks pass. Emit `REJECTED` when any property fails.\n\nWhen `\u003Caudit_scope>` finds that a retired path has no current `[test]` assertion or current evidence-chain owner, emit this alternate concern result instead of the inherited rows:\n\n```json\n{\n  \"status\": \"NOT_APPLICABLE\",\n  \"subjects\": [\"\u003Cretired-repository-relative-path>\"],\n  \"explanation\": \"No current [test] assertion or evidence chain references the retired path.\"\n}\n```\n\nEmit this shape only when every supplied subject is outside current Python test-evidence scope. A current broken `[test]` link remains applicable and produces the inherited `REJECTED` verdict.\n\u003C\u002Fverdict_format>\n\n\u003Cfailure_modes>\nFailure 1: Accepted `TYPE_CHECKING` import as coupling.\n\nWhat happened: Claude saw `from product.theme import ThemeColor` inside an `if TYPE_CHECKING:` block and counted it as runtime coupling. The test declared its own color values and never executed production code.\n\nWhy it failed: Type-only imports disappear at runtime and cannot couple executed evidence to production behavior.\n\nHow to avoid: Ignore type-only imports for coupling.\n\nFailure 2: Missed coupling severed by `@patch`.\n\nWhat happened: Claude saw a production import and approved the test, while `@patch(\"product.database.query\")` replaced the imported behavior.\n\nWhy it failed: The patch severed the runtime path the import appeared to exercise.\n\nHow to avoid: Check decorators, fixtures, monkeypatch usage, and harness setup code.\n\nFailure 3: Accepted a generator that only hid a constant.\n\nWhat happened: Claude saw a Hypothesis strategy and treated it as property evidence. The strategy returned one copied source value through `st.just(...)`.\n\nWhy it failed: Framework syntax wrapped one example without creating a variable property domain.\n\nHow to avoid: Inspect generator bodies and require meaningful variation.\n\nFailure 4: Accepted pytest fixture body code in `conftest.py`.\n\nWhat happened: Claude treated pytest discovery as a reason to put setup logic in `conftest.py`.\n\nWhy it failed: Discovery wiring became the owner of harness behavior, hiding setup and lifecycle policy outside the canonical test-infrastructure home.\n\nHow to avoid: Check every applicable `conftest.py`; require harness logic to live in the product's test-infrastructure implementation home.\n\nFailure 5: Accepted a hand-picked test case as evidence.\n\nWhat happened: Claude saw `parse(\"name=alice\")` followed by `assert result.name == \"alice\"` and approved the test. The author invented the string to show their understanding of the parser.\n\nWhy it failed: The same mental model produced the case and the implementation, so every run confirmed self-consistency rather than the spec assertion.\n\nHow to avoid: Ask where every case comes from: a generator, an oracle, a fixture, source-owned vocabulary, or the spec assertion text itself. If the author chose it because it seemed reasonable, REJECT.\n\nFailure 6: Container-literal keys treated as opaque scaffolding.\n\nWhat happened: Claude saw `INVENTORY_JSON = f'{{\"flatcar-version\":\"{VERSION}\",...}}'` and classified it as test-fixture scaffolding because the *values* were synthetic. The author hand-wrote production-owned label vocabulary into the keys.\n\nWhy it failed: Container keys are protocol vocabulary; synthetic values do not make copied keys source-owned.\n\nHow to avoid: Audit keys and values separately; require `json.dumps({LABEL: synthetic_value, ...})` with `LABEL` imported from its owner.\n\nFailure 7: \"Artifact is the source-of-truth\" rationalization.\n\nWhat happened: Claude accepted a hand-copied YAML field name, HCL attribute, or systemd unit path because the value appeared in a parsed artifact and no Python module owned it.\n\nWhy it failed: Artifacts are downstream of Python; a missing renderer or consumer module is an architecture defect rather than permission to copy vocabulary into evidence.\n\nHow to avoid: Name the missing source-of-truth module and the product-tree node that should govern it; REJECT against the missing module.\n\nFailure 8: Required restoration of retired deterministic evidence.\n\nWhat happened: Claude followed a base revision's former link to a deleted Python test and harness and rejected the implementation because the deleted files no longer supplied deterministic evidence. The current spec had reclassified the assertions to audit evidence.\n\nWhy it failed: Historical evidence ownership overrode the current governing declaration.\n\nHow to avoid: Derive applicability from current spec links first; return `NOT_APPLICABLE` for a retired deleted path, and report missing evidence only when a current `[test]` assertion still links it.\n\u003C\u002Ffailure_modes>\n\n\u003Csuccess_criteria>\nThe Python test verdict is sound when:\n\n- Every in-scope test was judged on all evidence properties this skill owns with none skipped — coupling, falsifiability, alignment, source ownership, and the Python-specific checks (generators, harnesses, fixtures, `conftest.py`); coverage is judged by the base `\u002Faudit-tests` step that owns it and is never claimed here. Gate 2 was judged when Gate 1 passed and omitted only when Gate 1 rejected the evidence.\n- Every deleted test or test-infrastructure path was classified from current spec links and current evidence chains, with retired evidence returned as `NOT_APPLICABLE` and current broken `[test]` links reported as missing evidence.\n- Applicable scope states an overall `APPROVED` \u002F `REJECTED` with no assertion left unevaluated; a composition-only retired-path scope emits the defined `NOT_APPLICABLE` result.\n- Each finding with inherited severity `REJECT` is falsifiable: it names the assertion or evidence artifact, the failed property, the gate that raised it, and the evidence — including, where the defect is a missing source contract, the production module that should own the vocabulary. The overall verdict remains `REJECTED`.\n- The same test node yields the same verdict regardless of run order (reproducible).\n\n\u003C\u002Fsuccess_criteria>\n\n\u003Creference_guides>\n\n- `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fpython-test-audit-examples.md` — worked Python test-audit analysis cases (an approved audit, a rejection for `@patch` severing runtime coupling, and a rejection for a `TYPE_CHECKING` import disguised as coupling). Use them to inspect evidence; `\u003Cverdict_format>` and the inherited `\u002Faudit-tests` JSON schema remain the output contract.\n\n\u003C\u002Freference_guides>\n",{"name":5,"description":7,"allowed-tools":43},"Read, Grep, Glob, Bash(git diff:*), {{! tool('use_skill') !}}","main","978d51c51d68c99cffb2ba48f7cad9d2f07e5738","src\u002Fplugins\u002Fpython\u002Fskills\u002Faudit-python-test","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins","https:\u002F\u002Fgithub.com\u002Foutcomeeng","https:\u002F\u002Foutcome.engineering","Spec-driven development for AI-assisted engineering","2026-11-14 20:33:56",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add outcomeeng\u002Fplugins --skill audit-python-test",{"tool":58,"command":59},"bunx","bunx skills add outcomeeng\u002Fplugins --skill audit-python-test",{"tool":61,"command":62},"pnpm","pnpm dlx skills add outcomeeng\u002Fplugins --skill audit-python-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fpython\u002Fskills\u002Faudit-python-test\u002FSKILL.md",true,[66],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fpython-test-audit-examples.md","REFERENCE","参考文档",4185,"https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fpython\u002Fskills\u002Faudit-python-test\u002Freferences\u002Fpython-test-audit-examples.md",[73,79,106,122,134,144],{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"01M71G25RZTPQG9KJ00JCHC1F7","plugin","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Ftemplates\u002Fplugin\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":38},"01M71G23DCX3SV60H63HBBKQ6J","sanitize-powerpoint","ALWAYS invoke this skill when sanitizing, cleaning up, auditing, or aligning a PowerPoint (.pptx) deck — slide-master and layout structure, layout type attributes, stray fonts, non-theme colors, or layout naming. NEVER hand-edit pptx XML without this skill.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fwork\u002Fskills\u002Fsanitize-powerpoint\u002FSKILL.md",[],[86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],"sanitize powerpoint","powerpoint","sanitize","fonts","type","cleaning","structure","never","attributes","theme","pptx","naming","layout","deck","up","edit","xml","master","invoke","when",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":38},"01M71G21PQKBCDECHGVYSKPJW5","draw-excalidraw","ALWAYS invoke this skill when creating Excalidraw diagrams, visualizing workflows, architectures, or concepts. NEVER generate Excalidraw JSON without this skill.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fwork\u002Fskills\u002Fdraw-excalidraw\u002FSKILL.md",[],[113,114,115,116,117,93,104,118,119,105,120,121],"draw excalidraw","excalidraw","draw","diagrams","architectures","generate","workflows","concepts","json",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":38},"01M71G1ZMNGFD37RZYM620XM2C","typescript-test-standards","TypeScript test standards enforced across all skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-test-standards\u002FSKILL.md",[],[129,130,22,131,132,31,133],"typescript","typescript test standards","standards","false","across",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":38},"01M71G1XBH0X1VCTR7269MDGSY","typescript-code-standards","TypeScript code standards enforced across all skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-code-standards\u002FSKILL.md",[],[129,141,142,143,131,132,31,133],"code","typescript code standards","code standards",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":38},"01M71G1TQ3VN45SJ75DFMJDB9W","typescript-architecture-standards","TypeScript ADR conventions enforced across architect and auditor skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-architecture-standards\u002FSKILL.md",[],[151,131,152,153,129,154,155,133,31,156,132,157],"architecture standards","typescript architecture standards","architecture","adr","architect","auditor","conventions"]