Skip to content

Commit 4c7908c

Browse files
Reorganized capabilities
1 parent a01e1e3 commit 4c7908c

31 files changed

Lines changed: 1567 additions & 49 deletions
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
id: core/agents/ingest-agent-review-result
2+
title: Ingest agent review result
3+
status: implemented
4+
area: core
5+
summary: Validate structured agent review output and optionally save it as
6+
capability review evidence.
7+
intent: Turn external agent review prose into durable, policy-safe evidence
8+
without automatically changing capability status.
9+
acceptance:
10+
- Parses the structured JSON output requested by agent-review prompts.
11+
- Validates reviewed criteria against the capability acceptance criteria.
12+
- Requires file-path evidence for criteria marked covered or partial.
13+
- Reports malformed review output, missing criteria, and missing evidence
14+
paths as validation issues.
15+
- Saves valid review evidence under agent.review without automatically
16+
changing capability status.
17+
guidance:
18+
- Keep ingestion separate from verification policy.
19+
- Do not mark a capability verified solely because an agent set done true.
20+
- Preserve enough criterion-level evidence for later human or automated
21+
policy review.
22+
agent:
23+
inputs:
24+
- capability ID
25+
- structured agent review JSON output
26+
- capability acceptance criteria
27+
- review evidence paths
28+
outputs:
29+
- validated review result
30+
- agent.review evidence in the capability file
31+
depends_on:
32+
- core/agents/review-capability-with-agent
33+
implementation:
34+
references:
35+
- packages/core/src/agentReviewResult.ts
36+
- packages/core/src/schema.ts
37+
- packages/core/src/types.ts
38+
- packages/core/src/index.ts
39+
- packages/cli/src/index.ts
40+
- packages/core/tests/agentReviewResult.test.ts
41+
verification:
42+
automated:
43+
- id: agent-review-result-tests
44+
description: Unit tests cover valid review ingestion, validation issues,
45+
and saving agent.review without status changes.
46+
command: npm test -- packages/core/tests/agentReviewResult.test.ts
47+
- id: cli-build
48+
description: TypeScript build verifies exported APIs and CLI integration.
49+
command: npm run build
50+
manual:
51+
- Run review-result with a saved agent-review JSON response and confirm
52+
the capability status is unchanged while agent.review is populated.

.capabilities/core/prepare-agent-task-bundle.capability.yaml renamed to .capabilities/core/agents/prepare-agent-task-bundle.capability.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: core/prepare-agent-task-bundle
1+
id: core/agents/prepare-agent-task-bundle
22
title: Prepare agent task bundle
33
status: implemented
44
area: core
@@ -29,8 +29,8 @@ agent:
2929
outputs:
3030
- agent task prompt bundle
3131
depends_on:
32-
- core/compile-capabilities
33-
- core/verify-implementation-references
32+
- core/graph/compile-capabilities
33+
- core/validation/verify-implementation-references
3434
implementation:
3535
references:
3636
- packages/core/src/agentTask.ts
@@ -44,7 +44,7 @@ agent:
4444
command: npm test -- packages/core/tests/agentTask.test.ts
4545
- id: dogfood-agent-task
4646
description: The CLI generates an implementation bundle for this capability.
47-
command: node packages/cli/dist/index.js agent-task core/prepare-agent-task-bundle --mode implement
47+
command: node packages/cli/dist/index.js agent-task core/agents/prepare-agent-task-bundle --mode implement
4848
manual:
4949
- Generate implement and review bundles and confirm they are clear enough
5050
to paste into an external coding agent.

.capabilities/core/review-capability-with-agent.capability.yaml renamed to .capabilities/core/agents/review-capability-with-agent.capability.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: core/review-capability-with-agent
1+
id: core/agents/review-capability-with-agent
22
title: Review capability with agent
33
status: implemented
44
area: core
@@ -29,8 +29,8 @@ agent:
2929
- structured acceptance coverage review
3030
- unresolved gaps or uncertain criteria
3131
depends_on:
32-
- core/prepare-agent-task-bundle
33-
- core/assess-implementation-coverage
32+
- core/agents/prepare-agent-task-bundle
33+
- core/assessment/assess-implementation-coverage
3434
implementation:
3535
references:
3636
- packages/core/src/agentReview.ts
@@ -47,7 +47,7 @@ agent:
4747
command: npm test -- packages/core/tests/agentReview.test.ts
4848
- id: dogfood-agent-review-dry-run
4949
description: The CLI prepares a Codex review handoff without executing the agent.
50-
command: node packages/cli/dist/index.js agent-review core/review-capability-with-agent --command codex --arg exec --handoff stdin --dry-run --no-references
50+
command: node packages/cli/dist/index.js agent-review core/agents/review-capability-with-agent --command codex --arg exec --handoff stdin --dry-run --no-references
5151
manual:
5252
- Run a review bundle through Codex or Claude Code and confirm the output
5353
is usable as acceptance evidence.

.capabilities/core/run-external-agent-cli.capability.yaml renamed to .capabilities/core/agents/run-external-agent-cli.capability.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: core/run-external-agent-cli
1+
id: core/agents/run-external-agent-cli
22
title: Run external agent CLI
33
status: implemented
44
area: core
@@ -33,7 +33,7 @@ agent:
3333
- external agent run transcript
3434
- actionable installation or configuration error
3535
depends_on:
36-
- core/prepare-agent-task-bundle
36+
- core/agents/prepare-agent-task-bundle
3737
implementation:
3838
references:
3939
- packages/core/src/externalAgent.ts

