@acidicsoil/portable-capabilities 0.1.5 → 0.1.8

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 (59) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +31 -62
  3. package/dist-release/catalog/roles/acceptance-criteria-synthesis.yaml +84 -0
  4. package/dist-release/catalog/roles/anti-pattern-inversion.yaml +83 -0
  5. package/dist-release/catalog/roles/behavior-preserving-refactor.yaml +88 -0
  6. package/dist-release/catalog/roles/canonical-exemplar-generalization.yaml +84 -0
  7. package/dist-release/catalog/roles/constrained-exemplar-adaptation.yaml +85 -0
  8. package/dist-release/catalog/roles/convention-mining.yaml +81 -0
  9. package/dist-release/catalog/roles/conversation-to-specification.yaml +83 -0
  10. package/dist-release/catalog/roles/delta-analysis.yaml +84 -0
  11. package/dist-release/catalog/roles/domain-context-boundary.yaml +82 -0
  12. package/dist-release/catalog/roles/evaluation-harness-design.yaml +86 -0
  13. package/dist-release/catalog/roles/failure-to-guardrail.yaml +81 -0
  14. package/dist-release/catalog/roles/multi-exemplar-consensus.yaml +81 -0
  15. package/dist-release/catalog/roles/reference-trace-mapping.yaml +83 -0
  16. package/dist-release/catalog/roles/reusable-workflow-abstraction.yaml +82 -0
  17. package/dist-release/catalog/roles/structural-pattern-extraction.yaml +82 -0
  18. package/dist-release/catalog/roles/template-family-generation.yaml +83 -0
  19. package/dist-release/catalog/schemas/acceptance-criteria-synthesis.output.schema.json +63 -0
  20. package/dist-release/catalog/schemas/anti-pattern-inversion.output.schema.json +63 -0
  21. package/dist-release/catalog/schemas/behavior-preserving-refactor.output.schema.json +63 -0
  22. package/dist-release/catalog/schemas/canonical-exemplar-generalization.output.schema.json +63 -0
  23. package/dist-release/catalog/schemas/constrained-exemplar-adaptation.output.schema.json +63 -0
  24. package/dist-release/catalog/schemas/convention-mining.output.schema.json +63 -0
  25. package/dist-release/catalog/schemas/conversation-to-specification.output.schema.json +63 -0
  26. package/dist-release/catalog/schemas/delta-analysis.output.schema.json +63 -0
  27. package/dist-release/catalog/schemas/domain-context-boundary.output.schema.json +63 -0
  28. package/dist-release/catalog/schemas/evaluation-harness-design.output.schema.json +73 -0
  29. package/dist-release/catalog/schemas/failure-to-guardrail.output.schema.json +63 -0
  30. package/dist-release/catalog/schemas/multi-exemplar-consensus.output.schema.json +63 -0
  31. package/dist-release/catalog/schemas/reference-trace-mapping.output.schema.json +63 -0
  32. package/dist-release/catalog/schemas/reusable-workflow-abstraction.output.schema.json +73 -0
  33. package/dist-release/catalog/schemas/structural-pattern-extraction.output.schema.json +63 -0
  34. package/dist-release/catalog/schemas/template-family-generation.output.schema.json +63 -0
  35. package/dist-release/cli.js +5507 -3265
  36. package/dist-release/cli.js.map +4 -4
  37. package/dist-release/index.js +5976 -3447
  38. package/dist-release/index.js.map +4 -4
  39. package/package.json +37 -42
  40. package/schemas/canonical-artifact.schema.json +220 -0
  41. package/schemas/runtime-descriptor.schema.json +338 -0
  42. package/schemas/runtime-evidence-claim.schema.json +87 -0
  43. package/canonical/exceptions/antigravity-unsupported-primitives.yaml +0 -16
  44. package/canonical/exceptions/claude-code-unsupported-primitives.yaml +0 -16
  45. package/canonical/exceptions/codex-unsupported-primitives.yaml +0 -16
  46. package/canonical/exceptions/dcode-unsupported-primitives.yaml +0 -16
  47. package/canonical/exceptions/oh-my-pi-unsupported-primitives.yaml +0 -16
  48. package/canonical/exceptions/opencode-unsupported-primitives.yaml +0 -16
  49. package/canonical/exceptions/pi-unsupported-primitives.yaml +0 -16
  50. package/canonical/fixtures/runtime-primitive-matrix-112.json +0 -1956
  51. package/canonical/runtime-primitive-policy.yaml +0 -100
  52. package/canonical/runtime-profiles/antigravity.yaml +0 -60
  53. package/canonical/runtime-profiles/claude-code.yaml +0 -65
  54. package/canonical/runtime-profiles/codex.yaml +0 -71
  55. package/canonical/runtime-profiles/dcode.yaml +0 -67
  56. package/canonical/runtime-profiles/oh-my-pi.yaml +0 -62
  57. package/canonical/runtime-profiles/opencode.yaml +0 -65
  58. package/canonical/runtime-profiles/pi.yaml +0 -66
  59. package/schemas/runtime-profile.schema.json +0 -305
