@tiinex/core 0.1.1
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/LICENSE +201 -0
- package/NOTICE +31 -0
- package/README.md +45 -0
- package/package.json +176 -0
- package/src/actions/record.actions.js +312 -0
- package/src/adapters/adapter.contracts.js +143 -0
- package/src/adapters/archive/archive.adapter.js +502 -0
- package/src/adapters/archive/archive.portableChangeset.js +141 -0
- package/src/adapters/archive/archive.transport.js +124 -0
- package/src/artifacts/artifact.localDraft.js +27 -0
- package/src/artifacts/artifact.normalize.js +28 -0
- package/src/artifacts/artifact.parse.js +207 -0
- package/src/artifacts/artifact.record.js +83 -0
- package/src/audit/audit.run.js +103 -0
- package/src/audit/audit.summary.js +7 -0
- package/src/diagnostics/sourceBoundary.report.js +112 -0
- package/src/export/package.apply.js +349 -0
- package/src/export/package.builder.js +366 -0
- package/src/export/package.bytes.js +164 -0
- package/src/export/package.controlIntegrity.js +42 -0
- package/src/export/package.controlTopology.js +97 -0
- package/src/export/package.fileMap.js +174 -0
- package/src/export/package.manifest.js +401 -0
- package/src/export/package.preflight.js +204 -0
- package/src/export/package.sourceReference.js +81 -0
- package/src/export/package.workspaceContext.js +144 -0
- package/src/export/package.zip.js +128 -0
- package/src/export/tree.bundle.js +278 -0
- package/src/governance/governance.boundary.js +196 -0
- package/src/integrity/integrity.c14nV2.js +190 -0
- package/src/integrity/integrity.methodReference.js +73 -0
- package/src/integrity/integrity.validate.js +56 -0
- package/src/lineage/lineage.candidateResolution.js +46 -0
- package/src/lineage/lineage.githubIssueComment.js +106 -0
- package/src/lineage/lineage.githubIssueLocal.js +196 -0
- package/src/lineage/lineage.githubIssueTarget.js +89 -0
- package/src/lineage/lineage.integrity.js +133 -0
- package/src/lineage/lineage.materialPreference.js +26 -0
- package/src/lineage/lineage.model.js +63 -0
- package/src/lineage/lineage.parentAuthority.js +5 -0
- package/src/lineage/lineage.parentBinding.js +104 -0
- package/src/lineage/lineage.pathBasis.js +47 -0
- package/src/lineage/lineage.resolve.js +388 -0
- package/src/lineage/lineage.sourceScope.js +74 -0
- package/src/lineage/lineage.targetKeys.js +80 -0
- package/src/lineage/lineage.traverse.js +132 -0
- package/src/public/applicationProjection.js +236 -0
- package/src/public/companionResources.js +246 -0
- package/src/public/index.js +16 -0
- package/src/public/node.js +2 -0
- package/src/public/schemaAncestry.js +26 -0
- package/src/publication/publication.contract.js +196 -0
- package/src/publication/publication.preflight.js +159 -0
- package/src/publication/publication.targetContract.js +241 -0
- package/src/reingest/reingest.plan.js +162 -0
- package/src/release/plan.mjs +28 -0
- package/src/release/policy.mjs +100 -0
- package/src/release/run.mjs +74 -0
- package/src/schemas/capability.registry.js +226 -0
- package/src/schemas/companion.js +245 -0
- package/src/schemas/contracts.js +6 -0
- package/src/schemas/coordination/handoff/tiinex.handoff.v1.schema.js +14 -0
- package/src/schemas/coordination/handoff/tiinex.handoff.v1.schema.json +23 -0
- package/src/schemas/coordination/handoff/tiinex.handoff.v1.schema.runtime.json +4283 -0
- package/src/schemas/coordination/handoff/tiinex.handoff.v1.schema.source.js +9 -0
- package/src/schemas/coordination/project/tiinex.project.v1.schema.js +26 -0
- package/src/schemas/coordination/project/tiinex.project.v1.schema.json +23 -0
- package/src/schemas/coordination/project/tiinex.project.v1.schema.runtime.json +1985 -0
- package/src/schemas/coordination/project/tiinex.project.v1.schema.source.js +9 -0
- package/src/schemas/core/decision/tiinex.decision.v1.schema.js +14 -0
- package/src/schemas/core/decision/tiinex.decision.v1.schema.json +24 -0
- package/src/schemas/core/decision/tiinex.decision.v1.schema.runtime.json +1700 -0
- package/src/schemas/core/decision/tiinex.decision.v1.schema.source.js +9 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.capabilities.js +14 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.en.i18n.json +6 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.findings.js +9 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.presenter.js +1 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.schema.js +32 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.schema.json +24 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.schema.runtime.json +2184 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.schema.source.js +9 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.sv.i18n.json +6 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.transitions.js +1 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.validate.js +10 -0
- package/src/schemas/core/feedback/tiinex.feedback.v1.schema.js +14 -0
- package/src/schemas/core/feedback/tiinex.feedback.v1.schema.json +23 -0
- package/src/schemas/core/feedback/tiinex.feedback.v1.schema.runtime.json +1773 -0
- package/src/schemas/core/feedback/tiinex.feedback.v1.schema.source.js +9 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.capabilities.js +11 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.contract.js +40 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.en.i18n.json +9 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.findings.js +12 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.localMaterialization.js +89 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.presenter.js +8 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.schema.js +34 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.schema.json +23 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.schema.runtime.json +2029 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.schema.source.js +9 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.sv.i18n.json +9 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.transitions.js +1 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.validate.js +25 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.capabilities.js +14 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.en.i18n.json +6 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.findings.js +9 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.presenter.js +1 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.schema.js +31 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.schema.json +23 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.schema.runtime.json +2033 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.schema.source.js +9 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.sv.i18n.json +6 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.transitions.js +1 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.validate.js +10 -0
- package/src/schemas/core/relation/tiinex.relation.v1.capabilities.js +7 -0
- package/src/schemas/core/relation/tiinex.relation.v1.contract.js +3 -0
- package/src/schemas/core/relation/tiinex.relation.v1.en.i18n.json +4 -0
- package/src/schemas/core/relation/tiinex.relation.v1.findings.js +9 -0
- package/src/schemas/core/relation/tiinex.relation.v1.localMaterialization.js +153 -0
- package/src/schemas/core/relation/tiinex.relation.v1.presenter.js +3 -0
- package/src/schemas/core/relation/tiinex.relation.v1.schema.js +20 -0
- package/src/schemas/core/relation/tiinex.relation.v1.schema.json +23 -0
- package/src/schemas/core/relation/tiinex.relation.v1.schema.runtime.json +1668 -0
- package/src/schemas/core/relation/tiinex.relation.v1.schema.source.js +9 -0
- package/src/schemas/core/relation/tiinex.relation.v1.sv.i18n.json +4 -0
- package/src/schemas/core/relation/tiinex.relation.v1.transitions.js +1 -0
- package/src/schemas/core/relation/tiinex.relation.v1.validate.js +36 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.capabilities.js +14 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.contract.js +57 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.en.i18n.json +4 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.findings.js +13 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.presenter.js +3 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.schema.js +20 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.schema.json +24 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.schema.runtime.json +3315 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.schema.source.js +9 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.sv.i18n.json +4 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.transitions.js +1 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.validate.js +78 -0
- package/src/schemas/core/signal/tiinex.signal.v1.schema.js +14 -0
- package/src/schemas/core/signal/tiinex.signal.v1.schema.json +23 -0
- package/src/schemas/core/signal/tiinex.signal.v1.schema.runtime.json +1733 -0
- package/src/schemas/core/signal/tiinex.signal.v1.schema.source.js +9 -0
- package/src/schemas/core/task/tiinex.task.v1.capabilities.js +11 -0
- package/src/schemas/core/task/tiinex.task.v1.contract.js +3 -0
- package/src/schemas/core/task/tiinex.task.v1.en.i18n.json +15 -0
- package/src/schemas/core/task/tiinex.task.v1.findings.js +18 -0
- package/src/schemas/core/task/tiinex.task.v1.localMaterialization.js +148 -0
- package/src/schemas/core/task/tiinex.task.v1.presenter.js +8 -0
- package/src/schemas/core/task/tiinex.task.v1.schema.js +35 -0
- package/src/schemas/core/task/tiinex.task.v1.schema.json +23 -0
- package/src/schemas/core/task/tiinex.task.v1.schema.runtime.json +1708 -0
- package/src/schemas/core/task/tiinex.task.v1.schema.source.js +9 -0
- package/src/schemas/core/task/tiinex.task.v1.sv.i18n.json +15 -0
- package/src/schemas/core/task/tiinex.task.v1.transitions.js +3 -0
- package/src/schemas/core/task/tiinex.task.v1.validate.js +41 -0
- package/src/schemas/core/topic/tiinex.topic.v1.capabilities.js +14 -0
- package/src/schemas/core/topic/tiinex.topic.v1.creation.js +46 -0
- package/src/schemas/core/topic/tiinex.topic.v1.en.i18n.json +8 -0
- package/src/schemas/core/topic/tiinex.topic.v1.findings.js +11 -0
- package/src/schemas/core/topic/tiinex.topic.v1.localMaterialization.js +135 -0
- package/src/schemas/core/topic/tiinex.topic.v1.presenter.js +1 -0
- package/src/schemas/core/topic/tiinex.topic.v1.schema.js +34 -0
- package/src/schemas/core/topic/tiinex.topic.v1.schema.json +23 -0
- package/src/schemas/core/topic/tiinex.topic.v1.schema.runtime.json +1699 -0
- package/src/schemas/core/topic/tiinex.topic.v1.schema.source.js +9 -0
- package/src/schemas/core/topic/tiinex.topic.v1.sv.i18n.json +8 -0
- package/src/schemas/core/topic/tiinex.topic.v1.transitions.js +31 -0
- package/src/schemas/core/topic/tiinex.topic.v1.validate.js +11 -0
- package/src/schemas/creation.capability.js +289 -0
- package/src/schemas/creation.contracts.js +334 -0
- package/src/schemas/creation.executionSnapshot.js +79 -0
- package/src/schemas/creation.factoryQualification.js +73 -0
- package/src/schemas/creation.renderer.js +244 -0
- package/src/schemas/creation.representation.js +279 -0
- package/src/schemas/creation.rootMetadata.js +6 -0
- package/src/schemas/creation.schemaReferences.js +65 -0
- package/src/schemas/discovery/finding/tiinex.discovery.finding.v1.schema.js +14 -0
- package/src/schemas/discovery/finding/tiinex.discovery.finding.v1.schema.json +23 -0
- package/src/schemas/discovery/finding/tiinex.discovery.finding.v1.schema.runtime.json +1873 -0
- package/src/schemas/discovery/finding/tiinex.discovery.finding.v1.schema.source.js +9 -0
- package/src/schemas/discovery/tiinex.discovery.v1.schema.js +14 -0
- package/src/schemas/discovery/tiinex.discovery.v1.schema.json +23 -0
- package/src/schemas/discovery/tiinex.discovery.v1.schema.runtime.json +1839 -0
- package/src/schemas/discovery/tiinex.discovery.v1.schema.source.js +9 -0
- package/src/schemas/generic.artifact.module.js +25 -0
- package/src/schemas/party/organization/tiinex.party.organization.v1.schema.js +26 -0
- package/src/schemas/party/organization/tiinex.party.organization.v1.schema.json +23 -0
- package/src/schemas/party/organization/tiinex.party.organization.v1.schema.runtime.json +2249 -0
- package/src/schemas/party/organization/tiinex.party.organization.v1.schema.source.js +9 -0
- package/src/schemas/party/role/tiinex.party.role.v1.schema.js +26 -0
- package/src/schemas/party/role/tiinex.party.role.v1.schema.json +24 -0
- package/src/schemas/party/role/tiinex.party.role.v1.schema.runtime.json +2091 -0
- package/src/schemas/party/role/tiinex.party.role.v1.schema.source.js +9 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.capabilities.js +14 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.en.i18n.json +4 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.findings.js +1 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.presenter.js +1 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.schema.js +29 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.schema.json +21 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.schema.runtime.json +2180 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.schema.source.js +9 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.sv.i18n.json +4 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.transitions.js +1 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.validate.js +1 -0
- package/src/schemas/reduction/tiinex.reduction.v1.schema.js +26 -0
- package/src/schemas/reduction/tiinex.reduction.v1.schema.json +23 -0
- package/src/schemas/reduction/tiinex.reduction.v1.schema.runtime.json +1733 -0
- package/src/schemas/reduction/tiinex.reduction.v1.schema.source.js +9 -0
- package/src/schemas/reference.shapes.js +33 -0
- package/src/schemas/registry.js +36 -0
- package/src/schemas/resolver.js +13 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.capabilities.js +14 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.en.i18n.json +4 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.findings.js +1 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.presenter.js +1 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.schema.js +29 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.schema.json +21 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.schema.runtime.json +2093 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.schema.source.js +9 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.sv.i18n.json +4 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.transitions.js +1 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.validate.js +1 -0
- package/src/schemas/schema.factory.descriptor.js +104 -0
- package/src/schemas/schema.githubSourceTarget.js +131 -0
- package/src/schemas/schema.identity.js +10 -0
- package/src/schemas/schema.reference.js +133 -0
- package/src/schemas/schema.source.js +239 -0
- package/src/schemas/tiinex.root.v1.capabilities.js +14 -0
- package/src/schemas/tiinex.root.v1.classify.js +55 -0
- package/src/schemas/tiinex.root.v1.en.i18n.json +24 -0
- package/src/schemas/tiinex.root.v1.fallback.js +84 -0
- package/src/schemas/tiinex.root.v1.findings.js +19 -0
- package/src/schemas/tiinex.root.v1.presenter.js +5 -0
- package/src/schemas/tiinex.root.v1.schema.js +29 -0
- package/src/schemas/tiinex.root.v1.schema.json +24 -0
- package/src/schemas/tiinex.root.v1.schema.runtime.json +1574 -0
- package/src/schemas/tiinex.root.v1.schema.source.js +9 -0
- package/src/schemas/tiinex.root.v1.sv.i18n.json +24 -0
- package/src/schemas/tiinex.root.v1.transitions.js +1 -0
- package/src/schemas/tiinex.root.v1.validate.js +36 -0
- package/src/schemas/validation/finding/tiinex.validation.finding.v1.schema.js +14 -0
- package/src/schemas/validation/finding/tiinex.validation.finding.v1.schema.json +23 -0
- package/src/schemas/validation/finding/tiinex.validation.finding.v1.schema.runtime.json +2027 -0
- package/src/schemas/validation/finding/tiinex.validation.finding.v1.schema.source.js +9 -0
- package/src/schemas/validation/method/tiinex.validation.method.v1.schema.js +14 -0
- package/src/schemas/validation/method/tiinex.validation.method.v1.schema.json +23 -0
- package/src/schemas/validation/method/tiinex.validation.method.v1.schema.runtime.json +1848 -0
- package/src/schemas/validation/method/tiinex.validation.method.v1.schema.source.js +9 -0
- package/src/schemas/validation/report/tiinex.validation.report.v1.schema.js +14 -0
- package/src/schemas/validation/report/tiinex.validation.report.v1.schema.json +23 -0
- package/src/schemas/validation/report/tiinex.validation.report.v1.schema.runtime.json +2015 -0
- package/src/schemas/validation/report/tiinex.validation.report.v1.schema.source.js +9 -0
- package/src/schemas/workspace/tiinex.workspace.v1.capabilities.js +12 -0
- package/src/schemas/workspace/tiinex.workspace.v1.en.i18n.json +7 -0
- package/src/schemas/workspace/tiinex.workspace.v1.findings.js +5 -0
- package/src/schemas/workspace/tiinex.workspace.v1.presenter.js +27 -0
- package/src/schemas/workspace/tiinex.workspace.v1.schema.js +30 -0
- package/src/schemas/workspace/tiinex.workspace.v1.schema.json +23 -0
- package/src/schemas/workspace/tiinex.workspace.v1.schema.runtime.json +1596 -0
- package/src/schemas/workspace/tiinex.workspace.v1.schema.source.js +9 -0
- package/src/schemas/workspace/tiinex.workspace.v1.sv.i18n.json +7 -0
- package/src/schemas/workspace/tiinex.workspace.v1.transitions.js +10 -0
- package/src/schemas/workspace/tiinex.workspace.v1.validate.js +10 -0
- package/src/sources/github/github.issueTarget.js +127 -0
- package/src/sources/origin.references.js +249 -0
- package/src/sources/source.explicitTargets.js +49 -0
- package/src/sources/transport.levels.js +107 -0
- package/src/tooling/portable/adapters/cli/cli.cold-start-input.js +34 -0
- package/src/tooling/portable/adapters/cli/cli.command-input.js +455 -0
- package/src/tooling/portable/adapters/cli/cli.common-author.js +249 -0
- package/src/tooling/portable/adapters/cli/cli.common-output.js +330 -0
- package/src/tooling/portable/adapters/cli/cli.editor-assistance.js +13 -0
- package/src/tooling/portable/adapters/cli/cli.ground-materialize.js +96 -0
- package/src/tooling/portable/adapters/cli/cli.ground-recovery.js +99 -0
- package/src/tooling/portable/adapters/cli/cli.handoff-manufacture.js +345 -0
- package/src/tooling/portable/adapters/cli/cli.handoff-sibling-allocation.js +31 -0
- package/src/tooling/portable/adapters/cli/cli.help.js +80 -0
- package/src/tooling/portable/adapters/cli/cli.land.js +13 -0
- package/src/tooling/portable/adapters/cli/cli.local-output.js +72 -0
- package/src/tooling/portable/adapters/cli/cli.material-policy.js +6 -0
- package/src/tooling/portable/adapters/cli/cli.operator-bridge.js +18 -0
- package/src/tooling/portable/adapters/cli/cli.reduction-input.js +14 -0
- package/src/tooling/portable/adapters/cli/cli.run.js +434 -0
- package/src/tooling/portable/adapters/llm/llm.entrypoint.js +34 -0
- package/src/tooling/portable/adapters/node/checkpoint.verify.js +267 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.bootstrap.js +109 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.enumeration.js +94 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.js +193 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.multiRoot.js +49 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.packageParent.js +130 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.requirements.js +353 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.scope.js +147 -0
- package/src/tooling/portable/adapters/node/workspaceCarrier.manufacture.js +62 -0
- package/src/tooling/portable/assets/asset.operations.js +170 -0
- package/src/tooling/portable/audit/audit.capability.js +119 -0
- package/src/tooling/portable/bootstrap/artifact.result.selfverify.mjs +109 -0
- package/src/tooling/portable/bootstrap/bootstrap.case.mjs +43 -0
- package/src/tooling/portable/bootstrap/tiinex.llm.bootstrap.md +814 -0
- package/src/tooling/portable/bootstrap/tiinex.llm.bootstrap.pointer.json +25 -0
- package/src/tooling/portable/checkpoint/portable.checkpoint.js +89 -0
- package/src/tooling/portable/conformance/checkpoint.qualification.js +271 -0
- package/src/tooling/portable/draft/draft.create.js +389 -0
- package/src/tooling/portable/draft/draft.crud.js +175 -0
- package/src/tooling/portable/draft/draft.exact.js +173 -0
- package/src/tooling/portable/draft/draft.operations.js +265 -0
- package/src/tooling/portable/draft/draft.qualification.js +45 -0
- package/src/tooling/portable/draft/draft.set.js +193 -0
- package/src/tooling/portable/draft/draft.validation-context.js +7 -0
- package/src/tooling/portable/editor/authoring.parent.js +37 -0
- package/src/tooling/portable/editor/editor.assistance.js +221 -0
- package/src/tooling/portable/editor/staged.validation.js +96 -0
- package/src/tooling/portable/engine.facade.js +468 -0
- package/src/tooling/portable/findings.js +92 -0
- package/src/tooling/portable/grounding/grounding.capsule.js +128 -0
- package/src/tooling/portable/grounding/grounding.continuity.js +283 -0
- package/src/tooling/portable/grounding/grounding.participantAuthority.js +20 -0
- package/src/tooling/portable/grounding/grounding.planningContext.js +34 -0
- package/src/tooling/portable/grounding/grounding.readiness.authority.js +17 -0
- package/src/tooling/portable/grounding/grounding.readiness.js +316 -0
- package/src/tooling/portable/grounding/grounding.readiness.support.js +245 -0
- package/src/tooling/portable/grounding/grounding.sourceEvidence.js +71 -0
- package/src/tooling/portable/grounding/grounding.workContext.js +72 -0
- package/src/tooling/portable/grounding/grounding.workProvenance.js +153 -0
- package/src/tooling/portable/handoff/carrierLineage.js +214 -0
- package/src/tooling/portable/handoff/carrierProfile.js +54 -0
- package/src/tooling/portable/handoff/carrierProjection.js +193 -0
- package/src/tooling/portable/handoff/carrierProjection.routeQualification.js +228 -0
- package/src/tooling/portable/handoff/carrierProjection.shared.js +7 -0
- package/src/tooling/portable/handoff/carrierProjection.workspaces.js +54 -0
- package/src/tooling/portable/handoff/coldConsumerEntrypoint.js +185 -0
- package/src/tooling/portable/handoff/coldStartQualification.contract.js +184 -0
- package/src/tooling/portable/handoff/coldStartQualification.grounding.js +392 -0
- package/src/tooling/portable/handoff/coldStartQualification.js +22 -0
- package/src/tooling/portable/handoff/coldStartQualification.materials.js +364 -0
- package/src/tooling/portable/handoff/coldStartQualification.observation.js +220 -0
- package/src/tooling/portable/handoff/coldStartQualification.run.js +81 -0
- package/src/tooling/portable/handoff/coldStartQualification.shared.js +57 -0
- package/src/tooling/portable/handoff/coldStartRolePointers.js +39 -0
- package/src/tooling/portable/handoff/contextAudit.js +247 -0
- package/src/tooling/portable/handoff/contracts/tiinex.handoff.package.v1.schema.md +409 -0
- package/src/tooling/portable/handoff/handoffAuthoringPlan.js +35 -0
- package/src/tooling/portable/handoff/handoffEndpointProjection.js +61 -0
- package/src/tooling/portable/handoff/handoffLeafProjection.js +91 -0
- package/src/tooling/portable/handoff/humanOutputPresentation.js +21 -0
- package/src/tooling/portable/handoff/manufacture.js +84 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.binding.js +72 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.direct.js +160 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.indexes.js +36 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.js +247 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.projectionProvider.js +44 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.workspace.js +226 -0
- package/src/tooling/portable/handoff/materialClosure.descriptor.js +169 -0
- package/src/tooling/portable/handoff/materialClosure.inputBinding.js +372 -0
- package/src/tooling/portable/handoff/materialClosure.inputBinding.support.js +62 -0
- package/src/tooling/portable/handoff/materialClosure.materialized.js +143 -0
- package/src/tooling/portable/handoff/materialClosure.materials.js +116 -0
- package/src/tooling/portable/handoff/materialClosure.package.js +181 -0
- package/src/tooling/portable/handoff/materialClosure.plan.js +204 -0
- package/src/tooling/portable/handoff/materialClosure.readiness.js +36 -0
- package/src/tooling/portable/handoff/materialClosure.requirements.js +137 -0
- package/src/tooling/portable/handoff/operatorContextProjection.js +105 -0
- package/src/tooling/portable/handoff/pointerEntrypoint.js +138 -0
- package/src/tooling/portable/handoff/qualifiedHandoffFixture.js +34 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.build.js +321 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.closure.js +126 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.inspect.js +194 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.materials.js +207 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.projection.js +69 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.roles.js +166 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.routes.js +113 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.shared.js +87 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.workspaces.js +160 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirstPhase1.js +44 -0
- package/src/tooling/portable/handoff/recipientV2.artifactInspection.js +55 -0
- package/src/tooling/portable/handoff/recipientV2.artifacts.js +174 -0
- package/src/tooling/portable/handoff/recipientV2.coldProjection.js +24 -0
- package/src/tooling/portable/handoff/recipientV2.delivery.js +48 -0
- package/src/tooling/portable/handoff/recipientV2.endpointRolePointers.js +179 -0
- package/src/tooling/portable/handoff/recipientV2.entryContract.js +28 -0
- package/src/tooling/portable/handoff/recipientV2.humanOutput.js +78 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.helpers.js +218 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.js +194 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.pathToken.js +9 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.projection.js +58 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.workspaces.js +177 -0
- package/src/tooling/portable/handoff/recipientV2.lineage.js +142 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.build.js +147 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.constants.js +4 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.contract.js +101 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.inspect.helpers.js +126 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.inspect.js +185 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.js +12 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.shared.js +24 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.workspaceProjection.js +22 -0
- package/src/tooling/portable/handoff/recipientV2.pointer.js +40 -0
- package/src/tooling/portable/handoff/recipientV2.routeSelection.js +16 -0
- package/src/tooling/portable/handoff/recipientV2.topology.helpers.js +20 -0
- package/src/tooling/portable/handoff/recipientV2.topology.js +320 -0
- package/src/tooling/portable/handoff/recipientV2.topology.materials.js +70 -0
- package/src/tooling/portable/handoff/recipientV2.topology.workspaces.js +193 -0
- package/src/tooling/portable/handoff/recipientV2.transportManifest.js +123 -0
- package/src/tooling/portable/handoff/recipientV2.workspaceRepresentation.js +163 -0
- package/src/tooling/portable/handoff/routeArtifactConformance.js +130 -0
- package/src/tooling/portable/handoff/toolingBootstrap.js +67 -0
- package/src/tooling/portable/handoff/transportCompanion.js +175 -0
- package/src/tooling/portable/handoff/workspaceByteProvider.archive.js +95 -0
- package/src/tooling/portable/handoff/workspaceByteProvider.js +271 -0
- package/src/tooling/portable/handoff/workspaceCarrier.manufacture.js +93 -0
- package/src/tooling/portable/handoff/workspaceLandingPlan.js +142 -0
- package/src/tooling/portable/handoff/workspacePackageSources.js +105 -0
- package/src/tooling/portable/handoff/workspaceQualifiedReference.js +10 -0
- package/src/tooling/portable/handoff/workspaceSourceIdentity.js +52 -0
- package/src/tooling/portable/handoff/workspaceTargetConformance.js +134 -0
- package/src/tooling/portable/host/host.capabilities.js +181 -0
- package/src/tooling/portable/host/tool.bindings.js +357 -0
- package/src/tooling/portable/host/tool.receiptNormalization.js +141 -0
- package/src/tooling/portable/index.js +52 -0
- package/src/tooling/portable/input/node.input.js +184 -0
- package/src/tooling/portable/input/portable.input.js +249 -0
- package/src/tooling/portable/lifecycle/lifecycle.action.js +11 -0
- package/src/tooling/portable/lifecycle/lifecycle.material.js +173 -0
- package/src/tooling/portable/lifecycle/lifecycle.operations.js +34 -0
- package/src/tooling/portable/lifecycle/lifecycle.readiness.js +247 -0
- package/src/tooling/portable/lineage/lineage.integrity.apply.audit.js +22 -0
- package/src/tooling/portable/lineage/lineage.integrity.apply.evidence.js +36 -0
- package/src/tooling/portable/lineage/lineage.integrity.apply.js +306 -0
- package/src/tooling/portable/lineage/lineage.integrity.apply.structure.js +178 -0
- package/src/tooling/portable/lineage/lineage.integrity.plan.js +377 -0
- package/src/tooling/portable/lineage/lineage.integrity.projection.human.js +82 -0
- package/src/tooling/portable/lineage/lineage.integrity.projection.js +349 -0
- package/src/tooling/portable/lineage/lineage.operations.js +32 -0
- package/src/tooling/portable/lineage/lineage.print.js +398 -0
- package/src/tooling/portable/lineage/lineage.print.render.js +88 -0
- package/src/tooling/portable/lineage/lineage.print.utils.js +58 -0
- package/src/tooling/portable/lineage/lineage.publicationProviderReceipts.js +141 -0
- package/src/tooling/portable/lineage/lineage.publicationQualification.js +183 -0
- package/src/tooling/portable/lineage/lineage.search.js +301 -0
- package/src/tooling/portable/live/live.artifact.js +192 -0
- package/src/tooling/portable/live/live.export.js +107 -0
- package/src/tooling/portable/live/live.lineage.closure.js +71 -0
- package/src/tooling/portable/live/live.lineage.js +338 -0
- package/src/tooling/portable/live/live.protocol.js +181 -0
- package/src/tooling/portable/materialization/durable.materialize.js +162 -0
- package/src/tooling/portable/materialization/epistemic.plan.js +239 -0
- package/src/tooling/portable/materialization/loaded.parent.js +54 -0
- package/src/tooling/portable/materialization/materialization.facade.js +30 -0
- package/src/tooling/portable/operation.catalog.js +393 -0
- package/src/tooling/portable/operation.catalog.package.js +183 -0
- package/src/tooling/portable/operation.result.js +25 -0
- package/src/tooling/portable/orchestration/task.prepare.js +191 -0
- package/src/tooling/portable/output/artifact.result.package.js +308 -0
- package/src/tooling/portable/output/deterministic.zip.js +88 -0
- package/src/tooling/portable/output/node.artifact-set.js +223 -0
- package/src/tooling/portable/output/node.draft.js +41 -0
- package/src/tooling/portable/output/node.zip.js +39 -0
- package/src/tooling/portable/output/recipientV2.zip.js +59 -0
- package/src/tooling/portable/overview/blockingCue.js +16 -0
- package/src/tooling/portable/overview/operatingOverview.js +413 -0
- package/src/tooling/portable/package/generation.binding.js +314 -0
- package/src/tooling/portable/package/generation.binding.projection.js +128 -0
- package/src/tooling/portable/package/material.graph.js +236 -0
- package/src/tooling/portable/package/runtime.package.js +321 -0
- package/src/tooling/portable/package/schema.transition.companion.js +196 -0
- package/src/tooling/portable/package/semantic.package.graph.js +272 -0
- package/src/tooling/portable/package/semantic.package.js +203 -0
- package/src/tooling/portable/package/semantic.package.schema-resolution.js +158 -0
- package/src/tooling/portable/package/semantic.package.transition-registry.js +189 -0
- package/src/tooling/portable/package/semantic.package.types.js +18 -0
- package/src/tooling/portable/providers/schema.bootstrap.provenance.js +10 -0
- package/src/tooling/portable/providers/schema.provider.qualification.js +52 -0
- package/src/tooling/portable/providers/schema.providers.js +458 -0
- package/src/tooling/portable/publication/runtime.publication.js +53 -0
- package/src/tooling/portable/qualification.js +150 -0
- package/src/tooling/portable/reduction/reduction.composition.js +229 -0
- package/src/tooling/portable/reduction/reduction.eligibility.helpers.js +258 -0
- package/src/tooling/portable/reduction/reduction.eligibility.js +191 -0
- package/src/tooling/portable/reduction/reduction.operations.js +30 -0
- package/src/tooling/portable/reduction/reduction.preflight.js +85 -0
- package/src/tooling/portable/reduction/reduction.shared.js +173 -0
- package/src/tooling/portable/schema/bootstrap/canonical.pack.js +24 -0
- package/src/tooling/portable/schema/bootstrap/docs-3988951208eb9a8926e84ab42625d4b42fa00c2d/party/role/tiinex.party.role.v1.schema.md +289 -0
- package/src/tooling/portable/schema/bootstrap/docs-3988951208eb9a8926e84ab42625d4b42fa00c2d/validation/report/tiinex.validation.report.v1.schema.md +300 -0
- package/src/tooling/portable/schema/bootstrap/qualified-local-root/tiinex.root.v1.runtime-projection.json +48 -0
- package/src/tooling/portable/schema/bootstrap/qualified-local-root/tiinex.root.v1.schema.md +865 -0
- package/src/tooling/portable/schema/contract.compile.js +406 -0
- package/src/tooling/portable/schema/contract.compile.utils.js +9 -0
- package/src/tooling/portable/schema/contract.constraints.js +117 -0
- package/src/tooling/portable/schema/contract.envelope.validate.js +177 -0
- package/src/tooling/portable/schema/contract.field-domain.compile.js +399 -0
- package/src/tooling/portable/schema/contract.field-domain.js +247 -0
- package/src/tooling/portable/schema/contract.field-shape.compile.js +34 -0
- package/src/tooling/portable/schema/contract.inheritance.inline.js +103 -0
- package/src/tooling/portable/schema/contract.inheritance.js +210 -0
- package/src/tooling/portable/schema/contract.inheritance.record.js +76 -0
- package/src/tooling/portable/schema/contract.machine-shape.js +309 -0
- package/src/tooling/portable/schema/contract.project.js +81 -0
- package/src/tooling/portable/schema/contract.semantic-resolution.js +82 -0
- package/src/tooling/portable/schema/contract.validate.js +0 -0
- package/src/tooling/portable/schema/lexical.shape.v1.js +338 -0
- package/src/tooling/portable/schema/llm.companion.js +108 -0
- package/src/tooling/portable/schema/named.declarations.js +162 -0
- package/src/tooling/portable/schema/ordinary.contract.js +193 -0
- package/src/tooling/portable/schema/ordinary.fields.js +205 -0
- package/src/tooling/portable/schema/qualifiedLocalRoot.projection.js +70 -0
- package/src/tooling/portable/schema/qualifiedLocalRoot.runtime.js +170 -0
- package/src/tooling/portable/schema/schema.contract.js +465 -0
- package/src/tooling/portable/schema/schema.guide.js +326 -0
- package/src/tooling/portable/schema/schema.snapshot.js +119 -0
- package/src/tooling/portable/session/portable.session.js +145 -0
- package/src/tooling/portable/transfer/transfer.plan.js +102 -0
- package/src/transitions/record.transitions.js +484 -0
- package/src/transitions/transition.validate.js +129 -0
- package/src/validation/findings.js +76 -0
- package/src/validation/validateArtifact.js +216 -0
- package/src/workspaces/workspace.entrypointCapability.js +44 -0
- package/src/workspaces/workspace.materialRole.js +242 -0
- package/src/workspaces/workspace.recordPaths.js +426 -0
- package/tools/tiinex-portable.mjs +6 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { runAudit } from '../../../audit/audit.run.js';
|
|
2
|
+
import { parseArtifactMarkdown } from '../../../artifacts/artifact.parse.js';
|
|
3
|
+
import { normalizePortableInput } from '../input/portable.input.js';
|
|
4
|
+
import { portableFinding } from '../findings.js';
|
|
5
|
+
import { portableRuntimeValidationContractForSchema } from '../schema/qualifiedLocalRoot.runtime.js';
|
|
6
|
+
import { hasPositiveBlockingCue } from './blockingCue.js';
|
|
7
|
+
|
|
8
|
+
export const PORTABLE_OPERATING_OVERVIEW_SCHEMA_ID = 'tiinex.portable.operating-overview.v1';
|
|
9
|
+
|
|
10
|
+
const SCHEMA = Object.freeze({
|
|
11
|
+
project: 'tiinex.project.v1',
|
|
12
|
+
task: 'tiinex.task.v1',
|
|
13
|
+
resourceNeed: 'tiinex.resource.need.v1',
|
|
14
|
+
resource: 'tiinex.resource.v1',
|
|
15
|
+
signal: 'tiinex.signal.v1',
|
|
16
|
+
monitoring: 'tiinex.discovery.monitoring.v1',
|
|
17
|
+
source: 'tiinex.source.v1',
|
|
18
|
+
relation: 'tiinex.relation.v1',
|
|
19
|
+
workspace: 'tiinex.workspace.v1'
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const TERMINAL_STATUS = /(?:^|[\s/_-])(completed?|done|closed|cancelled|canceled|superseded|rejected|abandoned)(?:$|[\s/_-])/i;
|
|
23
|
+
const CURRENT_STATUS = /(?:^|[\s/_-])(active|in[ -]?progress|open|ready|blocked|blocking|pending|draft)(?:$|[\s/_-])/i;
|
|
24
|
+
const BLOCKER_TEXT = /\b(block(?:ed|er|ing)?|unavailable|missing|insufficient|waiting)\b/i;
|
|
25
|
+
|
|
26
|
+
export function projectPortableOperatingOverview(input = {}, options = {}) {
|
|
27
|
+
const material = normalizePortableInput(input.materials || input);
|
|
28
|
+
const qualifications = new Map(material.records.map((record) => [record.id, qualifyRecord(record)]));
|
|
29
|
+
const findings = [...material.findings];
|
|
30
|
+
|
|
31
|
+
const projects = material.records
|
|
32
|
+
.filter((record) => record.schemaId === SCHEMA.project)
|
|
33
|
+
.map((record) => overviewItem(record, qualifications.get(record.id)));
|
|
34
|
+
|
|
35
|
+
const taskRecords = material.records.filter((record) => record.schemaId === SCHEMA.task);
|
|
36
|
+
const frontierCandidates = [];
|
|
37
|
+
let deferredFrontierCandidates = 0;
|
|
38
|
+
for (const record of taskRecords) {
|
|
39
|
+
if (!isDeclaredCurrent(record.lifecycleStatus)) continue;
|
|
40
|
+
const qualification = qualifications.get(record.id);
|
|
41
|
+
if (qualification?.state !== 'exact') {
|
|
42
|
+
deferredFrontierCandidates += 1;
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
const objective = sectionText(record.markdown, 'Objective');
|
|
46
|
+
if (!objective) continue;
|
|
47
|
+
frontierCandidates.push(Object.freeze({
|
|
48
|
+
...overviewItem(record, qualification),
|
|
49
|
+
objective,
|
|
50
|
+
dependencies: sectionList(record.markdown, 'Dependencies'),
|
|
51
|
+
basis: Object.freeze({
|
|
52
|
+
kind: 'task-declared-nonterminal-status',
|
|
53
|
+
declaredStatus: String(record.lifecycleStatus || ''),
|
|
54
|
+
lineageLeafUsed: false,
|
|
55
|
+
taskLifecycleIsLineagePosition: false,
|
|
56
|
+
interpretation: 'candidate-only; current workflow truth remains with the owning Task and its declared dependencies/status'
|
|
57
|
+
})
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const blockerSignals = taskRecords.flatMap((record) => taskBlockerSignals(record, qualifications.get(record.id)));
|
|
62
|
+
const resourceSignals = material.records
|
|
63
|
+
.filter((record) => [SCHEMA.resourceNeed, SCHEMA.resource, SCHEMA.signal].includes(record.schemaId))
|
|
64
|
+
.map((record) => Object.freeze({
|
|
65
|
+
...overviewItem(record, qualifications.get(record.id)),
|
|
66
|
+
kind: record.schemaId === SCHEMA.resourceNeed ? 'resource-need' : record.schemaId === SCHEMA.resource ? 'resource' : 'signal',
|
|
67
|
+
blockingCue: BLOCKER_TEXT.test(`${record.lifecycleStatus || ''}\n${record.summary || ''}\n${record.markdown || ''}`)
|
|
68
|
+
}));
|
|
69
|
+
|
|
70
|
+
const monitoringRecords = material.records.filter((record) => record.schemaId === SCHEMA.monitoring);
|
|
71
|
+
const sourceRecords = material.records.filter((record) => record.schemaId === SCHEMA.source);
|
|
72
|
+
const relationRecords = material.records.filter((record) => record.schemaId === SCHEMA.relation);
|
|
73
|
+
const workspaceRecords = material.records.filter((record) => record.schemaId === SCHEMA.workspace);
|
|
74
|
+
const relevanceEdges = relationRecords.flatMap((record) => projectLoadedRelationRelevance(record, material.records, qualifications));
|
|
75
|
+
|
|
76
|
+
if (deferredFrontierCandidates) findings.push(portableFinding(
|
|
77
|
+
'info',
|
|
78
|
+
'portable.operating-overview.frontier.partial-qualification',
|
|
79
|
+
'Some declared-current Task records were not promoted to qualified frontier candidates because exact local schema qualification was unavailable.',
|
|
80
|
+
{ count: deferredFrontierCandidates }
|
|
81
|
+
));
|
|
82
|
+
|
|
83
|
+
return Object.freeze({
|
|
84
|
+
schema: PORTABLE_OPERATING_OVERVIEW_SCHEMA_ID,
|
|
85
|
+
status: 'ready',
|
|
86
|
+
boundary: Object.freeze({
|
|
87
|
+
material: 'loaded-only',
|
|
88
|
+
remoteFetch: false,
|
|
89
|
+
remoteWrite: false,
|
|
90
|
+
semanticAuthority: 'projection-only',
|
|
91
|
+
owningArtifactsRemainAuthoritative: true,
|
|
92
|
+
lineageLeafMeansFrontier: false,
|
|
93
|
+
taskLifecycleIsLineagePosition: false,
|
|
94
|
+
inferredRemoteState: false
|
|
95
|
+
}),
|
|
96
|
+
projects: Object.freeze(projects),
|
|
97
|
+
frontierCandidates: Object.freeze(frontierCandidates),
|
|
98
|
+
blockerSignals: Object.freeze(blockerSignals),
|
|
99
|
+
resourceSignals: Object.freeze(resourceSignals),
|
|
100
|
+
monitoring: Object.freeze({
|
|
101
|
+
state: monitoringRecords.length || sourceRecords.length ? 'loaded-declarations-only' : 'unavailable-no-loaded-monitoring-or-source-material',
|
|
102
|
+
loadedMonitoring: monitoringRecords.length,
|
|
103
|
+
loadedSources: sourceRecords.length,
|
|
104
|
+
monitoring: Object.freeze(monitoringRecords.map((record) => overviewItem(record, qualifications.get(record.id)))),
|
|
105
|
+
sources: Object.freeze(sourceRecords.map((record) => overviewItem(record, qualifications.get(record.id)))),
|
|
106
|
+
freshnessProjection: 'deferred-no-dedicated-freshness-derivation',
|
|
107
|
+
boundary: 'Monitoring and Source declarations can be surfaced when loaded, but freshness is not inferred from host time, network state, or undeclared observations.'
|
|
108
|
+
}),
|
|
109
|
+
crossRepository: Object.freeze({
|
|
110
|
+
state: relationRecords.length || workspaceRecords.length ? 'loaded-relevance-only' : 'unavailable-no-loaded-relation-or-workspace-material',
|
|
111
|
+
loadedRelations: relationRecords.length,
|
|
112
|
+
loadedWorkspaces: workspaceRecords.length,
|
|
113
|
+
relations: Object.freeze(relationRecords.map((record) => overviewItem(record, qualifications.get(record.id)))),
|
|
114
|
+
workspaces: Object.freeze(workspaceRecords.map((record) => overviewItem(record, qualifications.get(record.id)))),
|
|
115
|
+
relevanceEdges: Object.freeze(relevanceEdges),
|
|
116
|
+
relevance: Object.freeze({
|
|
117
|
+
resolved: relevanceEdges.filter((edge) => edge.resolution.state === 'resolved').length,
|
|
118
|
+
ambiguous: relevanceEdges.filter((edge) => edge.resolution.state === 'ambiguous').length,
|
|
119
|
+
unresolved: relevanceEdges.filter((edge) => edge.resolution.state === 'unresolved').length
|
|
120
|
+
}),
|
|
121
|
+
remoteTraversal: false,
|
|
122
|
+
boundary: 'Only already-loaded Relation and Workspace declarations are projected. Relation relevance may resolve only from explicit Relation targets plus exact already-loaded record/source facts; ambiguity remains visible and no repository crawl, remote fetch, hidden provider traversal, basename matching, similarity matching, or lifecycle inference is performed.'
|
|
123
|
+
}),
|
|
124
|
+
capabilities: Object.freeze({
|
|
125
|
+
projectInventory: 'ready',
|
|
126
|
+
qualifiedFrontierCandidates: 'ready',
|
|
127
|
+
blockerAndResourceSignals: 'ready',
|
|
128
|
+
firstLoadedMaterialSlice: 'ready',
|
|
129
|
+
loadedRelationRelevance: 'ready',
|
|
130
|
+
monitoringFreshness: 'deferred',
|
|
131
|
+
crossRepositoryTraversal: 'deferred'
|
|
132
|
+
}),
|
|
133
|
+
counts: Object.freeze({
|
|
134
|
+
loadedRecords: material.records.length,
|
|
135
|
+
projects: projects.length,
|
|
136
|
+
qualifiedFrontierCandidates: frontierCandidates.length,
|
|
137
|
+
deferredFrontierCandidates,
|
|
138
|
+
blockerSignals: blockerSignals.length,
|
|
139
|
+
resourceSignals: resourceSignals.length,
|
|
140
|
+
relationRelevanceEdges: relevanceEdges.length
|
|
141
|
+
}),
|
|
142
|
+
findings: Object.freeze(findings)
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function projectLoadedRelationRelevance(relationRecord = {}, records = [], qualifications = new Map()) {
|
|
147
|
+
const relationQualification = qualifications.get(relationRecord.id) || Object.freeze({ state: 'not-evaluated' });
|
|
148
|
+
const relation = overviewItem(relationRecord, relationQualification);
|
|
149
|
+
return relationTargetDescriptors(relationRecord).map((descriptor) => {
|
|
150
|
+
const matches = loadedTargetMatches(descriptor, relationRecord, records, qualifications);
|
|
151
|
+
const exactQualified = matches.filter((candidate) => candidate.qualification?.state === 'exact');
|
|
152
|
+
let state = 'unresolved';
|
|
153
|
+
let reason = 'no-exact-loaded-target-match';
|
|
154
|
+
let target = null;
|
|
155
|
+
if (relationQualification.state !== 'exact') {
|
|
156
|
+
reason = 'relation-not-exact-qualified';
|
|
157
|
+
} else if (matches.length > 1) {
|
|
158
|
+
state = 'ambiguous';
|
|
159
|
+
reason = 'multiple-exact-identity-candidates';
|
|
160
|
+
} else if (matches.length === 1 && exactQualified.length === 1) {
|
|
161
|
+
state = 'resolved';
|
|
162
|
+
reason = 'unique-exact-loaded-target-match';
|
|
163
|
+
target = matches[0];
|
|
164
|
+
} else if (matches.length === 1) {
|
|
165
|
+
reason = 'unique-identity-candidate-not-exact-qualified';
|
|
166
|
+
} else if (descriptor.kind === 'bounded-descriptor') {
|
|
167
|
+
reason = 'target-is-not-an-exact-loaded-artifact-locator';
|
|
168
|
+
}
|
|
169
|
+
const candidates = Object.freeze(matches);
|
|
170
|
+
return Object.freeze({
|
|
171
|
+
relation,
|
|
172
|
+
targetDescriptor: descriptor,
|
|
173
|
+
resolution: Object.freeze({
|
|
174
|
+
state,
|
|
175
|
+
reason,
|
|
176
|
+
candidateCount: matches.length,
|
|
177
|
+
exactQualifiedCandidateCount: exactQualified.length,
|
|
178
|
+
exactIdentityOnly: true,
|
|
179
|
+
remoteTraversal: false,
|
|
180
|
+
heuristicMatching: false,
|
|
181
|
+
lifecycleInference: false,
|
|
182
|
+
parentInference: false
|
|
183
|
+
}),
|
|
184
|
+
target,
|
|
185
|
+
candidates,
|
|
186
|
+
sourceBases: Object.freeze({
|
|
187
|
+
relation: relation.loadedSourceBasis,
|
|
188
|
+
target: target?.loadedSourceBasis || null
|
|
189
|
+
}),
|
|
190
|
+
boundary: 'Projection-only loaded Relation relevance. The Relation remains non-Parent; the resolved target retains its own schema, lifecycle, provenance, acceptance, ownership, and publication authority.'
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function relationTargetDescriptors(record = {}) {
|
|
196
|
+
const section = sectionText(record.markdown, 'Relation Target');
|
|
197
|
+
if (!section) return Object.freeze([]);
|
|
198
|
+
const descriptors = [];
|
|
199
|
+
for (const line of section.split('\n')) {
|
|
200
|
+
const match = line.match(/^\s*-\s*Target:\s*(.+?)\s*$/i);
|
|
201
|
+
if (!match) continue;
|
|
202
|
+
const raw = String(match[1] || '').trim();
|
|
203
|
+
if (!raw) continue;
|
|
204
|
+
const markdownLink = raw.match(/^\[([^\]]+)\]\(([^)]+)\)$/);
|
|
205
|
+
const value = unquoteCode(markdownLink ? markdownLink[2] : raw);
|
|
206
|
+
const uri = /^[A-Za-z][A-Za-z0-9+.-]*:\/\//.test(value);
|
|
207
|
+
const resolvedPath = uri ? '' : resolveRelationTargetPath(record.path, value);
|
|
208
|
+
descriptors.push(Object.freeze({
|
|
209
|
+
raw,
|
|
210
|
+
value,
|
|
211
|
+
label: markdownLink ? markdownLink[1].trim() : '',
|
|
212
|
+
kind: uri ? 'explicit-uri' : resolvedPath ? 'relative-artifact-path' : 'bounded-descriptor',
|
|
213
|
+
resolvedPath,
|
|
214
|
+
relationPath: String(record.path || '')
|
|
215
|
+
}));
|
|
216
|
+
}
|
|
217
|
+
return Object.freeze(descriptors);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function loadedTargetMatches(descriptor = {}, relationRecord = {}, records = [], qualifications = new Map()) {
|
|
221
|
+
const out = [];
|
|
222
|
+
for (const record of records) {
|
|
223
|
+
if (record === relationRecord) continue;
|
|
224
|
+
const matchBasis = [];
|
|
225
|
+
if (descriptor.kind === 'relative-artifact-path' && descriptor.resolvedPath) {
|
|
226
|
+
if (String(record.path || '') === descriptor.resolvedPath) matchBasis.push('record-path');
|
|
227
|
+
if (String(record.id || '') === descriptor.resolvedPath) matchBasis.push('record-id');
|
|
228
|
+
if (isAcceptedRepositorySource(record.source) && String(record.source.path || '') === descriptor.resolvedPath) matchBasis.push('accepted-repository-path');
|
|
229
|
+
} else if (descriptor.kind === 'explicit-uri') {
|
|
230
|
+
if (isAcceptedRepositorySource(record.source) && String(record.source.permalink || '') === descriptor.value) matchBasis.push('accepted-repository-permalink');
|
|
231
|
+
if (isAcceptedRepositorySource(record.source) && String(record.source.durableLocator || '') === descriptor.value) matchBasis.push('accepted-repository-durable-locator');
|
|
232
|
+
}
|
|
233
|
+
if (!matchBasis.length) continue;
|
|
234
|
+
out.push(Object.freeze({
|
|
235
|
+
...overviewItem(record, qualifications.get(record.id)),
|
|
236
|
+
matchBasis: Object.freeze(matchBasis)
|
|
237
|
+
}));
|
|
238
|
+
}
|
|
239
|
+
return Object.freeze(out);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function resolveRelationTargetPath(relationPath = '', target = '') {
|
|
243
|
+
const raw = String(target || '').replace(/\\/g, '/').trim();
|
|
244
|
+
if (!raw || raw.startsWith('/') || /^[A-Za-z]:\//.test(raw) || /[?#]/.test(raw)) return '';
|
|
245
|
+
const base = String(relationPath || '').replace(/\\/g, '/').split('/').filter(Boolean);
|
|
246
|
+
if (base.length) base.pop();
|
|
247
|
+
const stack = [...base];
|
|
248
|
+
for (const segment of raw.split('/')) {
|
|
249
|
+
if (!segment || segment === '.') continue;
|
|
250
|
+
if (segment === '..') {
|
|
251
|
+
if (!stack.length) return '';
|
|
252
|
+
stack.pop();
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
stack.push(segment);
|
|
256
|
+
}
|
|
257
|
+
return stack.join('/');
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function unquoteCode(value = '') {
|
|
261
|
+
const text = String(value || '').trim();
|
|
262
|
+
return text.startsWith('`') && text.endsWith('`') ? text.slice(1, -1).trim() : text;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
function overviewItem(record = {}, qualification = {}) {
|
|
266
|
+
return Object.freeze({
|
|
267
|
+
id: String(record.id || record.path || ''),
|
|
268
|
+
path: String(record.path || ''),
|
|
269
|
+
title: String(record.title || record.path || ''),
|
|
270
|
+
summary: String(record.summary || ''),
|
|
271
|
+
schemaId: String(record.schemaId || ''),
|
|
272
|
+
declaredStatus: String(record.lifecycleStatus || ''),
|
|
273
|
+
sourceMode: String(record.sourceMode || ''),
|
|
274
|
+
loadedSourceBasis: loadedSourceBasis(record),
|
|
275
|
+
qualification: qualification || Object.freeze({ state: 'not-evaluated' })
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function loadedSourceBasis(record = {}) {
|
|
280
|
+
const locator = record.locator && typeof record.locator === 'object'
|
|
281
|
+
? Object.freeze({ ...record.locator })
|
|
282
|
+
: null;
|
|
283
|
+
const acceptedRepository = isAcceptedRepositorySource(record.source)
|
|
284
|
+
? Object.freeze({
|
|
285
|
+
repository: String(record.source.repository || ''),
|
|
286
|
+
ref: String(record.source.ref || ''),
|
|
287
|
+
commit: String(record.source.commit || ''),
|
|
288
|
+
path: String(record.source.path || record.path || ''),
|
|
289
|
+
authority: String(record.source.authority || ''),
|
|
290
|
+
remoteFetch: record.source.remoteFetch === true,
|
|
291
|
+
receiptQualification: 'accepted-host-repository-read',
|
|
292
|
+
provenanceQualification: String(record.source.provenanceQualification || ''),
|
|
293
|
+
...(record.source.permalink ? { permalink: String(record.source.permalink) } : {}),
|
|
294
|
+
...(record.source.durableLocator ? { durableLocator: String(record.source.durableLocator) } : {})
|
|
295
|
+
})
|
|
296
|
+
: null;
|
|
297
|
+
const suppliedSource = !acceptedRepository && record.source && record.source.adapterId && record.source.adapterId !== 'local'
|
|
298
|
+
? Object.freeze({ ...record.source })
|
|
299
|
+
: null;
|
|
300
|
+
const locatorClass = acceptedRepository
|
|
301
|
+
? 'accepted-repository-receipt'
|
|
302
|
+
: locator?.kind === 'node-file'
|
|
303
|
+
? 'local-file'
|
|
304
|
+
: locator?.kind === 'node-zip-entry'
|
|
305
|
+
? 'archive-entry'
|
|
306
|
+
: suppliedSource
|
|
307
|
+
? 'supplied-source-metadata'
|
|
308
|
+
: 'unavailable';
|
|
309
|
+
return Object.freeze({
|
|
310
|
+
sourceMode: String(record.sourceMode || ''),
|
|
311
|
+
locatorClass,
|
|
312
|
+
locator,
|
|
313
|
+
suppliedSource,
|
|
314
|
+
repositorySource: acceptedRepository,
|
|
315
|
+
authority: 'non-authoritative-consumer-evidence',
|
|
316
|
+
repositoryIdentity: acceptedRepository ? 'explicit-accepted-repository-material' : 'unavailable-not-explicitly-qualified',
|
|
317
|
+
stability: acceptedRepository ? (acceptedRepository.commit ? 'pinned-commit' : 'moving-ref') : 'unavailable-not-explicitly-qualified',
|
|
318
|
+
durableLocator: acceptedRepository?.durableLocator || 'unavailable-not-explicitly-qualified',
|
|
319
|
+
publicPermalink: acceptedRepository?.permalink || 'unavailable-not-explicitly-qualified',
|
|
320
|
+
boundary: acceptedRepository
|
|
321
|
+
? 'Accepted repository-read receipt evidence only. Explicit repository/ref/commit/path and any explicit durable locator/permalink are preserved without remote fetch, URL synthesis, canonical ownership inference, Parent authority, or Source semantic authority.'
|
|
322
|
+
: 'Loaded material source/locator evidence only. Local filesystem/archive location and separately supplied source metadata do not create canonical repository identity, GitHub provenance, Parent authority, Source semantic authority, or a public permalink.'
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
function isAcceptedRepositorySource(source = {}) {
|
|
327
|
+
return Boolean(
|
|
328
|
+
source
|
|
329
|
+
&& source.receiptQualification === 'accepted-host-repository-read'
|
|
330
|
+
&& /^accepted-host-repository-(?:pinned|moving-ref)$/.test(String(source.provenanceQualification || ''))
|
|
331
|
+
&& source.repository
|
|
332
|
+
&& source.path
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function qualifyRecord(record = {}) {
|
|
337
|
+
const runtimeProjection = portableRuntimeValidationContractForSchema(record.schemaId || '');
|
|
338
|
+
const audit = runAudit({
|
|
339
|
+
record,
|
|
340
|
+
markdown: record.markdown || '',
|
|
341
|
+
validationContractOverride: runtimeProjection.state === 'qualified' ? runtimeProjection.compiledContract : null
|
|
342
|
+
});
|
|
343
|
+
const findings = Array.isArray(audit.findings) ? audit.findings : [];
|
|
344
|
+
const errors = findings.filter((finding) => finding.severity === 'error').length;
|
|
345
|
+
const warnings = findings.filter((finding) => finding.severity === 'warning').length;
|
|
346
|
+
const validatorUnavailable = findings.some((finding) => finding.code === 'audit.validator.unavailable');
|
|
347
|
+
const fallbackUsed = Boolean(audit.resolution?.fallbackUsed || audit.artifact?.fallbackUsed);
|
|
348
|
+
const state = errors ? 'blocked' : validatorUnavailable ? 'partial' : fallbackUsed ? 'fallback' : 'exact';
|
|
349
|
+
return Object.freeze({
|
|
350
|
+
state,
|
|
351
|
+
exact: state === 'exact',
|
|
352
|
+
runtimeContract: runtimeProjection.state === 'qualified' ? 'qualified' : 'unavailable',
|
|
353
|
+
errors,
|
|
354
|
+
warnings,
|
|
355
|
+
hasContinuityContext: Boolean(record.hasContinuityContext),
|
|
356
|
+
hasIntegrity: Boolean(record.hasIntegrity)
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
function isDeclaredCurrent(status = '') {
|
|
361
|
+
const value = String(status || '').trim();
|
|
362
|
+
if (!value || TERMINAL_STATUS.test(value)) return false;
|
|
363
|
+
return CURRENT_STATUS.test(value);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function taskBlockerSignals(record = {}, qualification = {}) {
|
|
367
|
+
const out = [];
|
|
368
|
+
const status = String(record.lifecycleStatus || '');
|
|
369
|
+
if (/\bblock(?:ed|ing)?\b/i.test(status)) {
|
|
370
|
+
out.push(Object.freeze({
|
|
371
|
+
kind: 'task-status',
|
|
372
|
+
...overviewItem(record, qualification),
|
|
373
|
+
text: status,
|
|
374
|
+
basis: 'explicit-declared-task-status'
|
|
375
|
+
}));
|
|
376
|
+
}
|
|
377
|
+
for (const dependency of sectionList(record.markdown, 'Dependencies')) {
|
|
378
|
+
if (!hasPositiveBlockingCue(dependency)) continue;
|
|
379
|
+
out.push(Object.freeze({
|
|
380
|
+
kind: 'task-dependency',
|
|
381
|
+
...overviewItem(record, qualification),
|
|
382
|
+
text: dependency,
|
|
383
|
+
basis: 'explicit-blocking-cue-in-task-dependencies'
|
|
384
|
+
}));
|
|
385
|
+
}
|
|
386
|
+
return out;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
function sectionText(markdown = '', heading = '') {
|
|
390
|
+
const parsed = parseArtifactMarkdown(markdown || '');
|
|
391
|
+
const text = String(parsed.body?.text || '');
|
|
392
|
+
const lines = text.split('\n');
|
|
393
|
+
const wanted = String(heading || '').trim().toLowerCase();
|
|
394
|
+
const start = lines.findIndex((line) => {
|
|
395
|
+
const match = line.match(/^##\s+(.+?)\s*$/);
|
|
396
|
+
return match && match[1].trim().toLowerCase() === wanted;
|
|
397
|
+
});
|
|
398
|
+
if (start < 0) return '';
|
|
399
|
+
const out = [];
|
|
400
|
+
for (let index = start + 1; index < lines.length; index += 1) {
|
|
401
|
+
if (/^##\s+/.test(lines[index])) break;
|
|
402
|
+
out.push(lines[index]);
|
|
403
|
+
}
|
|
404
|
+
return out.join('\n').trim();
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
function sectionList(markdown = '', heading = '') {
|
|
408
|
+
return Object.freeze(sectionText(markdown, heading)
|
|
409
|
+
.split('\n')
|
|
410
|
+
.map((line) => line.trim())
|
|
411
|
+
.filter((line) => /^[-*]\s+\S/.test(line))
|
|
412
|
+
.map((line) => line.replace(/^[-*]\s+/, '').trim()));
|
|
413
|
+
}
|