@punks/cli 4.0.0 → 4.0.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.
Files changed (24) hide show
  1. package/AGENTS.md +1 -1
  2. package/dist/BASELINE_CHANGELOG.md +1 -0
  3. package/dist/CHANGELOG.md +6 -0
  4. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +6 -3
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +8 -0
  7. package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +1 -0
  8. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
  9. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
  10. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
  14. package/dist/baseline/scaffold-baseline.json +5 -5
  15. package/dist/baseline/scaffold-baseline.tgz +0 -0
  16. package/dist/data/subagents/manifest.mjs +1 -0
  17. package/dist/index.js +2 -2
  18. package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
  19. package/dist/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
  20. package/dist/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
  21. package/dist/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
  22. package/dist/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
  23. package/dist/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
  24. package/package.json +1 -1
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: make-tsuite
3
+ description: Audit an automated software test portfolio for signal, overlap, ownership, and placement, or implement test-only suite cleanup and coverage. Use for suite evaluation, redundant-test removal, test reorganization, or adding automated tests without changing production behavior; use tdd for production behavior changes.
4
+ ---
5
+
6
+ # Make TSuite
7
+
8
+ Build a risk-driven automated software test portfolio. `TSuite` means test suite, not TypeScript; apply this skill across languages, frameworks, toolchains, and repository layouts.
9
+
10
+ ## Boundary
11
+
12
+ Production-reachable content is immutable. Writable scope is limited to automated tests and test-scoped fixtures, harnesses, seeds, artifacts, configuration, and dependencies. Inline tests or shared manifests are writable only where changed regions are mechanically isolated to test compilation or execution. Ambiguous isolation is a blocker requiring handback.
13
+
14
+ Before editing, classify every allowed path or hunk as test-scoped. After editing, inspect the complete source-control diff; completion requires every changed region and dependency to remain unreachable from production behavior, artifacts, and deployable wiring.
15
+
16
+ Keep a product defect visible as a failing test with observed failure evidence, then hand back a separate production requirement. A test-only task reaches GREEN only through test-scoped changes.
17
+
18
+ ## Modes
19
+
20
+ - **Audit:** inspect and report; make no changes. Match the output to the request: a cleanup audit returns removable groups, while a portfolio evaluation includes all dispositions.
21
+ - **Implement:** create, strengthen, move, merge, or remove tests only when the user authorized changes.
22
+
23
+ Mode selection is complete when one mode is named and writable scope is explicit.
24
+
25
+ ## Establish authority
26
+
27
+ Read repository and scoped instructions, then inspect relevant tests, fixtures, owned public seams, and their execution mechanism. Where present, inspect discovery or selection configuration and required delivery gates. Consult history or design records only when current files do not explain an important convention.
28
+
29
+ Authority discovery is complete when every test package in scope has an identified behavior owner, public or owned seam, execution and selection path, applicable repository rule, and required delivery gate when one exists.
30
+
31
+ ## Semantic lock
32
+
33
+ Before changing an existing test, record its semantic fingerprint:
34
+
35
+ - capability and current behavior;
36
+ - public or owned seam;
37
+ - actor, authority, and isolation boundary;
38
+ - material setup, input, and fixture state;
39
+ - observable result or typed failure;
40
+ - side effect, absence of side effect, or recovery invariant.
41
+
42
+ A test transformation is equivalent only when the same behavior still passes and the same regression still fails. A changed actor, authority, input class, seam, outcome, or side effect is a new test decision.
43
+
44
+ Semantic lock is complete when every changed case maps its before-and-after fingerprint with no unexplained material difference.
45
+
46
+ ## Route by work
47
+
48
+ - For inventory, signal classification, overlap, or removal, read [audit-portfolio.md](references/audit-portfolio.md).
49
+ - For authorized test changes, read [implement-suite.md](references/implement-suite.md).
50
+ - For routes, APIs, messages, commands, or protocol scenarios, also read [route-api-design.md](references/route-api-design.md).
51
+ - For browser, mobile, desktop, or other user journeys, also read [user-journey-design.md](references/user-journey-design.md).
52
+
53
+ ## Report
54
+
55
+ Separate observed facts from recommendations. Report execution failures as blockers, never passes.
56
+
57
+ An audit report is complete when each requested finding names the cohesive test group, disposition, protected or absent invariant, and evidence. An implementation report is complete when it includes changed and retained proof, semantic-lock results, execution invocation when available and observed results, unresolved product defects, and production-immutability proof for every changed region.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Make TSuite"
3
+ short_description: "Audit or improve test portfolios"
4
+ default_prompt: "Use $make-tsuite to audit this test portfolio or implement authorized test-only suite changes while preserving behavior semantics."
@@ -0,0 +1,47 @@
1
+ # Audit the portfolio
2
+
3
+ ## Inventory test packages
4
+
5
+ A **test package** is the smallest cohesive cluster of cases that provides one body of evidence for a protected capability or invariant. It may be one case, one file, or several files. Group by cohesive evidence rather than directory names; record its seam, fixtures, selection path, and delivery gate where each exists.
6
+
7
+ For every package in scope, map:
8
+
9
+ - member cases and claimed behavior or invariant;
10
+ - public or owned seam;
11
+ - execution tier and boundary crossed;
12
+ - purpose or technique where material, such as example-based, property/fuzz, performance, security, resilience, visual, mutation, or hardware-in-loop;
13
+ - behavior owner and current location;
14
+ - execution mechanism, discovery or selection path, focused invocation when available, and required delivery gate when present;
15
+ - overlapping proof at the same or stricter tier;
16
+ - runtime cost, nondeterministic dependencies, and fixture ownership.
17
+
18
+ Read assertions and fixtures. Use listing or discovery output when static inspection cannot establish selection. Skipped cases, setup success, and importability are not executable product proof.
19
+
20
+ Inventory is complete when every package names its members and at least one claimed invariant, and every material invariant in scope has its strongest existing proof path identified.
21
+
22
+ ## Judge signal
23
+
24
+ Give each package one disposition: `retain`, `strengthen`, `move`, `merge`, or `remove`.
25
+
26
+ Judge:
27
+
28
+ 1. **Sensitivity:** a plausible regression fails for the intended reason.
29
+ 2. **Observability:** assertions reach a durable result, failure, authority boundary, side effect, or compatibility contract.
30
+ 3. **Uniqueness:** the required gate lacks cheaper equivalent proof.
31
+ 4. **Fidelity:** owned behavior remains real across the seam under test.
32
+ 5. **Durability:** implementation details can change without invalidating the protected behavior.
33
+ 6. **Cost:** runtime and maintenance are proportionate to unique risk covered.
34
+
35
+ Static or indirect tests remain useful when they own an architecture boundary, source parity rule, migration invariant, or public compatibility contract. Name that ownership directly.
36
+
37
+ Classification is complete when every package has one disposition supported by observed evidence across all six criteria.
38
+
39
+ Valid sensitivity evidence leaves production unchanged: an observed historical or pre-fix failure; a mutation in a disposable copy; or a controlled perturbation of external input, fixture, or test double that preserves owned behavior as real. Label static sensitivity reasoning `unverified`.
40
+
41
+ ## Removal proof
42
+
43
+ Choose `remove` only when the package has no observable invariant, or retained proof covers every material element in its semantic fingerprint. A failing test that exposes a product regression is repair or production-fix evidence.
44
+
45
+ For an authorized deletion, map each removed fingerprint element to retained proof selected by the same or stricter required gate when gates exist. A higher tier replaces lower-tier proof only when actor, authority, capability, outcome, side effect, and isolation remain covered.
46
+
47
+ Removal proof is complete when every deleted invariant maps to retained proof, or is explicitly classified `no observable invariant`, and the relevant execution mechanism selects the retained proof.
@@ -0,0 +1,40 @@
1
+ # Implement the suite
2
+
3
+ Read [the TDD skill](../../tdd/SKILL.md) and its high-signal test guidance before changing tests. Apply its public-seam, vertical-slice, and honest-evidence rules. This skill's immutable-production boundary replaces TDD's production GREEN step.
4
+
5
+ ## Place proof
6
+
7
+ Choose the lowest execution tier that observes the invariant without simulating its boundary:
8
+
9
+ - **Unit:** deterministic behavior owned by one module or component.
10
+ - **Integration:** collaboration across real adapters, persistence, filesystem, transport, configuration, or lifecycle seams.
11
+ - **Static/contract:** compatibility at an exported, generated, schema, or compile boundary; label whether proof is runtime or static.
12
+ - **Support:** test infrastructure behavior whose owner is the harness or fixture system.
13
+ - **System end-to-end:** distinct public intent crossing real applications, processes, devices, command interfaces, or network boundaries.
14
+
15
+ Purpose and technique are separate from tier. Apply property/fuzz, performance, security, resilience, visual, mutation, or hardware-in-loop testing at the honest tier when the protected risk requires it. Use repository-owned placement and naming conventions. Fixture setup may establish prerequisites; it must preserve the behavior under test as real.
16
+
17
+ Placement is complete when every changed test names its owner, invariant, tier, and why a lower tier cannot observe the boundary honestly.
18
+
19
+ ## Execute one vertical slice
20
+
21
+ For each accepted invariant:
22
+
23
+ 1. Confirm the target is selected by the intended execution mechanism and required delivery gate when one exists.
24
+ 2. Capture the semantic fingerprint of every existing case affected.
25
+ 3. Add or transform one slice through the owned public seam.
26
+ 4. Choose the honest evidence state:
27
+ - already-correct behavior: capture a passing characterization and demonstrate sensitivity through an observed historical or pre-fix failure, a mutation in a disposable copy, or controlled perturbation of external input, fixture, or test double that keeps owned behavior real; label static reasoning `unverified`;
28
+ - established regression: capture genuine RED for the expected product reason and hand back production work;
29
+ - broken test infrastructure: reach GREEN using only test-scoped changes.
30
+ 5. Run the focused test through its execution mechanism when available, then broader owning gates proportional to the boundary changed.
31
+
32
+ A product RED preserves an existing failure. A newly captured RED selected by a required delivery gate remains blocked and cannot be landed as completed work. Landing it requires explicit authorization plus an established non-required quarantine or disabled-test convention; otherwise hand back the production requirement.
33
+
34
+ A slice is complete when selection, observed result, sensitivity evidence, semantic equivalence, product-RED disposition, and production-boundary status are recorded before the next slice begins.
35
+
36
+ ## Finish
37
+
38
+ Inspect the complete diff. Validate that every changed region and dependency is mechanically isolated to test compilation or execution and every changed case preserves or explicitly replaces its fingerprint. Record the execution invocation or mechanism, exact command when available, and observed result; distinguish absent gates, unrun gates, and environmental blockers.
39
+
40
+ Implementation is complete when all authorized dispositions are applied, affected required gates have observed outcomes when present, every changed case passes semantic lock, product RED has a valid disposition, and the diff contains no production-reachable changes.
@@ -0,0 +1,21 @@
1
+ # Route and API test design
2
+
3
+ Use this reference only when the suite exercises routes, APIs, messages, commands, protocols, or comparable public transport boundaries.
4
+
5
+ ## Discover the seam
6
+
7
+ Inspect the public entrypoint, routing or dispatch composition, authentication and authorization, input/output contracts, owned services, persistence, execution configuration, fixtures, and existing harness.
8
+
9
+ Discovery is complete when every distinct response, authority branch, and durable side effect in scope has an owner and an executable public seam.
10
+
11
+ ## Select scenarios
12
+
13
+ Select behavior by distinct risk: success, ownership or isolation, invalid input, missing resource, conflict, external-boundary failure, partial failure, and recovery. Include only branches that carry different public meaning. Use representative actors and minimal fixtures that prove both inclusion and exclusion.
14
+
15
+ Scenario selection is complete when each selected case names a unique public outcome, authority boundary, or side-effect invariant; equivalent permutations are mapped to one representative case.
16
+
17
+ ## Assert meaning
18
+
19
+ Exercise the established transport harness and real owned behavior. Replace only external systems outside the product boundary. Assert the protocol result plus its strongest stable meaning: returned value, typed failure, durable effect, no-op on failure, isolation, or absence of sensitive data.
20
+
21
+ Validation is complete when each changed scenario records the public operation, setup actor, expected protocol result, meaningful outcome or side effect, semantic-lock result, execution invocation or mechanism, and observed result.
@@ -0,0 +1,21 @@
1
+ # User journey test design
2
+
3
+ Use this reference only when the suite drives a real browser, mobile app, desktop client, terminal, or other interactive production entrypoint.
4
+
5
+ ## Define the journey
6
+
7
+ Describe one plausible intent with its actor, systems crossed, visible result, persisted effect, and isolation rule. Prioritize authentication lifecycle, authority-specific states, meaningful domain transitions, persistence across reload or session changes, representative recovery, and exclusion of inaccessible data.
8
+
9
+ Journey selection is complete when each journey protects a distinct user intent or security boundary; every extra permutation has a separately named invariant.
10
+
11
+ ## Preserve the real system
12
+
13
+ Reuse the repository's executable harness. Test-scoped orchestration may build artifacts, start isolated dependencies, wait for readiness, seed deterministic prerequisites through supported external seams, capture diagnostics, and clean up. Keep business rules and deployable wiring inside the real system.
14
+
15
+ Harness preparation is complete when startup, readiness, data setup, identities, diagnostic capture, and cleanup are deterministic and remain test-scoped.
16
+
17
+ ## Drive public interaction
18
+
19
+ Use stable user-visible or accessibility-facing controls and states. Synchronize on specific visible state or public responses. Assert visible outcomes, authority controls, forbidden navigation, persistence, cross-session effects, and absence of inaccessible data as the protected invariant requires.
20
+
21
+ Validation is complete when each journey records actor, visible workflow, invariant, real runtime boundary, execution invocation or mechanism, observed result, artifacts, cleanup result, semantic-lock result, and production-immutability proof for every changed region.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/cli",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Harness Intelligence scaffolding CLI",
5
5
  "homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
6
6
  "bugs": {