.capabilities/core/assess-implementation-coverage.capability.yaml renamed to .capabilities/core/assessment/assess-implementation-coverage.capability.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: core/assess-implementation-coverage
1+
id: core/assessment/assess-implementation-coverage
22
title: Assess implementation coverage
33
status: implemented
44
area: core
@@ -30,7 +30,7 @@ agent:
3030
- implementation coverage report
3131
- uncovered or uncertain acceptance criteria
3232
depends_on:
33-
- core/verify-implementation-references
33+
- core/validation/verify-implementation-references
3434
implementation:
3535
references:
3636
- packages/core/src/assessImplementationCoverage.ts
@@ -45,9 +45,9 @@ agent:
4545
command: npm test -- packages/core/tests/assessImplementationCoverage.test.ts
4646
- id: dogfood-coverage-report
4747
description: The CLI reports implementation coverage for this capability.
48-
command: node packages/cli/dist/index.js assess core/assess-implementation-coverage
48+
command: node packages/cli/dist/index.js assess core/assessment/assess-implementation-coverage
4949
manual:
50-
- Run the coverage report against core/verify-implementation-references
50+
- Run the coverage report against core/validation/verify-implementation-references
5151
and confirm the output gives a reviewer enough context to judge the
5252
implementation.
5353
gaps:
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
id: core/graph/analyze-capability-impact
2+
title: Analyze capability impact
3+
status: implemented
4+
area: core
5+
summary: Report downstream capabilities that may need review or testing when a
6+
capability changes.
7+
intent: Help maintainers and agents understand the blast radius of capability
8+
changes by traversing reverse dependency relationships and surfacing relevant
9+
verification guidance.
10+
acceptance:
11+
- Builds direct and transitive dependent relationships from agent.depends_on.
12+
- Reports impacted capabilities for a selected capability.
13+
- Includes suggested automated checks from the selected and impacted
14+
capabilities.
15+
- Includes manual review guidance and verification gaps for the impacted set.
16+
- Exposes impact data through the compiled capability artifact and CLI.
17+
guidance:
18+
- Keep the existing dependency_graph output backward-compatible.
19+
- Treat deeper folder hierarchy as navigation and ownership context, not as a
20+
replacement for explicit depends_on relationships.
21+
agent:
22+
inputs:
23+
- .capabilities/**/*.capability.yaml
24+
- capability agent.depends_on values
25+
outputs:
26+
- impact report
27+
- compiled impact graph
28+
depends_on:
29+
- core/graph/compile-capabilities
30+
- core/validation/validate-capability-files
31+
implementation:
32+
references:
33+
- packages/core/src/capabilityImpact.ts
34+
- packages/core/src/compileCapabilities.ts
35+
- packages/core/src/index.ts
36+
- packages/cli/src/index.ts
37+
- packages/core/tests/capabilityImpact.test.ts
38+
- packages/core/tests/compile.test.ts
39+
verification:
40+
automated:
41+
- id: impact-tests
42+
description: Unit tests verify reverse and transitive impact analysis.
43+
command: npm test -- packages/core/tests/capabilityImpact.test.ts packages/core/tests/compile.test.ts
44+
- id: dogfood-impact
45+
description: The CLI reports impact for a core capability.
46+
command: npm run capabilitykit -- impact core/graph/compile-capabilities
47+
manual:
48+
- Change or inspect a foundational capability and confirm the impact
49+
report identifies direct and transitive dependents that need review.

.capabilities/core/compile-capabilities.capability.yaml renamed to .capabilities/core/graph/compile-capabilities.capability.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: core/compile-capabilities
1+
id: core/graph/compile-capabilities
22
title: Compile capabilities
33
status: implemented
44
area: core
@@ -19,10 +19,10 @@ agent:
1919
inputs:
2020
- .capabilities/**/*.capability.yaml
2121
outputs:
22-
- .capabilities/dist/capabilities.json
22+
- configured compiled capability JSON output
2323
depends_on:
24-
- core/define-capability-format
25-
- core/validate-capability-files
24+
- core/model/define-capability-format
25+
- core/validation/validate-capability-files
2626
implementation:
2727
references:
2828
- packages/core/src/compileCapabilities.ts
@@ -36,5 +36,5 @@ agent:
3636
description: The CLI compiles CapabilityKit's own capability map.
3737
command: npm run capabilitykit -- compile
3838
manual:
39-
- Inspect .capabilities/dist/capabilities.json after compile and confirm
39+
- Inspect the configured compiled JSON output after compile and confirm
4040
the graph is readable.

.capabilities/core/define-capability.capability.yaml renamed to .capabilities/core/model/define-capability-format.capability.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: core/define-capability-format
1+
id: core/model/define-capability-format
22
title: Define capability format
33
status: implemented
44
area: core

.capabilities/core/initialize-project.capability.yaml renamed to .capabilities/core/project/initialize-capability-project.capability.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: core/initialize-capability-project
1+
id: core/project/initialize-capability-project
22
title: Initialize capability project
33
status: implemented
44
area: core
@@ -19,7 +19,7 @@ agent:
1919
- .capabilities/capabilitykit.yaml
2020
- .capabilities/example.capability.yaml
2121
depends_on:
22-
- core/define-capability-format
22+
- core/model/define-capability-format
2323
implementation:
2424
references:
2525
- packages/cli/src/index.ts

.capabilities/core/detect-verification-gaps.capability.yaml renamed to .capabilities/core/validation/detect-verification-gaps.capability.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
id: core/detect-verification-gaps
1+
id: core/validation/detect-verification-gaps
22
title: Detect verification gaps
33
status: implemented
44
area: core
@@ -21,7 +21,7 @@ agent:
2121
outputs:
2222
- verification gap list
2323
depends_on:
24-
- core/define-capability-format
24+
- core/model/define-capability-format
2525
implementation:
2626
references:
2727
- packages/core/src/validateCapabilities.ts

0 commit comments

Comments
 (0)