@acidicsoil/portable-capabilities 0.1.0

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 (68) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +231 -0
  3. package/canonical/exceptions/antigravity-unsupported-primitives.yaml +16 -0
  4. package/canonical/exceptions/claude-code-unsupported-primitives.yaml +16 -0
  5. package/canonical/exceptions/codex-unsupported-primitives.yaml +16 -0
  6. package/canonical/exceptions/dcode-unsupported-primitives.yaml +16 -0
  7. package/canonical/exceptions/oh-my-pi-unsupported-primitives.yaml +16 -0
  8. package/canonical/exceptions/opencode-unsupported-primitives.yaml +16 -0
  9. package/canonical/exceptions/pi-unsupported-primitives.yaml +16 -0
  10. package/canonical/families/comparative-traceability.yaml +18 -0
  11. package/canonical/families/context-template-generation.yaml +18 -0
  12. package/canonical/families/corrective-transformation.yaml +18 -0
  13. package/canonical/families/exemplar-modeling.yaml +18 -0
  14. package/canonical/families/guardrails-evaluation.yaml +18 -0
  15. package/canonical/families/workflow-intent-abstraction.yaml +18 -0
  16. package/canonical/fixtures/runtime-primitive-matrix-112.json +1956 -0
  17. package/canonical/operations/compare.artifacts.yaml +22 -0
  18. package/canonical/operations/generation.render.yaml +22 -0
  19. package/canonical/operations/inference.classify.yaml +22 -0
  20. package/canonical/operations/ingest.sources.yaml +22 -0
  21. package/canonical/operations/normalize.artifacts.yaml +22 -0
  22. package/canonical/operations/patterns.extract.yaml +22 -0
  23. package/canonical/operations/segment.surfaces.yaml +22 -0
  24. package/canonical/operations/trace.build-evidence-ledger.yaml +22 -0
  25. package/canonical/operations/validation.contract.yaml +22 -0
  26. package/canonical/policies/evidence-policy.yaml +22 -0
  27. package/canonical/roles/acceptance-criteria-synthesis.yaml +84 -0
  28. package/canonical/roles/anti-pattern-inversion.yaml +83 -0
  29. package/canonical/roles/behavior-preserving-refactor.yaml +88 -0
  30. package/canonical/roles/canonical-exemplar-generalization.yaml +84 -0
  31. package/canonical/roles/constrained-exemplar-adaptation.yaml +85 -0
  32. package/canonical/roles/convention-mining.yaml +81 -0
  33. package/canonical/roles/conversation-to-specification.yaml +83 -0
  34. package/canonical/roles/delta-analysis.yaml +84 -0
  35. package/canonical/roles/domain-context-boundary.yaml +82 -0
  36. package/canonical/roles/evaluation-harness-design.yaml +86 -0
  37. package/canonical/roles/failure-to-guardrail.yaml +81 -0
  38. package/canonical/roles/multi-exemplar-consensus.yaml +81 -0
  39. package/canonical/roles/reference-trace-mapping.yaml +83 -0
  40. package/canonical/roles/reusable-workflow-abstraction.yaml +82 -0
  41. package/canonical/roles/structural-pattern-extraction.yaml +82 -0
  42. package/canonical/roles/template-family-generation.yaml +83 -0
  43. package/canonical/runtime-primitive-policy.yaml +100 -0
  44. package/canonical/runtime-profiles/antigravity.yaml +60 -0
  45. package/canonical/runtime-profiles/claude-code.yaml +65 -0
  46. package/canonical/runtime-profiles/codex.yaml +71 -0
  47. package/canonical/runtime-profiles/dcode.yaml +67 -0
  48. package/canonical/runtime-profiles/oh-my-pi.yaml +62 -0
  49. package/canonical/runtime-profiles/opencode.yaml +65 -0
  50. package/canonical/runtime-profiles/pi.yaml +66 -0
  51. package/canonical/schemas/acceptance-criteria-synthesis.output.schema.json +63 -0
  52. package/canonical/schemas/anti-pattern-inversion.output.schema.json +63 -0
  53. package/canonical/schemas/behavior-preserving-refactor.output.schema.json +63 -0
  54. package/canonical/schemas/canonical-exemplar-generalization.output.schema.json +63 -0
  55. package/canonical/schemas/constrained-exemplar-adaptation.output.schema.json +63 -0
  56. package/canonical/schemas/convention-mining.output.schema.json +63 -0
  57. package/canonical/schemas/conversation-to-specification.output.schema.json +63 -0
  58. package/canonical/schemas/delta-analysis.output.schema.json +63 -0
  59. package/canonical/schemas/domain-context-boundary.output.schema.json +63 -0
  60. package/canonical/schemas/evaluation-harness-design.output.schema.json +73 -0
  61. package/canonical/schemas/failure-to-guardrail.output.schema.json +63 -0
  62. package/canonical/schemas/multi-exemplar-consensus.output.schema.json +63 -0
  63. package/canonical/schemas/reference-trace-mapping.output.schema.json +63 -0
  64. package/canonical/schemas/reusable-workflow-abstraction.output.schema.json +73 -0
  65. package/canonical/schemas/structural-pattern-extraction.output.schema.json +63 -0
  66. package/canonical/schemas/template-family-generation.output.schema.json +63 -0
  67. package/canonical/taxonomy/analytical-capabilities.yaml +95 -0
  68. package/package.json +66 -0
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/conversation-to-specification.output.schema.json",
4
+ "title": "Conversation to Specification Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "requirements",
9
+ "acceptanceCriteria",
10
+ "assumptions",
11
+ "openQuestions",
12
+ "traceLinks"
13
+ ],
14
+ "properties": {
15
+ "requirements": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific requirements result with evidence links where material."
22
+ },
23
+ "acceptanceCriteria": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific acceptanceCriteria result with evidence links where material."
30
+ },
31
+ "assumptions": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific assumptions result with evidence links where material."
38
+ },
39
+ "openQuestions": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific openQuestions result with evidence links where material."
46
+ },
47
+ "traceLinks": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific traceLinks result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "requirements",
58
+ "acceptanceCriteria",
59
+ "assumptions",
60
+ "openQuestions",
61
+ "traceLinks"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/delta-analysis.output.schema.json",
4
+ "title": "Delta Analysis Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "deltas",
9
+ "materiality",
10
+ "impactAnalysis",
11
+ "unchangedAreas",
12
+ "evidence"
13
+ ],
14
+ "properties": {
15
+ "deltas": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific deltas result with evidence links where material."
22
+ },
23
+ "materiality": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific materiality result with evidence links where material."
30
+ },
31
+ "impactAnalysis": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific impactAnalysis result with evidence links where material."
38
+ },
39
+ "unchangedAreas": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific unchangedAreas result with evidence links where material."
46
+ },
47
+ "evidence": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific evidence result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "deltas",
58
+ "materiality",
59
+ "impactAnalysis",
60
+ "unchangedAreas",
61
+ "evidence"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/domain-context-boundary.output.schema.json",
4
+ "title": "Domain Context Boundary Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "includedContext",
9
+ "excludedContext",
10
+ "decisionCoverage",
11
+ "freshnessRules",
12
+ "escalationTriggers"
13
+ ],
14
+ "properties": {
15
+ "includedContext": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific includedContext result with evidence links where material."
22
+ },
23
+ "excludedContext": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific excludedContext result with evidence links where material."
30
+ },
31
+ "decisionCoverage": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific decisionCoverage result with evidence links where material."
38
+ },
39
+ "freshnessRules": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific freshnessRules result with evidence links where material."
46
+ },
47
+ "escalationTriggers": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific escalationTriggers result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "includedContext",
58
+ "excludedContext",
59
+ "decisionCoverage",
60
+ "freshnessRules",
61
+ "escalationTriggers"
62
+ ]
63
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/evaluation-harness-design.output.schema.json",
4
+ "title": "Evaluation Harness Design Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "testPlan",
9
+ "fixtures",
10
+ "assertions",
11
+ "executionProtocol",
12
+ "thresholds",
13
+ "resultSchema"
14
+ ],
15
+ "properties": {
16
+ "testPlan": {
17
+ "type": [
18
+ "array",
19
+ "object",
20
+ "string"
21
+ ],
22
+ "description": "Role-specific testPlan result with evidence links where material."
23
+ },
24
+ "fixtures": {
25
+ "type": [
26
+ "array",
27
+ "object",
28
+ "string"
29
+ ],
30
+ "description": "Role-specific fixtures result with evidence links where material."
31
+ },
32
+ "assertions": {
33
+ "type": [
34
+ "array",
35
+ "object",
36
+ "string"
37
+ ],
38
+ "description": "Role-specific assertions result with evidence links where material."
39
+ },
40
+ "executionProtocol": {
41
+ "type": [
42
+ "array",
43
+ "object",
44
+ "string"
45
+ ],
46
+ "description": "Role-specific executionProtocol result with evidence links where material."
47
+ },
48
+ "thresholds": {
49
+ "type": [
50
+ "array",
51
+ "object",
52
+ "string"
53
+ ],
54
+ "description": "Role-specific thresholds result with evidence links where material."
55
+ },
56
+ "resultSchema": {
57
+ "type": [
58
+ "array",
59
+ "object",
60
+ "string"
61
+ ],
62
+ "description": "Role-specific resultSchema result with evidence links where material."
63
+ }
64
+ },
65
+ "x-material-claim-fields": [
66
+ "testPlan",
67
+ "fixtures",
68
+ "assertions",
69
+ "executionProtocol",
70
+ "thresholds",
71
+ "resultSchema"
72
+ ]
73
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/failure-to-guardrail.output.schema.json",
4
+ "title": "Failure to Guardrail Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "failureModel",
9
+ "guardrails",
10
+ "enforcementPoints",
11
+ "verification",
12
+ "residualRisk"
13
+ ],
14
+ "properties": {
15
+ "failureModel": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific failureModel result with evidence links where material."
22
+ },
23
+ "guardrails": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific guardrails result with evidence links where material."
30
+ },
31
+ "enforcementPoints": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific enforcementPoints result with evidence links where material."
38
+ },
39
+ "verification": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific verification result with evidence links where material."
46
+ },
47
+ "residualRisk": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific residualRisk result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "failureModel",
58
+ "guardrails",
59
+ "enforcementPoints",
60
+ "verification",
61
+ "residualRisk"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/multi-exemplar-consensus.output.schema.json",
4
+ "title": "Multi-Exemplar Consensus Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "consensus",
9
+ "divergences",
10
+ "minorityPositions",
11
+ "agreementScores",
12
+ "sourceMatrix"
13
+ ],
14
+ "properties": {
15
+ "consensus": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific consensus result with evidence links where material."
22
+ },
23
+ "divergences": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific divergences result with evidence links where material."
30
+ },
31
+ "minorityPositions": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific minorityPositions result with evidence links where material."
38
+ },
39
+ "agreementScores": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific agreementScores result with evidence links where material."
46
+ },
47
+ "sourceMatrix": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific sourceMatrix result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "consensus",
58
+ "divergences",
59
+ "minorityPositions",
60
+ "agreementScores",
61
+ "sourceMatrix"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/reference-trace-mapping.output.schema.json",
4
+ "title": "Reference Trace Mapping Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "traceEntries",
9
+ "unsupportedTargets",
10
+ "conflicts",
11
+ "derivations",
12
+ "coverageSummary"
13
+ ],
14
+ "properties": {
15
+ "traceEntries": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific traceEntries result with evidence links where material."
22
+ },
23
+ "unsupportedTargets": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific unsupportedTargets result with evidence links where material."
30
+ },
31
+ "conflicts": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific conflicts result with evidence links where material."
38
+ },
39
+ "derivations": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific derivations result with evidence links where material."
46
+ },
47
+ "coverageSummary": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific coverageSummary result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "traceEntries",
58
+ "unsupportedTargets",
59
+ "conflicts",
60
+ "derivations",
61
+ "coverageSummary"
62
+ ]
63
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/reusable-workflow-abstraction.output.schema.json",
4
+ "title": "Reusable Workflow Abstraction Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "workflow",
9
+ "preconditions",
10
+ "decisionPoints",
11
+ "parameters",
12
+ "failurePaths",
13
+ "replayEvidence"
14
+ ],
15
+ "properties": {
16
+ "workflow": {
17
+ "type": [
18
+ "array",
19
+ "object",
20
+ "string"
21
+ ],
22
+ "description": "Role-specific workflow result with evidence links where material."
23
+ },
24
+ "preconditions": {
25
+ "type": [
26
+ "array",
27
+ "object",
28
+ "string"
29
+ ],
30
+ "description": "Role-specific preconditions result with evidence links where material."
31
+ },
32
+ "decisionPoints": {
33
+ "type": [
34
+ "array",
35
+ "object",
36
+ "string"
37
+ ],
38
+ "description": "Role-specific decisionPoints result with evidence links where material."
39
+ },
40
+ "parameters": {
41
+ "type": [
42
+ "array",
43
+ "object",
44
+ "string"
45
+ ],
46
+ "description": "Role-specific parameters result with evidence links where material."
47
+ },
48
+ "failurePaths": {
49
+ "type": [
50
+ "array",
51
+ "object",
52
+ "string"
53
+ ],
54
+ "description": "Role-specific failurePaths result with evidence links where material."
55
+ },
56
+ "replayEvidence": {
57
+ "type": [
58
+ "array",
59
+ "object",
60
+ "string"
61
+ ],
62
+ "description": "Role-specific replayEvidence result with evidence links where material."
63
+ }
64
+ },
65
+ "x-material-claim-fields": [
66
+ "workflow",
67
+ "preconditions",
68
+ "decisionPoints",
69
+ "parameters",
70
+ "failurePaths",
71
+ "replayEvidence"
72
+ ]
73
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/structural-pattern-extraction.output.schema.json",
4
+ "title": "Structural Pattern Extraction Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "patterns",
9
+ "evidenceMatrix",
10
+ "negativeExamples",
11
+ "applicabilityConditions",
12
+ "openHypotheses"
13
+ ],
14
+ "properties": {
15
+ "patterns": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific patterns result with evidence links where material."
22
+ },
23
+ "evidenceMatrix": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific evidenceMatrix result with evidence links where material."
30
+ },
31
+ "negativeExamples": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific negativeExamples result with evidence links where material."
38
+ },
39
+ "applicabilityConditions": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific applicabilityConditions result with evidence links where material."
46
+ },
47
+ "openHypotheses": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific openHypotheses result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "patterns",
58
+ "evidenceMatrix",
59
+ "negativeExamples",
60
+ "applicabilityConditions",
61
+ "openHypotheses"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/template-family-generation.output.schema.json",
4
+ "title": "Template Family Generation Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "sharedTemplate",
9
+ "variants",
10
+ "selectionRules",
11
+ "compatibilityMatrix",
12
+ "validationResults"
13
+ ],
14
+ "properties": {
15
+ "sharedTemplate": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific sharedTemplate result with evidence links where material."
22
+ },
23
+ "variants": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific variants result with evidence links where material."
30
+ },
31
+ "selectionRules": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific selectionRules result with evidence links where material."
38
+ },
39
+ "compatibilityMatrix": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific compatibilityMatrix result with evidence links where material."
46
+ },
47
+ "validationResults": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific validationResults result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "sharedTemplate",
58
+ "variants",
59
+ "selectionRules",
60
+ "compatibilityMatrix",
61
+ "validationResults"
62
+ ]
63
+ }