feature-factory 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,6 +45,16 @@ introducing a shape the repo does not use.
45
45
 
46
46
  ## Verify before reporting
47
47
 
48
+ Before expanding a class-wide behavioral test matrix, run one representative negative control
49
+ within your slice's owned paths. Change production behavior without changing the tests or preventing
50
+ execution. Confirm the mapped test passes before the mutation, fails on the expected behavioral
51
+ assertion with the mutation, and passes after restoration. A syntax, import, discovery, or unrelated
52
+ failure does not count. Restore the mutation before committing or reporting.
53
+ In your narrative report, name the inventory row, production symbol and mutation, exact test command,
54
+ observed assertion failure, and restoration result. Mark an unperformed control as **not run** with
55
+ the reason; never infer a result. This is diagnostic instruction, not a new claim-schema field or a
56
+ replacement for the ratified test run.
57
+
48
58
  From the worktree, compile and run the narrowest relevant tests:
49
59
  Use the repo's own build and test commands, scoped as narrowly as they allow — a compile or
50
60
  type-check step, then the specific test class or file you touched, not the full suite. If the
@@ -48,6 +48,16 @@ and the repo's agent instructions (`AGENTS.md` or `CLAUDE.md`) name the concrete
48
48
 
49
49
  ## Verify before reporting
50
50
 
51
+ Before expanding a class-wide behavioral test matrix, run one representative negative control
52
+ within your slice's owned paths. Change production behavior without changing the tests or preventing
53
+ execution. Confirm the mapped test passes before the mutation, fails on the expected behavioral
54
+ assertion with the mutation, and passes after restoration. A syntax, import, discovery, or unrelated
55
+ failure does not count. Restore the mutation before committing or reporting.
56
+ In your narrative report, name the inventory row, production symbol and mutation, exact test command,
57
+ observed assertion failure, and restoration result. Mark an unperformed control as **not run** with
58
+ the reason; never infer a result. This is diagnostic instruction, not a new claim-schema field or a
59
+ replacement for the ratified test run.
60
+
51
61
  A fresh worktree may share the main repo's installed dependencies via a link the orchestrator created. If they are missing, run the repo's install command via `bash -c "cd $WT && <install"` once before building.
52
62
 
53
63
  Use the repo's own build or type-check command, run inside `$WT`.
@@ -62,6 +62,16 @@ producer for anything it could supply.
62
62
 
63
63
  When the subject is a **class-wide** requirement — one that **cannot be established by a bounded witness**, so proving it means checking every in-scope member and the set has to be enumerated first. `all`/`every`/`centralize`/`across` and a whole vulnerability or behavior class are the obvious markers, but the words are instances and not the test: an absence ("no module constructs the runtime"), a preserved property ("behaviour remains unchanged") and a global capability ("the installed artifact works") each require checking every member without using any of them, and the rules below are what make such a claim reviewable at all. An existential claim is the opposite and must **not** be treated as class-wide: "a module constructs the runtime" or "the daemon accepts a connection" is settled by one witness, so demanding an exhaustive inventory for it is over-rejection:
64
64
  - The spec must carry a finite source→sink inventory with a per-call-site policy, explicit compatibility/exclusion decisions, and mapped tests. A class-wide spec lacking any of these is a **BLOCKER** — reject it as missing targeted research rather than letting an open-ended "apply everywhere" reach builders.
65
+ For a class-wide behavioral criterion, each inventory row must map to an executable test that
66
+ invokes the relevant production boundary and asserts its required effect or exclusion. The spec
67
+ must name that test approach; build review checks its implementation. Shared parameterized tests
68
+ are valid; separate tests per member are not required.
69
+ AST references and test names prove enumeration, not behavior.
70
+ - Treat the builder's negative-control report as self-reported diagnostic information,
71
+ not independent evidence or proof of coverage for every inventory row. Check whether the named
72
+ mutation tests behavior and the reported failure is the expected behavioral assertion, not a
73
+ syntax, import, discovery, or unrelated failure. Missing attestation alone is not a blocker;
74
+ inadequate behavioral coverage is. Do not approve on the attestation alone.
65
75
  - On the first review of a class-wide **spec**, enumerate in one pass **every dimension of under-specification** — not just each same-class instance and call site, but every unresolved contract, policy, migration/grant, auth-gating, state, and test seam — and consolidate them all into one `required_fixes` list. A category surfaced in a later round that was discoverable in the first review is a first-pass miss to record once in `required_fixes` and carry forward until observed fixed — it stays blocking (see the precedence rule below), but do not spawn a duplicate finding or a fresh rejection cycle for it.
66
76
  - When you reject a class-wide build, make `required_fixes` **exhaustive for the class** as of the current evidence: consolidate every discoverable in-scope same-class instance and affected call site into this review. Do not cite one example while withholding equivalent findings for a later round — drip-feeding one sink per round (each fix triggering the next rejection) is exactly the churn this rule prevents.
67
77
  - **Acceptance bar (do not over-reject):** approve a class-wide spec once its inventory is finite, every in-scope sink carries a decided policy, and every row maps to a test — even if some contracts could be specified in more depth. A deferral or exclusion is legitimate **only when the approved story or scope authorizes it**; never waive, defer, or leave undecided an in-scope sink that falls under an `all`/`every`/`across` criterion. A **bounded residual** may be left to build-time remediation only when it is mechanical implementation detail whose behavior, compatibility, security, auth-gating, migration, and state policy are already decided in the brief — an unresolved behavioral or design decision is not a residual and must be decided before approval, never shipped to builders as an open choice. Reject only for a genuinely missing sink, policy, compatibility decision, or test, not for achievable-but-absent depth.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feature-factory",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Durable, observed control plane for /feature runs. Host-agnostic: no opencode dependency.",
5
5
  "type": "module",
6
6
  "license": "MIT",