@agent-teams/engineering-foundation 0.7.0 → 0.9.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.
- package/README.md +6 -2
- package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/crypto/node-sha256-digest.d.ts +6 -0
- package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/crypto/node-sha256-digest.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/crypto/node-sha256-digest.js +7 -0
- package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/crypto/node-sha256-digest.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/qualification/filesystem-buf-breaking-qualification-evidence.d.ts +8 -0
- package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/qualification/filesystem-buf-breaking-qualification-evidence.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/qualification/filesystem-buf-breaking-qualification-evidence.js +131 -0
- package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/qualification/filesystem-buf-breaking-qualification-evidence.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/application/model/buf-breaking-qualification.d.ts +37 -0
- package/dist/capabilities/contract-protobuf-evolution/application/model/buf-breaking-qualification.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/application/model/buf-breaking-qualification.js +258 -0
- package/dist/capabilities/contract-protobuf-evolution/application/model/buf-breaking-qualification.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/application/model/protobuf-release-evidence.d.ts +52 -2
- package/dist/capabilities/contract-protobuf-evolution/application/model/protobuf-release-evidence.d.ts.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/application/policies/evaluate-protobuf-evolution.d.ts.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/application/policies/evaluate-protobuf-evolution.js +0 -3
- package/dist/capabilities/contract-protobuf-evolution/application/policies/evaluate-protobuf-evolution.js.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/application/ports/buf-breaking-qualification-evidence.d.ts +14 -0
- package/dist/capabilities/contract-protobuf-evolution/application/ports/buf-breaking-qualification-evidence.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/application/ports/buf-breaking-qualification-evidence.js +2 -0
- package/dist/capabilities/contract-protobuf-evolution/application/ports/buf-breaking-qualification-evidence.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/application/ports/sha256-digest.d.ts +5 -0
- package/dist/capabilities/contract-protobuf-evolution/application/ports/sha256-digest.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/application/ports/sha256-digest.js +2 -0
- package/dist/capabilities/contract-protobuf-evolution/application/ports/sha256-digest.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/application/use-cases/resolve-protobuf-evolution-policy.d.ts +2 -0
- package/dist/capabilities/contract-protobuf-evolution/application/use-cases/resolve-protobuf-evolution-policy.d.ts.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/application/use-cases/resolve-protobuf-evolution-policy.js +10 -1
- package/dist/capabilities/contract-protobuf-evolution/application/use-cases/resolve-protobuf-evolution-policy.js.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/contract/config.d.ts.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/contract/config.js +30 -15
- package/dist/capabilities/contract-protobuf-evolution/contract/config.js.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/module.d.ts +3 -1
- package/dist/capabilities/contract-protobuf-evolution/module.d.ts.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/module.js +4 -1
- package/dist/capabilities/contract-protobuf-evolution/module.js.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/filesystem/filesystem-buf-qualification-artifacts.d.ts +21 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/filesystem/filesystem-buf-qualification-artifacts.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/filesystem/filesystem-buf-qualification-artifacts.js +301 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/filesystem/filesystem-buf-qualification-artifacts.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-executable.d.ts +2 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-executable.d.ts.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-executable.js +28 -41
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-executable.js.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-qualification-runner.d.ts +8 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-qualification-runner.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-qualification-runner.js +102 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-qualification-runner.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/module.d.ts +14 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/module.d.ts.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/qualification/module.js +22 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/module.js.map +1 -1
- package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-qualification-artifacts.d.ts +21 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-qualification-artifacts.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-qualification-artifacts.js +2 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-qualification-artifacts.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-qualification-runner.d.ts +18 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-qualification-runner.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-qualification-runner.js +2 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-qualification-runner.js.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/use-cases/qualify-buf-breaking-evidence.d.ts +22 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/use-cases/qualify-buf-breaking-evidence.d.ts.map +1 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/use-cases/qualify-buf-breaking-evidence.js +221 -0
- package/dist/capabilities/contract-protobuf-evolution/qualification/use-cases/qualify-buf-breaking-evidence.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js +1 -14
- package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts +4 -4
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js +34 -46
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/model/public-api.d.ts +18 -75
- package/dist/capabilities/public-api-compatibility/application/model/public-api.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/model/public-api.js +7 -29
- package/dist/capabilities/public-api-compatibility/application/model/public-api.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/accepted-breaking-change.d.ts +1 -5
- package/dist/capabilities/public-api-compatibility/application/policies/accepted-breaking-change.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/accepted-breaking-change.js +1 -8
- package/dist/capabilities/public-api-compatibility/application/policies/accepted-breaking-change.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-public-api-compatibility.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-public-api-compatibility.js +5 -38
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-public-api-compatibility.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/validate-package-export-coverage.d.ts +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/validate-package-export-coverage.js +2 -2
- package/dist/capabilities/public-api-compatibility/application/policies/validate-package-export-coverage.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/analyze-public-api-compatibility.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/analyze-public-api-compatibility.js +0 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/analyze-public-api-compatibility.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js +0 -38
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/contract/config.d.ts +1 -1
- package/dist/capabilities/public-api-compatibility/contract/config.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/contract/config.js +32 -106
- package/dist/capabilities/public-api-compatibility/contract/config.js.map +1 -1
- package/dist/cli-arguments.d.ts +2 -0
- package/dist/cli-arguments.d.ts.map +1 -1
- package/dist/cli-arguments.js +34 -2
- package/dist/cli-arguments.js.map +1 -1
- package/dist/cli.js +40 -1
- package/dist/cli.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.d.ts +13 -0
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js +257 -0
- package/dist/scaffolding/adapters/node/filesystem-authority-workspace.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-authority.d.ts +20 -0
- package/dist/scaffolding/adapters/node/filesystem-authority.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-authority.js +55 -0
- package/dist/scaffolding/adapters/node/filesystem-authority.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-file-identity.d.ts +20 -0
- package/dist/scaffolding/adapters/node/filesystem-file-identity.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-file-identity.js +122 -0
- package/dist/scaffolding/adapters/node/filesystem-file-identity.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-finalization.d.ts +22 -0
- package/dist/scaffolding/adapters/node/filesystem-finalization.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-finalization.js +169 -0
- package/dist/scaffolding/adapters/node/filesystem-finalization.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-journal-state.d.ts +25 -0
- package/dist/scaffolding/adapters/node/filesystem-journal-state.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-journal-state.js +119 -0
- package/dist/scaffolding/adapters/node/filesystem-journal-state.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-journal.d.ts +7 -4
- package/dist/scaffolding/adapters/node/filesystem-journal.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-journal.js +104 -29
- package/dist/scaffolding/adapters/node/filesystem-journal.js.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-operation-state.d.ts +16 -0
- package/dist/scaffolding/adapters/node/filesystem-operation-state.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-operation-state.js +158 -0
- package/dist/scaffolding/adapters/node/filesystem-operation-state.js.map +1 -0
- package/dist/scaffolding/adapters/node/filesystem-path-guard.d.ts +2 -2
- package/dist/scaffolding/adapters/node/filesystem-path-guard.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/filesystem-path-guard.js.map +1 -1
- package/dist/scaffolding/adapters/node/node-authority-error.d.ts +4 -0
- package/dist/scaffolding/adapters/node/node-authority-error.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-authority-error.js +7 -0
- package/dist/scaffolding/adapters/node/node-authority-error.js.map +1 -0
- package/dist/scaffolding/adapters/node/node-authority-input-loader.d.ts +20 -0
- package/dist/scaffolding/adapters/node/node-authority-input-loader.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-authority-input-loader.js +180 -0
- package/dist/scaffolding/adapters/node/node-authority-input-loader.js.map +1 -0
- package/dist/scaffolding/adapters/node/node-authority-receipt-validator.d.ts +4 -0
- package/dist/scaffolding/adapters/node/node-authority-receipt-validator.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-authority-receipt-validator.js +10 -0
- package/dist/scaffolding/adapters/node/node-authority-receipt-validator.js.map +1 -0
- package/dist/scaffolding/adapters/node/node-owner-document-resolver.d.ts +17 -0
- package/dist/scaffolding/adapters/node/node-owner-document-resolver.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-owner-document-resolver.js +161 -0
- package/dist/scaffolding/adapters/node/node-owner-document-resolver.js.map +1 -0
- package/dist/scaffolding/adapters/node/node-plan-authority.d.ts +14 -2
- package/dist/scaffolding/adapters/node/node-plan-authority.d.ts.map +1 -1
- package/dist/scaffolding/adapters/node/node-plan-authority.js +28 -9
- package/dist/scaffolding/adapters/node/node-plan-authority.js.map +1 -1
- package/dist/scaffolding/adapters/node/node-repository-file.d.ts +9 -0
- package/dist/scaffolding/adapters/node/node-repository-file.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-repository-file.js +65 -0
- package/dist/scaffolding/adapters/node/node-repository-file.js.map +1 -0
- package/dist/scaffolding/adapters/node/node-scaffold-limits.d.ts +2 -0
- package/dist/scaffolding/adapters/node/node-scaffold-limits.d.ts.map +1 -0
- package/dist/scaffolding/adapters/node/node-scaffold-limits.js +2 -0
- package/dist/scaffolding/adapters/node/node-scaffold-limits.js.map +1 -0
- package/dist/scaffolding/authority-service.d.ts +7 -0
- package/dist/scaffolding/authority-service.d.ts.map +1 -0
- package/dist/scaffolding/authority-service.js +15 -0
- package/dist/scaffolding/authority-service.js.map +1 -0
- package/dist/scaffolding/canonical-api.d.ts +14 -0
- package/dist/scaffolding/canonical-api.d.ts.map +1 -0
- package/dist/scaffolding/canonical-api.js +32 -0
- package/dist/scaffolding/canonical-api.js.map +1 -0
- package/dist/scaffolding/cli-command.d.ts.map +1 -1
- package/dist/scaffolding/cli-command.js +1 -2
- package/dist/scaffolding/cli-command.js.map +1 -1
- package/dist/scaffolding/contract/receipt-authority-types.d.ts +125 -0
- package/dist/scaffolding/contract/receipt-authority-types.d.ts.map +1 -0
- package/dist/scaffolding/contract/receipt-authority-types.js +2 -0
- package/dist/scaffolding/contract/receipt-authority-types.js.map +1 -0
- package/dist/scaffolding/contract/scaffold-contract.d.ts +329 -0
- package/dist/scaffolding/contract/scaffold-contract.d.ts.map +1 -0
- package/dist/scaffolding/contract/scaffold-contract.js +2 -0
- package/dist/scaffolding/contract/scaffold-contract.js.map +1 -0
- package/dist/scaffolding/contract/types.d.ts +130 -193
- package/dist/scaffolding/contract/types.d.ts.map +1 -1
- package/dist/scaffolding/definitions/node-typescript-library.d.ts +3 -0
- package/dist/scaffolding/definitions/node-typescript-library.d.ts.map +1 -0
- package/dist/scaffolding/definitions/node-typescript-library.js +134 -0
- package/dist/scaffolding/definitions/node-typescript-library.js.map +1 -0
- package/dist/scaffolding/definitions/registry.d.ts +1 -1
- package/dist/scaffolding/definitions/registry.d.ts.map +1 -1
- package/dist/scaffolding/definitions/registry.js +6 -2
- package/dist/scaffolding/definitions/registry.js.map +1 -1
- package/dist/scaffolding/index.d.ts +4 -8
- package/dist/scaffolding/index.d.ts.map +1 -1
- package/dist/scaffolding/index.js +2 -7
- package/dist/scaffolding/index.js.map +1 -1
- package/dist/scaffolding/kernel/authority-compiler.d.ts +4 -0
- package/dist/scaffolding/kernel/authority-compiler.d.ts.map +1 -0
- package/dist/scaffolding/kernel/authority-compiler.js +78 -0
- package/dist/scaffolding/kernel/authority-compiler.js.map +1 -0
- package/dist/scaffolding/kernel/authority-evidence.d.ts +13 -0
- package/dist/scaffolding/kernel/authority-evidence.d.ts.map +1 -0
- package/dist/scaffolding/kernel/authority-evidence.js +79 -0
- package/dist/scaffolding/kernel/authority-evidence.js.map +1 -0
- package/dist/scaffolding/kernel/authority-receipt.d.ts +11 -0
- package/dist/scaffolding/kernel/authority-receipt.d.ts.map +1 -0
- package/dist/scaffolding/kernel/authority-receipt.js +189 -0
- package/dist/scaffolding/kernel/authority-receipt.js.map +1 -0
- package/dist/scaffolding/kernel/compiler.d.ts +28 -2
- package/dist/scaffolding/kernel/compiler.d.ts.map +1 -1
- package/dist/scaffolding/kernel/compiler.js +22 -36
- package/dist/scaffolding/kernel/compiler.js.map +1 -1
- package/dist/scaffolding/kernel/definition-registry.d.ts +6 -3
- package/dist/scaffolding/kernel/definition-registry.d.ts.map +1 -1
- package/dist/scaffolding/kernel/definition-registry.js +17 -1
- package/dist/scaffolding/kernel/definition-registry.js.map +1 -1
- package/dist/scaffolding/kernel/plan-content-validation.d.ts +3 -0
- package/dist/scaffolding/kernel/plan-content-validation.d.ts.map +1 -0
- package/dist/scaffolding/kernel/plan-content-validation.js +44 -0
- package/dist/scaffolding/kernel/plan-content-validation.js.map +1 -0
- package/dist/scaffolding/kernel/plan-validation.d.ts +2 -2
- package/dist/scaffolding/kernel/plan-validation.d.ts.map +1 -1
- package/dist/scaffolding/kernel/plan-validation.js +16 -40
- package/dist/scaffolding/kernel/plan-validation.js.map +1 -1
- package/dist/scaffolding/scaffold-defaults.d.ts +2 -0
- package/dist/scaffolding/scaffold-defaults.d.ts.map +1 -0
- package/dist/scaffolding/scaffold-defaults.js +2 -0
- package/dist/scaffolding/scaffold-defaults.js.map +1 -0
- package/dist/scaffolding/scaffold-error.d.ts +3 -3
- package/dist/scaffolding/scaffold-error.d.ts.map +1 -1
- package/dist/scaffolding/scaffold-error.js.map +1 -1
- package/dist/schema-catalog.d.ts +2 -2
- package/dist/schema-catalog.d.ts.map +1 -1
- package/dist/schema-catalog.js +41 -8
- package/dist/schema-catalog.js.map +1 -1
- package/dist/schema-ids.d.ts +2 -1
- package/dist/schema-ids.d.ts.map +1 -1
- package/dist/schema-ids.js +3 -2
- package/dist/schema-ids.js.map +1 -1
- package/package.json +25 -2
- package/schemas/contract-protobuf-breaking-qualification/v1.schema.json +93 -0
- package/schemas/contract-protobuf-evolution/v1.schema.json +47 -15
- package/schemas/package-public-api-baseline/v1.schema.json +49 -12
- package/schemas/package-public-api-compatibility/v1.schema.json +46 -5
- package/schemas/scaffold-authority-evidence/v1.schema.json +103 -0
- package/schemas/scaffold-intent/v1.schema.json +1 -1
- package/schemas/scaffold-plan/v1.schema.json +86 -8
- package/schemas/scaffold-receipt/v1.schema.json +102 -221
- package/schemas/scaffold-recovery-journal/v1.schema.json +31 -0
- package/schemas/scaffold-target-catalog/v1.schema.json +9 -8
- package/schemas/scaffolding-config/v1.schema.json +38 -2
- package/dist/scaffolding/adapters/memory/memory-workspace.d.ts +0 -9
- package/dist/scaffolding/adapters/memory/memory-workspace.d.ts.map +0 -1
- package/dist/scaffolding/adapters/memory/memory-workspace.js +0 -93
- package/dist/scaffolding/adapters/memory/memory-workspace.js.map +0 -1
- package/dist/scaffolding/adapters/node/filesystem-workspace.d.ts +0 -13
- package/dist/scaffolding/adapters/node/filesystem-workspace.d.ts.map +0 -1
- package/dist/scaffolding/adapters/node/filesystem-workspace.js +0 -336
- package/dist/scaffolding/adapters/node/filesystem-workspace.js.map +0 -1
- package/dist/scaffolding/adapters/node/node-input-loader.d.ts +0 -17
- package/dist/scaffolding/adapters/node/node-input-loader.d.ts.map +0 -1
- package/dist/scaffolding/adapters/node/node-input-loader.js +0 -157
- package/dist/scaffolding/adapters/node/node-input-loader.js.map +0 -1
- package/dist/scaffolding/adapters/node/node-receipt-validator.d.ts +0 -4
- package/dist/scaffolding/adapters/node/node-receipt-validator.d.ts.map +0 -1
- package/dist/scaffolding/adapters/node/node-receipt-validator.js +0 -10
- package/dist/scaffolding/adapters/node/node-receipt-validator.js.map +0 -1
- package/dist/scaffolding/kernel/receipt.d.ts +0 -35
- package/dist/scaffolding/kernel/receipt.d.ts.map +0 -1
- package/dist/scaffolding/kernel/receipt.js +0 -206
- package/dist/scaffolding/kernel/receipt.js.map +0 -1
- package/dist/scaffolding/service.d.ts +0 -8
- package/dist/scaffolding/service.d.ts.map +0 -1
- package/dist/scaffolding/service.js +0 -15
- package/dist/scaffolding/service.js.map +0 -1
- package/schemas/package-public-api-baseline/v2.schema.json +0 -62
- package/schemas/package-public-api-compatibility/v2.schema.json +0 -113
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://agent-teams.ai/schemas/scaffold-receipt/v1",
|
|
4
|
-
"title": "Scaffold Receipt
|
|
4
|
+
"title": "Scaffold Receipt",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"required": ["schemaVersion", "protocolVersion", "planDigest", "adapter", "outcome", "commit", "operations", "diagnostics", "receiptDigest"],
|
|
@@ -9,282 +9,163 @@
|
|
|
9
9
|
"schemaVersion": { "const": 1 },
|
|
10
10
|
"protocolVersion": { "const": 1 },
|
|
11
11
|
"planDigest": { "$ref": "#/$defs/digest" },
|
|
12
|
-
"adapter": {
|
|
13
|
-
|
|
14
|
-
{ "$ref": "#/$defs/filesystemAdapter" },
|
|
15
|
-
{ "$ref": "#/$defs/memoryAdapter" }
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"outcome": { "enum": ["already-applied", "applied", "failed-recovered", "recovery-required", "rejected"] },
|
|
12
|
+
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
13
|
+
"outcome": { "enum": ["already-applied", "applied", "authority-stale", "failed-recovered", "recovery-required", "rejected"] },
|
|
19
14
|
"commit": {
|
|
20
15
|
"type": "object",
|
|
21
16
|
"additionalProperties": false,
|
|
22
17
|
"required": ["state", "atomicity"],
|
|
23
18
|
"properties": {
|
|
24
|
-
"state": { "enum": ["committed", "recovered", "recovery-required", "rejected"] },
|
|
25
|
-
"atomicity": { "
|
|
19
|
+
"state": { "enum": ["committed", "recovered", "recovery-required", "rejected", "rolled-back"] },
|
|
20
|
+
"atomicity": { "const": "journaled-recoverable" }
|
|
26
21
|
}
|
|
27
22
|
},
|
|
28
23
|
"operations": {
|
|
29
24
|
"type": "array",
|
|
30
25
|
"maxItems": 4096,
|
|
31
|
-
"items": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"additionalProperties": false,
|
|
34
|
-
"required": ["operationId", "path", "outcome"],
|
|
35
|
-
"properties": {
|
|
36
|
-
"operationId": { "$ref": "#/$defs/id" },
|
|
37
|
-
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
38
|
-
"outcome": { "enum": ["already-satisfied", "applied", "conflict", "not-applied", "recovered"] },
|
|
39
|
-
"resultDigest": { "$ref": "#/$defs/digest" }
|
|
40
|
-
},
|
|
41
|
-
"allOf": [
|
|
42
|
-
{
|
|
43
|
-
"if": {
|
|
44
|
-
"properties": {
|
|
45
|
-
"outcome": { "enum": ["already-satisfied", "applied", "recovered"] }
|
|
46
|
-
},
|
|
47
|
-
"required": ["outcome"]
|
|
48
|
-
},
|
|
49
|
-
"then": {
|
|
50
|
-
"properties": { "resultDigest": { "$ref": "#/$defs/digest" } },
|
|
51
|
-
"required": ["resultDigest"]
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"if": {
|
|
56
|
-
"properties": {
|
|
57
|
-
"outcome": { "enum": ["conflict", "not-applied"] }
|
|
58
|
-
},
|
|
59
|
-
"required": ["outcome"]
|
|
60
|
-
},
|
|
61
|
-
"then": { "properties": { "resultDigest": false } }
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
26
|
+
"items": { "$ref": "#/$defs/operationReceipt" }
|
|
65
27
|
},
|
|
66
28
|
"diagnostics": { "type": "array", "maxItems": 1024, "items": { "$ref": "#/$defs/diagnostic" } },
|
|
67
29
|
"receiptDigest": { "$ref": "#/$defs/digest" }
|
|
68
30
|
},
|
|
69
31
|
"allOf": [
|
|
70
|
-
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"commit": { "$ref": "#/$defs/filesystemCommitted" },
|
|
77
|
-
"operations": { "$ref": "#/$defs/appliedOperations" }
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"properties": {
|
|
82
|
-
"adapter": { "$ref": "#/$defs/memoryAdapter" },
|
|
83
|
-
"outcome": { "const": "applied" },
|
|
84
|
-
"commit": { "$ref": "#/$defs/memoryCommitted" },
|
|
85
|
-
"operations": { "$ref": "#/$defs/appliedOperations" }
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"properties": {
|
|
90
|
-
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
91
|
-
"outcome": { "const": "already-applied" },
|
|
92
|
-
"commit": { "$ref": "#/$defs/filesystemCommitted" },
|
|
93
|
-
"operations": { "$ref": "#/$defs/alreadyAppliedOperations" }
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"properties": {
|
|
98
|
-
"adapter": { "$ref": "#/$defs/memoryAdapter" },
|
|
99
|
-
"outcome": { "const": "already-applied" },
|
|
100
|
-
"commit": { "$ref": "#/$defs/memoryCommitted" },
|
|
101
|
-
"operations": { "$ref": "#/$defs/alreadyAppliedOperations" }
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"properties": {
|
|
106
|
-
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
107
|
-
"outcome": { "const": "failed-recovered" },
|
|
108
|
-
"commit": { "$ref": "#/$defs/filesystemRecovered" },
|
|
109
|
-
"operations": { "$ref": "#/$defs/failedRecoveredOperations" }
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"properties": {
|
|
114
|
-
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
115
|
-
"outcome": { "const": "recovery-required" },
|
|
116
|
-
"commit": { "$ref": "#/$defs/filesystemRecoveryRequired" },
|
|
117
|
-
"operations": { "$ref": "#/$defs/recoveryRequiredOperations" }
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"properties": {
|
|
122
|
-
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
123
|
-
"outcome": { "const": "rejected" },
|
|
124
|
-
"commit": { "$ref": "#/$defs/filesystemRejected" },
|
|
125
|
-
"operations": { "$ref": "#/$defs/incompleteOperations" }
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"properties": {
|
|
130
|
-
"adapter": { "$ref": "#/$defs/memoryAdapter" },
|
|
131
|
-
"outcome": { "const": "rejected" },
|
|
132
|
-
"commit": { "$ref": "#/$defs/memoryRejected" },
|
|
133
|
-
"operations": { "$ref": "#/$defs/incompleteOperations" }
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
]
|
|
137
|
-
}
|
|
32
|
+
{ "$ref": "#/$defs/appliedContract" },
|
|
33
|
+
{ "$ref": "#/$defs/alreadyAppliedContract" },
|
|
34
|
+
{ "$ref": "#/$defs/failedRecoveredContract" },
|
|
35
|
+
{ "$ref": "#/$defs/recoveryRequiredContract" },
|
|
36
|
+
{ "$ref": "#/$defs/rejectedContract" },
|
|
37
|
+
{ "$ref": "#/$defs/authorityStaleContract" }
|
|
138
38
|
],
|
|
139
39
|
"$defs": {
|
|
140
40
|
"filesystemAdapter": {
|
|
141
41
|
"type": "object",
|
|
142
42
|
"additionalProperties": false,
|
|
143
43
|
"required": ["id", "contractVersion"],
|
|
144
|
-
"properties": {
|
|
145
|
-
"id": { "const": "foundation.filesystem/v1" },
|
|
146
|
-
"contractVersion": { "const": 1 }
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"memoryAdapter": {
|
|
150
|
-
"type": "object",
|
|
151
|
-
"additionalProperties": false,
|
|
152
|
-
"required": ["id", "contractVersion"],
|
|
153
|
-
"properties": {
|
|
154
|
-
"id": { "const": "foundation.memory/v1" },
|
|
155
|
-
"contractVersion": { "const": 1 }
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"filesystemCommitted": {
|
|
159
|
-
"type": "object",
|
|
160
|
-
"additionalProperties": false,
|
|
161
|
-
"required": ["state", "atomicity"],
|
|
162
|
-
"properties": {
|
|
163
|
-
"state": { "const": "committed" },
|
|
164
|
-
"atomicity": { "const": "journaled-recoverable" }
|
|
165
|
-
}
|
|
44
|
+
"properties": { "id": { "const": "foundation.filesystem/v1" }, "contractVersion": { "const": 1 } }
|
|
166
45
|
},
|
|
167
|
-
"
|
|
46
|
+
"operationReceipt": {
|
|
168
47
|
"type": "object",
|
|
169
48
|
"additionalProperties": false,
|
|
170
|
-
"required": ["
|
|
49
|
+
"required": ["operationId", "path", "outcome"],
|
|
171
50
|
"properties": {
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"filesystemRecovered": {
|
|
177
|
-
"type": "object",
|
|
178
|
-
"additionalProperties": false,
|
|
179
|
-
"required": ["state", "atomicity"],
|
|
180
|
-
"properties": {
|
|
181
|
-
"state": { "const": "recovered" },
|
|
182
|
-
"atomicity": { "const": "journaled-recoverable" }
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"filesystemRecoveryRequired": {
|
|
186
|
-
"type": "object",
|
|
187
|
-
"additionalProperties": false,
|
|
188
|
-
"required": ["state", "atomicity"],
|
|
189
|
-
"properties": {
|
|
190
|
-
"state": { "const": "recovery-required" },
|
|
191
|
-
"atomicity": { "const": "journaled-recoverable" }
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"filesystemRejected": {
|
|
195
|
-
"type": "object",
|
|
196
|
-
"additionalProperties": false,
|
|
197
|
-
"required": ["state", "atomicity"],
|
|
198
|
-
"properties": {
|
|
199
|
-
"state": { "const": "rejected" },
|
|
200
|
-
"atomicity": { "const": "journaled-recoverable" }
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
"memoryRejected": {
|
|
204
|
-
"type": "object",
|
|
205
|
-
"additionalProperties": false,
|
|
206
|
-
"required": ["state", "atomicity"],
|
|
207
|
-
"properties": {
|
|
208
|
-
"state": { "const": "rejected" },
|
|
209
|
-
"atomicity": { "const": "memory-atomic" }
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
"appliedOperations": {
|
|
213
|
-
"type": "array",
|
|
214
|
-
"minItems": 1,
|
|
215
|
-
"items": {
|
|
216
|
-
"type": "object",
|
|
217
|
-
"required": ["outcome"],
|
|
218
|
-
"properties": {
|
|
219
|
-
"outcome": { "enum": ["already-satisfied", "applied"] }
|
|
220
|
-
}
|
|
51
|
+
"operationId": { "$ref": "#/$defs/id" },
|
|
52
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
53
|
+
"outcome": { "enum": ["already-satisfied", "applied", "conflict", "not-applied", "recovered", "unobserved"] },
|
|
54
|
+
"resultDigest": { "$ref": "#/$defs/digest" }
|
|
221
55
|
},
|
|
222
|
-
"
|
|
56
|
+
"allOf": [
|
|
57
|
+
{
|
|
58
|
+
"if": { "type": "object", "properties": { "outcome": { "enum": ["already-satisfied", "applied", "recovered"] } }, "required": ["outcome"] },
|
|
59
|
+
"then": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": { "resultDigest": { "$ref": "#/$defs/digest" } },
|
|
62
|
+
"required": ["resultDigest"]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"if": { "type": "object", "properties": { "outcome": { "enum": ["conflict", "not-applied", "unobserved"] } }, "required": ["outcome"] },
|
|
67
|
+
"then": { "type": "object", "properties": { "resultDigest": false } }
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"appliedContract": {
|
|
72
|
+
"if": { "type": "object", "properties": { "outcome": { "const": "applied" } }, "required": ["outcome"] },
|
|
73
|
+
"then": {
|
|
223
74
|
"type": "object",
|
|
224
|
-
"required": ["outcome"],
|
|
225
75
|
"properties": {
|
|
226
|
-
"
|
|
76
|
+
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
77
|
+
"commit": { "type": "object", "properties": { "state": { "const": "committed" } }, "required": ["state"] },
|
|
78
|
+
"operations": { "$ref": "#/$defs/appliedOperations" }
|
|
227
79
|
}
|
|
228
|
-
}
|
|
229
|
-
"minContains": 1
|
|
80
|
+
}
|
|
230
81
|
},
|
|
231
|
-
"
|
|
232
|
-
"type": "
|
|
233
|
-
"
|
|
234
|
-
"items": {
|
|
82
|
+
"alreadyAppliedContract": {
|
|
83
|
+
"if": { "type": "object", "properties": { "outcome": { "const": "already-applied" } }, "required": ["outcome"] },
|
|
84
|
+
"then": {
|
|
235
85
|
"type": "object",
|
|
236
|
-
"required": ["outcome"],
|
|
237
86
|
"properties": {
|
|
238
|
-
"
|
|
87
|
+
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
88
|
+
"commit": { "type": "object", "properties": { "state": { "const": "committed" } }, "required": ["state"] },
|
|
89
|
+
"operations": { "$ref": "#/$defs/alreadyAppliedOperations" }
|
|
239
90
|
}
|
|
240
91
|
}
|
|
241
92
|
},
|
|
242
|
-
"
|
|
243
|
-
"type": "
|
|
244
|
-
"
|
|
245
|
-
"items": {
|
|
93
|
+
"failedRecoveredContract": {
|
|
94
|
+
"if": { "type": "object", "properties": { "outcome": { "const": "failed-recovered" } }, "required": ["outcome"] },
|
|
95
|
+
"then": {
|
|
246
96
|
"type": "object",
|
|
247
|
-
"required": ["outcome"],
|
|
248
97
|
"properties": {
|
|
249
|
-
"
|
|
98
|
+
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
99
|
+
"commit": { "type": "object", "properties": { "state": { "const": "recovered" }, "atomicity": { "const": "journaled-recoverable" } }, "required": ["state", "atomicity"] },
|
|
100
|
+
"operations": { "$ref": "#/$defs/failedRecoveredOperations" }
|
|
250
101
|
}
|
|
251
102
|
}
|
|
252
103
|
},
|
|
253
|
-
"
|
|
254
|
-
"type": "
|
|
255
|
-
"
|
|
104
|
+
"recoveryRequiredContract": {
|
|
105
|
+
"if": { "type": "object", "properties": { "outcome": { "const": "recovery-required" } }, "required": ["outcome"] },
|
|
106
|
+
"then": {
|
|
256
107
|
"type": "object",
|
|
257
|
-
"required": ["outcome"],
|
|
258
108
|
"properties": {
|
|
259
|
-
"
|
|
109
|
+
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
110
|
+
"commit": { "type": "object", "properties": { "state": { "const": "recovery-required" }, "atomicity": { "const": "journaled-recoverable" } }, "required": ["state", "atomicity"] },
|
|
111
|
+
"operations": { "$ref": "#/$defs/recoveryRequiredOperations" }
|
|
260
112
|
}
|
|
261
113
|
}
|
|
262
114
|
},
|
|
263
|
-
"
|
|
264
|
-
"type": "
|
|
265
|
-
"
|
|
266
|
-
"items": {
|
|
115
|
+
"rejectedContract": {
|
|
116
|
+
"if": { "type": "object", "properties": { "outcome": { "const": "rejected" } }, "required": ["outcome"] },
|
|
117
|
+
"then": {
|
|
267
118
|
"type": "object",
|
|
268
|
-
"required": ["outcome"],
|
|
269
119
|
"properties": {
|
|
270
|
-
"
|
|
120
|
+
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
121
|
+
"commit": { "type": "object", "properties": { "state": { "const": "rejected" } }, "required": ["state"] },
|
|
122
|
+
"operations": { "$ref": "#/$defs/incompleteOperations" }
|
|
271
123
|
}
|
|
272
|
-
}
|
|
273
|
-
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"authorityStaleContract": {
|
|
127
|
+
"if": { "type": "object", "properties": { "outcome": { "const": "authority-stale" } }, "required": ["outcome"] },
|
|
128
|
+
"then": {
|
|
274
129
|
"type": "object",
|
|
275
|
-
"required": ["outcome"],
|
|
276
130
|
"properties": {
|
|
277
|
-
"
|
|
131
|
+
"adapter": { "$ref": "#/$defs/filesystemAdapter" },
|
|
132
|
+
"commit": { "type": "object", "properties": { "state": { "const": "rolled-back" }, "atomicity": { "const": "journaled-recoverable" } }, "required": ["state", "atomicity"] },
|
|
133
|
+
"operations": { "$ref": "#/$defs/authorityStaleOperations" }
|
|
278
134
|
}
|
|
279
|
-
}
|
|
280
|
-
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"appliedOperations": {
|
|
138
|
+
"type": "array", "minItems": 1,
|
|
139
|
+
"prefixItems": [
|
|
140
|
+
{ "type": "object", "required": ["outcome"], "properties": { "outcome": { "const": "applied" } } }
|
|
141
|
+
],
|
|
142
|
+
"items": { "type": "object", "required": ["outcome"], "properties": { "outcome": { "enum": ["already-satisfied", "applied"] } } }
|
|
143
|
+
},
|
|
144
|
+
"alreadyAppliedOperations": {
|
|
145
|
+
"type": "array", "minItems": 1,
|
|
146
|
+
"items": { "type": "object", "required": ["outcome"], "properties": { "outcome": { "const": "already-satisfied" } } }
|
|
147
|
+
},
|
|
148
|
+
"failedRecoveredOperations": {
|
|
149
|
+
"type": "array", "minItems": 1,
|
|
150
|
+
"items": { "type": "object", "required": ["outcome"], "properties": { "outcome": { "enum": ["already-satisfied", "recovered"] } } }
|
|
151
|
+
},
|
|
152
|
+
"incompleteOperations": {
|
|
153
|
+
"type": "array", "minItems": 1,
|
|
154
|
+
"items": { "type": "object", "required": ["outcome"], "properties": { "outcome": { "enum": ["already-satisfied", "conflict", "not-applied"] } } }
|
|
155
|
+
},
|
|
156
|
+
"recoveryRequiredOperations": {
|
|
157
|
+
"type": "array", "minItems": 1,
|
|
158
|
+
"items": { "type": "object", "required": ["outcome"], "properties": { "outcome": { "enum": ["already-satisfied", "conflict", "not-applied", "unobserved"] } } }
|
|
159
|
+
},
|
|
160
|
+
"authorityStaleOperations": {
|
|
161
|
+
"type": "array", "minItems": 1,
|
|
162
|
+
"items": { "type": "object", "required": ["outcome"], "properties": { "outcome": { "const": "not-applied" } } }
|
|
281
163
|
},
|
|
282
164
|
"id": { "type": "string", "minLength": 1, "maxLength": 214, "pattern": "^[A-Za-z0-9@][A-Za-z0-9@._/-]*$" },
|
|
283
165
|
"digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
284
166
|
"repositoryPath": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]+(?:/[A-Za-z0-9._@-]+)*$" },
|
|
285
167
|
"diagnostic": {
|
|
286
|
-
"type": "object",
|
|
287
|
-
"additionalProperties": false,
|
|
168
|
+
"type": "object", "additionalProperties": false,
|
|
288
169
|
"required": ["ruleId", "severity", "phase", "subject", "message", "remediation"],
|
|
289
170
|
"properties": {
|
|
290
171
|
"ruleId": { "$ref": "#/$defs/id" },
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/scaffold-recovery-journal/v1",
|
|
4
|
+
"title": "Scaffold Recovery Journal",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "state", "plan", "operations"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"state": { "const": "PREPARED" },
|
|
11
|
+
"plan": { "$ref": "https://agent-teams.ai/schemas/scaffold-plan/v1" },
|
|
12
|
+
"operations": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"minItems": 1,
|
|
15
|
+
"maxItems": 4096,
|
|
16
|
+
"items": { "$ref": "#/$defs/operation" }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$defs": {
|
|
20
|
+
"operation": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": ["operationId", "path", "state"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"operationId": { "type": "string", "minLength": 1, "maxLength": 214 },
|
|
26
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]+(?:/[A-Za-z0-9._@-]+)*$" },
|
|
27
|
+
"state": { "enum": ["pending", "publishing", "published", "preexisting"] }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://agent-teams.ai/schemas/scaffold-target-catalog/v1",
|
|
4
|
-
"title": "Scaffold Target Catalog
|
|
4
|
+
"title": "Scaffold Target Catalog",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"required": ["version", "packages"],
|
|
@@ -20,6 +20,12 @@
|
|
|
20
20
|
"maxLength": 160,
|
|
21
21
|
"pattern": "^[a-z0-9][a-z0-9._/-]*$"
|
|
22
22
|
},
|
|
23
|
+
"ownerDocumentId": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 160,
|
|
27
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]*$"
|
|
28
|
+
},
|
|
23
29
|
"repositoryPath": {
|
|
24
30
|
"type": "string",
|
|
25
31
|
"minLength": 1,
|
|
@@ -29,7 +35,7 @@
|
|
|
29
35
|
"target": {
|
|
30
36
|
"type": "object",
|
|
31
37
|
"additionalProperties": false,
|
|
32
|
-
"required": ["id", "role", "path", "package_name"],
|
|
38
|
+
"required": ["id", "role", "path", "package_name", "owner_document"],
|
|
33
39
|
"properties": {
|
|
34
40
|
"id": { "$ref": "#/$defs/id" },
|
|
35
41
|
"role": { "$ref": "#/$defs/id" },
|
|
@@ -40,12 +46,7 @@
|
|
|
40
46
|
"maxLength": 214,
|
|
41
47
|
"pattern": "^(?:@[a-z0-9][a-z0-9._-]*/)?[a-z0-9][a-z0-9._-]*$"
|
|
42
48
|
},
|
|
43
|
-
"owner_document": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"minLength": 1,
|
|
46
|
-
"maxLength": 512,
|
|
47
|
-
"pattern": "^[^\\u0000-\\u001F]+$"
|
|
48
|
-
}
|
|
49
|
+
"owner_document": { "$ref": "#/$defs/ownerDocumentId" }
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://agent-teams.ai/schemas/scaffolding-config/v1",
|
|
4
|
-
"title": "Scaffolding Configuration
|
|
4
|
+
"title": "Scaffolding Configuration",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"required": ["schemaVersion", "projectId", "targetCatalogPath", "compositions"],
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"composition": {
|
|
60
60
|
"type": "object",
|
|
61
61
|
"additionalProperties": false,
|
|
62
|
-
"required": ["id", "scaffoldProfile", "recipe", "targetRoles", "policies"],
|
|
62
|
+
"required": ["id", "scaffoldProfile", "recipe", "targetRoles", "authorityVerifiers", "policies"],
|
|
63
63
|
"properties": {
|
|
64
64
|
"id": { "$ref": "#/$defs/id" },
|
|
65
65
|
"scaffoldProfile": { "$ref": "#/$defs/configuredDefinition" },
|
|
@@ -70,6 +70,12 @@
|
|
|
70
70
|
"maxItems": 32,
|
|
71
71
|
"items": { "$ref": "#/$defs/id" }
|
|
72
72
|
},
|
|
73
|
+
"authorityVerifiers": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"minItems": 1,
|
|
76
|
+
"maxItems": 1,
|
|
77
|
+
"items": { "$ref": "#/$defs/authorityVerifier" }
|
|
78
|
+
},
|
|
73
79
|
"fixedRecipeParameters": { "$ref": "#/$defs/jsonObject" },
|
|
74
80
|
"defaultRecipeParameters": { "$ref": "#/$defs/jsonObject" },
|
|
75
81
|
"facets": { "$ref": "#/$defs/facetPolicy" },
|
|
@@ -80,6 +86,36 @@
|
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
},
|
|
89
|
+
"authorityVerifier": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": ["id", "contractVersion", "parameters"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"id": { "const": "foundation.markdown-yaml-owner" },
|
|
95
|
+
"contractVersion": { "const": 1 },
|
|
96
|
+
"parameters": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["allowedStatuses", "documentRoots"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"allowedStatuses": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"minItems": 1,
|
|
104
|
+
"maxItems": 16,
|
|
105
|
+
"uniqueItems": true,
|
|
106
|
+
"items": { "$ref": "#/$defs/id" }
|
|
107
|
+
},
|
|
108
|
+
"documentRoots": {
|
|
109
|
+
"type": "array",
|
|
110
|
+
"minItems": 1,
|
|
111
|
+
"maxItems": 8,
|
|
112
|
+
"uniqueItems": true,
|
|
113
|
+
"items": { "$ref": "#/$defs/repositoryPath" }
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
83
119
|
"jsonObject": {
|
|
84
120
|
"type": "object",
|
|
85
121
|
"maxProperties": 128,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ScaffoldPlanV1, ScaffoldReceiptV1 } from "../../contract/types.js";
|
|
2
|
-
export declare class MemoryScaffoldWorkspace {
|
|
3
|
-
#private;
|
|
4
|
-
constructor(files?: Readonly<Record<string, string | Uint8Array>>);
|
|
5
|
-
read(path: string): Uint8Array | undefined;
|
|
6
|
-
entries(): Readonly<Record<string, Uint8Array>>;
|
|
7
|
-
apply(plan: ScaffoldPlanV1): Promise<ScaffoldReceiptV1>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=memory-workspace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-workspace.d.ts","sourceRoot":"","sources":["../../../../src/scaffolding/adapters/memory/memory-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,cAAc,EACd,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAMjC,qBAAa,uBAAuB;;IAGlC,YAAY,KAAK,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,CAAM,EASpE;IAED,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAGzC;IAED,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAM9C;IAEK,KAAK,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA0E5D;CACF"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { sha256Bytes } from "../../kernel/canonical-json.js";
|
|
2
|
-
import { assertScaffoldPlanDigest } from "../../kernel/plan-validation.js";
|
|
3
|
-
import { createScaffoldReceipt } from "../../kernel/receipt.js";
|
|
4
|
-
import { assertSchema } from "../../../schema-catalog.js";
|
|
5
|
-
export class MemoryScaffoldWorkspace {
|
|
6
|
-
#files;
|
|
7
|
-
constructor(files = {}) {
|
|
8
|
-
this.#files = new Map(Object.entries(files).map(([path, content]) => [
|
|
9
|
-
path,
|
|
10
|
-
typeof content === "string"
|
|
11
|
-
? Buffer.from(content, "utf8")
|
|
12
|
-
: Uint8Array.from(content)
|
|
13
|
-
]));
|
|
14
|
-
}
|
|
15
|
-
read(path) {
|
|
16
|
-
const value = this.#files.get(path);
|
|
17
|
-
return value === undefined ? undefined : Uint8Array.from(value);
|
|
18
|
-
}
|
|
19
|
-
entries() {
|
|
20
|
-
return Object.fromEntries([...this.#files.entries()]
|
|
21
|
-
.toSorted(([left], [right]) => (left < right ? -1 : left > right ? 1 : 0))
|
|
22
|
-
.map(([path, content]) => [path, Uint8Array.from(content)]));
|
|
23
|
-
}
|
|
24
|
-
async apply(plan) {
|
|
25
|
-
await assertSchema("scaffold-plan/v1", plan, "scaffold-memory-apply-plan");
|
|
26
|
-
assertScaffoldPlanDigest(plan);
|
|
27
|
-
const diagnostics = [];
|
|
28
|
-
const classifications = plan.operations.map((operation) => {
|
|
29
|
-
const current = this.#files.get(operation.path);
|
|
30
|
-
if (current === undefined) {
|
|
31
|
-
return { operation, state: "absent" };
|
|
32
|
-
}
|
|
33
|
-
if (sha256Bytes(current) === operation.after.digest) {
|
|
34
|
-
return { operation, state: "after" };
|
|
35
|
-
}
|
|
36
|
-
diagnostics.push({
|
|
37
|
-
ruleId: "scaffolding.apply.precondition-conflict",
|
|
38
|
-
severity: "error",
|
|
39
|
-
phase: "apply",
|
|
40
|
-
subject: operation.path,
|
|
41
|
-
message: "Workspace content matches neither the Plan precondition nor its desired result.",
|
|
42
|
-
remediation: "Create a new Intent and Plan from the current workspace state."
|
|
43
|
-
});
|
|
44
|
-
return { operation, state: "conflict" };
|
|
45
|
-
});
|
|
46
|
-
if (classifications.some(({ state }) => state === "conflict")) {
|
|
47
|
-
return createScaffoldReceipt({
|
|
48
|
-
plan,
|
|
49
|
-
adapterId: "foundation.memory/v1",
|
|
50
|
-
outcome: "rejected",
|
|
51
|
-
commitState: "rejected",
|
|
52
|
-
atomicity: "memory-atomic",
|
|
53
|
-
operations: classifications.map(({ operation, state }) => ({
|
|
54
|
-
operationId: operation.id,
|
|
55
|
-
path: operation.path,
|
|
56
|
-
outcome: state === "conflict"
|
|
57
|
-
? "conflict"
|
|
58
|
-
: state === "after"
|
|
59
|
-
? "already-satisfied"
|
|
60
|
-
: "not-applied",
|
|
61
|
-
...(state === "after" ? { resultDigest: operation.after.digest } : {})
|
|
62
|
-
})),
|
|
63
|
-
diagnostics
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
const next = new Map(this.#files);
|
|
67
|
-
const receipts = classifications.map(({ operation, state }) => {
|
|
68
|
-
if (state === "absent") {
|
|
69
|
-
next.set(operation.path, Buffer.from(operation.after.contentBase64, "base64"));
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
operationId: operation.id,
|
|
73
|
-
path: operation.path,
|
|
74
|
-
outcome: state === "absent" ? "applied" : "already-satisfied",
|
|
75
|
-
resultDigest: operation.after.digest
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
this.#files.clear();
|
|
79
|
-
for (const [path, content] of next) {
|
|
80
|
-
this.#files.set(path, content);
|
|
81
|
-
}
|
|
82
|
-
const changed = classifications.some(({ state }) => state === "absent");
|
|
83
|
-
return createScaffoldReceipt({
|
|
84
|
-
plan,
|
|
85
|
-
adapterId: "foundation.memory/v1",
|
|
86
|
-
outcome: changed ? "applied" : "already-applied",
|
|
87
|
-
commitState: "committed",
|
|
88
|
-
atomicity: "memory-atomic",
|
|
89
|
-
operations: receipts
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=memory-workspace.js.map
|