@@ -0,0 +1,83 @@
1
+ schemaVersion: '1.0'
2
+ id: reference-trace-mapping
3
+ purpose: Map claims and structures to source references.
4
+ family:
5
+ id: comparative-traceability
6
+ version: 1.0.0
7
+ taxonomy:
8
+ id: reference-trace-mapping
9
+ displayName: Reference Trace Mapping
10
+ transformation: Map claims and structures to source references.
11
+ intendedOutput: Trace map
12
+ inputs:
13
+ - name: claims-or-structures
14
+ description: Claims or structural elements requiring source mapping.
15
+ required: true
16
+ - name: source-corpus
17
+ description: Candidate source artifacts.
18
+ required: true
19
+ - name: identity-rules
20
+ description: Rules for stable claim and source identifiers.
21
+ required: false
22
+ precedence:
23
+ - sourceClass: explicit-contract
24
+ rank: 0
25
+ - sourceClass: observed-artifact
26
+ rank: 1
27
+ - sourceClass: inference
28
+ rank: 2
29
+ pipeline:
30
+ - id: ingest.sources
31
+ version: 1.0.0
32
+ - id: trace.build-evidence-ledger
33
+ version: 1.0.0
34
+ - id: validation.contract
35
+ version: 1.0.0
36
+ output:
37
+ schema: canonical/schemas/reference-trace-mapping.output.schema.json
38
+ description: Trace map
39
+ requiredBehavior:
40
+ - 'activation: Use reference-trace-mapping only when the requested outcome requires this transformation: Map claims
41
+ and structures to source references.'
42
+ - 'sufficiency: Require all role inputs marked required and enough evidence to complete these gates: Every target
43
+ has a stable identifier and a resolved trace status, with exact locations for all supporting and counterevidence
44
+ sources.'
45
+ - 'conflict: Apply declared source precedence; when equally authoritative evidence changes the decision, preserve
46
+ both positions and return the affected output field as unresolved.'
47
+ - 'ambiguity: Isolate ambiguous terms or boundaries, show which stage and output fields they affect, and request
48
+ clarification rather than selecting an unsupported interpretation.'
49
+ - 'abstention: Abstain from reference-trace-mapping when required inputs are absent, the decision rule cannot be
50
+ applied, or evidence cannot satisfy the completion gate.'
51
+ - 'stop: Stop before emitting Trace map unless Every target has a stable identifier and a resolved trace status,
52
+ with exact locations for all supporting and counterevidence sources.'
53
+ - 'resources: Load the target inventory, source corpus, and identifier rules; retrieve only sources relevant to
54
+ unresolved targets.'
55
+ - 'transformation: Execute the ordered analytical procedure: 1) assign stable identifiers to target claims or structures;
56
+ 2) locate direct and indirect source support; 3) record exact source locations and derivation links; 4) flag unsupported,
57
+ conflicting, or multiply-sourced targets.'
58
+ - 'output: Populate and validate canonical/schemas/reference-trace-mapping.output.schema.json with required fields
59
+ traceEntries, unsupportedTargets, conflicts, derivations, coverageSummary; do not replace missing fields with
60
+ prose.'
61
+ - 'traceability: Link every material output field to source identifiers and the analytical stage or decision that
62
+ produced it; retain counterevidence for unresolved results.'
63
+ - 'evaluation: Pass only when the output schema validates, the ordered stages are evidenced, the role decision rule
64
+ was applied, and this completion gate holds: Every target has a stable identifier and a resolved trace status,
65
+ with exact locations for all supporting and counterevidence sources.'
66
+ forbiddenBehavior:
67
+ - Do not substitute generic analytical behavior for the role-specific reference-trace-mapping transformation.
68
+ - Do not skip, reorder, or silently collapse the role's declared analytical stages.
69
+ - Do not invent missing evidence, resolve authority conflicts by convenience, or emit a completed result after a
70
+ stop or abstention condition.
71
+ - Do not copy operation-owned ingestion, ledger, or schema-validation mechanics into the role contract.
72
+ traceability:
73
+ materialClaimsRequireSources: true
74
+ ledgerFormat: jsonl
75
+ artifacts: content-addressed
76
+ evaluation:
77
+ criteria:
78
+ - The authoritative transformation and intended output for reference-trace-mapping are preserved.
79
+ - 'Required inputs and the decision rule are satisfied: Mark support as direct only when the source explicitly
80
+ entails the target; otherwise classify it as derived, inferred, conflicting, or unresolved.'
81
+ - 'The ordered analytical stages are evidenced and the output completion gate passes: Every target has a stable
82
+ identifier and a resolved trace status, with exact locations for all supporting and counterevidence sources.'
83
+ - Conflict, ambiguity, insufficient-evidence, abstention, and stop behavior remain explicit and testable.
@@ -0,0 +1,82 @@
1
+ schemaVersion: '1.0'
2
+ id: reusable-workflow-abstraction
3
+ purpose: Abstract a repeatable workflow from concrete execution.
4
+ family:
5
+ id: workflow-intent-abstraction
6
+ version: 1.0.0
7
+ taxonomy:
8
+ id: reusable-workflow-abstraction
9
+ displayName: Reusable Workflow Abstraction
10
+ transformation: Abstract a repeatable workflow from concrete execution.
11
+ intendedOutput: Reusable workflow contract
12
+ inputs:
13
+ - name: execution-traces
14
+ description: Concrete executions of the workflow.
15
+ required: true
16
+ - name: outcome-records
17
+ description: Observed outcomes and failure records.
18
+ required: true
19
+ - name: reuse-boundary
20
+ description: Contexts in which the abstraction must remain valid.
21
+ required: true
22
+ precedence:
23
+ - sourceClass: explicit-contract
24
+ rank: 0
25
+ - sourceClass: observed-artifact
26
+ rank: 1
27
+ - sourceClass: inference
28
+ rank: 2
29
+ pipeline:
30
+ - id: ingest.sources
31
+ version: 1.0.0
32
+ - id: trace.build-evidence-ledger
33
+ version: 1.0.0
34
+ - id: validation.contract
35
+ version: 1.0.0
36
+ output:
37
+ schema: canonical/schemas/reusable-workflow-abstraction.output.schema.json
38
+ description: Reusable workflow contract
39
+ requiredBehavior:
40
+ - 'activation: Use reusable-workflow-abstraction only when the requested outcome requires this transformation: Abstract
41
+ a repeatable workflow from concrete execution.'
42
+ - 'sufficiency: Require all role inputs marked required and enough evidence to complete these gates: Representative
43
+ successful and failed traces can be replayed through the abstraction without renderer- or operator-invented steps.'
44
+ - 'conflict: Apply declared source precedence; when equally authoritative evidence changes the decision, preserve
45
+ both positions and return the affected output field as unresolved.'
46
+ - 'ambiguity: Isolate ambiguous terms or boundaries, show which stage and output fields they affect, and request
47
+ clarification rather than selecting an unsupported interpretation.'
48
+ - 'abstention: Abstain from reusable-workflow-abstraction when required inputs are absent, the decision rule cannot
49
+ be applied, or evidence cannot satisfy the completion gate.'
50
+ - 'stop: Stop before emitting Reusable workflow contract unless Representative successful and failed traces can
51
+ be replayed through the abstraction without renderer- or operator-invented steps.'
52
+ - 'resources: Load execution traces, outcome records, and target reuse contexts; load failure traces whenever a
53
+ branch or stop condition is defined.'
54
+ - 'transformation: Execute the ordered analytical procedure: 1) decompose traces into triggers inputs actions decisions
55
+ and outputs; 2) identify invariant steps and context-dependent branches; 3) extract explicit preconditions postconditions
56
+ and failure paths; 4) validate the abstraction by replaying representative traces.'
57
+ - 'output: Populate and validate canonical/schemas/reusable-workflow-abstraction.output.schema.json with required
58
+ fields workflow, preconditions, decisionPoints, parameters, failurePaths, replayEvidence; do not replace missing
59
+ fields with prose.'
60
+ - 'traceability: Link every material output field to source identifiers and the analytical stage or decision that
61
+ produced it; retain counterevidence for unresolved results.'
62
+ - 'evaluation: Pass only when the output schema validates, the ordered stages are evidenced, the role decision rule
63
+ was applied, and this completion gate holds: Representative successful and failed traces can be replayed through
64
+ the abstraction without renderer- or operator-invented steps.'
65
+ forbiddenBehavior:
66
+ - Do not substitute generic analytical behavior for the role-specific reusable-workflow-abstraction transformation.
67
+ - Do not skip, reorder, or silently collapse the role's declared analytical stages.
68
+ - Do not invent missing evidence, resolve authority conflicts by convenience, or emit a completed result after a
69
+ stop or abstention condition.
70
+ - Do not copy operation-owned ingestion, ledger, or schema-validation mechanics into the role contract.
71
+ traceability:
72
+ materialClaimsRequireSources: true
73
+ ledgerFormat: jsonl
74
+ artifacts: content-addressed
75
+ evaluation:
76
+ criteria:
77
+ - The authoritative transformation and intended output for reusable-workflow-abstraction are preserved.
78
+ - 'Required inputs and the decision rule are satisfied: Abstract only steps that recur or are required by contract;
79
+ expose context-specific behavior as parameters or branches rather than hiding it.'
80
+ - 'The ordered analytical stages are evidenced and the output completion gate passes: Representative successful
81
+ and failed traces can be replayed through the abstraction without renderer- or operator-invented steps.'
82
+ - Conflict, ambiguity, insufficient-evidence, abstention, and stop behavior remain explicit and testable.
@@ -0,0 +1,82 @@
1
+ schemaVersion: '1.0'
2
+ id: structural-pattern-extraction
3
+ purpose: Extract durable structural patterns from exemplars.
4
+ family:
5
+ id: exemplar-modeling
6
+ version: 1.0.0
7
+ taxonomy:
8
+ id: structural-pattern-extraction
9
+ displayName: Structural Pattern Extraction
10
+ transformation: Extract durable structural patterns from exemplars.
11
+ intendedOutput: Pattern catalog
12
+ inputs:
13
+ - name: artifact-set
14
+ description: Artifacts from which durable structure will be extracted.
15
+ required: true
16
+ - name: segmentation-rules
17
+ description: Rules for identifying comparable structural units.
18
+ required: false
19
+ - name: noise-exclusions
20
+ description: Known incidental or generated features to ignore.
21
+ required: false
22
+ precedence:
23
+ - sourceClass: explicit-contract
24
+ rank: 0
25
+ - sourceClass: observed-artifact
26
+ rank: 1
27
+ - sourceClass: inference
28
+ rank: 2
29
+ pipeline:
30
+ - id: ingest.sources
31
+ version: 1.0.0
32
+ - id: trace.build-evidence-ledger
33
+ version: 1.0.0
34
+ - id: validation.contract
35
+ version: 1.0.0
36
+ output:
37
+ schema: canonical/schemas/structural-pattern-extraction.output.schema.json
38
+ description: Pattern catalog
39
+ requiredBehavior:
40
+ - 'activation: Use structural-pattern-extraction only when the requested outcome requires this transformation: Extract
41
+ durable structural patterns from exemplars.'
42
+ - 'sufficiency: Require all role inputs marked required and enough evidence to complete these gates: Each pattern
43
+ has recurrence evidence, applicability conditions, and at least one falsification or negative-example check.'
44
+ - 'conflict: Apply declared source precedence; when equally authoritative evidence changes the decision, preserve
45
+ both positions and return the affected output field as unresolved.'
46
+ - 'ambiguity: Isolate ambiguous terms or boundaries, show which stage and output fields they affect, and request
47
+ clarification rather than selecting an unsupported interpretation.'
48
+ - 'abstention: Abstain from structural-pattern-extraction when required inputs are absent, the decision rule cannot
49
+ be applied, or evidence cannot satisfy the completion gate.'
50
+ - 'stop: Stop before emitting Pattern catalog unless Each pattern has recurrence evidence, applicability conditions,
51
+ and at least one falsification or negative-example check.'
52
+ - 'resources: Load the artifact set, segmentation rules, and exclusion catalog; use negative examples to reject
53
+ over-broad patterns.'
54
+ - 'transformation: Execute the ordered analytical procedure: 1) segment artifacts into comparable units; 2) identify
55
+ repeated relations and ordering constraints; 3) distinguish durable patterns from coincidental repetition; 4)
56
+ name each pattern and attach positive and negative examples.'
57
+ - 'output: Populate and validate canonical/schemas/structural-pattern-extraction.output.schema.json with required
58
+ fields patterns, evidenceMatrix, negativeExamples, applicabilityConditions, openHypotheses; do not replace missing
59
+ fields with prose.'
60
+ - 'traceability: Link every material output field to source identifiers and the analytical stage or decision that
61
+ produced it; retain counterevidence for unresolved results.'
62
+ - 'evaluation: Pass only when the output schema validates, the ordered stages are evidenced, the role decision rule
63
+ was applied, and this completion gate holds: Each pattern has recurrence evidence, applicability conditions, and
64
+ at least one falsification or negative-example check.'
65
+ forbiddenBehavior:
66
+ - Do not substitute generic analytical behavior for the role-specific structural-pattern-extraction transformation.
67
+ - Do not skip, reorder, or silently collapse the role's declared analytical stages.
68
+ - Do not invent missing evidence, resolve authority conflicts by convenience, or emit a completed result after a
69
+ stop or abstention condition.
70
+ - Do not copy operation-owned ingestion, ledger, or schema-validation mechanics into the role contract.
71
+ traceability:
72
+ materialClaimsRequireSources: true
73
+ ledgerFormat: jsonl
74
+ artifacts: content-addressed
75
+ evaluation:
76
+ criteria:
77
+ - The authoritative transformation and intended output for structural-pattern-extraction are preserved.
78
+ - 'Required inputs and the decision rule are satisfied: Promote a candidate only when recurrence and structural
79
+ relevance exceed incidental similarity; otherwise retain it as a hypothesis.'
80
+ - 'The ordered analytical stages are evidenced and the output completion gate passes: Each pattern has recurrence
81
+ evidence, applicability conditions, and at least one falsification or negative-example check.'
82
+ - Conflict, ambiguity, insufficient-evidence, abstention, and stop behavior remain explicit and testable.
@@ -0,0 +1,83 @@
1
+ schemaVersion: '1.0'
2
+ id: template-family-generation
3
+ purpose: Generate a coherent family of reusable templates.
4
+ family:
5
+ id: context-template-generation
6
+ version: 1.0.0
7
+ taxonomy:
8
+ id: template-family-generation
9
+ displayName: Template Family Generation
10
+ transformation: Generate a coherent family of reusable templates.
11
+ intendedOutput: Template family
12
+ inputs:
13
+ - name: template-requirements
14
+ description: Requirements shared by the template family.
15
+ required: true
16
+ - name: variation-model
17
+ description: Allowed variants and their selection conditions.
18
+ required: true
19
+ - name: reference-artifacts
20
+ description: Approved examples or existing templates.
21
+ required: false
22
+ precedence:
23
+ - sourceClass: explicit-contract
24
+ rank: 0
25
+ - sourceClass: observed-artifact
26
+ rank: 1
27
+ - sourceClass: inference
28
+ rank: 2
29
+ pipeline:
30
+ - id: ingest.sources
31
+ version: 1.0.0
32
+ - id: trace.build-evidence-ledger
33
+ version: 1.0.0
34
+ - id: validation.contract
35
+ version: 1.0.0
36
+ output:
37
+ schema: canonical/schemas/template-family-generation.output.schema.json
38
+ description: Template family
39
+ requiredBehavior:
40
+ - 'activation: Use template-family-generation only when the requested outcome requires this transformation: Generate
41
+ a coherent family of reusable templates.'
42
+ - 'sufficiency: Require all role inputs marked required and enough evidence to complete these gates: All required
43
+ variants are generated, shared behavior is single-sourced, selection rules are deterministic, and every variant
44
+ validates.'
45
+ - 'conflict: Apply declared source precedence; when equally authoritative evidence changes the decision, preserve
46
+ both positions and return the affected output field as unresolved.'
47
+ - 'ambiguity: Isolate ambiguous terms or boundaries, show which stage and output fields they affect, and request
48
+ clarification rather than selecting an unsupported interpretation.'
49
+ - 'abstention: Abstain from template-family-generation when required inputs are absent, the decision rule cannot
50
+ be applied, or evidence cannot satisfy the completion gate.'
51
+ - 'stop: Stop before emitting Template family unless All required variants are generated, shared behavior is single-sourced,
52
+ selection rules are deterministic, and every variant validates.'
53
+ - 'resources: Load family requirements, variation model, approved references, and validation schemas; load each
54
+ reference only for the feature it evidences.'
55
+ - 'transformation: Execute the ordered analytical procedure: 1) derive the invariant template skeleton; 2) model
56
+ variation points and compatibility constraints; 3) generate each variant from shared primitives; 4) validate family
57
+ coherence coverage and non-duplication.'
58
+ - 'output: Populate and validate canonical/schemas/template-family-generation.output.schema.json with required fields
59
+ sharedTemplate, variants, selectionRules, compatibilityMatrix, validationResults; do not replace missing fields
60
+ with prose.'
61
+ - 'traceability: Link every material output field to source identifiers and the analytical stage or decision that
62
+ produced it; retain counterevidence for unresolved results.'
63
+ - 'evaluation: Pass only when the output schema validates, the ordered stages are evidenced, the role decision rule
64
+ was applied, and this completion gate holds: All required variants are generated, shared behavior is single-sourced,
65
+ selection rules are deterministic, and every variant validates.'
66
+ forbiddenBehavior:
67
+ - Do not substitute generic analytical behavior for the role-specific template-family-generation transformation.
68
+ - Do not skip, reorder, or silently collapse the role's declared analytical stages.
69
+ - Do not invent missing evidence, resolve authority conflicts by convenience, or emit a completed result after a
70
+ stop or abstention condition.
71
+ - Do not copy operation-owned ingestion, ledger, or schema-validation mechanics into the role contract.
72
+ traceability:
73
+ materialClaimsRequireSources: true
74
+ ledgerFormat: jsonl
75
+ artifacts: content-addressed
76
+ evaluation:
77
+ criteria:
78
+ - The authoritative transformation and intended output for template-family-generation are preserved.
79
+ - 'Required inputs and the decision rule are satisfied: Keep behavior in the shared primitive when all variants
80
+ require it; create a variant only when a documented selection condition changes structure or obligations.'
81
+ - 'The ordered analytical stages are evidenced and the output completion gate passes: All required variants are
82
+ generated, shared behavior is single-sourced, selection rules are deterministic, and every variant validates.'
83
+ - Conflict, ambiguity, insufficient-evidence, abstention, and stop behavior remain explicit and testable.
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/acceptance-criteria-synthesis.output.schema.json",
4
+ "title": "Acceptance Criteria Synthesis Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "criteria",
9
+ "evidenceRequirements",
10
+ "thresholds",
11
+ "failureConditions",
12
+ "coverageMap"
13
+ ],
14
+ "properties": {
15
+ "criteria": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific criteria result with evidence links where material."
22
+ },
23
+ "evidenceRequirements": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific evidenceRequirements result with evidence links where material."
30
+ },
31
+ "thresholds": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific thresholds result with evidence links where material."
38
+ },
39
+ "failureConditions": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific failureConditions result with evidence links where material."
46
+ },
47
+ "coverageMap": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific coverageMap result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "criteria",
58
+ "evidenceRequirements",
59
+ "thresholds",
60
+ "failureConditions",
61
+ "coverageMap"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/anti-pattern-inversion.output.schema.json",
4
+ "title": "Anti-Pattern Inversion Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "antiPatternMap",
9
+ "positiveRules",
10
+ "exceptions",
11
+ "verificationChecks",
12
+ "coverageEvidence"
13
+ ],
14
+ "properties": {
15
+ "antiPatternMap": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific antiPatternMap result with evidence links where material."
22
+ },
23
+ "positiveRules": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific positiveRules result with evidence links where material."
30
+ },
31
+ "exceptions": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific exceptions result with evidence links where material."
38
+ },
39
+ "verificationChecks": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific verificationChecks result with evidence links where material."
46
+ },
47
+ "coverageEvidence": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific coverageEvidence result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "antiPatternMap",
58
+ "positiveRules",
59
+ "exceptions",
60
+ "verificationChecks",
61
+ "coverageEvidence"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/behavior-preserving-refactor.output.schema.json",
4
+ "title": "Behavior-Preserving Refactor Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "refactoredArtifact",
9
+ "changeMap",
10
+ "equivalenceEvidence",
11
+ "behavioralDiffs",
12
+ "rollbackNotes"
13
+ ],
14
+ "properties": {
15
+ "refactoredArtifact": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific refactoredArtifact result with evidence links where material."
22
+ },
23
+ "changeMap": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific changeMap result with evidence links where material."
30
+ },
31
+ "equivalenceEvidence": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific equivalenceEvidence result with evidence links where material."
38
+ },
39
+ "behavioralDiffs": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific behavioralDiffs result with evidence links where material."
46
+ },
47
+ "rollbackNotes": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific rollbackNotes result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "refactoredArtifact",
58
+ "changeMap",
59
+ "equivalenceEvidence",
60
+ "behavioralDiffs",
61
+ "rollbackNotes"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/canonical-exemplar-generalization.output.schema.json",
4
+ "title": "Canonical Exemplar Generalization Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "model",
9
+ "invariants",
10
+ "variationPoints",
11
+ "excludedDetails",
12
+ "coverageEvidence"
13
+ ],
14
+ "properties": {
15
+ "model": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific model result with evidence links where material."
22
+ },
23
+ "invariants": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific invariants result with evidence links where material."
30
+ },
31
+ "variationPoints": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific variationPoints result with evidence links where material."
38
+ },
39
+ "excludedDetails": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific excludedDetails result with evidence links where material."
46
+ },
47
+ "coverageEvidence": {
48
+ "type": [
49
+ "array",
50
+ "object",
51
+ "string"
52
+ ],
53
+ "description": "Role-specific coverageEvidence result with evidence links where material."
54
+ }
55
+ },
56
+ "x-material-claim-fields": [
57
+ "model",
58
+ "invariants",
59
+ "variationPoints",
60
+ "excludedDetails",
61
+ "coverageEvidence"
62
+ ]
63
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://portable-capabilities.dev/schemas/constrained-exemplar-adaptation.output.schema.json",
4
+ "title": "Constrained Exemplar Adaptation Output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "adaptedArtifact",
9
+ "constraintMapping",
10
+ "preservedProperties",
11
+ "deviations",
12
+ "validationResults"
13
+ ],
14
+ "properties": {
15
+ "adaptedArtifact": {
16
+ "type": [
17
+ "array",
18
+ "object",
19
+ "string"
20
+ ],
21
+ "description": "Role-specific adaptedArtifact result with evidence links where material."
22
+ },
23
+ "constraintMapping": {
24
+ "type": [
25
+ "array",
26
+ "object",
27
+ "string"
28
+ ],
29
+ "description": "Role-specific constraintMapping result with evidence links where material."
30
+ },
31
+ "preservedProperties": {
32
+ "type": [
33
+ "array",
34
+ "object",
35
+ "string"
36
+ ],
37
+ "description": "Role-specific preservedProperties result with evidence links where material."
38
+ },
39
+ "deviations": {
40
+ "type": [
41
+ "array",
42
+ "object",
43
+ "string"
44
+ ],
45
+ "description": "Role-specific deviations 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
+ "adaptedArtifact",
58
+ "constraintMapping",
59
+ "preservedProperties",
60
+ "deviations",
61
+ "validationResults"
62
+ ]
63
+ }