@interf/compiler 0.22.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +268 -0
- package/dist/bin-mcp.d.ts +2 -0
- package/dist/bin-mcp.js +63 -0
- package/dist/bin-runtime.d.ts +2 -0
- package/dist/bin-runtime.js +111 -0
- package/dist/cli/commands/agents.js +4 -4
- package/dist/cli/commands/auth.d.ts +20 -0
- package/dist/cli/commands/auth.js +161 -0
- package/dist/cli/commands/benchmark.d.ts +10 -0
- package/dist/cli/commands/benchmark.js +88 -0
- package/dist/cli/commands/build-plan.js +95 -103
- package/dist/cli/commands/build.d.ts +1 -1
- package/dist/cli/commands/build.js +16 -15
- package/dist/cli/commands/doctor.js +3 -3
- package/dist/cli/commands/graphs.d.ts +2 -0
- package/dist/cli/commands/graphs.js +199 -0
- package/dist/cli/commands/login.js +4 -6
- package/dist/cli/commands/logout.js +1 -1
- package/dist/cli/commands/mcp.d.ts +3 -2
- package/dist/cli/commands/mcp.js +721 -204
- package/dist/cli/commands/project.d.ts +2 -0
- package/dist/cli/commands/project.js +202 -0
- package/dist/cli/commands/reset.d.ts +1 -1
- package/dist/cli/commands/reset.js +10 -10
- package/dist/cli/commands/runs.js +52 -26
- package/dist/cli/commands/runtime.d.ts +24 -0
- package/dist/cli/commands/runtime.js +373 -0
- package/dist/cli/commands/status.d.ts +1 -0
- package/dist/cli/commands/status.js +33 -22
- package/dist/cli/commands/traces.d.ts +2 -0
- package/dist/cli/commands/traces.js +125 -0
- package/dist/cli/commands/wizard.js +155 -150
- package/dist/cli/index.d.ts +7 -4
- package/dist/cli/index.js +13 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/packages/build-plans/authoring/brief.d.ts +517 -0
- package/dist/packages/build-plans/authoring/brief.js +89 -0
- package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +10 -10
- package/dist/packages/build-plans/authoring/build-plan-authoring.js +66 -26
- package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +1 -1
- package/dist/packages/build-plans/authoring/build-plan-edit-session.js +8 -2
- package/dist/packages/build-plans/authoring/build-plan-improvement.d.ts +9 -6
- package/dist/packages/build-plans/authoring/build-plan-improvement.js +39 -42
- package/dist/packages/build-plans/authoring/lib/build-plan-edit-utils.js +7 -7
- package/dist/packages/build-plans/build-plan-resolution.d.ts +1 -1
- package/dist/packages/build-plans/build-plan-resolution.js +3 -3
- package/dist/packages/build-plans/index.d.ts +1 -1
- package/dist/packages/build-plans/index.js +1 -1
- package/dist/packages/build-plans/package/build-plan-definitions.d.ts +14 -12
- package/dist/packages/build-plans/package/build-plan-definitions.js +40 -39
- package/dist/packages/build-plans/package/build-plan-helpers.d.ts +3 -2
- package/dist/packages/build-plans/package/build-plan-helpers.js +27 -13
- package/dist/packages/build-plans/package/build-plan-review-paths.d.ts +5 -5
- package/dist/packages/build-plans/package/build-plan-review-paths.js +15 -15
- package/dist/packages/build-plans/package/build-plan-stage-runner.d.ts +4 -4
- package/dist/packages/build-plans/package/build-plan-stage-runner.js +22 -11
- package/dist/packages/build-plans/package/builtin-build-plan.d.ts +5 -6
- package/dist/packages/build-plans/package/builtin-build-plan.js +7 -8
- package/dist/packages/build-plans/package/context-interface.d.ts +11 -9
- package/dist/packages/build-plans/package/context-interface.js +14 -33
- package/dist/packages/build-plans/package/interf-build-plan-package.d.ts +6 -17
- package/dist/packages/build-plans/package/interf-build-plan-package.js +56 -52
- package/dist/packages/build-plans/package/local-build-plans.d.ts +12 -10
- package/dist/packages/build-plans/package/local-build-plans.js +56 -31
- package/dist/packages/build-plans/package/user-build-plans.js +1 -1
- package/dist/packages/contracts/index.d.ts +4 -2
- package/dist/packages/contracts/index.js +2 -1
- package/dist/packages/contracts/lib/project-paths.d.ts +137 -0
- package/dist/packages/contracts/lib/project-paths.js +211 -0
- package/dist/packages/contracts/lib/project-schema.d.ts +160 -0
- package/dist/packages/contracts/lib/project-schema.js +113 -0
- package/dist/packages/contracts/lib/schema.d.ts +739 -80
- package/dist/packages/contracts/lib/schema.js +410 -75
- package/dist/packages/contracts/utils/parse.js +67 -0
- package/dist/packages/projects/index.d.ts +6 -0
- package/dist/packages/{project → projects}/index.js +0 -3
- package/dist/packages/{project → projects}/interf-detect.d.ts +12 -12
- package/dist/packages/{project → projects}/interf-detect.js +56 -50
- package/dist/packages/projects/interf.d.ts +2 -0
- package/dist/packages/projects/interf.js +1 -0
- package/dist/packages/projects/lib/schema.d.ts +79 -0
- package/dist/packages/projects/lib/schema.js +89 -0
- package/dist/packages/projects/source-config.d.ts +58 -0
- package/dist/packages/projects/source-config.js +352 -0
- package/dist/packages/projects/source-folders.d.ts +11 -0
- package/dist/packages/{project → projects}/source-folders.js +26 -26
- package/dist/packages/{engine → runtime}/action-planner.d.ts +1 -1
- package/dist/packages/{engine → runtime}/action-planner.js +20 -22
- package/dist/packages/runtime/action-values.d.ts +1 -0
- package/dist/packages/runtime/action-values.js +1 -0
- package/dist/packages/runtime/actions/errors.d.ts +2 -0
- package/dist/packages/runtime/actions/errors.js +12 -0
- package/dist/packages/runtime/actions/fields.d.ts +82 -0
- package/dist/packages/runtime/actions/form-builders.d.ts +14 -0
- package/dist/packages/runtime/actions/form-builders.js +619 -0
- package/dist/packages/runtime/actions/form-validators.d.ts +8 -0
- package/dist/packages/runtime/actions/form-validators.js +128 -0
- package/dist/packages/runtime/actions/helpers.d.ts +11 -0
- package/dist/packages/runtime/actions/helpers.js +80 -0
- package/dist/packages/runtime/actions/index.d.ts +8 -0
- package/dist/packages/runtime/actions/index.js +11 -0
- package/dist/packages/runtime/actions/registry.d.ts +64 -0
- package/dist/packages/runtime/actions/registry.js +62 -0
- package/dist/packages/runtime/actions/requests.d.ts +45 -0
- package/dist/packages/runtime/actions/requests.js +158 -0
- package/dist/packages/runtime/actions/schemas.d.ts +154 -0
- package/dist/packages/runtime/actions/schemas.js +36 -0
- package/dist/packages/runtime/agent-handoff.d.ts +11 -0
- package/dist/packages/runtime/agent-handoff.js +101 -0
- package/dist/packages/{engine → runtime}/agents/index.d.ts +1 -2
- package/dist/packages/{engine → runtime}/agents/index.js +1 -2
- package/dist/packages/runtime/agents/lib/args.d.ts +14 -0
- package/dist/packages/runtime/agents/lib/args.js +24 -0
- package/dist/packages/{engine → runtime}/agents/lib/constants.d.ts +4 -1
- package/dist/packages/runtime/agents/lib/constants.js +13 -0
- package/dist/packages/runtime/agents/lib/context-graph-bootstrap.d.ts +3 -0
- package/dist/packages/{engine/agents/lib/verifiable-context-bootstrap.js → runtime/agents/lib/context-graph-bootstrap.js} +5 -6
- package/dist/packages/{engine → runtime}/agents/lib/detection.d.ts +5 -0
- package/dist/packages/{engine → runtime}/agents/lib/detection.js +16 -7
- package/dist/packages/{engine → runtime}/agents/lib/execution-profile.js +8 -14
- package/dist/packages/{engine → runtime}/agents/lib/execution.js +14 -4
- package/dist/packages/{engine → runtime}/agents/lib/preflight.js +15 -13
- package/dist/packages/{engine → runtime}/agents/lib/render.js +4 -4
- package/dist/packages/runtime/agents/lib/shell-fs.d.ts +18 -0
- package/dist/packages/runtime/agents/lib/shell-fs.js +190 -0
- package/dist/packages/runtime/agents/lib/shell-paths.d.ts +16 -0
- package/dist/packages/runtime/agents/lib/shell-paths.js +63 -0
- package/dist/packages/runtime/agents/lib/shell-projection.d.ts +25 -0
- package/dist/packages/runtime/agents/lib/shell-projection.js +314 -0
- package/dist/packages/runtime/agents/lib/shell-templates.d.ts +30 -0
- package/dist/packages/runtime/agents/lib/shell-templates.js +452 -0
- package/dist/packages/runtime/agents/lib/shell-workspace.d.ts +17 -0
- package/dist/packages/runtime/agents/lib/shell-workspace.js +70 -0
- package/dist/packages/runtime/agents/lib/shells.d.ts +63 -0
- package/dist/packages/runtime/agents/lib/shells.js +383 -0
- package/dist/packages/{engine → runtime}/agents/lib/user-config.d.ts +8 -2
- package/dist/packages/{engine → runtime}/agents/lib/user-config.js +8 -2
- package/dist/packages/runtime/agents/providers/claude-code.d.ts +13 -0
- package/dist/packages/runtime/agents/providers/claude-code.js +45 -0
- package/dist/packages/runtime/agents/providers/codex.d.ts +17 -0
- package/dist/packages/runtime/agents/providers/codex.js +64 -0
- package/dist/packages/runtime/agents/providers/cursor.d.ts +9 -0
- package/dist/packages/runtime/agents/providers/cursor.js +24 -0
- package/dist/packages/runtime/agents/providers/index.d.ts +9 -0
- package/dist/packages/runtime/agents/providers/index.js +31 -0
- package/dist/packages/runtime/agents/providers/types.d.ts +50 -0
- package/dist/packages/{engine → runtime}/agents/registry.d.ts +13 -2
- package/dist/packages/{engine → runtime}/agents/registry.js +48 -10
- package/dist/packages/{engine → runtime}/agents/role-executors.d.ts +1 -1
- package/dist/packages/{engine → runtime}/agents/role-executors.js +7 -6
- package/dist/packages/{engine → runtime}/agents/role-router.js +7 -5
- package/dist/packages/runtime/auth/account-context.d.ts +52 -0
- package/dist/packages/runtime/auth/account-context.js +68 -0
- package/dist/packages/runtime/auth/auth-flow.d.ts +73 -0
- package/dist/packages/runtime/auth/auth-flow.js +189 -0
- package/dist/packages/runtime/auth/jwt-validator.d.ts +58 -0
- package/dist/packages/runtime/auth/jwt-validator.js +86 -0
- package/dist/packages/runtime/auth/keychain.d.ts +35 -0
- package/dist/packages/runtime/auth/keychain.js +85 -0
- package/dist/packages/runtime/auth/session-store.d.ts +38 -0
- package/dist/packages/runtime/auth/session-store.js +88 -0
- package/dist/packages/runtime/auth/workos-client.d.ts +58 -0
- package/dist/packages/runtime/auth/workos-client.js +87 -0
- package/dist/packages/runtime/benchmark-question-draft.d.ts +20 -0
- package/dist/packages/runtime/benchmark-question-draft.js +124 -0
- package/dist/packages/runtime/build/artifact-counts.d.ts +1 -0
- package/dist/packages/{engine → runtime}/build/artifact-counts.js +5 -9
- package/dist/packages/{engine → runtime}/build/artifact-status.d.ts +5 -5
- package/dist/packages/{engine → runtime}/build/artifact-status.js +25 -23
- package/dist/packages/runtime/build/atomic-fs.d.ts +3 -0
- package/dist/packages/runtime/build/atomic-fs.js +95 -0
- package/dist/packages/runtime/build/billing-events.d.ts +78 -0
- package/dist/packages/{engine → runtime}/build/billing-events.js +17 -19
- package/dist/packages/runtime/build/build-evidence.d.ts +15 -0
- package/dist/packages/runtime/build/build-evidence.js +173 -0
- package/dist/packages/{engine → runtime}/build/build-pipeline.d.ts +12 -8
- package/dist/packages/runtime/build/build-pipeline.js +304 -0
- package/dist/packages/{engine → runtime}/build/build-plan-primitives.d.ts +1 -1
- package/dist/packages/{engine → runtime}/build/build-plan-primitives.js +0 -1
- package/dist/packages/runtime/build/build-plan-runs.d.ts +14 -0
- package/dist/packages/runtime/build/build-plan-runs.js +31 -0
- package/dist/packages/runtime/build/build-stage-plan.d.ts +16 -0
- package/dist/packages/{engine → runtime}/build/build-stage-plan.js +28 -29
- package/dist/packages/{engine → runtime}/build/build-stage-runner.d.ts +2 -1
- package/dist/packages/runtime/build/build-stage-runner.js +165 -0
- package/dist/packages/{engine → runtime}/build/build-target.d.ts +4 -4
- package/dist/packages/runtime/build/build-target.js +16 -0
- package/dist/packages/{engine → runtime}/build/check-evaluator.d.ts +14 -16
- package/dist/packages/runtime/build/check-evaluator.js +575 -0
- package/dist/packages/runtime/build/context-graph-paths.d.ts +51 -0
- package/dist/packages/runtime/build/context-graph-paths.js +133 -0
- package/dist/packages/runtime/build/context-graph-schema.d.ts +19 -0
- package/dist/packages/runtime/build/context-graph-schema.js +39 -0
- package/dist/packages/{engine → runtime}/build/discovery.d.ts +2 -2
- package/dist/packages/{engine → runtime}/build/discovery.js +4 -4
- package/dist/packages/{engine → runtime}/build/index.d.ts +5 -3
- package/dist/packages/{engine → runtime}/build/index.js +5 -3
- package/dist/packages/{engine → runtime}/build/lib/schema.d.ts +221 -88
- package/dist/packages/{engine → runtime}/build/lib/schema.js +61 -41
- package/dist/packages/runtime/build/reset.d.ts +2 -0
- package/dist/packages/runtime/build/reset.js +62 -0
- package/dist/packages/{engine → runtime}/build/runtime-contracts.js +5 -5
- package/dist/packages/runtime/build/runtime-inventory.d.ts +7 -0
- package/dist/packages/{engine → runtime}/build/runtime-inventory.js +3 -3
- package/dist/packages/{engine → runtime}/build/runtime-paths.js +6 -6
- package/dist/packages/{engine → runtime}/build/runtime-prompt.js +7 -6
- package/dist/packages/{engine → runtime}/build/runtime-reconcile.d.ts +1 -1
- package/dist/packages/{engine → runtime}/build/runtime-reconcile.js +25 -21
- package/dist/packages/runtime/build/runtime-runs.d.ts +10 -0
- package/dist/packages/runtime/build/runtime-runs.js +265 -0
- package/dist/packages/{engine → runtime}/build/runtime-types.d.ts +6 -6
- package/dist/packages/runtime/build/runtime-types.js +1 -0
- package/dist/packages/runtime/build/runtime.d.ts +6 -0
- package/dist/packages/runtime/build/runtime.js +5 -0
- package/dist/packages/runtime/build/source-files.d.ts +58 -0
- package/dist/packages/runtime/build/source-files.js +184 -0
- package/dist/packages/runtime/build/source-inventory.d.ts +27 -0
- package/dist/packages/runtime/build/source-inventory.js +273 -0
- package/dist/packages/runtime/build/source-manifest.d.ts +52 -0
- package/dist/packages/runtime/build/source-manifest.js +192 -0
- package/dist/packages/runtime/build/stage-evidence.d.ts +22 -0
- package/dist/packages/runtime/build/stage-evidence.js +317 -0
- package/dist/packages/runtime/build/stage-reuse.d.ts +11 -0
- package/dist/packages/runtime/build/stage-reuse.js +142 -0
- package/dist/packages/runtime/build/state-artifacts.d.ts +9 -0
- package/dist/packages/runtime/build/state-artifacts.js +14 -0
- package/dist/packages/runtime/build/state-health.d.ts +4 -0
- package/dist/packages/{engine → runtime}/build/state-health.js +21 -26
- package/dist/packages/runtime/build/state-io.d.ts +12 -0
- package/dist/packages/runtime/build/state-io.js +119 -0
- package/dist/packages/{engine → runtime}/build/state-paths.d.ts +3 -1
- package/dist/packages/runtime/build/state-paths.js +22 -0
- package/dist/packages/runtime/build/state-view.d.ts +5 -0
- package/dist/packages/{engine → runtime}/build/state-view.js +60 -33
- package/dist/packages/runtime/build/state.d.ts +7 -0
- package/dist/packages/runtime/build/state.js +12 -0
- package/dist/packages/runtime/build/traces.d.ts +30 -0
- package/dist/packages/runtime/build/traces.js +133 -0
- package/dist/packages/{engine/build/validate-verifiable-context.d.ts → runtime/build/validate-context-graph.d.ts} +6 -6
- package/dist/packages/{engine/build/validate-verifiable-context.js → runtime/build/validate-context-graph.js} +48 -35
- package/dist/packages/{engine → runtime}/build/validate.d.ts +5 -5
- package/dist/packages/{engine → runtime}/build/validate.js +26 -26
- package/dist/packages/{engine → runtime}/client.d.ts +15 -15
- package/dist/packages/{engine → runtime}/client.js +41 -24
- package/dist/packages/{engine → runtime}/connection-config.d.ts +3 -2
- package/dist/packages/{engine → runtime}/connection-config.js +9 -8
- package/dist/packages/runtime/context-checks.d.ts +10 -0
- package/dist/packages/runtime/context-checks.js +114 -0
- package/dist/packages/runtime/context-graph-scaffold.d.ts +9 -0
- package/dist/packages/runtime/context-graph-scaffold.js +134 -0
- package/dist/packages/runtime/entitlement-guard.d.ts +43 -0
- package/dist/packages/runtime/entitlement-guard.js +70 -0
- package/dist/packages/{engine → runtime}/execution/index.d.ts +2 -2
- package/dist/packages/{engine → runtime}/execution/index.js +1 -1
- package/dist/packages/{engine → runtime}/execution/lib/schema.d.ts +270 -192
- package/dist/packages/{engine → runtime}/execution/lib/schema.js +35 -32
- package/dist/packages/runtime/index.d.ts +29 -0
- package/dist/packages/runtime/index.js +21 -0
- package/dist/packages/runtime/instance-paths.d.ts +30 -0
- package/dist/packages/runtime/instance-paths.js +29 -0
- package/dist/packages/{engine → runtime}/native-run-handlers.d.ts +4 -4
- package/dist/packages/{engine → runtime}/native-run-handlers.js +184 -152
- package/dist/packages/runtime/plan-artifact-contract.d.ts +17 -0
- package/dist/packages/runtime/plan-artifact-contract.js +42 -0
- package/dist/packages/runtime/project-entries.d.ts +11 -0
- package/dist/packages/runtime/project-entries.js +49 -0
- package/dist/packages/runtime/project-source-state.d.ts +26 -0
- package/dist/packages/runtime/project-source-state.js +53 -0
- package/dist/packages/runtime/project-store.d.ts +85 -0
- package/dist/packages/runtime/project-store.js +168 -0
- package/dist/packages/runtime/requested-artifacts.d.ts +7 -0
- package/dist/packages/{engine → runtime}/requested-artifacts.js +23 -1
- package/dist/packages/{engine → runtime}/run-observability.d.ts +2 -1
- package/dist/packages/{engine → runtime}/run-observability.js +166 -84
- package/dist/packages/runtime/runtime-action-proposals.d.ts +7 -0
- package/dist/packages/runtime/runtime-action-proposals.js +542 -0
- package/dist/packages/runtime/runtime-build-plans.d.ts +5 -0
- package/dist/packages/runtime/runtime-build-plans.js +131 -0
- package/dist/packages/runtime/runtime-build-runs.d.ts +47 -0
- package/dist/packages/runtime/runtime-build-runs.js +562 -0
- package/dist/packages/runtime/runtime-caches.d.ts +91 -0
- package/dist/packages/{engine → runtime}/runtime-caches.js +77 -49
- package/dist/packages/{engine → runtime}/runtime-event-applier.d.ts +3 -1
- package/dist/packages/{engine → runtime}/runtime-event-applier.js +53 -17
- package/dist/packages/runtime/runtime-executor.d.ts +22 -0
- package/dist/packages/runtime/runtime-executor.js +131 -0
- package/dist/packages/runtime/runtime-jobs.d.ts +13 -0
- package/dist/packages/runtime/runtime-jobs.js +463 -0
- package/dist/packages/runtime/runtime-observability.d.ts +11 -0
- package/dist/packages/runtime/runtime-observability.js +39 -0
- package/dist/packages/{engine → runtime}/runtime-persistence.d.ts +9 -18
- package/dist/packages/{engine → runtime}/runtime-persistence.js +25 -25
- package/dist/packages/runtime/runtime-project-mutations.d.ts +7 -0
- package/dist/packages/runtime/runtime-project-mutations.js +64 -0
- package/dist/packages/runtime/runtime-project-reads.d.ts +15 -0
- package/dist/packages/runtime/runtime-project-reads.js +381 -0
- package/dist/packages/runtime/runtime-proposal-helpers.d.ts +22 -0
- package/dist/packages/runtime/runtime-proposal-helpers.js +223 -0
- package/dist/packages/{engine → runtime}/runtime-resource-builders.d.ts +21 -16
- package/dist/packages/{engine → runtime}/runtime-resource-builders.js +48 -38
- package/dist/packages/runtime/runtime-verify-runs.d.ts +84 -0
- package/dist/packages/runtime/runtime-verify-runs.js +295 -0
- package/dist/packages/runtime/runtime.d.ts +1165 -0
- package/dist/packages/runtime/runtime.js +417 -0
- package/dist/packages/runtime/schemas/actions.d.ts +1182 -0
- package/dist/packages/runtime/schemas/actions.js +117 -0
- package/dist/packages/runtime/schemas/agents.d.ts +76 -0
- package/dist/packages/runtime/schemas/agents.js +41 -0
- package/dist/packages/runtime/schemas/build-plans.d.ts +959 -0
- package/dist/packages/runtime/schemas/build-plans.js +107 -0
- package/dist/packages/runtime/schemas/files.d.ts +567 -0
- package/dist/packages/runtime/schemas/files.js +51 -0
- package/dist/packages/runtime/schemas/index.d.ts +8 -0
- package/dist/packages/runtime/schemas/index.js +12 -0
- package/dist/packages/runtime/schemas/instance.d.ts +141 -0
- package/dist/packages/runtime/schemas/instance.js +143 -0
- package/dist/packages/runtime/schemas/jobs.d.ts +339 -0
- package/dist/packages/runtime/schemas/jobs.js +103 -0
- package/dist/packages/runtime/schemas/projects.d.ts +339 -0
- package/dist/packages/runtime/schemas/projects.js +136 -0
- package/dist/packages/runtime/schemas/runs.d.ts +2676 -0
- package/dist/packages/runtime/schemas/runs.js +98 -0
- package/dist/packages/runtime/service/index.d.ts +3 -0
- package/dist/packages/runtime/service/index.js +3 -0
- package/dist/packages/runtime/service/openapi.d.ts +7 -0
- package/dist/packages/runtime/service/openapi.js +117 -0
- package/dist/packages/runtime/service/operations.d.ts +1490 -0
- package/dist/packages/runtime/service/operations.js +245 -0
- package/dist/packages/runtime/service/routes.d.ts +106 -0
- package/dist/packages/runtime/service/routes.js +120 -0
- package/dist/packages/runtime/service/server-api-files.d.ts +10 -0
- package/dist/packages/runtime/service/server-api-files.js +85 -0
- package/dist/packages/runtime/service/server-app-boot.d.ts +4 -0
- package/dist/packages/runtime/service/server-app-boot.js +46 -0
- package/dist/packages/runtime/service/server-guards.d.ts +63 -0
- package/dist/packages/runtime/service/server-guards.js +181 -0
- package/dist/packages/runtime/service/server-helpers.d.ts +27 -0
- package/dist/packages/runtime/service/server-helpers.js +89 -0
- package/dist/packages/runtime/service/server-instance-helpers.d.ts +30 -0
- package/dist/packages/runtime/service/server-instance-helpers.js +114 -0
- package/dist/packages/runtime/service/server-routes-action-proposals.d.ts +3 -0
- package/dist/packages/runtime/service/server-routes-action-proposals.js +43 -0
- package/dist/packages/runtime/service/server-routes-agents.d.ts +4 -0
- package/dist/packages/runtime/service/server-routes-agents.js +198 -0
- package/dist/packages/runtime/service/server-routes-auth.d.ts +33 -0
- package/dist/packages/runtime/service/server-routes-auth.js +138 -0
- package/dist/packages/runtime/service/server-routes-build-plans.d.ts +3 -0
- package/dist/packages/runtime/service/server-routes-build-plans.js +83 -0
- package/dist/packages/runtime/service/server-routes-discovery.d.ts +4 -0
- package/dist/packages/runtime/service/server-routes-discovery.js +196 -0
- package/dist/packages/runtime/service/server-routes-events.d.ts +5 -0
- package/dist/packages/runtime/service/server-routes-events.js +99 -0
- package/dist/packages/runtime/service/server-routes-project-context.d.ts +9 -0
- package/dist/packages/runtime/service/server-routes-project-context.js +192 -0
- package/dist/packages/runtime/service/server-routes-project-jobs.d.ts +9 -0
- package/dist/packages/runtime/service/server-routes-project-jobs.js +130 -0
- package/dist/packages/runtime/service/server-routes-project-runs.d.ts +14 -0
- package/dist/packages/runtime/service/server-routes-project-runs.js +85 -0
- package/dist/packages/runtime/service/server-routes-projects.d.ts +4 -0
- package/dist/packages/runtime/service/server-routes-projects.js +92 -0
- package/dist/packages/runtime/service/server-routes-runs.d.ts +3 -0
- package/dist/packages/runtime/service/server-routes-runs.js +112 -0
- package/dist/packages/runtime/service/server.d.ts +37 -0
- package/dist/packages/runtime/service/server.js +300 -0
- package/dist/packages/{engine → runtime/service}/service-registry.d.ts +5 -5
- package/dist/packages/{engine → runtime/service}/service-registry.js +7 -7
- package/dist/packages/runtime/verify/benchmark-run.d.ts +81 -0
- package/dist/packages/runtime/verify/benchmark-run.js +303 -0
- package/dist/packages/{engine → runtime}/verify/index.d.ts +2 -2
- package/dist/packages/{engine → runtime}/verify/index.js +1 -1
- package/dist/packages/{engine → runtime}/verify/lib/schema.d.ts +83 -16
- package/dist/packages/{engine → runtime}/verify/lib/schema.js +26 -18
- package/dist/packages/{engine → runtime}/verify/verify-execution.js +11 -11
- package/dist/packages/{engine → runtime}/verify/verify-paths.d.ts +4 -4
- package/dist/packages/runtime/verify/verify-paths.js +61 -0
- package/dist/packages/{engine → runtime}/verify/verify-sandbox.d.ts +1 -1
- package/dist/packages/runtime/verify/verify-sandbox.js +88 -0
- package/dist/packages/{engine → runtime}/verify/verify-specs.d.ts +2 -0
- package/dist/packages/{engine → runtime}/verify/verify-specs.js +5 -3
- package/dist/packages/runtime/verify/verify-targets.d.ts +5 -0
- package/dist/packages/{engine → runtime}/verify/verify-targets.js +12 -12
- package/dist/packages/runtime/verify/verify-types.js +1 -0
- package/dist/packages/{engine → runtime}/verify/verify.d.ts +1 -1
- package/dist/packages/{engine → runtime}/verify/verify.js +1 -1
- package/dist/packages/runtime/wire-schemas.d.ts +18 -0
- package/dist/packages/runtime/wire-schemas.js +27 -0
- package/package.json +40 -30
- package/public-repo/CONTRIBUTING.md +7 -16
- package/public-repo/README.md +175 -234
- package/public-repo/SECURITY.md +3 -4
- package/public-repo/build-plans/interf-default/README.md +19 -14
- package/public-repo/build-plans/interf-default/build/stages/shape/SKILL.md +18 -11
- package/public-repo/build-plans/interf-default/build/stages/structure/SKILL.md +12 -5
- package/public-repo/build-plans/interf-default/build/stages/summarize/SKILL.md +16 -4
- package/public-repo/build-plans/interf-default/build-plan.json +34 -28
- package/public-repo/build-plans/interf-default/build-plan.schema.json +54 -32
- package/public-repo/build-plans/interf-default/improve/SKILL.md +3 -3
- package/public-repo/build-plans/interf-default/use/query/SKILL.md +17 -11
- package/public-repo/openapi/local-service.openapi.json +6803 -0
- package/public-repo/skills/interf/SKILL.md +460 -179
- package/dist/cli/commands/prep.d.ts +0 -2
- package/dist/cli/commands/prep.js +0 -240
- package/dist/cli/commands/test.d.ts +0 -10
- package/dist/cli/commands/test.js +0 -85
- package/dist/cli/commands/web.d.ts +0 -2
- package/dist/cli/commands/web.js +0 -286
- package/dist/interf-ui/404.html +0 -1
- package/dist/interf-ui/__next.__PAGE__.txt +0 -10
- package/dist/interf-ui/__next._full.txt +0 -20
- package/dist/interf-ui/__next._head.txt +0 -5
- package/dist/interf-ui/__next._index.txt +0 -5
- package/dist/interf-ui/__next._tree.txt +0 -5
- package/dist/interf-ui/_next/static/_qJKnA0dammQ306MG_zMq/_buildManifest.js +0 -11
- package/dist/interf-ui/_next/static/_qJKnA0dammQ306MG_zMq/_clientMiddlewareManifest.js +0 -1
- package/dist/interf-ui/_next/static/_qJKnA0dammQ306MG_zMq/_ssgManifest.js +0 -1
- package/dist/interf-ui/_next/static/chunks/0.tjb6f4golw..css +0 -3
- package/dist/interf-ui/_next/static/chunks/03~yq9q893hmn.js +0 -1
- package/dist/interf-ui/_next/static/chunks/085-n_jv2ng_q.css +0 -1
- package/dist/interf-ui/_next/static/chunks/0dn41fa_zvgsl.js +0 -1
- package/dist/interf-ui/_next/static/chunks/0g-ea0zj5d-0k.js +0 -1
- package/dist/interf-ui/_next/static/chunks/0gwqglc4iz583.js +0 -1
- package/dist/interf-ui/_next/static/chunks/0haldgm65ve6l.js +0 -1
- package/dist/interf-ui/_next/static/chunks/0nv3am99vjzn4.js +0 -1
- package/dist/interf-ui/_next/static/chunks/0s77gt_o4jwtx.js +0 -1
- package/dist/interf-ui/_next/static/chunks/0y5z3t-z1c8ks.js.map +0 -5
- package/dist/interf-ui/_next/static/chunks/0~a36ujuzpaz..js +0 -116
- package/dist/interf-ui/_next/static/chunks/10jeodxe4nkgj.js +0 -31
- package/dist/interf-ui/_next/static/chunks/119h2rouych2t.js +0 -1
- package/dist/interf-ui/_next/static/chunks/13c8b~m8knjsf.js +0 -1
- package/dist/interf-ui/_next/static/chunks/14dznb2qpt-ho.js +0 -91
- package/dist/interf-ui/_next/static/chunks/15z_en80lrq-3.js +0 -5
- package/dist/interf-ui/_next/static/chunks/turbopack-0p.pvcjrtq-jh.js +0 -1
- package/dist/interf-ui/_next/static/chunks/turbopack-0usj_75.8frlw.js +0 -1
- package/dist/interf-ui/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +0 -1
- package/dist/interf-ui/_next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
- package/dist/interf-ui/_next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
- package/dist/interf-ui/_next/static/media/worker.102zas1s52_pf.js +0 -109
- package/dist/interf-ui/_not-found/__next._full.txt +0 -15
- package/dist/interf-ui/_not-found/__next._head.txt +0 -5
- package/dist/interf-ui/_not-found/__next._index.txt +0 -5
- package/dist/interf-ui/_not-found/__next._not-found.__PAGE__.txt +0 -5
- package/dist/interf-ui/_not-found/__next._not-found.txt +0 -5
- package/dist/interf-ui/_not-found/__next._tree.txt +0 -2
- package/dist/interf-ui/_not-found.html +0 -1
- package/dist/interf-ui/_not-found.txt +0 -15
- package/dist/interf-ui/index.html +0 -1
- package/dist/interf-ui/index.txt +0 -20
- package/dist/packages/contracts/lib/preparation-paths.d.ts +0 -117
- package/dist/packages/contracts/lib/preparation-paths.js +0 -177
- package/dist/packages/engine/action-definitions.d.ts +0 -407
- package/dist/packages/engine/action-definitions.js +0 -1158
- package/dist/packages/engine/action-values.d.ts +0 -1
- package/dist/packages/engine/action-values.js +0 -1
- package/dist/packages/engine/agents/lib/args.d.ts +0 -4
- package/dist/packages/engine/agents/lib/args.js +0 -52
- package/dist/packages/engine/agents/lib/chart-guidance.d.ts +0 -1
- package/dist/packages/engine/agents/lib/chart-guidance.js +0 -8
- package/dist/packages/engine/agents/lib/constants.js +0 -28
- package/dist/packages/engine/agents/lib/schema.d.ts +0 -8
- package/dist/packages/engine/agents/lib/schema.js +0 -7
- package/dist/packages/engine/agents/lib/shells.d.ts +0 -74
- package/dist/packages/engine/agents/lib/shells.js +0 -1052
- package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.d.ts +0 -3
- package/dist/packages/engine/build/artifact-counts.d.ts +0 -1
- package/dist/packages/engine/build/billing-events.d.ts +0 -89
- package/dist/packages/engine/build/build-pipeline.js +0 -175
- package/dist/packages/engine/build/build-plan-runs.d.ts +0 -14
- package/dist/packages/engine/build/build-plan-runs.js +0 -31
- package/dist/packages/engine/build/build-stage-plan.d.ts +0 -16
- package/dist/packages/engine/build/build-stage-runner.js +0 -94
- package/dist/packages/engine/build/build-target.js +0 -16
- package/dist/packages/engine/build/check-evaluator.js +0 -298
- package/dist/packages/engine/build/reset.d.ts +0 -2
- package/dist/packages/engine/build/reset.js +0 -74
- package/dist/packages/engine/build/runtime-inventory.d.ts +0 -7
- package/dist/packages/engine/build/runtime-runs.d.ts +0 -10
- package/dist/packages/engine/build/runtime-runs.js +0 -224
- package/dist/packages/engine/build/runtime.d.ts +0 -5
- package/dist/packages/engine/build/runtime.js +0 -4
- package/dist/packages/engine/build/source-files.d.ts +0 -46
- package/dist/packages/engine/build/source-files.js +0 -149
- package/dist/packages/engine/build/state-artifacts.d.ts +0 -9
- package/dist/packages/engine/build/state-artifacts.js +0 -14
- package/dist/packages/engine/build/state-health.d.ts +0 -4
- package/dist/packages/engine/build/state-io.d.ts +0 -11
- package/dist/packages/engine/build/state-io.js +0 -82
- package/dist/packages/engine/build/state-paths.js +0 -16
- package/dist/packages/engine/build/state-view.d.ts +0 -5
- package/dist/packages/engine/build/state.d.ts +0 -7
- package/dist/packages/engine/build/state.js +0 -12
- package/dist/packages/engine/build/validate-helpers.d.ts +0 -12
- package/dist/packages/engine/build/validate-helpers.js +0 -41
- package/dist/packages/engine/build/verifiable-context-paths.d.ts +0 -47
- package/dist/packages/engine/build/verifiable-context-paths.js +0 -121
- package/dist/packages/engine/build/verifiable-context-schema.d.ts +0 -21
- package/dist/packages/engine/build/verifiable-context-schema.js +0 -126
- package/dist/packages/engine/cloud-seams.d.ts +0 -115
- package/dist/packages/engine/cloud-seams.js +0 -84
- package/dist/packages/engine/index.d.ts +0 -22
- package/dist/packages/engine/index.js +0 -15
- package/dist/packages/engine/instance-paths.d.ts +0 -106
- package/dist/packages/engine/instance-paths.js +0 -171
- package/dist/packages/engine/lib/schema.d.ts +0 -6304
- package/dist/packages/engine/lib/schema.js +0 -730
- package/dist/packages/engine/preparation-store.d.ts +0 -105
- package/dist/packages/engine/preparation-store.js +0 -213
- package/dist/packages/engine/readiness-check-draft.d.ts +0 -20
- package/dist/packages/engine/readiness-check-draft.js +0 -111
- package/dist/packages/engine/requested-artifacts.d.ts +0 -5
- package/dist/packages/engine/routes.d.ts +0 -85
- package/dist/packages/engine/routes.js +0 -99
- package/dist/packages/engine/runtime-caches.d.ts +0 -76
- package/dist/packages/engine/runtime-proposal-helpers.d.ts +0 -35
- package/dist/packages/engine/runtime-proposal-helpers.js +0 -247
- package/dist/packages/engine/runtime.d.ts +0 -371
- package/dist/packages/engine/runtime.js +0 -2463
- package/dist/packages/engine/server.d.ts +0 -58
- package/dist/packages/engine/server.js +0 -1399
- package/dist/packages/engine/verify/readiness-check-run.d.ts +0 -82
- package/dist/packages/engine/verify/readiness-check-run.js +0 -265
- package/dist/packages/engine/verify/verify-paths.js +0 -61
- package/dist/packages/engine/verify/verify-sandbox.js +0 -88
- package/dist/packages/engine/verify/verify-targets.d.ts +0 -5
- package/dist/packages/engine/wire-schemas.d.ts +0 -547
- package/dist/packages/engine/wire-schemas.js +0 -59
- package/dist/packages/project/index.d.ts +0 -9
- package/dist/packages/project/interf-bootstrap.d.ts +0 -1
- package/dist/packages/project/interf-bootstrap.js +0 -1
- package/dist/packages/project/interf-scaffold.d.ts +0 -3
- package/dist/packages/project/interf-scaffold.js +0 -136
- package/dist/packages/project/interf.d.ts +0 -4
- package/dist/packages/project/interf.js +0 -3
- package/dist/packages/project/lib/schema.d.ts +0 -328
- package/dist/packages/project/lib/schema.js +0 -136
- package/dist/packages/project/preparation-entries.d.ts +0 -11
- package/dist/packages/project/preparation-entries.js +0 -49
- package/dist/packages/project/source-config.d.ts +0 -46
- package/dist/packages/project/source-config.js +0 -394
- package/dist/packages/project/source-folders.d.ts +0 -11
- package/public-repo/plugins/README.md +0 -9
- package/public-repo/plugins/interf/.claude-plugin/plugin.json +0 -21
- package/public-repo/plugins/interf/.mcp.json +0 -12
- package/public-repo/plugins/interf/README.md +0 -32
- package/public-repo/plugins/interf/skills/interf/SKILL.md +0 -376
- /package/dist/packages/{engine/agents/lib/types.js → runtime/actions/fields.js} +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/agents.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/agents.js +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/execution-profile.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/execution.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/executors.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/executors.js +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/logs.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/logs.js +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/preflight.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/render.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/status.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/status.js +0 -0
- /package/dist/packages/{engine → runtime}/agents/lib/types.d.ts +0 -0
- /package/dist/packages/{engine/build/runtime-types.js → runtime/agents/lib/types.js} +0 -0
- /package/dist/packages/{engine/verify/verify-types.js → runtime/agents/providers/types.js} +0 -0
- /package/dist/packages/{engine → runtime}/agents/role-router.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/build/build-execution.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/build/build-execution.js +0 -0
- /package/dist/packages/{engine → runtime}/build/runtime-contracts.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/build/runtime-paths.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/build/runtime-prompt.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/execution/adapters.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/execution/adapters.js +0 -0
- /package/dist/packages/{engine → runtime}/execution/events.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/execution/events.js +0 -0
- /package/dist/packages/{engine → runtime}/verify/verify-execution.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/verify/verify-profile-presets.d.ts +0 -0
- /package/dist/packages/{engine → runtime}/verify/verify-profile-presets.js +0 -0
- /package/dist/packages/{engine → runtime}/verify/verify-types.d.ts +0 -0
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
# Shape
|
|
2
2
|
|
|
3
|
-
Shape the
|
|
3
|
+
Shape the task-specific Artifact handoff and final Context Graph index
|
|
4
|
+
around the saved task focus and Checks.
|
|
4
5
|
|
|
5
6
|
Contract type: `build-query-shape`
|
|
6
7
|
|
|
7
8
|
## Requirements
|
|
8
9
|
|
|
9
|
-
- Use the Build
|
|
10
|
-
-
|
|
11
|
-
-
|
|
10
|
+
- Use the Build task focus plus saved Check text to shape `artifacts/` handoffs and supporting graph routes.
|
|
11
|
+
- Write at least one task-specific handoff note under `artifacts/`.
|
|
12
|
+
- Each Artifact handoff must start with JSON frontmatter containing non-empty `task`, `source_refs`, `handoff_type`, `truth_mode`, `verification_state`, and `caveats`.
|
|
13
|
+
- `source_refs` must point to original Source locations, not just generated summaries or knowledge notes.
|
|
14
|
+
- Artifact handoff notes should tell the downstream agent which original Source files, pages, figures, tables, sections, units, periods, series, and caveats matter for the task.
|
|
15
|
+
- Artifact handoff notes should route the downstream agent to original Source refs for exact claims. Do not present generated summaries or knowledge notes as the dataset or source of truth.
|
|
16
|
+
- Rewrite `home.md` into a real graph index note. Do not leave the scaffold `Not yet built.` placeholder in place, and do not make `home.md` the answer surface.
|
|
17
|
+
- When you add wikilinks, target real Context Graph notes by exact basename or explicit relative path.
|
|
12
18
|
- If you introduce a new note name in `home.md` or another shaped output, the same stage must also create that note file.
|
|
13
19
|
- Prefer direct file-reading and search tools over shell commands for routine file inspection.
|
|
14
20
|
- When a source value is approximate, preserve it as a bounded range and say why it is approximate.
|
|
15
21
|
- Do not invent finer precision than the source supports.
|
|
22
|
+
- For unlabeled charts, screenshots, diagrams, or visual marks, either create a measurement note with source-grounded visual reference, calibration, method, and uncertainty, or tell the downstream agent to inspect the original Source before answering.
|
|
16
23
|
- Keep approximate values consistent across `home.md`, focused indexes, and claim/entity notes.
|
|
17
|
-
- Do not copy expected answers into the
|
|
24
|
+
- Do not copy expected answers into the Context Graph.
|
|
18
25
|
|
|
19
26
|
## Notes
|
|
20
27
|
|
|
21
|
-
- Use the saved task focus and
|
|
22
|
-
- Do not copy expected answers into the final
|
|
23
|
-
- Prefer the saved summary evidence and structured notes when they already preserve
|
|
24
|
-
- Reopen source references during shaping
|
|
25
|
-
- If a saved
|
|
28
|
+
- Use the saved task focus and Checks to bias the final Context Graph toward the job it should be especially good at.
|
|
29
|
+
- Do not copy benchmark expected answers into the final Context Graph.
|
|
30
|
+
- Prefer the saved summary evidence and structured notes when they already preserve routing, source refs, and caveats.
|
|
31
|
+
- Reopen source references during shaping when exact wording, table values, chart reads, or provenance-sensitive claims matter.
|
|
32
|
+
- If a saved Check depends on source-derived values, route the handoff to source refs and preserve source granularity instead of fabricating precision.
|
|
26
33
|
- Prefer better routing, prioritization, and focused navigation over speculative synthesis.
|
|
27
|
-
- Any wikilinks you add to `home.md` or indexes must resolve to real
|
|
34
|
+
- Any wikilinks you add to `home.md` or indexes must resolve to real Context Graph note basenames or explicit relative paths.
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
# Structure
|
|
2
2
|
|
|
3
|
-
Build the
|
|
3
|
+
Build the task-aware Context Graph structure from the summaries.
|
|
4
4
|
|
|
5
5
|
Contract type: `build-knowledge-structure`
|
|
6
6
|
|
|
7
7
|
## Requirements
|
|
8
8
|
|
|
9
|
-
- Treat the
|
|
9
|
+
- Treat the Context Graph structure as retrieval support, not final truth.
|
|
10
10
|
- Prefer durable entity, claim, and index notes over one giant catch-all file.
|
|
11
|
+
- Write those notes as flat markdown files under `knowledge/` unless this
|
|
12
|
+
Build Plan explicitly declares typed child folders.
|
|
13
|
+
- Keep claims connected to the summaries and original source references that
|
|
14
|
+
support them, so users can follow links back to sources.
|
|
15
|
+
- Use knowledge notes as navigation and assurance. They are not the authority
|
|
16
|
+
for exact wording, table values, chart reads, or provenance-sensitive claims.
|
|
11
17
|
- Keep structure-stage links stage-local: prefer linking only to summaries or knowledge notes that are already meaningful by the end of this stage. Avoid relying on `home.md` or other shape-stage routes as the main navigation surface.
|
|
12
18
|
- Prefer direct file-reading and search tools over shell commands for routine file inspection.
|
|
13
19
|
|
|
@@ -15,7 +21,8 @@ Contract type: `build-knowledge-structure`
|
|
|
15
21
|
|
|
16
22
|
- Bias structure toward canonical entities, claims, timelines, and stable indexes.
|
|
17
23
|
- Use taxonomy and ontology only as means to improve retrieval, navigation, and evidence tracking.
|
|
18
|
-
- For small
|
|
19
|
-
- When you add wikilinks, target real
|
|
24
|
+
- For small Sources, prefer a minimal stable substrate over exhaustive flow sprawl.
|
|
25
|
+
- When you add wikilinks, target real Context Graph notes by exact basename or explicit relative path. Do not invent title-style links unless that exact title is also a declared note label or alias.
|
|
20
26
|
- Do not add wikilinks in structure outputs to files that the shape stage creates later. If a route belongs in `home.md` or a later shaped note, leave plain text now and let the later stage add the link.
|
|
21
|
-
-
|
|
27
|
+
- Build task-aware claims, entities, topics, and indexes from the summaries and their source refs. Use clear filenames such as `knowledge/rent-growth-claims.md`, `knowledge/market-entities.md`, or `knowledge/index.md`.
|
|
28
|
+
- For summary references, prefer explicit links like `[[summaries/<source-name>/summary]]`, `[[summaries/<source-name>/manifest]]`, page note links, or plain source refs. For knowledge notes, prefer the final filename stem under `knowledge/`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Summarize
|
|
2
2
|
|
|
3
|
-
Turn source files into
|
|
3
|
+
Turn source files into source-named coverage folders with source metadata.
|
|
4
4
|
|
|
5
5
|
Contract type: `build-file-evidence`
|
|
6
6
|
|
|
@@ -10,7 +10,10 @@ Contract type: `build-file-evidence`
|
|
|
10
10
|
- Required opening shape:
|
|
11
11
|
- `---`
|
|
12
12
|
- `{`
|
|
13
|
+
- ` "source_file_id": "file-example",`
|
|
13
14
|
- ` "source": "example.md",`
|
|
15
|
+
- ` "source_path": "example.md",`
|
|
16
|
+
- ` "source_locator": "agent-readable/source/ref",`
|
|
14
17
|
- ` "source_kind": "markdown",`
|
|
15
18
|
- ` "evidence_tier": "primary",`
|
|
16
19
|
- ` "truth_mode": "source-grounded",`
|
|
@@ -25,11 +28,20 @@ Contract type: `build-file-evidence`
|
|
|
25
28
|
- a markdown heading `## Abstract` followed by at least one sentence
|
|
26
29
|
- A bare `Abstract` label without markdown heading syntax does not count.
|
|
27
30
|
- Do not skip the abstract just because the overview section is present.
|
|
31
|
+
- Build `summaries/` as a coverage layer:
|
|
32
|
+
- one folder per source file, named so a human can match it to the original source file
|
|
33
|
+
- non-paginated sources: `summaries/<source-name>/summary.md`
|
|
34
|
+
- PDFs, decks, images, or paginated/visual reports: `summaries/<source-name>/manifest.md` plus `pages/001/summary.md`, `pages/002/summary.md`, etc. for every page/slide that can be inspected
|
|
35
|
+
- if a page/slide cannot be extracted, record `not_extracted_reason` in the manifest instead of silently skipping it
|
|
36
|
+
- optional `screenshot.png` or visual trace paths only when useful and available
|
|
37
|
+
- Preserve links back to sources through the `source_file_id`, `source`, `source_path`, `source_locator`, page,
|
|
38
|
+
section, table, chart, figure, or region references the source provides.
|
|
39
|
+
- Do not copy source files into the Context Graph. Store source references.
|
|
28
40
|
|
|
29
41
|
## Notes
|
|
30
42
|
|
|
31
43
|
- Favor conservative, source-grounded summaries that preserve evidence tiers and leave broader synthesis for later stages.
|
|
32
|
-
- Read `runtime/stage-inputs.json` for the exact source references assigned to this stage.
|
|
33
|
-
- For large reports or decks, capture scope, headline evidence, and chart/table routing in one light pass.
|
|
34
|
-
-
|
|
44
|
+
- Read `runtime/source-manifest.json` for the authoritative Source inventory and `runtime/stage-inputs.json` for the exact source references assigned to this stage.
|
|
45
|
+
- For large reports or decks, capture page coverage, scope, headline evidence, and chart/table routing in one light pass. Prefer explicit page records over one loose file summary.
|
|
46
|
+
- Summaries prove coverage; they do not need to answer the final task.
|
|
35
47
|
- Keep scratch extraction commands single-purpose and non-destructive.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "interf-default",
|
|
3
3
|
"type": "build-plan",
|
|
4
|
-
"
|
|
4
|
+
"runtime_api": {
|
|
5
5
|
"kind": "build",
|
|
6
6
|
"version": 1
|
|
7
7
|
},
|
|
8
8
|
"purpose": {
|
|
9
|
-
"label": "
|
|
10
|
-
"task_hint": "Build mixed source files into
|
|
9
|
+
"label": "Build Context Graph",
|
|
10
|
+
"task_hint": "Build mixed source files into a three-layer Context Graph: summaries for coverage, knowledge for task-aware structure, and artifacts for downstream agent handoff with links back to original sources."
|
|
11
11
|
},
|
|
12
12
|
"inputs": [
|
|
13
13
|
{
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"label": "Built-in Interf Build Plan",
|
|
21
|
-
"hint": "Built-in
|
|
21
|
+
"hint": "Built-in Build Plan that builds a Context Graph with source coverage summaries, task-aware knowledge, requested Artifact handoffs, links back to sources, Build evidence, and traces.",
|
|
22
22
|
"stages": [
|
|
23
23
|
{
|
|
24
24
|
"id": "summarize",
|
|
25
25
|
"label": "Summarize",
|
|
26
|
-
"description": "Turn source files into
|
|
26
|
+
"description": "Turn source files into source-named coverage folders under summaries/, with summary.md or manifest.md plus page/slide notes for every inspectable paginated or visual source page.",
|
|
27
27
|
"contract_type": "build-file-evidence",
|
|
28
|
+
"role": "summarizer",
|
|
28
29
|
"skill_dir": "summarize",
|
|
29
30
|
"reads": [],
|
|
30
31
|
"writes": [
|
|
@@ -34,57 +35,62 @@
|
|
|
34
35
|
{
|
|
35
36
|
"id": "structure",
|
|
36
37
|
"label": "Structure",
|
|
37
|
-
"description": "Build the
|
|
38
|
+
"description": "Build the task-aware knowledge graph from summaries as flat knowledge/*.md notes, including claims, entities, topics, indexes, and links back to source refs.",
|
|
38
39
|
"contract_type": "build-knowledge-structure",
|
|
40
|
+
"role": "structurer",
|
|
39
41
|
"skill_dir": "structure",
|
|
40
42
|
"reads": [
|
|
41
43
|
"summaries"
|
|
42
44
|
],
|
|
43
45
|
"writes": [
|
|
44
|
-
"knowledge
|
|
45
|
-
"knowledge-claims",
|
|
46
|
-
"knowledge-indexes"
|
|
46
|
+
"knowledge"
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"id": "shape",
|
|
51
51
|
"label": "Shape",
|
|
52
|
-
"description": "Shape the
|
|
52
|
+
"description": "Shape task-specific Artifact handoffs and the Context Graph index around the saved task focus and Context Checks.",
|
|
53
53
|
"contract_type": "build-query-shape",
|
|
54
|
+
"role": "structurer",
|
|
54
55
|
"skill_dir": "shape",
|
|
55
56
|
"reads": [
|
|
56
57
|
"summaries",
|
|
57
|
-
"knowledge
|
|
58
|
-
"knowledge-claims",
|
|
59
|
-
"knowledge-indexes"
|
|
58
|
+
"knowledge"
|
|
60
59
|
],
|
|
61
60
|
"writes": [
|
|
62
|
-
"knowledge
|
|
63
|
-
"
|
|
61
|
+
"knowledge",
|
|
62
|
+
"artifacts",
|
|
63
|
+
"home"
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"stage_policy_notes": {
|
|
68
68
|
"summarize": [
|
|
69
|
-
"Favor conservative, source-grounded summaries that preserve evidence tiers
|
|
70
|
-
"
|
|
71
|
-
"
|
|
69
|
+
"Favor conservative, source-grounded summaries that prove coverage and preserve evidence tiers; leave broader synthesis for later stages.",
|
|
70
|
+
"Create one folder under `summaries/` per source file, named so a human can match it to the original source file.",
|
|
71
|
+
"For non-paginated sources, write `summaries/<source-name>/summary.md`.",
|
|
72
|
+
"For PDFs, decks, images, or paginated/visual reports, write `summaries/<source-name>/manifest.md` and page or slide folders such as `pages/001/summary.md` for every page/slide that can be inspected. If a page/slide cannot be extracted, record `not_extracted_reason` in the manifest instead of silently skipping it. Include optional screenshots or visual trace paths only when useful and available.",
|
|
73
|
+
"Every summary or page note must link back to the original Source path and the relevant page, section, figure, table, or region. Do not copy source files into the Context Graph.",
|
|
72
74
|
"Keep scratch extraction commands single-purpose and non-destructive."
|
|
73
75
|
],
|
|
74
76
|
"structure": [
|
|
75
|
-
"
|
|
76
|
-
"Use taxonomy and ontology only
|
|
77
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"Build task-aware claims, entities, topics, and indexes from the summaries and their source refs as flat markdown notes under `knowledge/`.",
|
|
78
|
+
"Use taxonomy and ontology only when it improves retrieval, navigation, and evidence tracking.",
|
|
79
|
+
"Treat knowledge notes as navigation and assurance, not as the authority for exact wording, table values, chart reads, or provenance-sensitive claims.",
|
|
80
|
+
"For small Sources, prefer a minimal stable graph over exhaustive note sprawl.",
|
|
81
|
+
"When you add wikilinks, target real Context Graph notes by exact basename or explicit relative path. Do not invent title-style links unless that exact title is also a declared note label or alias.",
|
|
79
82
|
"Do not add wikilinks in structure outputs to files that the shape stage creates later. If a route belongs in `home.md` or a later shaped note, leave plain text now and let the later stage add the link.",
|
|
80
|
-
"For summary references, prefer explicit links like `[[summaries/<
|
|
83
|
+
"For summary references, prefer explicit links like `[[summaries/<source-name>/summary]]`, `[[summaries/<source-name>/manifest]]`, or plain source refs. For knowledge notes, prefer final filenames under `knowledge/`."
|
|
81
84
|
],
|
|
82
85
|
"shape": [
|
|
83
|
-
"Use the saved task focus and
|
|
84
|
-
"Do not copy expected answers into the final
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
86
|
+
"Use the saved task focus and Context Checks to bias the final Context Graph toward the agent task it should be especially good at.",
|
|
87
|
+
"Do not copy benchmark expected answers into the final Context Graph.",
|
|
88
|
+
"Write one or more notes under `artifacts/` as the downstream agent handoff. These notes should tell the agent which original Source files, pages, figures, tables, sections, units, periods, series, and caveats matter.",
|
|
89
|
+
"Artifacts should route the agent to original Source refs for exact claims. Do not present generated summaries or knowledge notes as the dataset or source of truth.",
|
|
90
|
+
"If a saved Context Check depends on source-derived values that may be approximate, preserve the stated range, limits, evidence tier, and source inspection requirement.",
|
|
91
|
+
"For unlabeled charts or visual marks, either create a measurement note with visual reference, calibration, method, and uncertainty, or tell the downstream agent to inspect the original Source before answering.",
|
|
92
|
+
"Prefer better routing, prioritization, and focused navigation over speculative synthesis or answer-only notes.",
|
|
93
|
+
"Any wikilinks you add to `home.md` or indexes must resolve to real Context Graph note basenames or explicit relative paths."
|
|
88
94
|
]
|
|
89
95
|
}
|
|
90
96
|
}
|
|
@@ -1,75 +1,97 @@
|
|
|
1
1
|
{
|
|
2
2
|
"kind": "build-plan-schema",
|
|
3
3
|
"version": 1,
|
|
4
|
-
"target_type": "
|
|
4
|
+
"target_type": "context-graph",
|
|
5
5
|
"label": "Interf built-in Build Plan schema",
|
|
6
6
|
"artifacts": [
|
|
7
7
|
{
|
|
8
|
-
"id": "
|
|
9
|
-
"description": "
|
|
8
|
+
"id": "home",
|
|
9
|
+
"description": "Context Graph index note. Routes to the summaries coverage layer, knowledge graph layer, and task-specific Artifact handoffs; downstream agents should start from artifacts/ for task work.",
|
|
10
10
|
"shape": { "kind": "path", "path": "home.md", "artifact_kind": "file" },
|
|
11
11
|
"checks": [
|
|
12
|
-
{ "id": "exists", "kind": "file_exists", "required": true },
|
|
12
|
+
{ "id": "exists", "kind": "file_exists", "description": "The graph index note exists.", "required": true },
|
|
13
13
|
{
|
|
14
14
|
"id": "no-placeholder",
|
|
15
15
|
"kind": "must_not_contain",
|
|
16
|
+
"description": "The graph index note does not contain placeholder text.",
|
|
16
17
|
"required": true,
|
|
17
18
|
"params": { "phrases": ["Not yet built."] }
|
|
18
19
|
},
|
|
19
|
-
{ "id": "wikilinks", "kind": "wikilinks_valid", "required": true }
|
|
20
|
+
{ "id": "wikilinks", "kind": "wikilinks_valid", "description": "Every graph index wikilink resolves.", "required": true }
|
|
20
21
|
],
|
|
21
22
|
"built_by_stages": ["shape"]
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
25
|
"id": "summaries",
|
|
25
|
-
"description": "
|
|
26
|
+
"description": "Coverage layer with one source-named folder per source file. Non-paginated sources have summary.md. PDFs, decks, and visual/paginated sources include manifest.md plus page/slide folders for every inspected page/slide; uninspected pages/slides must be called out with not_extracted_reason. Every note links back to the original Source path and page/section/figure/table refs instead of copying source files.",
|
|
26
27
|
"shape": { "kind": "path", "path": "summaries", "artifact_kind": "directory" },
|
|
27
28
|
"checks": [
|
|
28
29
|
{
|
|
29
|
-
"id": "
|
|
30
|
-
"kind": "
|
|
30
|
+
"id": "source-summary-folders",
|
|
31
|
+
"kind": "source_summary_folders",
|
|
32
|
+
"description": "Every source file has a source-named folder with summary.md or manifest.md.",
|
|
31
33
|
"required": true,
|
|
32
34
|
"params": { "match": "source_total" }
|
|
33
35
|
},
|
|
34
|
-
{ "id": "frontmatter-valid", "kind": "frontmatter_valid", "required": true },
|
|
36
|
+
{ "id": "frontmatter-valid", "kind": "frontmatter_valid", "description": "Every summary note has valid frontmatter.", "required": true },
|
|
35
37
|
{
|
|
36
38
|
"id": "evidence-keys",
|
|
37
39
|
"kind": "frontmatter_required_keys",
|
|
40
|
+
"description": "Every summary note records source and evidence metadata.",
|
|
38
41
|
"required": true,
|
|
39
|
-
"params": { "keys": ["source", "source_kind", "evidence_tier", "truth_mode", "state"] }
|
|
42
|
+
"params": { "keys": ["source", "source_file_id", "source_path", "source_locator", "source_kind", "evidence_tier", "truth_mode", "state"] }
|
|
40
43
|
}
|
|
41
44
|
],
|
|
42
45
|
"built_by_stages": ["summarize"]
|
|
43
46
|
},
|
|
44
47
|
{
|
|
45
|
-
"id": "knowledge
|
|
46
|
-
"description": "
|
|
47
|
-
"shape": { "kind": "path", "path": "knowledge
|
|
48
|
+
"id": "knowledge",
|
|
49
|
+
"description": "Task-aware Context Graph layer built from summaries and source refs. Current default is flat knowledge/*.md notes. Notes may contain claims, entities, topics, and indexes, but remain navigation and assurance rather than the authority for exact source claims.",
|
|
50
|
+
"shape": { "kind": "path", "path": "knowledge", "artifact_kind": "directory" },
|
|
48
51
|
"checks": [
|
|
49
|
-
{ "id": "exists", "kind": "min_file_count", "required": true, "params": { "min":
|
|
50
|
-
{ "id": "wikilinks", "kind": "wikilinks_valid", "required": true }
|
|
52
|
+
{ "id": "exists", "kind": "min_file_count", "description": "Knowledge layer contains notes for task-aware navigation.", "required": true, "params": { "min": 3 } },
|
|
53
|
+
{ "id": "wikilinks", "kind": "wikilinks_valid", "description": "Every knowledge wikilink resolves.", "required": true }
|
|
51
54
|
],
|
|
52
|
-
"built_by_stages": ["structure"]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"id": "knowledge-claims",
|
|
56
|
-
"description": "Claim notes extracted from summaries with evidence references.",
|
|
57
|
-
"shape": { "kind": "path", "path": "knowledge/claims", "artifact_kind": "directory" },
|
|
58
|
-
"checks": [
|
|
59
|
-
{ "id": "exists", "kind": "min_file_count", "required": true, "params": { "min": 1 } },
|
|
60
|
-
{ "id": "wikilinks", "kind": "wikilinks_valid", "required": true }
|
|
61
|
-
],
|
|
62
|
-
"built_by_stages": ["structure"]
|
|
55
|
+
"built_by_stages": ["structure", "shape"]
|
|
63
56
|
},
|
|
64
57
|
{
|
|
65
|
-
"id": "
|
|
66
|
-
"description": "
|
|
67
|
-
"shape": { "kind": "path", "path": "
|
|
58
|
+
"id": "artifacts",
|
|
59
|
+
"description": "Task-specific requested Artifact handoffs for downstream agents. These notes point to original Source files, pages, figures, tables, sections, units, periods, and caveats; they may link to summaries or knowledge notes for drilldown, but source files remain the authority for exact claims.",
|
|
60
|
+
"shape": { "kind": "path", "path": "artifacts", "artifact_kind": "directory" },
|
|
68
61
|
"checks": [
|
|
69
|
-
{ "id": "exists", "kind": "min_file_count", "required": true, "params": { "min": 1 } },
|
|
70
|
-
{ "id": "
|
|
62
|
+
{ "id": "exists", "kind": "min_file_count", "description": "At least one task-specific Artifact handoff note exists.", "required": true, "params": { "min": 1 } },
|
|
63
|
+
{ "id": "frontmatter-valid", "kind": "frontmatter_valid", "description": "Every Artifact handoff note has valid frontmatter.", "required": true },
|
|
64
|
+
{
|
|
65
|
+
"id": "handoff-frontmatter",
|
|
66
|
+
"kind": "frontmatter_required_keys",
|
|
67
|
+
"description": "Every Artifact handoff records task, source reference, and verification posture.",
|
|
68
|
+
"required": true,
|
|
69
|
+
"params": { "keys": ["task", "source_refs", "handoff_type", "truth_mode", "verification_state", "caveats"] }
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "handoff-source-refs",
|
|
73
|
+
"kind": "source_refs_required",
|
|
74
|
+
"description": "Every Artifact handoff has non-empty source refs.",
|
|
75
|
+
"required": true,
|
|
76
|
+
"params": { "keys": ["source_refs"] }
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "handoff-nonempty-fields",
|
|
80
|
+
"kind": "frontmatter_nonempty_keys",
|
|
81
|
+
"description": "Every Artifact handoff has non-empty task, source refs, verification state, and caveats.",
|
|
82
|
+
"required": true,
|
|
83
|
+
"params": { "keys": ["task", "source_refs", "verification_state", "caveats"] }
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "source-authority-caveat",
|
|
87
|
+
"kind": "must_contain",
|
|
88
|
+
"description": "Artifact handoffs tell agents to follow original Source refs for exact claims.",
|
|
89
|
+
"required": true,
|
|
90
|
+
"params": { "phrases": ["original Source", "source refs"] }
|
|
91
|
+
},
|
|
92
|
+
{ "id": "wikilinks", "kind": "wikilinks_valid", "description": "Every Artifact handoff wikilink resolves.", "required": true }
|
|
71
93
|
],
|
|
72
|
-
"built_by_stages": ["
|
|
94
|
+
"built_by_stages": ["shape"]
|
|
73
95
|
}
|
|
74
96
|
]
|
|
75
97
|
}
|
|
@@ -7,12 +7,12 @@ The improver edits this local Build Plan directly.
|
|
|
7
7
|
|
|
8
8
|
Default loop:
|
|
9
9
|
1. Read the loop context first.
|
|
10
|
-
2. Review preserved stage shells, runtime logs, and saved
|
|
11
|
-
3. Edit only the local Build Plan for this
|
|
10
|
+
2. Review preserved stage shells, runtime logs, and saved benchmark runs from failed attempts.
|
|
11
|
+
3. Edit only the local Build Plan for this Context Graph to create a better implementation for this agent task.
|
|
12
12
|
4. Keep `build-plan.json`, `build-plan.schema.json`, and any changed stage docs aligned.
|
|
13
13
|
|
|
14
14
|
Guardrails:
|
|
15
|
-
- do not edit checks,
|
|
15
|
+
- do not edit checks, benchmark specs, or source files
|
|
16
16
|
- do not hardcode expected answers into Build Plan docs
|
|
17
17
|
- keep this package standalone; do not rely on runtime inheritance
|
|
18
18
|
- prefer small, defensible Build Plan changes over random churn
|
|
@@ -3,21 +3,27 @@
|
|
|
3
3
|
This file is the editable authoring source for the generated native local `interf-query` skill.
|
|
4
4
|
|
|
5
5
|
Default loop:
|
|
6
|
-
1. Read
|
|
7
|
-
2.
|
|
8
|
-
3. Use `
|
|
9
|
-
4.
|
|
6
|
+
1. Read `.interf/build-plan/README.md` and this file first.
|
|
7
|
+
2. Read the relevant notes under `artifacts/` first. Artifact handoffs are the default task handoff surface for the agent.
|
|
8
|
+
3. Use `home.md` only when you need a graph index to find the right Artifact handoff.
|
|
9
|
+
4. Browse `knowledge/` and `summaries/` only when the Artifact handoff needs drilldown, broader context, or debugging.
|
|
10
|
+
5. Use `.interf/runtime/source-manifest.json` and Artifact source refs to follow graph-provided source references for direct quotes, exact values, visual/table verification, and provenance-sensitive claims.
|
|
10
11
|
|
|
11
12
|
Answering rule:
|
|
12
13
|
- do not modify source files while answering
|
|
14
|
+
- use the Context Graph as the knowledge map, not as a raw-source replacement
|
|
15
|
+
- do not bypass the graph with ad hoc source browsing; drill into source only through graph-provided source references, traces, requested Artifacts, or the recorded Source Manifest
|
|
16
|
+
- start from `artifacts/`; treat Artifact handoffs as routing and source-evidence maps, not as a replacement dataset
|
|
17
|
+
- use `summaries/` for coverage proof and `knowledge/` for navigation/drilldown; do not treat generated knowledge notes as the authority for exact claims
|
|
18
|
+
- when exact wording, table values, chart positions, visual ranges, or provenance matter, follow the cited source reference before making a strong claim
|
|
13
19
|
- when a number is approximate or source-derived from a visual, say that explicitly
|
|
14
|
-
- if the
|
|
15
|
-
- use source references to confirm the source page, metric family,
|
|
16
|
-
- when the
|
|
20
|
+
- if the Context Graph already contains a bounded value for the exact metric and period the user asked about, verify the cited source reference when precision matters, then answer from that bounded value
|
|
21
|
+
- use source references to confirm the source page, metric family, visual series, axis/range, period, unit, and provenance
|
|
22
|
+
- when the Context Graph preserves a bounded range, keep that bounded range in the answer instead of collapsing it to a midpoint or pseudo-exact single value
|
|
17
23
|
- match the source granularity and do not invent finer precision than the source supports
|
|
18
|
-
- when reading visuals, verify you are on the correct metric family and period before
|
|
19
|
-
- keep annual, quarterly, sector, and
|
|
24
|
+
- when reading visuals, verify you are on the correct metric family and period before making a claim
|
|
25
|
+
- keep annual, quarterly, sector, and point-in-time metrics separate unless the source explicitly connects them
|
|
20
26
|
- if multiple notes mention the same value, keep the answer consistent with the most focused note rather than synthesizing a new midpoint or shifted range
|
|
21
|
-
- when the
|
|
27
|
+
- when the Context Graph is insufficient but points to the right source evidence, improve or rebuild if the missing semantics are part of the requested Artifact contract; do not present a blurry artifact as ready
|
|
22
28
|
|
|
23
|
-
You can edit this file to bias manual question-answering behavior for this
|
|
29
|
+
You can edit this file to bias manual question-answering behavior for this Context Graph.
|