@mnstry/atelier 0.2.0-alpha.12 → 0.2.0-alpha.14
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/CHANGELOG.md +894 -0
- package/README.md +159 -6
- package/contracts/atelier-adoption-policy.v2.schema.json +55 -0
- package/contracts/atelier-architecture.v1.schema.json +258 -0
- package/contracts/atelier-boundary-delegations.v1.schema.json +161 -0
- package/contracts/atelier-boundary-owner-keys.v1.schema.json +98 -0
- package/contracts/atelier-build.v1.schema.json +1076 -0
- package/contracts/atelier-capability.v1.schema.json +1252 -0
- package/contracts/atelier-coordination.v1.schema.json +1050 -0
- package/contracts/atelier-evidence-navigation.v1.schema.json +603 -0
- package/contracts/atelier-harness.v1.schema.json +234 -0
- package/contracts/atelier-ingestion.v1.schema.json +806 -0
- package/contracts/atelier-inquiry.v1.schema.json +1772 -0
- package/contracts/atelier-instruction-adoption.v1.schema.json +490 -0
- package/contracts/atelier-interaction.v1.schema.json +553 -0
- package/contracts/atelier-judgment.v1.schema.json +690 -0
- package/contracts/atelier-knowledge.v1.schema.json +1512 -0
- package/contracts/atelier-learning.v1.schema.json +1095 -0
- package/contracts/atelier-migration.v3.schema.json +64 -0
- package/contracts/atelier-personal-workspace-manifest.v1.schema.json +87 -0
- package/contracts/atelier-personal-workspace-overlay.v1.schema.json +299 -0
- package/contracts/atelier-template-adoption.v1.schema.json +223 -0
- package/contracts/atelier-template-profile.v1.schema.json +1168 -0
- package/contracts/atelier-trackable.v1.schema.json +781 -0
- package/contracts/atelier-upgrade-plan.v3.schema.json +532 -0
- package/docs/architecture.md +89 -0
- package/docs/assurance-controls.md +2 -2
- package/docs/blocks/capability-stewardship.md +17 -0
- package/docs/blocks/claims.md +16 -3
- package/docs/blocks/inquiry-harnesses.md +19 -0
- package/docs/blocks/learning-harnesses.md +17 -0
- package/docs/capability-stewardship.md +267 -0
- package/docs/coordination.md +51 -0
- package/docs/decision-practices.md +111 -0
- package/docs/decisions.md +29 -0
- package/docs/evidence-navigation.md +237 -0
- package/docs/exact-upgrades.md +3 -2
- package/docs/ingestion.md +181 -0
- package/docs/inquiry-harnesses.md +210 -0
- package/docs/install.md +80 -3
- package/docs/intake-and-guides.md +5 -0
- package/docs/integration-contract-decisions.md +24 -2
- package/docs/interaction-and-reflection.md +72 -0
- package/docs/knowledge-graph.md +20 -0
- package/docs/knowledge-health/api.md +30 -0
- package/docs/knowledge-health/assessment/api.md +96 -0
- package/docs/knowledge-health/assessment/capabilities.md +40 -0
- package/docs/knowledge-health/assessment/evaluation.md +27 -0
- package/docs/knowledge-health/assessment/facilitator.md +30 -0
- package/docs/knowledge-health/assessment/quickstart.md +61 -0
- package/docs/knowledge-health/assessment/troubleshooting.md +23 -0
- package/docs/knowledge-health/devday/facilitator.md +16 -0
- package/docs/knowledge-health/devday/participant-response.md +22 -0
- package/docs/knowledge-health/devday/public-default.md +107 -0
- package/docs/knowledge-health/devday/quickstart.md +18 -0
- package/docs/knowledge-health/devday/support.md +22 -0
- package/docs/knowledge-health/exercise.md +17 -0
- package/docs/knowledge-health/facilitator.md +20 -0
- package/docs/knowledge-health/quickstart.md +94 -0
- package/docs/knowledge-health/readme.md +15 -0
- package/docs/knowledge-health/support.md +34 -0
- package/docs/knowledge-setup.md +248 -0
- package/docs/knowledge-workspace.md +264 -0
- package/docs/learning-harnesses.md +237 -0
- package/docs/learning.md +215 -0
- package/docs/local-services.md +223 -19
- package/docs/obsidian-contract.md +246 -15
- package/docs/obsidian-plugin.md +252 -7
- package/docs/obsidian.md +874 -52
- package/docs/optional-ingestion.md +83 -0
- package/docs/personal-workspace.md +266 -0
- package/docs/practical-judgment.md +92 -0
- package/docs/progressive-ingestion-acceptance.md +89 -0
- package/docs/progressive-ingestion.md +235 -0
- package/docs/project-command-inventory.md +1 -0
- package/docs/release-engineering.md +50 -0
- package/docs/repo-boundary-guard.md +120 -3
- package/docs/research-starter-quickstart.md +66 -0
- package/docs/research-starter.md +114 -0
- package/docs/semantic-ingestion.md +198 -0
- package/docs/semantic-operation.md +318 -0
- package/docs/skill-steward.md +6 -0
- package/docs/template-profile.md +164 -0
- package/docs/template-upgrades.md +114 -0
- package/docs/trackables.md +111 -0
- package/docs/upgrade.md +219 -2
- package/fixtures/atelier-architecture/binding/invalid/document.json +19 -0
- package/fixtures/atelier-architecture/binding/valid/document.json +19 -0
- package/fixtures/atelier-architecture/catalog/invalid/document.json +290 -0
- package/fixtures/atelier-architecture/catalog/valid/document.json +343 -0
- package/fixtures/atelier-build-contract/attempt/invalid/document.json +20 -0
- package/fixtures/atelier-build-contract/attempt/valid/document.json +19 -0
- package/fixtures/atelier-build-contract/candidate/invalid/document.json +24 -0
- package/fixtures/atelier-build-contract/candidate/valid/document.json +23 -0
- package/fixtures/atelier-build-contract/decision/invalid/document.json +31 -0
- package/fixtures/atelier-build-contract/decision/valid/document.json +30 -0
- package/fixtures/atelier-build-contract/delivery/invalid/document.json +18 -0
- package/fixtures/atelier-build-contract/delivery/valid/document.json +17 -0
- package/fixtures/atelier-build-contract/gate/invalid/document.json +22 -0
- package/fixtures/atelier-build-contract/gate/valid/document.json +21 -0
- package/fixtures/atelier-build-contract/ledger/invalid/document.json +270 -0
- package/fixtures/atelier-build-contract/ledger/valid/document.json +269 -0
- package/fixtures/atelier-build-contract/objective/invalid/document.json +73 -0
- package/fixtures/atelier-build-contract/objective/valid/document.json +72 -0
- package/fixtures/atelier-build-contract/progress/invalid/document.json +18 -0
- package/fixtures/atelier-build-contract/progress/valid/document.json +17 -0
- package/fixtures/atelier-capability-contract/adoption/invalid/document.json +71 -0
- package/fixtures/atelier-capability-contract/adoption/valid/document.json +70 -0
- package/fixtures/atelier-capability-contract/event/invalid/document.json +18 -0
- package/fixtures/atelier-capability-contract/event/valid/document.json +17 -0
- package/fixtures/atelier-capability-contract/journal/invalid/document.json +382 -0
- package/fixtures/atelier-capability-contract/journal/valid/document.json +381 -0
- package/fixtures/atelier-capability-contract/notice/invalid/document.json +8 -0
- package/fixtures/atelier-capability-contract/notice/valid/document.json +7 -0
- package/fixtures/atelier-capability-contract/package/invalid/document.json +59 -0
- package/fixtures/atelier-capability-contract/package/valid/document.json +58 -0
- package/fixtures/atelier-capability-contract/plan/invalid/document.json +107 -0
- package/fixtures/atelier-capability-contract/plan/valid/document.json +106 -0
- package/fixtures/atelier-capability-contract/release/invalid/document.json +85 -0
- package/fixtures/atelier-capability-contract/release/valid/document.json +84 -0
- package/fixtures/atelier-capability-contract/state/invalid/document.json +316 -0
- package/fixtures/atelier-capability-contract/state/valid/document.json +315 -0
- package/fixtures/atelier-coordination/dependency/invalid/document.json +37 -0
- package/fixtures/atelier-coordination/dependency/valid/document.json +36 -0
- package/fixtures/atelier-coordination/directive/invalid/document.json +25 -0
- package/fixtures/atelier-coordination/directive/valid/document.json +24 -0
- package/fixtures/atelier-coordination/disposition/invalid/document.json +34 -0
- package/fixtures/atelier-coordination/disposition/valid/document.json +33 -0
- package/fixtures/atelier-coordination/outcome/invalid/document.json +39 -0
- package/fixtures/atelier-coordination/outcome/valid/document.json +38 -0
- package/fixtures/atelier-coordination/recovery/invalid/document.json +34 -0
- package/fixtures/atelier-coordination/recovery/valid/document.json +33 -0
- package/fixtures/atelier-harness-contract/handoff/invalid/document.json +25 -0
- package/fixtures/atelier-harness-contract/handoff/valid/document.json +24 -0
- package/fixtures/atelier-ingestion/invalid/authority.json +19 -0
- package/fixtures/atelier-ingestion/semantic-baseline.json +26 -0
- package/fixtures/atelier-ingestion/semantic-operation.json +75 -0
- package/fixtures/atelier-ingestion/valid/plan-input.json +18 -0
- package/fixtures/atelier-inquiry-contract/assessment/invalid/document.json +41 -0
- package/fixtures/atelier-inquiry-contract/assessment/valid/document.json +40 -0
- package/fixtures/atelier-inquiry-contract/bundle/invalid/document.json +51 -0
- package/fixtures/atelier-inquiry-contract/bundle/valid/document.json +50 -0
- package/fixtures/atelier-inquiry-contract/campaign/invalid/document.json +17 -0
- package/fixtures/atelier-inquiry-contract/campaign/valid/document.json +16 -0
- package/fixtures/atelier-inquiry-contract/decision/invalid/document.json +22 -0
- package/fixtures/atelier-inquiry-contract/decision/valid/document.json +21 -0
- package/fixtures/atelier-inquiry-contract/feedback/invalid/document.json +19 -0
- package/fixtures/atelier-inquiry-contract/feedback/valid/document.json +18 -0
- package/fixtures/atelier-inquiry-contract/handoff/invalid/document.json +92 -0
- package/fixtures/atelier-inquiry-contract/handoff/valid/document.json +91 -0
- package/fixtures/atelier-inquiry-contract/hypothesis/invalid/document.json +20 -0
- package/fixtures/atelier-inquiry-contract/hypothesis/valid/document.json +19 -0
- package/fixtures/atelier-inquiry-contract/ledger/invalid/document.json +680 -0
- package/fixtures/atelier-inquiry-contract/ledger/valid/document.json +679 -0
- package/fixtures/atelier-inquiry-contract/legacy-assessment/invalid/document.json +19 -0
- package/fixtures/atelier-inquiry-contract/legacy-assessment/valid/document.json +18 -0
- package/fixtures/atelier-inquiry-contract/request/invalid/document.json +50 -0
- package/fixtures/atelier-inquiry-contract/request/valid/document.json +49 -0
- package/fixtures/atelier-inquiry-contract/source/invalid/document.json +18 -0
- package/fixtures/atelier-inquiry-contract/source/valid/document.json +17 -0
- package/fixtures/atelier-inquiry-contract/withdrawal/invalid/document.json +16 -0
- package/fixtures/atelier-inquiry-contract/withdrawal/valid/document.json +15 -0
- package/fixtures/atelier-instruction-adoption/context-receipt/invalid/document.json +18 -0
- package/fixtures/atelier-instruction-adoption/context-receipt/valid/document.json +17 -0
- package/fixtures/atelier-instruction-adoption/plan/invalid/document.json +63 -0
- package/fixtures/atelier-instruction-adoption/plan/valid/document.json +62 -0
- package/fixtures/atelier-instruction-adoption/receipt/invalid/document.json +22 -0
- package/fixtures/atelier-instruction-adoption/receipt/valid/document.json +21 -0
- package/fixtures/atelier-instruction-adoption/state/invalid/document.json +30 -0
- package/fixtures/atelier-instruction-adoption/state/valid/document.json +29 -0
- package/fixtures/atelier-interaction/act/invalid/document.json +25 -0
- package/fixtures/atelier-interaction/act/valid/document.json +24 -0
- package/fixtures/atelier-interaction/assessment/invalid/document.json +32 -0
- package/fixtures/atelier-interaction/assessment/valid/document.json +31 -0
- package/fixtures/atelier-interaction/observation/invalid/document.json +22 -0
- package/fixtures/atelier-interaction/observation/valid/document.json +21 -0
- package/fixtures/atelier-interaction/policy/invalid/document.json +20 -0
- package/fixtures/atelier-interaction/policy/valid/document.json +19 -0
- package/fixtures/atelier-judgment/case/invalid/document.json +76 -0
- package/fixtures/atelier-judgment/case/valid/document.json +75 -0
- package/fixtures/atelier-judgment/decision/invalid/document.json +38 -0
- package/fixtures/atelier-judgment/decision/valid/document.json +37 -0
- package/fixtures/atelier-judgment/native-decision.md +3 -0
- package/fixtures/atelier-judgment/practice-reconsideration/definition.json +92 -0
- package/fixtures/atelier-judgment/practice-reconsideration/scenario.json +435 -0
- package/fixtures/atelier-knowledge-contract/activation/invalid/document.json +26 -0
- package/fixtures/atelier-knowledge-contract/activation/valid/document.json +25 -0
- package/fixtures/atelier-knowledge-contract/contribution/invalid/document.json +34 -0
- package/fixtures/atelier-knowledge-contract/contribution/valid/document.json +33 -0
- package/fixtures/atelier-knowledge-contract/domain/invalid/document.json +41 -0
- package/fixtures/atelier-knowledge-contract/domain/valid/document.json +40 -0
- package/fixtures/atelier-knowledge-contract/domain-revision/invalid/document.json +46 -0
- package/fixtures/atelier-knowledge-contract/domain-revision/valid/document.json +45 -0
- package/fixtures/atelier-knowledge-contract/evaluation/invalid/document.json +21 -0
- package/fixtures/atelier-knowledge-contract/evaluation/valid/document.json +20 -0
- package/fixtures/atelier-knowledge-contract/ledger/invalid/document.json +318 -0
- package/fixtures/atelier-knowledge-contract/ledger/valid/document.json +317 -0
- package/fixtures/atelier-knowledge-contract/relation/invalid/document.json +25 -0
- package/fixtures/atelier-knowledge-contract/relation/valid/document.json +24 -0
- package/fixtures/atelier-knowledge-contract/review/invalid/document.json +18 -0
- package/fixtures/atelier-knowledge-contract/review/valid/document.json +17 -0
- package/fixtures/atelier-knowledge-contract/withdrawal/invalid/document.json +16 -0
- package/fixtures/atelier-knowledge-contract/withdrawal/valid/document.json +15 -0
- package/fixtures/atelier-learning/invalid/authority.json +14 -0
- package/fixtures/atelier-learning/valid/capture.json +13 -0
- package/fixtures/atelier-personal-workspace-contract/manifest/invalid/authority-key.json +17 -0
- package/fixtures/atelier-personal-workspace-contract/manifest/invalid/nonempty-ext.json +25 -0
- package/fixtures/atelier-personal-workspace-contract/manifest/invalid/wrong-schema.json +22 -0
- package/fixtures/atelier-personal-workspace-contract/manifest/valid/manifest.json +22 -0
- package/fixtures/atelier-personal-workspace-contract/overlay/invalid/authority-key.json +25 -0
- package/fixtures/atelier-personal-workspace-contract/overlay/invalid/unknown-top-level-field.json +27 -0
- package/fixtures/atelier-personal-workspace-contract/overlay/invalid/wrong-schema.json +24 -0
- package/fixtures/atelier-trackable/definition/invalid/document.json +15 -0
- package/fixtures/atelier-trackable/definition/valid/document.json +14 -0
- package/fixtures/atelier-trackable/request/invalid/document.json +23 -0
- package/fixtures/atelier-trackable/request/valid/document.json +22 -0
- package/fixtures/boundary-delegations/invalid/authority-key.v1.json +30 -0
- package/fixtures/boundary-delegations/invalid/push-operation.v1.json +28 -0
- package/fixtures/boundary-delegations/invalid/unsigned.v1.json +25 -0
- package/fixtures/boundary-delegations/valid/empty.v1.json +4 -0
- package/fixtures/boundary-delegations/valid/signed-operator.v1.json +30 -0
- package/fixtures/boundary-owner-keys/invalid/wrong-algorithm.v1.json +15 -0
- package/fixtures/boundary-owner-keys/invalid/wrong-curve.v1.json +15 -0
- package/fixtures/boundary-owner-keys/valid/one-owner.v1.json +17 -0
- package/fixtures/capability-packages/adoption.example.json +70 -0
- package/fixtures/capability-packages/evidence-review/capability-package.json +58 -0
- package/fixtures/capability-packages/evidence-review/capability-release.json +84 -0
- package/fixtures/capability-packages/evidence-review/evaluation.md +15 -0
- package/fixtures/capability-packages/evidence-review/skills/evidence-review/SKILL.md +22 -0
- package/fixtures/capability-packages/evidence-review/skills/evidence-review/references/ledger.md +7 -0
- package/fixtures/capability-packages/research/capability-package.json +88 -0
- package/fixtures/capability-packages/research/capability-release.json +134 -0
- package/fixtures/capability-packages/research/evaluation.md +15 -0
- package/fixtures/capability-packages/research/skills/research-integrate/SKILL.md +29 -0
- package/fixtures/capability-packages/research/skills/research-integrate/references/integration.md +10 -0
- package/fixtures/capability-packages/research/skills/research-plan/SKILL.md +27 -0
- package/fixtures/capability-packages/research/skills/research-plan/references/inquiries.md +26 -0
- package/fixtures/capability-packages/research/skills/research-synthesize/SKILL.md +23 -0
- package/fixtures/capability-packages/research/skills/research-synthesize/references/synthesis.md +12 -0
- package/fixtures/evidence-navigation/invalid/duplicate-operation.json +16 -0
- package/fixtures/evidence-navigation/invalid/instruction-kind.json +36 -0
- package/fixtures/evidence-navigation/invalid/invalid-digest.json +36 -0
- package/fixtures/evidence-navigation/invalid/invalid-time.json +36 -0
- package/fixtures/evidence-navigation/invalid/missing-attribution.json +35 -0
- package/fixtures/evidence-navigation/invalid/reserved-extension.json +19 -0
- package/fixtures/evidence-navigation/invalid/unattributed-acceptance.json +36 -0
- package/fixtures/evidence-navigation/invalid/uncoerced-version.json +16 -0
- package/fixtures/evidence-navigation/invalid/unknown-currency.json +17 -0
- package/fixtures/evidence-navigation/invalid/unknown-selector-field.json +37 -0
- package/fixtures/evidence-navigation/invalid/unsupported-operation.json +15 -0
- package/fixtures/evidence-navigation/valid/claim.json +36 -0
- package/fixtures/evidence-navigation/valid/host.json +16 -0
- package/fixtures/evidence-navigation/valid/profile.json +16 -0
- package/fixtures/evidence-navigation/valid/snapshot.json +17 -0
- package/fixtures/harness-packages/build-harness/capability-package.json +61 -0
- package/fixtures/harness-packages/build-harness/capability-release.json +82 -0
- package/fixtures/harness-packages/build-harness/evaluation.md +3 -0
- package/fixtures/harness-packages/build-harness/skills/atelier-build-harness/SKILL.md +59 -0
- package/fixtures/harness-packages/knowledge-harness/capability-package.json +61 -0
- package/fixtures/harness-packages/knowledge-harness/capability-release.json +82 -0
- package/fixtures/harness-packages/knowledge-harness/evaluation.md +3 -0
- package/fixtures/harness-packages/knowledge-harness/skills/atelier-knowledge-harness/SKILL.md +60 -0
- package/fixtures/harnesses/learning-cycle.json +780 -0
- package/fixtures/inquiry/workshop.json +675 -0
- package/fixtures/inquiry-packages/discovery-harness/capability-package.json +61 -0
- package/fixtures/inquiry-packages/discovery-harness/capability-release.json +82 -0
- package/fixtures/inquiry-packages/discovery-harness/evaluation.md +3 -0
- package/fixtures/inquiry-packages/discovery-harness/skills/atelier-discovery-harness/SKILL.md +48 -0
- package/fixtures/inquiry-packages/research-harness/capability-package.json +61 -0
- package/fixtures/inquiry-packages/research-harness/capability-release.json +82 -0
- package/fixtures/inquiry-packages/research-harness/evaluation.md +3 -0
- package/fixtures/inquiry-packages/research-harness/skills/atelier-research-harness/SKILL.md +43 -0
- package/fixtures/knowledge-health/calibration-suite.json +26 -0
- package/fixtures/knowledge-health/calibration-trial.json +37 -0
- package/fixtures/knowledge-health/corrected/checklist.md +18 -0
- package/fixtures/knowledge-health/devday/participant-record.json +19 -0
- package/fixtures/knowledge-health/expected-summary.json +27 -0
- package/fixtures/knowledge-health/workshop/README.md +20 -0
- package/fixtures/knowledge-health/workshop/atelier.project.json +7 -0
- package/fixtures/knowledge-health/workshop/knowledge-plan.json +65 -0
- package/fixtures/knowledge-health/workshop/records/checklist.md +18 -0
- package/fixtures/knowledge-health/workshop/records/workshop.md +18 -0
- package/fixtures/knowledge-health/workshop/repo-access.v1.json +5 -0
- package/fixtures/knowledge-health/workspace/atelier.project.json +18 -0
- package/fixtures/knowledge-health/workspace/knowledge-plan.json +74 -0
- package/fixtures/knowledge-health/workspace/records/checklist.md +18 -0
- package/fixtures/knowledge-health/workspace/records/pilot.md +16 -0
- package/fixtures/knowledge-health/workspace/repo-access.v1.json +9 -0
- package/fixtures/personal-workspace/overlay.json +24 -0
- package/fixtures/templates/local-library.v1.json +76 -0
- package/fixtures/templates/upgrade-contracts/adoption-policy.v2/invalid.json +16 -0
- package/fixtures/templates/upgrade-contracts/adoption-policy.v2/valid.json +13 -0
- package/fixtures/templates/upgrade-contracts/migration.v3/invalid.json +24 -0
- package/fixtures/templates/upgrade-contracts/migration.v3/valid.json +21 -0
- package/fixtures/templates/upgrade-contracts/template-adoption.v1/invalid.json +60 -0
- package/fixtures/templates/upgrade-contracts/template-adoption.v1/valid.json +57 -0
- package/fixtures/templates/upgrade-contracts/upgrade-plan.v3/invalid.json +85 -0
- package/fixtures/templates/upgrade-contracts/upgrade-plan.v3/valid.json +82 -0
- package/package.json +60 -5
- package/plugins/obsidian/main.js +57 -8
- package/plugins/obsidian/manifest.json +1 -1
- package/skills/claude/atelier-build-harness/SKILL.md +59 -0
- package/skills/claude/atelier-coordination/SKILL.md +32 -0
- package/skills/claude/atelier-discovery-harness/SKILL.md +48 -0
- package/skills/claude/atelier-guided-upgrade/SKILL.md +29 -0
- package/skills/claude/atelier-interaction/SKILL.md +34 -0
- package/skills/claude/atelier-knowledge-harness/SKILL.md +60 -0
- package/skills/claude/atelier-knowledge-setup/SKILL.md +72 -0
- package/skills/claude/atelier-practical-judgment/SKILL.md +64 -0
- package/skills/claude/atelier-research-harness/SKILL.md +43 -0
- package/skills/claude/atelier-skill-steward/SKILL.md +53 -0
- package/skills/claude/atelier-trackables/SKILL.md +40 -0
- package/skills/codex/atelier-build-harness/SKILL.md +59 -0
- package/skills/codex/atelier-coordination/SKILL.md +32 -0
- package/skills/codex/atelier-discovery-harness/SKILL.md +48 -0
- package/skills/codex/atelier-guided-upgrade/SKILL.md +29 -0
- package/skills/codex/atelier-interaction/SKILL.md +34 -0
- package/skills/codex/atelier-knowledge-harness/SKILL.md +60 -0
- package/skills/codex/atelier-knowledge-setup/SKILL.md +72 -0
- package/skills/codex/atelier-practical-judgment/SKILL.md +64 -0
- package/skills/codex/atelier-research-harness/SKILL.md +43 -0
- package/skills/codex/atelier-skill-steward/SKILL.md +53 -0
- package/skills/codex/atelier-trackables/SKILL.md +40 -0
- package/src/architecture/catalog.mjs +355 -0
- package/src/architecture/index.mjs +93 -0
- package/src/boundary/content-rules.mjs +536 -69
- package/src/boundary/delegation-command.mjs +158 -0
- package/src/boundary/delegation.mjs +396 -0
- package/src/boundary/policy.mjs +185 -64
- package/src/build/git.mjs +18 -0
- package/src/build/index.mjs +3 -0
- package/src/build/ledger.mjs +88 -0
- package/src/capabilities/adoption.mjs +381 -0
- package/src/capabilities/evidence.mjs +140 -0
- package/src/capabilities/files.mjs +124 -0
- package/src/capabilities/index.mjs +4 -0
- package/src/capabilities/instructions.mjs +250 -0
- package/src/capabilities/package.mjs +136 -0
- package/src/cli/command-failure.mjs +36 -0
- package/src/cli/execute-command.mjs +16 -2
- package/src/cli/run.mjs +66 -9
- package/src/coauthor/store.mjs +43 -2
- package/src/collaboration/proposals.mjs +189 -0
- package/src/commands/architecture.mjs +27 -0
- package/src/commands/boundary.mjs +3 -0
- package/src/commands/capability.mjs +73 -0
- package/src/commands/enroll.mjs +3 -0
- package/src/commands/harness.mjs +79 -0
- package/src/commands/ingest.mjs +39 -0
- package/src/commands/init.mjs +4 -1
- package/src/commands/inquiry.mjs +66 -0
- package/src/commands/knowledge-semantic.mjs +128 -0
- package/src/commands/knowledge.mjs +119 -0
- package/src/commands/learn.mjs +61 -0
- package/src/commands/obsidian.mjs +772 -65
- package/src/commands/practice.mjs +24 -0
- package/src/commands/setup.mjs +22 -2
- package/src/commands/trackable.mjs +19 -0
- package/src/contracts/corpus.mjs +30 -0
- package/src/coordination/index.mjs +110 -0
- package/src/evidence-navigation/contracts.mjs +60 -0
- package/src/evidence-navigation/evaluate.mjs +69 -0
- package/src/evidence-navigation/generation.mjs +22 -0
- package/src/evidence-navigation/index.mjs +2 -0
- package/src/evidence-navigation/local.mjs +167 -0
- package/src/evidence-navigation/schema.generated.mjs +604 -0
- package/src/evidence-navigation/types.mjs +12 -0
- package/src/export/atelier-export-contract.mjs +35 -8
- package/src/graph/enroll.mjs +248 -0
- package/src/graph/graph.mjs +30 -6
- package/src/graph/knowledge-graph.mjs +77 -9
- package/src/harnesses/contracts.mjs +41 -0
- package/src/harnesses/exchange.mjs +154 -0
- package/src/harnesses/feedback.mjs +16 -0
- package/src/harnesses/history.mjs +37 -0
- package/src/harnesses/index.mjs +4 -0
- package/src/harnesses/store.mjs +29 -0
- package/src/ingestion/contracts.mjs +41 -0
- package/src/ingestion/evaluation.mjs +119 -0
- package/src/ingestion/optional/composition/index.mjs +171 -0
- package/src/ingestion/optional/evaluation/index.mjs +219 -0
- package/src/ingestion/optional/graphify/composition-binding.mjs +60 -0
- package/src/ingestion/optional/graphify/composition_receiving.py +185 -0
- package/src/ingestion/optional/graphify/graphify_supplier.py +938 -0
- package/src/ingestion/optional/graphify/json_bridge.py +163 -0
- package/src/ingestion/optional/graphify/native-closure-pins.json +275 -0
- package/src/ingestion/optional/graphify/native-pins.json +306 -0
- package/src/ingestion/optional/graphify/query_receiving.py +209 -0
- package/src/ingestion/optional/index.mjs +9 -0
- package/src/ingestion/optional/jev/bridge.mjs +166 -0
- package/src/ingestion/optional/jev/composition-binding.mjs +116 -0
- package/src/ingestion/optional/jev/judgments.mjs +174 -0
- package/src/ingestion/optional/jev/native-translation.mjs +32 -0
- package/src/ingestion/optional/lightrag/atelier_lightrag_supplier/__init__.py +7 -0
- package/src/ingestion/optional/lightrag/atelier_lightrag_supplier/adapter.py +966 -0
- package/src/ingestion/optional/lightrag/atelier_lightrag_supplier/artifacts.py +101 -0
- package/src/ingestion/optional/lightrag/atelier_lightrag_supplier/projection.py +146 -0
- package/src/ingestion/optional/lightrag/composition-binding.mjs +67 -0
- package/src/ingestion/optional/vanilla/composition-binding.mjs +102 -0
- package/src/ingestion/optional/vanilla/index.mjs +218 -0
- package/src/ingestion/optional/vanilla/native-normalization.mjs +187 -0
- package/src/ingestion/processors.mjs +218 -0
- package/src/ingestion/semantic.mjs +203 -0
- package/src/ingestion/store.mjs +372 -0
- package/src/inquiry/beliefs.mjs +32 -0
- package/src/inquiry/contracts.mjs +23 -0
- package/src/inquiry/index.mjs +5 -0
- package/src/inquiry/ledger.mjs +135 -0
- package/src/inquiry/lenses.mjs +15 -0
- package/src/inquiry/projection.mjs +77 -0
- package/src/inquiry/store.mjs +35 -0
- package/src/intake/read-scope.mjs +12 -0
- package/src/intake/store.mjs +69 -6
- package/src/interaction/index.mjs +91 -0
- package/src/judgment/index.mjs +82 -0
- package/src/judgment/practice-evaluation.mjs +70 -0
- package/src/judgment/practice.mjs +144 -0
- package/src/knowledge/context.mjs +217 -0
- package/src/knowledge/index.mjs +5 -0
- package/src/knowledge/ingestion.mjs +79 -0
- package/src/knowledge/intake.mjs +33 -0
- package/src/knowledge/ledger.mjs +110 -0
- package/src/knowledge/participatory/guidance.mjs +36 -0
- package/src/knowledge/participatory/guided-contribution.mjs +44 -0
- package/src/knowledge/participatory/index.mjs +2 -0
- package/src/knowledge/participatory/installed-workshop.mjs +108 -0
- package/src/knowledge/plan.mjs +67 -0
- package/src/knowledge/projection.mjs +43 -0
- package/src/knowledge/semantic-operation.mjs +567 -0
- package/src/knowledge/sessions.mjs +467 -0
- package/src/knowledge/workspace.mjs +295 -0
- package/src/knowledge-health/assessment.mjs +165 -0
- package/src/knowledge-health/capabilities.mjs +350 -0
- package/src/knowledge-health/context.mjs +62 -0
- package/src/knowledge-health/example.mjs +47 -0
- package/src/knowledge-health/index.mjs +10 -0
- package/src/knowledge-health/owner-join.mjs +88 -0
- package/src/knowledge-health/proof/common.mjs +24 -0
- package/src/knowledge-health/proof/installed-check.mjs +100 -0
- package/src/knowledge-health/proof/native-readback.mjs +37 -0
- package/src/knowledge-health/proof/rehearse.mjs +68 -0
- package/src/knowledge-health/proof/validate-participant.mjs +17 -0
- package/src/knowledge-health/proof/verify-native-capture.mjs +14 -0
- package/src/knowledge-health/proof/workshop-check.mjs +36 -0
- package/src/knowledge-health/rule-identity.mjs +49 -0
- package/src/knowledge-health/workshop-composition.mjs +19 -0
- package/src/knowledge-health/workshop-profile.mjs +176 -0
- package/src/knowledge-health/workshop.mjs +99 -0
- package/src/learning/adapters.mjs +68 -0
- package/src/learning/assistance.mjs +127 -0
- package/src/learning/contracts.mjs +65 -0
- package/src/learning/store.mjs +272 -0
- package/src/personal-workspace/index.mjs +391 -0
- package/src/personal-workspace/selection.mjs +401 -0
- package/src/project/config.mjs +8 -0
- package/src/project/durable-state.mjs +3 -1
- package/src/project/file-class.mjs +1 -1
- package/src/project/path-match.mjs +2 -1
- package/src/projection/obsidian/edits/apply.mjs +55 -16
- package/src/projection/obsidian/materialize/prepare-view.mjs +87 -5
- package/src/projection/obsidian/personal-workspace.mjs +519 -0
- package/src/projection/obsidian/proposals/adapter.mjs +79 -17
- package/src/projection/obsidian/proposals/observation.mjs +50 -4
- package/src/projection/obsidian/publication/publisher.mjs +214 -18
- package/src/projection/obsidian/publication/vault-list.mjs +4 -3
- package/src/projection/obsidian/recovery/index.mjs +4 -1
- package/src/projection/obsidian/recovery/store.mjs +160 -7
- package/src/projection/obsidian/selection-ui/contribution.mjs +6 -5
- package/src/projection/project.mjs +3 -2
- package/src/readiness/readiness.mjs +10 -3
- package/src/reflection/index.mjs +56 -0
- package/src/runtime/obsidian/app-production-seams.mjs +48 -16
- package/src/runtime/obsidian/app-registration.mjs +175 -28
- package/src/runtime/obsidian/app-restart.mjs +154 -0
- package/src/runtime/obsidian/engine.mjs +437 -56
- package/src/runtime/obsidian/extension-points.mjs +1 -1
- package/src/runtime/obsidian/index.mjs +10 -7
- package/src/runtime/obsidian/launch-plan.mjs +7 -4
- package/src/runtime/obsidian/lifecycle.mjs +108 -23
- package/src/runtime/obsidian/login-item.mjs +335 -0
- package/src/runtime/obsidian/machine-settings.mjs +119 -12
- package/src/runtime/obsidian/observation.mjs +36 -4
- package/src/runtime/obsidian/opening.mjs +173 -38
- package/src/runtime/obsidian/personal-selection.mjs +125 -0
- package/src/runtime/obsidian/pipeline.mjs +115 -6
- package/src/runtime/obsidian/plugin-channel.mjs +11 -3
- package/src/runtime/obsidian/plugin-choice.mjs +16 -4
- package/src/runtime/obsidian/plugin-drift.mjs +59 -11
- package/src/runtime/obsidian/plugin-presence.mjs +14 -1
- package/src/runtime/obsidian/private-lock.mjs +39 -4
- package/src/runtime/obsidian/process-identity.mjs +20 -10
- package/src/runtime/obsidian/project-views.mjs +282 -0
- package/src/runtime/obsidian/questions.mjs +48 -0
- package/src/runtime/obsidian/release-watch.mjs +56 -0
- package/src/runtime/obsidian/service-main.mjs +148 -19
- package/src/runtime/obsidian/service-manager-production.mjs +61 -0
- package/src/runtime/obsidian/service-managers.mjs +275 -0
- package/src/runtime/obsidian/service-record.mjs +87 -23
- package/src/runtime/obsidian/service.mjs +102 -9
- package/src/runtime/obsidian/startup-adapters.mjs +59 -21
- package/src/runtime/obsidian/unheld-evidence.mjs +84 -0
- package/src/runtime/obsidian/vault-location.mjs +300 -0
- package/src/runtime/obsidian/view-counts.mjs +34 -0
- package/src/runtime/obsidian/view-permission.mjs +334 -0
- package/src/server/local-sidecar.mjs +169 -2
- package/src/server/server.mjs +28 -2
- package/src/template-bindings/project.mjs +92 -0
- package/src/templates/profile.mjs +225 -0
- package/src/trackables/domain.mjs +175 -0
- package/src/trackables/store.mjs +114 -0
- package/src/ui/control-system.mjs +201 -0
- package/src/ui/html-primitives.mjs +3 -0
- package/src/ui/knowledge-page.mjs +1388 -0
- package/src/upgrade/closure-diagnostics.mjs +135 -0
- package/src/upgrade/closure.mjs +649 -0
- package/src/upgrade/explanation.mjs +1 -1
- package/src/upgrade/template-participant.mjs +171 -0
- package/src/upgrade/transaction.mjs +72 -25
- package/src/upgrade/upgrade.mjs +20 -7
- package/templates/external-project-workspace/pack-lifecycle.json +7 -1
- package/templates/knowledge-workspace/.gitattributes +2 -0
- package/templates/knowledge-workspace/AGENTS.md +27 -0
- package/templates/knowledge-workspace/README.md +44 -0
- package/templates/knowledge-workspace/atelier.project.json +22 -0
- package/templates/knowledge-workspace/gitignore +6 -0
- package/templates/knowledge-workspace/knowledge-plan.json +111 -0
- package/templates/knowledge-workspace/knowledge-plan.schema.json +281 -0
- package/templates/knowledge-workspace/records/forecast.md +22 -0
- package/templates/knowledge-workspace/records/inspection.md +25 -0
- package/templates/knowledge-workspace/records/telescope.md +24 -0
- package/templates/knowledge-workspace/repo-access.v1.json +9 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
{
|
|
2
|
+
"upstreamCommit": "1cd9a36c0c57a661d2d2234bc3207e887e1ba104",
|
|
3
|
+
"upstreamVersion": "0.9.72",
|
|
4
|
+
"operations": {
|
|
5
|
+
"discover": {
|
|
6
|
+
"module": "graphify.detect",
|
|
7
|
+
"function": "detect",
|
|
8
|
+
"family": "discovery",
|
|
9
|
+
"source": "Graphify-Labs/graphify/detect.py",
|
|
10
|
+
"sourceSha256": "0c539db73e11b93b14c9ae2a61d6094a3aae13a9dbd49158e3d5164a28b426a6",
|
|
11
|
+
"sourceLine": 1833,
|
|
12
|
+
"sourceEndLine": 2144,
|
|
13
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
14
|
+
},
|
|
15
|
+
"discover-incremental": {
|
|
16
|
+
"module": "graphify.detect",
|
|
17
|
+
"function": "detect_incremental",
|
|
18
|
+
"family": "incremental",
|
|
19
|
+
"source": "Graphify-Labs/graphify/detect.py",
|
|
20
|
+
"sourceSha256": "0c539db73e11b93b14c9ae2a61d6094a3aae13a9dbd49158e3d5164a28b426a6",
|
|
21
|
+
"sourceLine": 2646,
|
|
22
|
+
"sourceEndLine": 2793,
|
|
23
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
24
|
+
},
|
|
25
|
+
"extract-structure": {
|
|
26
|
+
"module": "graphify.extract",
|
|
27
|
+
"function": "extract",
|
|
28
|
+
"family": "extraction",
|
|
29
|
+
"source": "Graphify-Labs/graphify/extract.py",
|
|
30
|
+
"sourceSha256": "2facca59e22f735f68abc188bab0fa519427f4dc4deb2a235ed0e7c50ebe9c84",
|
|
31
|
+
"sourceLine": 7169,
|
|
32
|
+
"sourceEndLine": 8717,
|
|
33
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
34
|
+
},
|
|
35
|
+
"extract-semantic": {
|
|
36
|
+
"module": "graphify.llm",
|
|
37
|
+
"function": "extract_corpus_parallel",
|
|
38
|
+
"family": "semantic/media extraction",
|
|
39
|
+
"source": "Graphify-Labs/graphify/llm.py",
|
|
40
|
+
"sourceSha256": "51e31802e36fbb1e6b849661cc79e1cb238c4f8caffaf805592ad0dee21f8a90",
|
|
41
|
+
"sourceLine": 2550,
|
|
42
|
+
"sourceEndLine": 2850,
|
|
43
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
44
|
+
},
|
|
45
|
+
"build-native": {
|
|
46
|
+
"module": "graphify.build",
|
|
47
|
+
"function": "build",
|
|
48
|
+
"family": "construction",
|
|
49
|
+
"source": "Graphify-Labs/graphify/build.py",
|
|
50
|
+
"sourceSha256": "8f4b17391c60331de1875a47d697191d5ebe50011f36d204341f53e60c210eda",
|
|
51
|
+
"sourceLine": 1532,
|
|
52
|
+
"sourceEndLine": 1596,
|
|
53
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
54
|
+
},
|
|
55
|
+
"build-accepted": {
|
|
56
|
+
"module": "graphify.build",
|
|
57
|
+
"function": "build",
|
|
58
|
+
"family": "accepted projection",
|
|
59
|
+
"source": "Graphify-Labs/graphify/build.py",
|
|
60
|
+
"sourceSha256": "8f4b17391c60331de1875a47d697191d5ebe50011f36d204341f53e60c210eda",
|
|
61
|
+
"sourceLine": 1532,
|
|
62
|
+
"sourceEndLine": 1596,
|
|
63
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
64
|
+
},
|
|
65
|
+
"build-incremental": {
|
|
66
|
+
"module": "graphify.build",
|
|
67
|
+
"function": "build_merge",
|
|
68
|
+
"family": "incremental",
|
|
69
|
+
"source": "Graphify-Labs/graphify/build.py",
|
|
70
|
+
"sourceSha256": "8f4b17391c60331de1875a47d697191d5ebe50011f36d204341f53e60c210eda",
|
|
71
|
+
"sourceLine": 1921,
|
|
72
|
+
"sourceEndLine": 2358,
|
|
73
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
74
|
+
},
|
|
75
|
+
"merge-raw": {
|
|
76
|
+
"module": "graphify.build",
|
|
77
|
+
"function": "merge_raw_extraction",
|
|
78
|
+
"family": "incremental",
|
|
79
|
+
"source": "Graphify-Labs/graphify/build.py",
|
|
80
|
+
"sourceSha256": "8f4b17391c60331de1875a47d697191d5ebe50011f36d204341f53e60c210eda",
|
|
81
|
+
"sourceLine": 1777,
|
|
82
|
+
"sourceEndLine": 1918,
|
|
83
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
84
|
+
},
|
|
85
|
+
"dedup-proposals": {
|
|
86
|
+
"module": "graphify.dedup",
|
|
87
|
+
"function": "deduplicate_entities",
|
|
88
|
+
"family": "identity suggestions",
|
|
89
|
+
"source": "Graphify-Labs/graphify/dedup.py",
|
|
90
|
+
"sourceSha256": "7e65caa8ebc393db375e49c89764e6b089a77e88c10b18ff5f37fd440c7d1dfc",
|
|
91
|
+
"sourceLine": 557,
|
|
92
|
+
"sourceEndLine": 1039,
|
|
93
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
94
|
+
},
|
|
95
|
+
"cluster": {
|
|
96
|
+
"module": "graphify.cluster",
|
|
97
|
+
"function": "cluster",
|
|
98
|
+
"family": "communities",
|
|
99
|
+
"source": "Graphify-Labs/graphify/cluster.py",
|
|
100
|
+
"sourceSha256": "bfbfeac12c0a59cb7824d081e32a77e7cdcadd5530e9e6d1bf82264b08a1a78f",
|
|
101
|
+
"sourceLine": 232,
|
|
102
|
+
"sourceEndLine": 334,
|
|
103
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
104
|
+
},
|
|
105
|
+
"label-communities": {
|
|
106
|
+
"module": "graphify.cluster",
|
|
107
|
+
"function": "label_communities_by_hub",
|
|
108
|
+
"family": "communities",
|
|
109
|
+
"source": "Graphify-Labs/graphify/cluster.py",
|
|
110
|
+
"sourceSha256": "bfbfeac12c0a59cb7824d081e32a77e7cdcadd5530e9e6d1bf82264b08a1a78f",
|
|
111
|
+
"sourceLine": 184,
|
|
112
|
+
"sourceEndLine": 208,
|
|
113
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
114
|
+
},
|
|
115
|
+
"cohesion": {
|
|
116
|
+
"module": "graphify.cluster",
|
|
117
|
+
"function": "score_all",
|
|
118
|
+
"family": "communities",
|
|
119
|
+
"source": "Graphify-Labs/graphify/cluster.py",
|
|
120
|
+
"sourceSha256": "bfbfeac12c0a59cb7824d081e32a77e7cdcadd5530e9e6d1bf82264b08a1a78f",
|
|
121
|
+
"sourceLine": 373,
|
|
122
|
+
"sourceEndLine": 374,
|
|
123
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
124
|
+
},
|
|
125
|
+
"important-nodes": {
|
|
126
|
+
"module": "graphify.analyze",
|
|
127
|
+
"function": "god_nodes",
|
|
128
|
+
"family": "analysis",
|
|
129
|
+
"source": "Graphify-Labs/graphify/analyze.py",
|
|
130
|
+
"sourceSha256": "e6011dcbb35144134d8ebef12d17ea869e73749e79722caa9527ed30500edd4a",
|
|
131
|
+
"sourceLine": 112,
|
|
132
|
+
"sourceEndLine": 148,
|
|
133
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
134
|
+
},
|
|
135
|
+
"surprising-connections": {
|
|
136
|
+
"module": "graphify.analyze",
|
|
137
|
+
"function": "surprising_connections",
|
|
138
|
+
"family": "analysis",
|
|
139
|
+
"source": "Graphify-Labs/graphify/analyze.py",
|
|
140
|
+
"sourceSha256": "e6011dcbb35144134d8ebef12d17ea869e73749e79722caa9527ed30500edd4a",
|
|
141
|
+
"sourceLine": 151,
|
|
142
|
+
"sourceEndLine": 180,
|
|
143
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
144
|
+
},
|
|
145
|
+
"suggest-questions": {
|
|
146
|
+
"module": "graphify.analyze",
|
|
147
|
+
"function": "suggest_questions",
|
|
148
|
+
"family": "analysis",
|
|
149
|
+
"source": "Graphify-Labs/graphify/analyze.py",
|
|
150
|
+
"sourceSha256": "e6011dcbb35144134d8ebef12d17ea869e73749e79722caa9527ed30500edd4a",
|
|
151
|
+
"sourceLine": 446,
|
|
152
|
+
"sourceEndLine": 571,
|
|
153
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
154
|
+
},
|
|
155
|
+
"graph-diff": {
|
|
156
|
+
"module": "graphify.analyze",
|
|
157
|
+
"function": "graph_diff",
|
|
158
|
+
"family": "change analysis",
|
|
159
|
+
"source": "Graphify-Labs/graphify/analyze.py",
|
|
160
|
+
"sourceSha256": "e6011dcbb35144134d8ebef12d17ea869e73749e79722caa9527ed30500edd4a",
|
|
161
|
+
"sourceLine": 574,
|
|
162
|
+
"sourceEndLine": 655,
|
|
163
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
164
|
+
},
|
|
165
|
+
"import-cycles": {
|
|
166
|
+
"module": "graphify.analyze",
|
|
167
|
+
"function": "find_import_cycles",
|
|
168
|
+
"family": "code diagnostics",
|
|
169
|
+
"source": "Graphify-Labs/graphify/analyze.py",
|
|
170
|
+
"sourceSha256": "e6011dcbb35144134d8ebef12d17ea869e73749e79722caa9527ed30500edd4a",
|
|
171
|
+
"sourceLine": 658,
|
|
172
|
+
"sourceEndLine": 772,
|
|
173
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
174
|
+
},
|
|
175
|
+
"impact": {
|
|
176
|
+
"module": "graphify.affected",
|
|
177
|
+
"function": "affected_nodes",
|
|
178
|
+
"family": "code diagnostics",
|
|
179
|
+
"source": "Graphify-Labs/graphify/affected.py",
|
|
180
|
+
"sourceSha256": "c679c7e7f8881973e449fd885dd0ccc096dcc074f4c93f43962b1ce957ef77a7",
|
|
181
|
+
"sourceLine": 190,
|
|
182
|
+
"sourceEndLine": 255,
|
|
183
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
184
|
+
},
|
|
185
|
+
"query": {
|
|
186
|
+
"module": "graphify.serve",
|
|
187
|
+
"function": "_query_graph_text",
|
|
188
|
+
"family": "query",
|
|
189
|
+
"source": "Graphify-Labs/graphify/serve.py",
|
|
190
|
+
"sourceSha256": "a6df71d1c6efd3281d2938f8c234d987ba61a92270db585490688d194b7f6bec",
|
|
191
|
+
"sourceLine": 1361,
|
|
192
|
+
"sourceEndLine": 1420,
|
|
193
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
194
|
+
},
|
|
195
|
+
"path": {
|
|
196
|
+
"module": "graphify.serve",
|
|
197
|
+
"function": "_shortest_path_text",
|
|
198
|
+
"family": "query",
|
|
199
|
+
"source": "Graphify-Labs/graphify/serve.py",
|
|
200
|
+
"sourceSha256": "a6df71d1c6efd3281d2938f8c234d987ba61a92270db585490688d194b7f6bec",
|
|
201
|
+
"sourceLine": 1664,
|
|
202
|
+
"sourceEndLine": 1762,
|
|
203
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
204
|
+
},
|
|
205
|
+
"node": {
|
|
206
|
+
"module": "graphify.serve",
|
|
207
|
+
"function": "_resolve_single_node",
|
|
208
|
+
"family": "query",
|
|
209
|
+
"source": "Graphify-Labs/graphify/serve.py",
|
|
210
|
+
"sourceSha256": "a6df71d1c6efd3281d2938f8c234d987ba61a92270db585490688d194b7f6bec",
|
|
211
|
+
"sourceLine": 1638,
|
|
212
|
+
"sourceEndLine": 1661,
|
|
213
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
214
|
+
},
|
|
215
|
+
"neighbors": {
|
|
216
|
+
"module": "graphify.serve",
|
|
217
|
+
"function": "_resolve_single_node",
|
|
218
|
+
"family": "query",
|
|
219
|
+
"source": "Graphify-Labs/graphify/serve.py",
|
|
220
|
+
"sourceSha256": "a6df71d1c6efd3281d2938f8c234d987ba61a92270db585490688d194b7f6bec",
|
|
221
|
+
"sourceLine": 1638,
|
|
222
|
+
"sourceEndLine": 1661,
|
|
223
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
224
|
+
},
|
|
225
|
+
"cache-check": {
|
|
226
|
+
"module": "graphify.cache",
|
|
227
|
+
"function": "check_semantic_cache",
|
|
228
|
+
"family": "maintenance",
|
|
229
|
+
"source": "Graphify-Labs/graphify/cache.py",
|
|
230
|
+
"sourceSha256": "b630ce0c29cf5c00e2a43a7196492b7531ed905ac48c86f5f42c13e2ce841dbc",
|
|
231
|
+
"sourceLine": 1233,
|
|
232
|
+
"sourceEndLine": 1315,
|
|
233
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
234
|
+
},
|
|
235
|
+
"export-json": {
|
|
236
|
+
"module": "graphify.export",
|
|
237
|
+
"function": "to_json",
|
|
238
|
+
"family": "export",
|
|
239
|
+
"source": "Graphify-Labs/graphify/export.py",
|
|
240
|
+
"sourceSha256": "312f4658900e33360e6d23a005ee4ed227a30ae7737bfeba13318f7f16af5576",
|
|
241
|
+
"sourceLine": 272,
|
|
242
|
+
"sourceEndLine": 417,
|
|
243
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
244
|
+
},
|
|
245
|
+
"export-cypher": {
|
|
246
|
+
"module": "graphify.export",
|
|
247
|
+
"function": "to_cypher",
|
|
248
|
+
"family": "export",
|
|
249
|
+
"source": "Graphify-Labs/graphify/export.py",
|
|
250
|
+
"sourceSha256": "312f4658900e33360e6d23a005ee4ed227a30ae7737bfeba13318f7f16af5576",
|
|
251
|
+
"sourceLine": 480,
|
|
252
|
+
"sourceEndLine": 504,
|
|
253
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
254
|
+
},
|
|
255
|
+
"export-obsidian": {
|
|
256
|
+
"module": "graphify.export",
|
|
257
|
+
"function": "to_obsidian",
|
|
258
|
+
"family": "export",
|
|
259
|
+
"source": "Graphify-Labs/graphify/export.py",
|
|
260
|
+
"sourceSha256": "312f4658900e33360e6d23a005ee4ed227a30ae7737bfeba13318f7f16af5576",
|
|
261
|
+
"sourceLine": 687,
|
|
262
|
+
"sourceEndLine": 1037,
|
|
263
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
264
|
+
},
|
|
265
|
+
"export-canvas": {
|
|
266
|
+
"module": "graphify.export",
|
|
267
|
+
"function": "to_canvas",
|
|
268
|
+
"family": "export",
|
|
269
|
+
"source": "Graphify-Labs/graphify/export.py",
|
|
270
|
+
"sourceSha256": "312f4658900e33360e6d23a005ee4ed227a30ae7737bfeba13318f7f16af5576",
|
|
271
|
+
"sourceLine": 1040,
|
|
272
|
+
"sourceEndLine": 1215,
|
|
273
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
274
|
+
},
|
|
275
|
+
"export-graphml": {
|
|
276
|
+
"module": "graphify.export",
|
|
277
|
+
"function": "to_graphml",
|
|
278
|
+
"family": "export",
|
|
279
|
+
"source": "Graphify-Labs/graphify/export.py",
|
|
280
|
+
"sourceSha256": "312f4658900e33360e6d23a005ee4ed227a30ae7737bfeba13318f7f16af5576",
|
|
281
|
+
"sourceLine": 1218,
|
|
282
|
+
"sourceEndLine": 1292,
|
|
283
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
284
|
+
},
|
|
285
|
+
"export-svg": {
|
|
286
|
+
"module": "graphify.export",
|
|
287
|
+
"function": "to_svg",
|
|
288
|
+
"family": "export",
|
|
289
|
+
"source": "Graphify-Labs/graphify/export.py",
|
|
290
|
+
"sourceSha256": "312f4658900e33360e6d23a005ee4ed227a30ae7737bfeba13318f7f16af5576",
|
|
291
|
+
"sourceLine": 1295,
|
|
292
|
+
"sourceEndLine": 1362,
|
|
293
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
294
|
+
},
|
|
295
|
+
"reflect": {
|
|
296
|
+
"module": "graphify.reflect",
|
|
297
|
+
"function": "reflect",
|
|
298
|
+
"family": "work memory",
|
|
299
|
+
"source": "Graphify-Labs/graphify/reflect.py",
|
|
300
|
+
"sourceSha256": "53d877f8009344cfc721d400444bbf2c7f7fcdcd3c4f97580a369c4f79b06db0",
|
|
301
|
+
"sourceLine": 564,
|
|
302
|
+
"sourceEndLine": 610,
|
|
303
|
+
"qualification": "source-inspected; installed native execution pending"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
"""Private current-owner receiving of retained Graphify queries, no native call.
|
|
2
|
+
|
|
3
|
+
Host callbacks return original evidence/hits/receipt references. These structures
|
|
4
|
+
are composition transport, not a new evidence, receipt or acceptance canonical.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
import copy
|
|
8
|
+
import fcntl
|
|
9
|
+
import hashlib
|
|
10
|
+
import json
|
|
11
|
+
import re
|
|
12
|
+
import uuid
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
from graphify_supplier import SupplierError, digest, json_safe, require
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _reference(value):
|
|
18
|
+
return (isinstance(value, dict) and set(value) == {"id", "digest"}
|
|
19
|
+
and isinstance(value["id"], str) and 0 < len(value["id"]) <= 256
|
|
20
|
+
and isinstance(value["digest"], str) and re.fullmatch(r"sha256:[a-f0-9]{64}", value["digest"]))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _selection(result, declared):
|
|
24
|
+
if isinstance(declared, str):
|
|
25
|
+
declared = {"pointer": declared}
|
|
26
|
+
require(isinstance(declared, dict) and set(declared) <= {"pointer", "span"}
|
|
27
|
+
and isinstance(declared.get("pointer"), str) and len(declared["pointer"]) <= 4096,
|
|
28
|
+
"QUERY_SELECTION", "Bounded existing-result pointer required")
|
|
29
|
+
pointer, value = declared["pointer"], result
|
|
30
|
+
require(pointer == "" or pointer.startswith("/"), "QUERY_SELECTION", "JSON pointer required")
|
|
31
|
+
for safe_name in pointer[1:].split("/") if pointer else []:
|
|
32
|
+
require(not re.search(r"~(?![01])", safe_name), "QUERY_SELECTION", "Exact JSON pointer escaping required")
|
|
33
|
+
safe_name = safe_name.replace("~1", "/").replace("~0", "~")
|
|
34
|
+
if isinstance(value, list):
|
|
35
|
+
require(re.fullmatch(r"0|[1-9][0-9]*", safe_name) is not None and int(safe_name) < len(value), "QUERY_SELECTION", "Selected result index absent")
|
|
36
|
+
value = value[int(safe_name)]
|
|
37
|
+
else:
|
|
38
|
+
require(isinstance(value, dict) and safe_name in value, "QUERY_SELECTION", "Selected result member absent")
|
|
39
|
+
value = value[safe_name]
|
|
40
|
+
if "span" in declared:
|
|
41
|
+
span = declared["span"]
|
|
42
|
+
require(isinstance(value, str) and isinstance(span, dict) and set(span) == {"start", "end"}
|
|
43
|
+
and type(span["start"]) is int and type(span["end"]) is int
|
|
44
|
+
and 0 <= span["start"] < span["end"] <= len(value), "QUERY_SELECTION", "Exact native text span required")
|
|
45
|
+
value = value[span["start"]:span["end"]]
|
|
46
|
+
return {"selection": copy.deepcopy(declared), "nativeResult": copy.deepcopy(value), "nativeResultDigest": digest(value)}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _valid_mapping(entry, selection, sources):
|
|
50
|
+
require(isinstance(entry, dict) and entry.get("selection") == selection["selection"]
|
|
51
|
+
and entry.get("nativeResultDigest") == selection["nativeResultDigest"], "QUERY_MAPPING_BINDING", "Mapping must bind the selected original native result")
|
|
52
|
+
evidence, hit = entry.get("evidence"), entry.get("hit")
|
|
53
|
+
require(isinstance(evidence, dict) and isinstance(hit, dict), "QUERY_MAPPING_MISSING", "Original owner evidence and hit are required")
|
|
54
|
+
ref = hit.get("evidenceRef")
|
|
55
|
+
require(isinstance(ref, dict) and set(ref) == {"sourceId", "revision", "representationId", "locator"}
|
|
56
|
+
and all(isinstance(ref[k], str) and 0 < len(ref[k]) <= 256 for k in ("sourceId", "revision", "representationId"))
|
|
57
|
+
and isinstance(ref["locator"], dict), "QUERY_EVIDENCE_REFERENCE", "Original composition evidence reference required")
|
|
58
|
+
source = sources.get(ref["sourceId"])
|
|
59
|
+
# Existing vanilla private projection uses the original evidence sourceDigest
|
|
60
|
+
# as revision and its original attemptId as representationId. Native catalogue
|
|
61
|
+
# revision remains a separate lifecycle binding; no new identity is inferred.
|
|
62
|
+
require(source is not None and source["sourceDigest"] == ref["revision"]
|
|
63
|
+
and evidence.get("sourceId") == ref["sourceId"] and evidence.get("sourceDigest") == source["sourceDigest"],
|
|
64
|
+
"QUERY_MAPPING_SOURCE", "Mapping source/revision must match current native dependencies")
|
|
65
|
+
require(evidence.get("schema") == "mnstry.atelier-ingestion-evidence@v1"
|
|
66
|
+
and evidence.get("freshness") == "current" and evidence.get("integrity") == "verified"
|
|
67
|
+
and evidence.get("readScope") == "all-plan" and evidence.get("synthesized") is False
|
|
68
|
+
and evidence.get("semanticAcceptance") == "pending" and evidence.get("locator") == ref["locator"]
|
|
69
|
+
and isinstance(evidence.get("ref"), str) and 0 < len(evidence["ref"]) <= 16384
|
|
70
|
+
and isinstance(evidence.get("text"), str), "QUERY_EVIDENCE_UNVERIFIED", "Original current located evidence receipt required")
|
|
71
|
+
locator = evidence["locator"]
|
|
72
|
+
require(set(locator) == {"kind", "value"} and locator["kind"] in {"line", "csv-cell", "json-pointer"}
|
|
73
|
+
and isinstance(locator["value"], str) and 0 < len(locator["value"]) <= 16384,
|
|
74
|
+
"QUERY_EVIDENCE_REFERENCE", "Supported exact original owner locator required")
|
|
75
|
+
require(isinstance(evidence.get("planId"), str) and bool(evidence["planId"])
|
|
76
|
+
and isinstance(evidence.get("planDigest"), str) and re.fullmatch(r"[a-f0-9]{64}", evidence["planDigest"])
|
|
77
|
+
and isinstance(evidence.get("attemptId"), str) and bool(evidence["attemptId"]),
|
|
78
|
+
"QUERY_EVIDENCE_UNVERIFIED", "Original owner plan/digest/attempt bindings required")
|
|
79
|
+
require(all(evidence.get(k) == source[k] for k in ("attemptId", "planId", "planDigest") if k in source),
|
|
80
|
+
"QUERY_MAPPING_SOURCE", "Located evidence attempt/plan differs from current dependency")
|
|
81
|
+
require(isinstance(source.get("attemptId"), str) and bool(source["attemptId"])
|
|
82
|
+
and ref["representationId"] == evidence["attemptId"] == source["attemptId"],
|
|
83
|
+
"QUERY_MAPPING_REPRESENTATION", "Original evidence representation must match its original owner attempt")
|
|
84
|
+
require(isinstance(hit.get("quote"), str) and bool(hit["quote"]) and hit["quote"] in evidence["text"],
|
|
85
|
+
"QUERY_QUOTE_UNVERIFIED", "Original hit quote must occur in its owner-read evidence")
|
|
86
|
+
# The existing owner verifier still qualifies representation identity, exact
|
|
87
|
+
# passage/current permission and canonical receipts. Shape never grants it.
|
|
88
|
+
return copy.deepcopy(hit)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def receive_query(supplier, operation_id, *, selections=None):
|
|
92
|
+
require(supplier.lock.acquire(blocking=False), "WRITER_BUSY", "A supplier operation owns receiving")
|
|
93
|
+
lease, envelope, body, directory = None, None, None, None
|
|
94
|
+
try:
|
|
95
|
+
lease = (supplier.artifacts / ".writer.lock").open("a+b")
|
|
96
|
+
try:
|
|
97
|
+
fcntl.flock(lease, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
|
98
|
+
except BlockingIOError as exc:
|
|
99
|
+
raise SupplierError("WRITER_BUSY", "Another process owns this supplier destination") from exc
|
|
100
|
+
receipt = supplier.read_capture(operation_id)["receipt"]
|
|
101
|
+
require(receipt.get("operation") == "query" and receipt.get("status") == "complete", "QUERY_RECEIVING_SCOPE", "Existing successful retained query required")
|
|
102
|
+
generation = receipt.get("graphGeneration")
|
|
103
|
+
directory = supplier.artifacts / operation_id
|
|
104
|
+
artifacts = [a for a in receipt["artifacts"] if Path(a["path"]).name == "result.json"]
|
|
105
|
+
require(len(artifacts) == 1, "QUERY_RECEIVING_ARTIFACT", "Exactly one original retained query result required")
|
|
106
|
+
artifact = copy.deepcopy(artifacts[0])
|
|
107
|
+
result = json.loads(Path(artifact["path"]).read_bytes())
|
|
108
|
+
original_receipt = directory / "receipt.json"
|
|
109
|
+
receipt_bytes = original_receipt.read_bytes()
|
|
110
|
+
receipt_artifact = {"path": str(original_receipt), "sha256": hashlib.sha256(receipt_bytes).hexdigest(), "bytes": len(receipt_bytes)}
|
|
111
|
+
declared = [""] if selections is None else selections
|
|
112
|
+
require(isinstance(declared, list) and 0 < len(declared) <= 128, "QUERY_SELECTION", "Finite explicit native selection required")
|
|
113
|
+
selected = [_selection(result, selection) for selection in declared]
|
|
114
|
+
require(len({digest(s["selection"]) for s in selected}) == len(selected), "QUERY_SELECTION_AMBIGUOUS", "Duplicate native selection is ambiguous")
|
|
115
|
+
context = {"queryArtifact": artifact, "queryReceiptArtifact": receipt_artifact, "generation": generation,
|
|
116
|
+
"sourceBindings": copy.deepcopy(receipt["sourceBindings"]), "rootIdentity": supplier.root_id,
|
|
117
|
+
"epoch": receipt["epoch"], "view": receipt["view"], "nativeSelections": selected}
|
|
118
|
+
envelope = {"provider": "graphify", "generation": generation, "artifactRef": artifact,
|
|
119
|
+
"hits": [], "unresolved": [], "receiptRef": None, "usage": copy.deepcopy(receipt.get("usage")),
|
|
120
|
+
"authority": "none", "canonicalMutation": False}
|
|
121
|
+
body = {"queryOperationId": operation_id, "queryBinding": context, "hostMappingOriginal": None,
|
|
122
|
+
"hostEligibilityOriginal": None, "envelope": envelope, "qualification": "private receiving; original canonical owners retain authority"}
|
|
123
|
+
def finish():
|
|
124
|
+
envelope["status"] = "received" if envelope["hits"] and not envelope["unresolved"] else "partial-received" if envelope["hits"] else "unresolved"
|
|
125
|
+
capture = supplier._write(directory, f"receiving-{uuid.uuid4().hex}.json", body)
|
|
126
|
+
envelope["receivingArtifact"] = capture
|
|
127
|
+
return envelope
|
|
128
|
+
def propagate_control(exc):
|
|
129
|
+
if isinstance(exc, Exception): return
|
|
130
|
+
envelope["hits"] = []
|
|
131
|
+
envelope["receiptRef"] = None
|
|
132
|
+
body["controlSignal"] = {"type": type(exc).__name__, "propagated": True}
|
|
133
|
+
try:
|
|
134
|
+
finish()
|
|
135
|
+
except BaseException as capture_error:
|
|
136
|
+
body["captureError"] = {"type": type(capture_error).__name__, "code": getattr(capture_error, "code", "CAPTURE_FAILURE")}
|
|
137
|
+
exc.receipt = copy.deepcopy(body)
|
|
138
|
+
raise exc
|
|
139
|
+
try:
|
|
140
|
+
item = supplier._fresh(generation, "graph")
|
|
141
|
+
require(context["sourceBindings"] == item["dependencies"] and receipt["epoch"] == supplier.epoch,
|
|
142
|
+
"QUERY_RECEIVING_STALE", "Query generation/source bindings differ from current graph")
|
|
143
|
+
if item.get("accepted_reference") is not None:
|
|
144
|
+
build_receipt = supplier.read_capture(item["operationId"])["receipt"]
|
|
145
|
+
context.update(historyDigest=build_receipt["acceptedHead"], activationRef=copy.deepcopy(item["accepted_reference"]))
|
|
146
|
+
except BaseException as exc:
|
|
147
|
+
envelope["unresolved"].append({"reason": getattr(exc, "code", "QUERY_RECEIVING_STALE"), "type": type(exc).__name__})
|
|
148
|
+
propagate_control(exc)
|
|
149
|
+
return finish()
|
|
150
|
+
if not callable(supplier.query_hydrator) or not callable(supplier.query_verifier):
|
|
151
|
+
envelope["unresolved"] = [{"selection": s["selection"], "reason": "current-owner-receiving-unreceived"} for s in selected]
|
|
152
|
+
else:
|
|
153
|
+
try:
|
|
154
|
+
hydrated = json_safe(supplier.query_hydrator(copy.deepcopy(context)))
|
|
155
|
+
body["hostMappingOriginal"] = hydrated
|
|
156
|
+
require(isinstance(hydrated, dict) and _reference(hydrated.get("mappingReceipt"))
|
|
157
|
+
and isinstance(hydrated.get("mappings"), list), "QUERY_MAPPING_RECEIPT", "Original owner mapping receipt/mappings required")
|
|
158
|
+
entries, hits = hydrated["mappings"], []
|
|
159
|
+
# Hydrator may decline an exact selection. Multiple mappings for
|
|
160
|
+
# the same selection remain ambiguous; there is no arbitrary winner.
|
|
161
|
+
require(all(isinstance(e, dict) and e.get("selection") in [s["selection"] for s in selected] for e in entries),
|
|
162
|
+
"QUERY_MAPPING_BINDING", "Mapping includes an unselected native result")
|
|
163
|
+
for selection in selected:
|
|
164
|
+
matches = [e for e in entries if e.get("selection") == selection["selection"]]
|
|
165
|
+
if len(matches) != 1:
|
|
166
|
+
envelope["unresolved"].append({"selection": selection["selection"], "reason": "mapping-absent" if not matches else "mapping-ambiguous"})
|
|
167
|
+
continue
|
|
168
|
+
try:
|
|
169
|
+
hits.append(_valid_mapping(matches[0], selection, context["sourceBindings"]))
|
|
170
|
+
except SupplierError as exc:
|
|
171
|
+
envelope["unresolved"].append({"selection": selection["selection"], "reason": exc.code})
|
|
172
|
+
if hits:
|
|
173
|
+
binding = {**copy.deepcopy(context), "mappingReceipt": copy.deepcopy(hydrated["mappingReceipt"]),
|
|
174
|
+
"mappingDigest": digest(hydrated), "hitsDigest": digest(hits)}
|
|
175
|
+
# Repeat current generation/source/accepted-head checks around
|
|
176
|
+
# the existing owner's actual mapping+eligibility verification.
|
|
177
|
+
supplier._fresh(generation, "graph")
|
|
178
|
+
verdict = json_safe(supplier.query_verifier({"binding": copy.deepcopy(binding), "mapping": copy.deepcopy(hydrated), "hits": copy.deepcopy(hits)}))
|
|
179
|
+
body["hostEligibilityOriginal"] = verdict
|
|
180
|
+
require(isinstance(verdict, dict) and verdict.get("binding") == binding
|
|
181
|
+
and verdict.get("current") is True and verdict.get("permitted") is True
|
|
182
|
+
and _reference(verdict.get("eligibilityReceipt")) and _reference(verdict.get("receiptRef")),
|
|
183
|
+
"QUERY_ELIGIBILITY_UNVERIFIED", "Current owner must bind original query/source/generation/mapping/hits and eligibility receipts")
|
|
184
|
+
envelope.update(hits=hits, mappingReceipt=copy.deepcopy(hydrated["mappingReceipt"]),
|
|
185
|
+
eligibilityReceipt=copy.deepcopy(verdict["eligibilityReceipt"]), receiptRef=copy.deepcopy(verdict["receiptRef"]))
|
|
186
|
+
except BaseException as exc:
|
|
187
|
+
envelope["hits"] = []
|
|
188
|
+
envelope["unresolved"].append({"reason": getattr(exc, "code", "QUERY_OWNER_RECEIVING_FAILURE"), "type": type(exc).__name__})
|
|
189
|
+
propagate_control(exc)
|
|
190
|
+
try:
|
|
191
|
+
supplier._fresh(generation, "graph")
|
|
192
|
+
supplier.read_capture(operation_id)
|
|
193
|
+
require(original_receipt.read_bytes() == receipt_bytes, "ARTIFACT_DRIFT", "Original query receipt changed during receiving")
|
|
194
|
+
except BaseException as exc:
|
|
195
|
+
envelope["hits"] = []
|
|
196
|
+
envelope["receiptRef"] = None
|
|
197
|
+
envelope["unresolved"].append({"reason": getattr(exc, "code", "QUERY_RECEIVING_STALE"), "type": type(exc).__name__})
|
|
198
|
+
propagate_control(exc)
|
|
199
|
+
# Supplemental capture uses existing owned artifact custody and links the
|
|
200
|
+
# original immutable query receipt. It is not a new canonical journal.
|
|
201
|
+
return finish()
|
|
202
|
+
except BaseException as exc:
|
|
203
|
+
if not isinstance(exc, Exception) and not hasattr(exc, "receipt"):
|
|
204
|
+
exc.receipt = copy.deepcopy(body) if body is not None else {"queryOperationId": operation_id, "nativeReplay": False}
|
|
205
|
+
raise
|
|
206
|
+
finally:
|
|
207
|
+
if lease:
|
|
208
|
+
lease.close()
|
|
209
|
+
supplier.lock.release()
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { createComposition, compileRoute, composeEvidence, CompositionFailure } from './composition/index.mjs'
|
|
2
|
+
export { createVanillaCompositionBinding } from './vanilla/composition-binding.mjs'
|
|
3
|
+
export { createVanillaIngestionBridge, createCandidateExtractor, normalizeCandidateJson, readVanillaCapture, VanillaIngestionError } from './vanilla/index.mjs'
|
|
4
|
+
export { normalizeNativeExtraction, createNativeNormalizer, NativeHandoffError } from './vanilla/native-normalization.mjs'
|
|
5
|
+
export { createCompositionJudgmentBinding } from './jev/composition-binding.mjs'
|
|
6
|
+
export { prepareIngestionJudgments } from './jev/judgments.mjs'
|
|
7
|
+
export { createGraphifyCompositionBinding, GraphifyCompositionBindingError } from './graphify/composition-binding.mjs'
|
|
8
|
+
export { createLightRAGCompositionBinding, LightRAGCompositionBindingError } from './lightrag/composition-binding.mjs'
|
|
9
|
+
export { PRESENCE_PROFILES, createQualificationExecutor, validateExecutionPlan, accountComponents, summarizeCohort, amortizedCosts } from './evaluation/index.mjs'
|