kibi-cli 2.31.0 → 2.32.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/dist/cli-register-proof.d.ts.map +1 -1
- package/dist/cli-register-proof.js +19 -7
- package/dist/cli-register-reporting.d.ts.map +1 -1
- package/dist/cli-register-reporting.js +2 -0
- package/dist/commands/check.d.ts +1 -0
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +14 -5
- package/dist/commands/discovery-table.d.ts.map +1 -1
- package/dist/commands/discovery-table.js +51 -4
- package/dist/commands/doctor.js +19 -4
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +89 -3
- package/dist/commands/prove.d.ts +48 -1
- package/dist/commands/prove.d.ts.map +1 -1
- package/dist/commands/prove.js +293 -8
- package/dist/commands/report.d.ts +1 -0
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/report.js +70 -5
- package/dist/commands/signoff.d.ts.map +1 -1
- package/dist/commands/signoff.js +21 -2
- package/dist/commands/sync/manifest.d.ts.map +1 -1
- package/dist/commands/sync/manifest.js +20 -4
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +16 -5
- package/dist/diagnostics.js +1 -1
- package/dist/engine.js +1 -1
- package/dist/extractors/markdown.d.ts +3 -1
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +17 -0
- package/dist/operations/bootstrap/candidate-helpers.d.ts +3 -0
- package/dist/operations/bootstrap/candidate-helpers.d.ts.map +1 -1
- package/dist/operations/bootstrap/candidate-helpers.js +4 -0
- package/dist/operations/migration/evidence-floor.d.ts +41 -0
- package/dist/operations/migration/evidence-floor.d.ts.map +1 -0
- package/dist/operations/migration/evidence-floor.js +230 -0
- package/dist/operations/migration/proof-contract-claims.d.ts +59 -0
- package/dist/operations/migration/proof-contract-claims.d.ts.map +1 -0
- package/dist/operations/migration/proof-contract-claims.js +182 -0
- package/dist/operations/migration/schema6.d.ts +6 -0
- package/dist/operations/migration/schema6.d.ts.map +1 -1
- package/dist/operations/migration/schema6.js +94 -0
- package/dist/operations/mutation/omitted-properties.d.ts +11 -0
- package/dist/operations/mutation/omitted-properties.d.ts.map +1 -0
- package/dist/operations/mutation/omitted-properties.js +76 -0
- package/dist/operations/mutation/serialization.d.ts.map +1 -1
- package/dist/operations/mutation/serialization.js +1 -0
- package/dist/operations/mutation/strict-fact.d.ts.map +1 -1
- package/dist/operations/mutation/strict-fact.js +6 -2
- package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
- package/dist/operations/mutation/symbol-granularity.js +5 -3
- package/dist/operations/mutation/upsert.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.js +7 -1
- package/dist/operations/mutation/validation.d.ts +2 -0
- package/dist/operations/mutation/validation.d.ts.map +1 -1
- package/dist/operations/mutation/validation.js +4 -0
- package/dist/operations/proof/claim-bindings.d.ts +23 -0
- package/dist/operations/proof/claim-bindings.d.ts.map +1 -0
- package/dist/operations/proof/claim-bindings.js +211 -0
- package/dist/operations/proof/code-certificates.d.ts +135 -0
- package/dist/operations/proof/code-certificates.d.ts.map +1 -0
- package/dist/operations/proof/code-certificates.js +785 -0
- package/dist/operations/proof/code-scope.d.ts +11 -1
- package/dist/operations/proof/code-scope.d.ts.map +1 -1
- package/dist/operations/proof/code-scope.js +20 -2
- package/dist/operations/proof/compact-receipts.d.ts.map +1 -1
- package/dist/operations/proof/compact-receipts.js +4 -3
- package/dist/operations/proof/explain.d.ts +32 -0
- package/dist/operations/proof/explain.d.ts.map +1 -1
- package/dist/operations/proof/explain.js +91 -0
- package/dist/operations/proof/ingest-proof.d.ts +9 -1
- package/dist/operations/proof/ingest-proof.d.ts.map +1 -1
- package/dist/operations/proof/ingest-proof.js +41 -2
- package/dist/operations/proof/receipt-compaction.d.ts +2 -0
- package/dist/operations/proof/receipt-compaction.d.ts.map +1 -1
- package/dist/operations/proof/receipt-compaction.js +6 -2
- package/dist/operations/semantic-advisor/shared.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/shared.js +4 -0
- package/dist/operations/semantic-advisor/strict-rules.js +3 -3
- package/dist/operations/semantic-advisor/types.d.ts +2 -1
- package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
- package/dist/plugins/approved-source-analyzers.generated.d.ts +6 -6
- package/dist/plugins/approved-source-analyzers.generated.js +6 -6
- package/dist/proof/command-test-report.d.ts +4 -3
- package/dist/proof/command-test-report.d.ts.map +1 -1
- package/dist/proof/command-test-report.js +4 -10
- package/dist/proof/evaluate.d.ts.map +1 -1
- package/dist/proof/evaluate.js +18 -2
- package/dist/proof/inspect.d.ts.map +1 -1
- package/dist/proof/inspect.js +58 -0
- package/dist/proof/producers/playwright-reporter.d.ts +3 -0
- package/dist/proof/producers/playwright-reporter.d.ts.map +1 -1
- package/dist/proof/producers/playwright-reporter.js +25 -2
- package/dist/proof/step-runner.d.ts +36 -0
- package/dist/proof/step-runner.d.ts.map +1 -0
- package/dist/proof/step-runner.js +234 -0
- package/dist/public/evidence-levels.d.ts +12 -0
- package/dist/public/evidence-levels.d.ts.map +1 -0
- package/dist/public/evidence-levels.js +19 -0
- package/dist/public/impact/coverage-depth-quality.d.ts +7 -0
- package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -1
- package/dist/public/impact/coverage-depth-quality.js +59 -0
- package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
- package/dist/public/impact/full-kb-quality.js +3 -1
- package/dist/public/operations/catalog.d.ts +167 -6
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/check-executor.d.ts +2 -0
- package/dist/public/operations/check-executor.d.ts.map +1 -1
- package/dist/public/operations/check-executor.js +6 -0
- package/dist/public/operations/evidence-floor.d.ts +48 -0
- package/dist/public/operations/evidence-floor.d.ts.map +1 -0
- package/dist/public/operations/evidence-floor.js +143 -0
- package/dist/public/operations/migration-plan.d.ts +19 -5
- package/dist/public/operations/migration-plan.d.ts.map +1 -1
- package/dist/public/operations/migration-plan.js +22 -5
- package/dist/public/operations/node-ports.d.ts.map +1 -1
- package/dist/public/operations/node-ports.js +4 -1
- package/dist/public/operations/proof-contract-claims.d.ts +26 -0
- package/dist/public/operations/proof-contract-claims.d.ts.map +1 -0
- package/dist/public/operations/proof-contract-claims.js +71 -0
- package/dist/public/operations/specs/check-rules.generated.d.ts +1 -1
- package/dist/public/operations/specs/check-rules.generated.d.ts.map +1 -1
- package/dist/public/operations/specs/check-rules.generated.js +3 -1
- package/dist/public/operations/specs/check.d.ts +1 -1
- package/dist/public/operations/specs/mutation-schemas.d.ts +157 -5
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +15 -2
- package/dist/public/operations/specs/proof.d.ts +9 -0
- package/dist/public/operations/specs/proof.d.ts.map +1 -1
- package/dist/public/operations/specs/reporting.d.ts.map +1 -1
- package/dist/public/operations/specs/reporting.js +19 -10
- package/dist/public/operations/specs/upsert.d.ts +157 -5
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/proof-certificates.d.ts +89 -0
- package/dist/public/proof-certificates.d.ts.map +1 -0
- package/dist/public/proof-certificates.js +207 -0
- package/dist/public/proof-protocol.d.ts +126 -3
- package/dist/public/proof-protocol.d.ts.map +1 -1
- package/dist/public/proof-protocol.js +239 -3
- package/dist/public/proof-receipt.d.ts +89 -6
- package/dist/public/proof-receipt.d.ts.map +1 -1
- package/dist/public/proof-receipt.js +83 -7
- package/dist/public/schemas/entity.d.ts.map +1 -1
- package/dist/public/schemas/entity.js +18 -1
- package/dist/public/skills/kibi-bootstrap/SKILL.md +2 -2
- package/dist/public/skills/kibi-commit-review/SKILL.md +4 -3
- package/dist/public/skills/kibi-commit-review/resources/staged-gate.md +6 -1
- package/dist/public/skills/kibi-decisions/SKILL.md +10 -2
- package/dist/public/skills/kibi-decisions/resources/decision-records.md +6 -1
- package/dist/public/skills/kibi-decisions/resources/signoff-views.md +3 -2
- package/dist/public/skills/kibi-freshness/SKILL.md +5 -1
- package/dist/public/skills/kibi-traceability/SKILL.md +11 -1
- package/dist/public/skills/kibi-usage/SKILL.md +6 -4
- package/dist/public/skills/kibi-usage/resources/proof.md +124 -19
- package/dist/public/skills/kibi-usage/resources/workflows.md +4 -4
- package/dist/report/html-report.css +38 -1
- package/dist/report/html-report.d.ts +8 -0
- package/dist/report/html-report.d.ts.map +1 -1
- package/dist/report/html-report.js +141 -6
- package/dist/report/report-view.d.ts +1 -1
- package/dist/report/report-view.d.ts.map +1 -1
- package/dist/report/report-view.js +7 -0
- package/dist/schemas/entity.schema.json +212 -4
- package/dist/search-answer.d.ts.map +1 -1
- package/dist/search-answer.js +1 -0
- package/dist/signoff/html.d.ts.map +1 -1
- package/dist/signoff/html.js +3 -0
- package/dist/signoff/markdown.d.ts.map +1 -1
- package/dist/signoff/markdown.js +3 -0
- package/dist/signoff/model.d.ts +20 -0
- package/dist/signoff/model.d.ts.map +1 -1
- package/dist/signoff/model.js +20 -1
- package/dist/traceability/impact-knowledge.d.ts.map +1 -1
- package/dist/traceability/impact-knowledge.js +1 -0
- package/dist/traceability/temp-kb.d.ts.map +1 -1
- package/dist/traceability/temp-kb.js +1 -0
- package/dist/types/entities.d.ts +4 -1
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/utils/merge-driver-setup.d.ts +8 -1
- package/dist/utils/merge-driver-setup.d.ts.map +1 -1
- package/dist/utils/merge-driver-setup.js +23 -2
- package/dist/utils/rule-registry.generated.d.ts +10 -0
- package/dist/utils/rule-registry.generated.d.ts.map +1 -1
- package/dist/utils/rule-registry.generated.js +12 -0
- package/dist/utils/schema-version.d.ts +1 -1
- package/dist/utils/schema-version.d.ts.map +1 -1
- package/dist/utils/schema-version.js +5 -1
- package/package.json +6 -2
- package/schema/entities.pl +6 -0
- package/schema/validation.pl +4 -1
- package/src/public/evidence-levels.ts +23 -0
- package/src/public/impact/coverage-depth-quality.ts +73 -0
- package/src/public/impact/full-kb-quality.ts +6 -1
- package/src/public/operations/check-executor.ts +13 -0
- package/src/public/operations/evidence-floor.ts +203 -0
- package/src/public/operations/migration-plan.ts +39 -6
- package/src/public/operations/node-ports.ts +3 -1
- package/src/public/operations/proof-contract-claims.ts +103 -0
- package/src/public/operations/specs/check-rules.generated.ts +3 -1
- package/src/public/operations/specs/mutation-schemas.ts +17 -2
- package/src/public/operations/specs/reporting.ts +20 -10
- package/src/public/proof-certificates.ts +271 -0
- package/src/public/proof-protocol-types.d.ts +17 -1
- package/src/public/proof-protocol.ts +318 -3
- package/src/public/proof-receipt.ts +127 -7
- package/src/public/schemas/entity.ts +19 -1
- package/src/public/skills/kibi-bootstrap/SKILL.md +2 -2
- package/src/public/skills/kibi-commit-review/SKILL.md +4 -3
- package/src/public/skills/kibi-commit-review/resources/staged-gate.md +6 -1
- package/src/public/skills/kibi-decisions/SKILL.md +10 -2
- package/src/public/skills/kibi-decisions/resources/decision-records.md +6 -1
- package/src/public/skills/kibi-decisions/resources/signoff-views.md +3 -2
- package/src/public/skills/kibi-freshness/SKILL.md +5 -1
- package/src/public/skills/kibi-traceability/SKILL.md +11 -1
- package/src/public/skills/kibi-usage/SKILL.md +6 -4
- package/src/public/skills/kibi-usage/resources/proof.md +124 -19
- package/src/public/skills/kibi-usage/resources/workflows.md +4 -4
- package/src/schemas/entity.schema.json +212 -4
- package/dist/commands/proof-impact.d.ts +0 -7
- package/dist/commands/proof-impact.d.ts.map +0 -1
- package/dist/commands/proof-impact.js +0 -39
- package/dist/operations/proof/baseline-diff.d.ts +0 -41
- package/dist/operations/proof/baseline-diff.d.ts.map +0 -1
- package/dist/operations/proof/baseline-diff.js +0 -153
- package/dist/operations/proof/impact.d.ts +0 -51
- package/dist/operations/proof/impact.d.ts.map +0 -1
- package/dist/operations/proof/impact.js +0 -138
|
@@ -523,6 +523,16 @@
|
|
|
523
523
|
],
|
|
524
524
|
"description": "Requirement and ADR only. How firmly the decision was made. firm: a human stated it as a rule; it needs a ref (origin.ref, or approval_ref on a requirement) to their words, and only a human may change it. default: a delegated or agent choice; a later agent may supersede it with evidence. exploratory: a flagged guess, expected to be revisited. When absent, it reads as default if an agent wrote the entity (origin.kind agent) and as firm otherwise (a person's, imported or migrated decision); set it explicitly when recording a decision."
|
|
525
525
|
},
|
|
526
|
+
"required_evidence": {
|
|
527
|
+
"type": "string",
|
|
528
|
+
"enum": [
|
|
529
|
+
"proved",
|
|
530
|
+
"tested",
|
|
531
|
+
"asserted",
|
|
532
|
+
"unverified"
|
|
533
|
+
],
|
|
534
|
+
"description": "Requirement-only. The weakest evidence level this current requirement accepts; the evidence-floor check rule fails while its computed evidence level is lower. proved: a re-checkable certificate covers every case. tested: fresh passing E2E receipts cover every linked scenario. asserted: a person stands behind it. unverified: no floor. When absent, it is tested for a firm requirement and unverified otherwise."
|
|
535
|
+
},
|
|
526
536
|
"expects": {
|
|
527
537
|
"type": "string",
|
|
528
538
|
"enum": [
|
|
@@ -762,8 +772,105 @@
|
|
|
762
772
|
"success_policy": {
|
|
763
773
|
"type": "string",
|
|
764
774
|
"enum": [
|
|
765
|
-
"all_required_first_attempt"
|
|
775
|
+
"all_required_first_attempt",
|
|
776
|
+
"own_results_first_attempt"
|
|
766
777
|
]
|
|
778
|
+
},
|
|
779
|
+
"kind": {
|
|
780
|
+
"type": "string",
|
|
781
|
+
"enum": [
|
|
782
|
+
"e2e",
|
|
783
|
+
"example",
|
|
784
|
+
"property",
|
|
785
|
+
"exhaustive",
|
|
786
|
+
"typecheck",
|
|
787
|
+
"arithmetic",
|
|
788
|
+
"smt"
|
|
789
|
+
],
|
|
790
|
+
"description": "What the checker establishes; absent means e2e. exhaustive, typecheck, arithmetic and smt must leave a kibi.code-certificate.v1 that Kibi re-checks before the receipt counts as proved."
|
|
791
|
+
},
|
|
792
|
+
"domain_source": {
|
|
793
|
+
"type": "object",
|
|
794
|
+
"description": "exhaustive and typecheck: the symbol that defines the finite domain. The proof must import it from its source file; a hand-listed domain downgrades the receipt to example. Kibi reads the export named `export`, or the symbol's title when `export` is absent.",
|
|
795
|
+
"required": [
|
|
796
|
+
"symbol_id"
|
|
797
|
+
],
|
|
798
|
+
"properties": {
|
|
799
|
+
"symbol_id": {
|
|
800
|
+
"type": "string",
|
|
801
|
+
"minLength": 1
|
|
802
|
+
},
|
|
803
|
+
"export": {
|
|
804
|
+
"type": "string",
|
|
805
|
+
"minLength": 1,
|
|
806
|
+
"description": "The name the domain is exported under in the symbol's source file, when the symbol's title is not that name."
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"additionalProperties": false
|
|
810
|
+
},
|
|
811
|
+
"witness": {
|
|
812
|
+
"type": "object",
|
|
813
|
+
"description": "typecheck: the repository-relative witness file Kibi compiles (an exhaustive switch ending in never, or a mapped type over the domain).",
|
|
814
|
+
"required": [
|
|
815
|
+
"path"
|
|
816
|
+
],
|
|
817
|
+
"properties": {
|
|
818
|
+
"path": {
|
|
819
|
+
"type": "string",
|
|
820
|
+
"minLength": 1
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
"additionalProperties": false
|
|
824
|
+
},
|
|
825
|
+
"proves": {
|
|
826
|
+
"type": "array",
|
|
827
|
+
"description": "Certificate kinds: the requirement claim keys (CLAIM-...) this certificate proves. Each must be a modeled claim of a current requirement the test reaches through its scenarios. Kibi derives what the certificate must establish from the claim's grounding fact (a set fact for exhaustive or typecheck, a numeric fact for arithmetic or smt); a claim with no such derivation is only attested and never counts as proved.",
|
|
828
|
+
"minItems": 1,
|
|
829
|
+
"items": {
|
|
830
|
+
"type": "string",
|
|
831
|
+
"pattern": "^CLAIM-"
|
|
832
|
+
},
|
|
833
|
+
"uniqueItems": true
|
|
834
|
+
},
|
|
835
|
+
"value_source": {
|
|
836
|
+
"type": "array",
|
|
837
|
+
"description": "arithmetic and smt: code constants the assumptions read. Kibi evaluates each export at ingest and requires the certificate to assume the variable equals that value, so the proof is about the code and not only the knowledge base.",
|
|
838
|
+
"minItems": 1,
|
|
839
|
+
"items": {
|
|
840
|
+
"type": "object",
|
|
841
|
+
"required": [
|
|
842
|
+
"symbol_id"
|
|
843
|
+
],
|
|
844
|
+
"properties": {
|
|
845
|
+
"symbol_id": {
|
|
846
|
+
"type": "string",
|
|
847
|
+
"minLength": 1
|
|
848
|
+
},
|
|
849
|
+
"export": {
|
|
850
|
+
"type": "string",
|
|
851
|
+
"minLength": 1
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"additionalProperties": false
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
"constraint_source": {
|
|
858
|
+
"type": "object",
|
|
859
|
+
"description": "arithmetic and smt: the typed numeric property_value facts the certificate's assumptions come from. Kibi checks the assumptions (or the query's assertions) are exactly these facts' constraints, so the proof is about the knowledge base, not numbers the test chose.",
|
|
860
|
+
"required": [
|
|
861
|
+
"fact_ids"
|
|
862
|
+
],
|
|
863
|
+
"properties": {
|
|
864
|
+
"fact_ids": {
|
|
865
|
+
"type": "array",
|
|
866
|
+
"minItems": 1,
|
|
867
|
+
"items": {
|
|
868
|
+
"type": "string",
|
|
869
|
+
"minLength": 1
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"additionalProperties": false
|
|
767
874
|
}
|
|
768
875
|
},
|
|
769
876
|
"additionalProperties": false
|
|
@@ -813,7 +920,7 @@
|
|
|
813
920
|
"type": "array",
|
|
814
921
|
"items": {
|
|
815
922
|
"type": "object",
|
|
816
|
-
"description": "Kibi-derived kibi.proof-receipt.v1. Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts.",
|
|
923
|
+
"description": "Kibi-derived kibi.proof-receipt.v2 (kibi.proof-receipt.v1 entries are still read). Receipts are never caller-authored; kb_ingest_proof derives them from kibi.proof-run.v1 artifacts.",
|
|
817
924
|
"required": [
|
|
818
925
|
"version",
|
|
819
926
|
"receipt_id",
|
|
@@ -837,7 +944,10 @@
|
|
|
837
944
|
"properties": {
|
|
838
945
|
"version": {
|
|
839
946
|
"type": "string",
|
|
840
|
-
"
|
|
947
|
+
"enum": [
|
|
948
|
+
"kibi.proof-receipt.v1",
|
|
949
|
+
"kibi.proof-receipt.v2"
|
|
950
|
+
]
|
|
841
951
|
},
|
|
842
952
|
"receipt_id": {
|
|
843
953
|
"type": "string",
|
|
@@ -1080,6 +1190,84 @@
|
|
|
1080
1190
|
"additionalProperties": false
|
|
1081
1191
|
}
|
|
1082
1192
|
},
|
|
1193
|
+
"kind": {
|
|
1194
|
+
"type": "string",
|
|
1195
|
+
"enum": [
|
|
1196
|
+
"e2e",
|
|
1197
|
+
"example",
|
|
1198
|
+
"property",
|
|
1199
|
+
"exhaustive",
|
|
1200
|
+
"typecheck",
|
|
1201
|
+
"arithmetic",
|
|
1202
|
+
"smt"
|
|
1203
|
+
]
|
|
1204
|
+
},
|
|
1205
|
+
"evidence_level": {
|
|
1206
|
+
"type": "string",
|
|
1207
|
+
"enum": [
|
|
1208
|
+
"proved",
|
|
1209
|
+
"tested"
|
|
1210
|
+
]
|
|
1211
|
+
},
|
|
1212
|
+
"certificate": {
|
|
1213
|
+
"type": "object"
|
|
1214
|
+
},
|
|
1215
|
+
"certificate_digest": {
|
|
1216
|
+
"type": "string",
|
|
1217
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
1218
|
+
},
|
|
1219
|
+
"certificate_rejection": {
|
|
1220
|
+
"type": "string",
|
|
1221
|
+
"minLength": 1
|
|
1222
|
+
},
|
|
1223
|
+
"claim_bindings": {
|
|
1224
|
+
"type": "array",
|
|
1225
|
+
"description": "Certificate kinds: how the certificate binds to each claim its contract names in proves, judged at ingest. derived means Kibi derived the certificate's obligation from the claim's grounding fact and the certificate satisfies it; attested means no derivation exists and the author vouches for it (never proved); rejected names why.",
|
|
1226
|
+
"items": {
|
|
1227
|
+
"type": "object",
|
|
1228
|
+
"required": [
|
|
1229
|
+
"claim_key",
|
|
1230
|
+
"binding"
|
|
1231
|
+
],
|
|
1232
|
+
"properties": {
|
|
1233
|
+
"claim_key": {
|
|
1234
|
+
"type": "string",
|
|
1235
|
+
"minLength": 1
|
|
1236
|
+
},
|
|
1237
|
+
"requirement_id": {
|
|
1238
|
+
"type": "string",
|
|
1239
|
+
"minLength": 1
|
|
1240
|
+
},
|
|
1241
|
+
"fact_id": {
|
|
1242
|
+
"type": "string",
|
|
1243
|
+
"minLength": 1
|
|
1244
|
+
},
|
|
1245
|
+
"binding": {
|
|
1246
|
+
"type": "string",
|
|
1247
|
+
"enum": [
|
|
1248
|
+
"derived",
|
|
1249
|
+
"attested",
|
|
1250
|
+
"rejected"
|
|
1251
|
+
]
|
|
1252
|
+
},
|
|
1253
|
+
"scope": {
|
|
1254
|
+
"type": "string",
|
|
1255
|
+
"enum": [
|
|
1256
|
+
"code",
|
|
1257
|
+
"intent"
|
|
1258
|
+
]
|
|
1259
|
+
},
|
|
1260
|
+
"obligation": {
|
|
1261
|
+
"type": "object"
|
|
1262
|
+
},
|
|
1263
|
+
"reason": {
|
|
1264
|
+
"type": "string",
|
|
1265
|
+
"minLength": 1
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"additionalProperties": false
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1083
1271
|
"gaps": {
|
|
1084
1272
|
"type": "array",
|
|
1085
1273
|
"items": {
|
|
@@ -1159,12 +1347,22 @@
|
|
|
1159
1347
|
"string",
|
|
1160
1348
|
"int",
|
|
1161
1349
|
"number",
|
|
1162
|
-
"bool"
|
|
1350
|
+
"bool",
|
|
1351
|
+
"set"
|
|
1163
1352
|
]
|
|
1164
1353
|
},
|
|
1165
1354
|
"value_string": {
|
|
1166
1355
|
"type": "string"
|
|
1167
1356
|
},
|
|
1357
|
+
"value_set": {
|
|
1358
|
+
"type": "array",
|
|
1359
|
+
"items": {
|
|
1360
|
+
"type": "string",
|
|
1361
|
+
"minLength": 1
|
|
1362
|
+
},
|
|
1363
|
+
"minItems": 1,
|
|
1364
|
+
"uniqueItems": true
|
|
1365
|
+
},
|
|
1168
1366
|
"value_int": {
|
|
1169
1367
|
"type": "integer"
|
|
1170
1368
|
},
|
|
@@ -1395,6 +1593,11 @@
|
|
|
1395
1593
|
"value_bool"
|
|
1396
1594
|
]
|
|
1397
1595
|
},
|
|
1596
|
+
{
|
|
1597
|
+
"required": [
|
|
1598
|
+
"value_set"
|
|
1599
|
+
]
|
|
1600
|
+
},
|
|
1398
1601
|
{
|
|
1399
1602
|
"required": [
|
|
1400
1603
|
"unit"
|
|
@@ -1661,6 +1864,11 @@
|
|
|
1661
1864
|
"required": [
|
|
1662
1865
|
"exempts_claims"
|
|
1663
1866
|
]
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"required": [
|
|
1870
|
+
"required_evidence"
|
|
1871
|
+
]
|
|
1664
1872
|
}
|
|
1665
1873
|
]
|
|
1666
1874
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proof-impact.d.ts","sourceRoot":"","sources":["../../src/commands/proof-impact.ts"],"names":[],"mappings":"AAiBA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC;AAGH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA8B/B"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Kibi — repo-local, per-branch, queryable long-term memory for software projects
|
|
3
|
-
Copyright (C) 2026 Piotr Franczyk
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify
|
|
6
|
-
it under the terms of the GNU Affero General Public License as published by
|
|
7
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
-
(at your option) any later version.
|
|
9
|
-
*/
|
|
10
|
-
import { executeProofImpact, proofImpactExitCode, } from "../operations/proof/impact.js";
|
|
11
|
-
import { createCliRuntime } from "../runtime/cli-runtime.js";
|
|
12
|
-
// implements REQ-kibi-verification-evidence-contract
|
|
13
|
-
export async function proofImpactCommand(options) {
|
|
14
|
-
const runtime = createCliRuntime();
|
|
15
|
-
const context = await runtime.open({
|
|
16
|
-
name: "kibi_proof_impact",
|
|
17
|
-
effects: [],
|
|
18
|
-
requiresProlog: true,
|
|
19
|
-
execute: async () => undefined,
|
|
20
|
-
}, {});
|
|
21
|
-
let completed = false;
|
|
22
|
-
try {
|
|
23
|
-
const { result, text } = await executeProofImpact(context);
|
|
24
|
-
if (options.json) {
|
|
25
|
-
process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
process.stdout.write(text);
|
|
29
|
-
}
|
|
30
|
-
completed = true;
|
|
31
|
-
await runtime.afterSuccess({ name: "kibi_proof_impact" }, context);
|
|
32
|
-
return { exitCode: proofImpactExitCode(result) };
|
|
33
|
-
}
|
|
34
|
-
finally {
|
|
35
|
-
await runtime.close(context, completed
|
|
36
|
-
? { status: "success", result: 0 }
|
|
37
|
-
: { status: "error", error: 1 });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare const PROOF_BASELINE_VERSION = "kibi.proof-baseline.v3";
|
|
2
|
-
export type RequirementFingerprint = {
|
|
3
|
-
readonly proofStatus: string;
|
|
4
|
-
readonly gaps: readonly string[];
|
|
5
|
-
readonly uncoveredSymbols: readonly string[];
|
|
6
|
-
};
|
|
7
|
-
export type RequirementFingerprints = Readonly<Record<string, RequirementFingerprint>>;
|
|
8
|
-
export type CoverageRowLike = {
|
|
9
|
-
readonly id?: unknown;
|
|
10
|
-
readonly proofStatus?: unknown;
|
|
11
|
-
readonly proofGaps?: unknown;
|
|
12
|
-
readonly proofStages?: {
|
|
13
|
-
readonly productionSymbols?: {
|
|
14
|
-
readonly uncoveredSymbols?: unknown;
|
|
15
|
-
readonly explanations?: unknown;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export type FingerprintChange = {
|
|
20
|
-
readonly id: string;
|
|
21
|
-
readonly kind: "added" | "removed" | "changed";
|
|
22
|
-
readonly before?: RequirementFingerprint;
|
|
23
|
-
readonly after?: RequirementFingerprint;
|
|
24
|
-
};
|
|
25
|
-
export declare function fingerprintRequirements(rows: readonly CoverageRowLike[]): RequirementFingerprints;
|
|
26
|
-
export declare function diffFingerprints(baseline: RequirementFingerprints | undefined, current: RequirementFingerprints): FingerprintChange[];
|
|
27
|
-
type ExplanationLike = {
|
|
28
|
-
readonly symbolId?: unknown;
|
|
29
|
-
readonly reason?: unknown;
|
|
30
|
-
readonly coverageCandidates?: unknown;
|
|
31
|
-
};
|
|
32
|
-
export declare function explanationsForRequirement(rows: readonly CoverageRowLike[], requirementId: string): readonly ExplanationLike[];
|
|
33
|
-
export declare function renderRequirementDiffs(changes: readonly FingerprintChange[], rows?: readonly CoverageRowLike[]): string;
|
|
34
|
-
export declare function parseSpawnJson(result: {
|
|
35
|
-
readonly error?: unknown;
|
|
36
|
-
readonly status?: number | null;
|
|
37
|
-
readonly stdout?: string | null;
|
|
38
|
-
readonly stderr?: string | null;
|
|
39
|
-
}): unknown;
|
|
40
|
-
export {};
|
|
41
|
-
//# sourceMappingURL=baseline-diff.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"baseline-diff.d.ts","sourceRoot":"","sources":["../../../src/operations/proof/baseline-diff.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAC5C,MAAM,CAAC,MAAM,EAAE,sBAAsB,CA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iB,EAAE,EACrC,IAAI,GAAE,SAAS,eAAe,EAAO,GACpC,MAAM,CAwDR;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,GAAG,OAAO,CAYV"}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Kibi — repo-local, per-branch, queryable long-term memory for software projects
|
|
3
|
-
Copyright (C) 2026 Piotr Franczyk
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify
|
|
6
|
-
it under the terms of the GNU Affero General Public License as published by
|
|
7
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
-
(at your option) any later version.
|
|
9
|
-
*/
|
|
10
|
-
// implements REQ-kibi-verification-evidence-contract
|
|
11
|
-
export const PROOF_BASELINE_VERSION = "kibi.proof-baseline.v3";
|
|
12
|
-
function asStringArray(value) {
|
|
13
|
-
if (!Array.isArray(value))
|
|
14
|
-
return [];
|
|
15
|
-
return value
|
|
16
|
-
.map((item) => (typeof item === "string" ? item : String(item)))
|
|
17
|
-
.sort();
|
|
18
|
-
}
|
|
19
|
-
// implements REQ-kibi-verification-evidence-contract
|
|
20
|
-
export function fingerprintRequirements(rows) {
|
|
21
|
-
const requirements = {};
|
|
22
|
-
for (const row of rows) {
|
|
23
|
-
const id = typeof row.id === "string" ? row.id : "";
|
|
24
|
-
const proofStatus = typeof row.proofStatus === "string" ? row.proofStatus : "";
|
|
25
|
-
if (id === "" || proofStatus === "not_applicable")
|
|
26
|
-
continue;
|
|
27
|
-
requirements[id] = {
|
|
28
|
-
proofStatus,
|
|
29
|
-
gaps: asStringArray(row.proofGaps),
|
|
30
|
-
uncoveredSymbols: asStringArray(row.proofStages?.productionSymbols?.uncoveredSymbols),
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
return requirements;
|
|
34
|
-
}
|
|
35
|
-
// implements REQ-kibi-verification-evidence-contract
|
|
36
|
-
export function diffFingerprints(baseline, current) {
|
|
37
|
-
const before = baseline ?? {};
|
|
38
|
-
const ids = [
|
|
39
|
-
...new Set([...Object.keys(before), ...Object.keys(current)]),
|
|
40
|
-
].sort();
|
|
41
|
-
const changes = [];
|
|
42
|
-
for (const id of ids) {
|
|
43
|
-
const left = before[id];
|
|
44
|
-
const right = current[id];
|
|
45
|
-
if (left === undefined && right !== undefined) {
|
|
46
|
-
changes.push({ id, kind: "added", after: right });
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
if (left !== undefined && right === undefined) {
|
|
50
|
-
changes.push({ id, kind: "removed", before: left });
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (left === undefined || right === undefined)
|
|
54
|
-
continue;
|
|
55
|
-
if (left.proofStatus !== right.proofStatus ||
|
|
56
|
-
JSON.stringify(left.gaps) !== JSON.stringify(right.gaps) ||
|
|
57
|
-
JSON.stringify(left.uncoveredSymbols) !==
|
|
58
|
-
JSON.stringify(right.uncoveredSymbols)) {
|
|
59
|
-
changes.push({ id, kind: "changed", before: left, after: right });
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return changes;
|
|
63
|
-
}
|
|
64
|
-
export function explanationsForRequirement(rows, requirementId) {
|
|
65
|
-
const row = rows.find((item) => item.id === requirementId);
|
|
66
|
-
const explanations = row?.proofStages?.productionSymbols?.explanations;
|
|
67
|
-
return Array.isArray(explanations)
|
|
68
|
-
? explanations
|
|
69
|
-
: [];
|
|
70
|
-
}
|
|
71
|
-
function renderCandidate(candidate) {
|
|
72
|
-
const testId = typeof candidate.testId === "string" ? candidate.testId : "?";
|
|
73
|
-
const reason = typeof candidate.reason === "string" ? candidate.reason : "";
|
|
74
|
-
const secondaries = Array.isArray(candidate.secondaryReasons)
|
|
75
|
-
? candidate.secondaryReasons.filter((item) => typeof item === "string")
|
|
76
|
-
: [];
|
|
77
|
-
const secondaryText = secondaries.length > 0 ? ` secondary=${secondaries.join(",")}` : "";
|
|
78
|
-
return ` covered_by ${testId}: ${reason}${secondaryText}`;
|
|
79
|
-
}
|
|
80
|
-
// implements REQ-kibi-verification-evidence-contract
|
|
81
|
-
export function renderRequirementDiffs(changes, rows = []) {
|
|
82
|
-
if (changes.length === 0)
|
|
83
|
-
return "";
|
|
84
|
-
const lines = [
|
|
85
|
-
"Requirement fingerprint diffs vs committed proof/baseline.json:",
|
|
86
|
-
];
|
|
87
|
-
for (const change of changes) {
|
|
88
|
-
if (change.kind === "added" && change.after) {
|
|
89
|
-
lines.push(` ${change.id}: added (${change.after.proofStatus}; gaps=${change.after.gaps.join(",") || "none"})`);
|
|
90
|
-
}
|
|
91
|
-
else if (change.kind === "removed" && change.before) {
|
|
92
|
-
lines.push(` ${change.id}: removed (was ${change.before.proofStatus})`);
|
|
93
|
-
}
|
|
94
|
-
else if (change.kind === "changed" && change.before && change.after) {
|
|
95
|
-
if (change.before.proofStatus !== change.after.proofStatus) {
|
|
96
|
-
lines.push(` ${change.id}: ${change.before.proofStatus} -> ${change.after.proofStatus}`);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
lines.push(` ${change.id}: fingerprint changed`);
|
|
100
|
-
}
|
|
101
|
-
const beforeGaps = new Set(change.before.gaps);
|
|
102
|
-
const afterGaps = new Set(change.after.gaps);
|
|
103
|
-
for (const gap of change.after.gaps) {
|
|
104
|
-
if (!beforeGaps.has(gap))
|
|
105
|
-
lines.push(` gap added: ${gap}`);
|
|
106
|
-
}
|
|
107
|
-
for (const gap of change.before.gaps) {
|
|
108
|
-
if (!afterGaps.has(gap))
|
|
109
|
-
lines.push(` gap removed: ${gap}`);
|
|
110
|
-
}
|
|
111
|
-
const beforeSymbols = new Set(change.before.uncoveredSymbols);
|
|
112
|
-
const afterSymbols = new Set(change.after.uncoveredSymbols);
|
|
113
|
-
for (const symbol of change.after.uncoveredSymbols) {
|
|
114
|
-
if (!beforeSymbols.has(symbol))
|
|
115
|
-
lines.push(` uncovered symbol added: ${symbol}`);
|
|
116
|
-
}
|
|
117
|
-
for (const symbol of change.before.uncoveredSymbols) {
|
|
118
|
-
if (!afterSymbols.has(symbol))
|
|
119
|
-
lines.push(` uncovered symbol removed: ${symbol}`);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
const explanations = explanationsForRequirement(rows, change.id);
|
|
123
|
-
for (const explanation of explanations) {
|
|
124
|
-
const symbolId = typeof explanation.symbolId === "string" ? explanation.symbolId : "";
|
|
125
|
-
const reason = typeof explanation.reason === "string" ? explanation.reason : "";
|
|
126
|
-
if (symbolId !== "")
|
|
127
|
-
lines.push(` ${symbolId}: ${reason}`);
|
|
128
|
-
const candidates = Array.isArray(explanation.coverageCandidates)
|
|
129
|
-
? explanation.coverageCandidates
|
|
130
|
-
: [];
|
|
131
|
-
for (const candidate of candidates) {
|
|
132
|
-
if (candidate && typeof candidate === "object")
|
|
133
|
-
lines.push(renderCandidate(candidate));
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return `${lines.join("\n")}\n`;
|
|
138
|
-
}
|
|
139
|
-
export function parseSpawnJson(result) {
|
|
140
|
-
if (result.error)
|
|
141
|
-
throw result.error;
|
|
142
|
-
const text = `${result.stdout ?? ""}`.trim();
|
|
143
|
-
try {
|
|
144
|
-
return JSON.parse(text);
|
|
145
|
-
}
|
|
146
|
-
catch (error) {
|
|
147
|
-
const detail = `${result.stderr || result.stdout || ""}`.trim();
|
|
148
|
-
if (result.status !== 0 && result.status !== null) {
|
|
149
|
-
throw new Error(detail || String(error));
|
|
150
|
-
}
|
|
151
|
-
throw error;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { OperationContext } from "../../public/operations/runtime-types.js";
|
|
2
|
-
import { type CoverageRowLike, type RequirementFingerprints, diffFingerprints } from "./baseline-diff.js";
|
|
3
|
-
export declare const COMMITTED_BASELINE_PATH = "proof/baseline.json";
|
|
4
|
-
export type ProofBaselineFile = {
|
|
5
|
-
readonly version?: string;
|
|
6
|
-
readonly mode?: string;
|
|
7
|
-
readonly currentRequirements?: number;
|
|
8
|
-
readonly proofTested?: number;
|
|
9
|
-
readonly currentUntested?: number;
|
|
10
|
-
readonly trackedGaps?: Record<string, number>;
|
|
11
|
-
readonly requirements?: RequirementFingerprints;
|
|
12
|
-
};
|
|
13
|
-
export type ProofImpactResult = {
|
|
14
|
-
readonly comparisonTarget: typeof COMMITTED_BASELINE_PATH;
|
|
15
|
-
readonly baselineVersion: string;
|
|
16
|
-
readonly currentRequirements: number;
|
|
17
|
-
readonly proofTested: number;
|
|
18
|
-
readonly currentUntested: number;
|
|
19
|
-
readonly changes: ReturnType<typeof diffFingerprints>;
|
|
20
|
-
};
|
|
21
|
-
export type ReadCommittedFile = (workspaceRoot: string, relativePath: string) => string | Promise<string>;
|
|
22
|
-
export type ProofImpactExecuteOptions = {
|
|
23
|
-
readonly readCommittedFile?: ReadCommittedFile;
|
|
24
|
-
readonly loadCoverage?: (context: OperationContext) => Promise<{
|
|
25
|
-
structuredContent: unknown;
|
|
26
|
-
}>;
|
|
27
|
-
};
|
|
28
|
-
export declare function readCommittedHeadFile(workspaceRoot: string, relativePath: string): string;
|
|
29
|
-
export declare function loadCommittedBaseline(workspaceRoot: string, readCommittedFile?: ReadCommittedFile): Promise<ProofBaselineFile>;
|
|
30
|
-
/**
|
|
31
|
-
* A baseline committed before kibi.proof-baseline.v3 records a fully tested
|
|
32
|
-
* requirement as `proven`. Read it as `tested`, so the comparison shows real
|
|
33
|
-
* changes instead of a rename on every row.
|
|
34
|
-
*/
|
|
35
|
-
export declare function upgradeBaselineStatuses(baseline: ProofBaselineFile): ProofBaselineFile;
|
|
36
|
-
/** Diagnostic only: successful evaluation always exits 0. Ratchet lives in check-proof-baseline.mjs. */
|
|
37
|
-
export declare function proofImpactExitCode(_result: ProofImpactResult): 0;
|
|
38
|
-
export declare function buildProofImpact(baseline: ProofBaselineFile, coverage: {
|
|
39
|
-
summary?: Record<string, unknown>;
|
|
40
|
-
rows?: unknown;
|
|
41
|
-
}): {
|
|
42
|
-
result: ProofImpactResult;
|
|
43
|
-
rows: CoverageRowLike[];
|
|
44
|
-
};
|
|
45
|
-
export declare function renderProofImpact(result: ProofImpactResult, rows: readonly CoverageRowLike[]): string;
|
|
46
|
-
export declare function executeProofImpact(context: OperationContext, options?: ProofImpactExecuteOptions): Promise<{
|
|
47
|
-
result: ProofImpactResult;
|
|
48
|
-
rows: CoverageRowLike[];
|
|
49
|
-
text: string;
|
|
50
|
-
}>;
|
|
51
|
-
//# sourceMappingURL=impact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"impact.d.ts","sourceRoot":"","sources":["../../../src/operations/proof/impact.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,uBAAuB,EAC5B,gBAAgB,EAGjB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,uBAAuB,wBAAwB,CAAC;AAE7D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,QAAQ,CA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