@kontourai/flow-agents 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/.githooks/pre-push +11 -0
- package/.github/workflows/ci.yml +210 -0
- package/.github/workflows/docs-pages.yml +52 -0
- package/.github/workflows/publish-npm.yml +104 -0
- package/AGENTS.md +26 -0
- package/CHANGELOG.md +66 -0
- package/CODE_OF_CONDUCT.md +25 -0
- package/CONTEXT.md +300 -0
- package/CONTRIBUTING.md +44 -0
- package/LICENSE +201 -0
- package/README.md +129 -0
- package/SECURITY.md +33 -0
- package/agent-cards/dev.json +19 -0
- package/agents/dev.json +127 -0
- package/agents/tool-code-reviewer.json +61 -0
- package/agents/tool-dependencies-updater.json +118 -0
- package/agents/tool-explore-config.json +92 -0
- package/agents/tool-explore-deps.json +92 -0
- package/agents/tool-explore-entry.json +92 -0
- package/agents/tool-explore-patterns.json +92 -0
- package/agents/tool-explore-structure.json +92 -0
- package/agents/tool-explore-tests.json +92 -0
- package/agents/tool-planner.json +57 -0
- package/agents/tool-playwright.json +145 -0
- package/agents/tool-security-reviewer.json +56 -0
- package/agents/tool-verifier.json +61 -0
- package/agents/tool-worker.json +58 -0
- package/build/src/cli/console-learning-projection.js +123 -0
- package/build/src/cli/docs-preview.js +39 -0
- package/build/src/cli/effective-backlog-settings.js +102 -0
- package/build/src/cli/export-bookmarks.js +38 -0
- package/build/src/cli/fixture-retirement-audit.js +140 -0
- package/build/src/cli/flow-kit.js +138 -0
- package/build/src/cli/import-bookmarks.js +50 -0
- package/build/src/cli/init.js +239 -0
- package/build/src/cli/instinct-cli.js +93 -0
- package/build/src/cli/promote-workflow-artifact.js +63 -0
- package/build/src/cli/publish-change-helper.js +154 -0
- package/build/src/cli/pull-work-provider.js +469 -0
- package/build/src/cli/runtime-adapter.js +23 -0
- package/build/src/cli/telemetry-doctor.js +221 -0
- package/build/src/cli/usage-feedback.js +443 -0
- package/build/src/cli/validate-hook-influence.js +152 -0
- package/build/src/cli/validate-source-tree.js +31 -0
- package/build/src/cli/validate-workflow-artifacts.js +486 -0
- package/build/src/cli/veritas-governance.js +262 -0
- package/build/src/cli/workflow-artifact-cleanup-audit.js +272 -0
- package/build/src/cli/workflow-sidecar.js +816 -0
- package/build/src/cli.js +89 -0
- package/build/src/flow-kit/validate.js +75 -0
- package/build/src/lib/args.js +45 -0
- package/build/src/lib/fs.js +62 -0
- package/build/src/lib/workflow-learning-projection.js +334 -0
- package/build/src/runtime-adapters.js +146 -0
- package/build/src/tools/build-universal-bundles.js +397 -0
- package/build/src/tools/common.js +56 -0
- package/build/src/tools/filter-installed-packs.js +132 -0
- package/build/src/tools/generate-context-map.js +198 -0
- package/build/src/tools/validate-package.js +64 -0
- package/build/src/tools/validate-source-tree.js +622 -0
- package/console.telemetry.json +176 -0
- package/context/base-rules.md +17 -0
- package/context/code-review-standards.md +62 -0
- package/context/coding-standards.md +42 -0
- package/context/common/orchestrators.md +12 -0
- package/context/common/subagents.md +28 -0
- package/context/contracts/artifact-contract.md +182 -0
- package/context/contracts/builder-kit-workflow-state-contract.md +319 -0
- package/context/contracts/delivery-contract.md +69 -0
- package/context/contracts/execution-contract.md +53 -0
- package/context/contracts/governance-adapter-contract.md +67 -0
- package/context/contracts/planning-contract.md +85 -0
- package/context/contracts/review-contract.md +104 -0
- package/context/contracts/sandbox-policy.md +52 -0
- package/context/contracts/verification-contract.md +134 -0
- package/context/contracts/work-item-contract.md +215 -0
- package/context/deferred/demo-mode.md +33 -0
- package/context/deferred/languages/go.md +31 -0
- package/context/deferred/languages/python.md +31 -0
- package/context/deferred/languages/typescript.md +34 -0
- package/context/deferred/parallelization.md +35 -0
- package/context/deferred/worktree-isolation.md +24 -0
- package/context/development-workflow.md +50 -0
- package/context/scripts/context-budget/budget-scan.sh +166 -0
- package/context/scripts/detect-tools.sh +3 -0
- package/context/scripts/discover-agents.sh +28 -0
- package/context/scripts/git-status.sh +49 -0
- package/context/scripts/hooks/config-protection.js +79 -0
- package/context/scripts/hooks/desktop-notify.sh +39 -0
- package/context/scripts/hooks/governance-audit.sh +135 -0
- package/context/scripts/hooks/lib/audit-transport.sh +40 -0
- package/context/scripts/hooks/lib/hook-flags.js +49 -0
- package/context/scripts/hooks/lib/patterns.sh +57 -0
- package/context/scripts/hooks/lib/resolve-formatter.js +80 -0
- package/context/scripts/hooks/post-edit-accumulator.js +66 -0
- package/context/scripts/hooks/pre-commit-quality.js +194 -0
- package/context/scripts/hooks/quality-gate.js +93 -0
- package/context/scripts/hooks/report-only-guard.js +21 -0
- package/context/scripts/hooks/run-hook.js +136 -0
- package/context/scripts/hooks/stop-format-typecheck.js +141 -0
- package/context/scripts/hooks/stop-goal-fit.js +337 -0
- package/context/scripts/hooks/workflow-steering.js +250 -0
- package/context/scripts/telemetry/console-presets.sh +14 -0
- package/context/scripts/telemetry/install-console-config.sh +214 -0
- package/context/scripts/telemetry/lib/config.sh +85 -0
- package/context/scripts/telemetry/lib/enrich.sh +115 -0
- package/context/scripts/telemetry/lib/redact.sh +22 -0
- package/context/scripts/telemetry/lib/session.sh +63 -0
- package/context/scripts/telemetry/lib/transport.sh +183 -0
- package/context/scripts/telemetry/lib/usage.sh +29 -0
- package/context/scripts/telemetry/sync-agents.sh +173 -0
- package/context/scripts/telemetry/telemetry.conf +23 -0
- package/context/scripts/telemetry/telemetry.sh +387 -0
- package/context/scripts/validate-package.sh +89 -0
- package/context/settings/backlog-provider-settings.json +54 -0
- package/context/templates/core/identity.md +26 -0
- package/context/templates/core/user.md +15 -0
- package/docs/_config.yml +15 -0
- package/docs/_layouts/default.html +87 -0
- package/docs/adr/0001-flow-agents-consumes-flow.md +77 -0
- package/docs/adr/0002-flow-kits-as-extension-unit.md +13 -0
- package/docs/adr/0003-flow-agents-coordinates-kits-and-adapters.md +13 -0
- package/docs/adr/0004-gates-expect-surface-claims.md +15 -0
- package/docs/adr/0005-kubernetes-inspired-resource-contracts.md +48 -0
- package/docs/adr/0006-typescript-first-source-policy.md +98 -0
- package/docs/agent-system-guidebook.md +391 -0
- package/docs/agent-usage-feedback-loop.md +351 -0
- package/docs/assets/favicon.svg +13 -0
- package/docs/assets/og-image.png +0 -0
- package/docs/assets/site.css +774 -0
- package/docs/assets/site.js +139 -0
- package/docs/configurable-workflow-routing.md +174 -0
- package/docs/context-map.md +145 -0
- package/docs/developer-architecture.md +145 -0
- package/docs/developer-hook-setup.md +61 -0
- package/docs/fixture-ownership.md +44 -0
- package/docs/flow-kit-repository-contract.md +180 -0
- package/docs/index.md +129 -0
- package/docs/kontour-resource-contract.md +358 -0
- package/docs/migrations.md +64 -0
- package/docs/north-star.md +322 -0
- package/docs/operating-layers.md +110 -0
- package/docs/repository-structure.md +132 -0
- package/docs/sandbox-policy.md +56 -0
- package/docs/skills-map.md +203 -0
- package/docs/standards-register.md +96 -0
- package/docs/veritas-integration.md +165 -0
- package/docs/work-item-adapters.md +72 -0
- package/docs/workflow-artifact-lifecycle.md +141 -0
- package/docs/workflow-eval-strategy.md +295 -0
- package/docs/workflow-shared-contracts.md +51 -0
- package/docs/workflow-usage-guide.md +443 -0
- package/evals/ARCHITECTURE.md +143 -0
- package/evals/CONVENTIONS.md +58 -0
- package/evals/README.md +128 -0
- package/evals/acceptance/run.sh +29 -0
- package/evals/acceptance/test_claude_harness.sh +242 -0
- package/evals/acceptance/test_codex_harness.sh +108 -0
- package/evals/acceptance/test_kiro_harness.sh +128 -0
- package/evals/cases/dev/404.html +97 -0
- package/evals/cases/dev/code-review.yaml +44 -0
- package/evals/cases/dev/dashboard.html +300 -0
- package/evals/cases/dev/deliver.yaml +66 -0
- package/evals/cases/dev/dependency-update.yaml +16 -0
- package/evals/cases/dev/explore.yaml +20 -0
- package/evals/cases/dev/index.html +370 -0
- package/evals/cases/dev/package-lock.json +28 -0
- package/evals/cases/dev/package.json +16 -0
- package/evals/cases/dev/plan-work.yaml +20 -0
- package/evals/cases/dev/promptfooconfig.yaml +666 -0
- package/evals/cases/dev/search-first.yaml +20 -0
- package/evals/cases/dev/tdd-workflow.yaml +48 -0
- package/evals/cases/dev/verify-work.yaml +44 -0
- package/evals/cases/dev/workflow.yaml +34 -0
- package/evals/ci/run-baseline.sh +283 -0
- package/evals/fixtures/backlog-provider-settings/global-default.json +44 -0
- package/evals/fixtures/backlog-provider-settings/project-override.json +53 -0
- package/evals/fixtures/builder-kit-workflow-state/baseline-freshness-resolution-hint.json +139 -0
- package/evals/fixtures/builder-kit-workflow-state/direct-primitive-stop.json +59 -0
- package/evals/fixtures/builder-kit-workflow-state/empty-board-route-shape.json +55 -0
- package/evals/fixtures/builder-kit-workflow-state/happy-path.json +71 -0
- package/evals/fixtures/builder-kit-workflow-state/mid-work-resume.json +80 -0
- package/evals/fixtures/builder-kit-workflow-state/missing-prestep-recovery.json +65 -0
- package/evals/fixtures/builder-kit-workflow-state/product-build-chaining.json +60 -0
- package/evals/fixtures/builder-kit-workflow-state/stale-continuation-requires-new-probe.json +57 -0
- package/evals/fixtures/console-learning-projection/artifacts/console-learning-correction/learning.json +50 -0
- package/evals/fixtures/console-learning-projection/artifacts/console-learning-open-route/learning.json +41 -0
- package/evals/fixtures/flow-kit-repository/invalid-absolute-path/kit.json +8 -0
- package/evals/fixtures/flow-kit-repository/invalid-asset-section/flows/review.flow.json +6 -0
- package/evals/fixtures/flow-kit-repository/invalid-asset-section/kit.json +11 -0
- package/evals/fixtures/flow-kit-repository/invalid-duplicate-flow/flows/review.flow.json +6 -0
- package/evals/fixtures/flow-kit-repository/invalid-duplicate-flow/kit.json +9 -0
- package/evals/fixtures/flow-kit-repository/invalid-id/flows/review.flow.json +6 -0
- package/evals/fixtures/flow-kit-repository/invalid-id/kit.json +8 -0
- package/evals/fixtures/flow-kit-repository/invalid-malformed-json/kit.json +8 -0
- package/evals/fixtures/flow-kit-repository/invalid-missing-flow/kit.json +8 -0
- package/evals/fixtures/flow-kit-repository/invalid-missing-id/flows/review.flow.json +6 -0
- package/evals/fixtures/flow-kit-repository/invalid-missing-id/kit.json +7 -0
- package/evals/fixtures/flow-kit-repository/invalid-missing-schema-version/flows/review.flow.json +6 -0
- package/evals/fixtures/flow-kit-repository/invalid-missing-schema-version/kit.json +7 -0
- package/evals/fixtures/flow-kit-repository/invalid-name/flows/review.flow.json +6 -0
- package/evals/fixtures/flow-kit-repository/invalid-name/kit.json +8 -0
- package/evals/fixtures/flow-kit-repository/invalid-schema-version/flows/review.flow.json +6 -0
- package/evals/fixtures/flow-kit-repository/invalid-schema-version/kit.json +8 -0
- package/evals/fixtures/flow-kit-repository/invalid-traversal/kit.json +8 -0
- package/evals/fixtures/flow-kit-repository/mixed-runtime-kit/adapters/example.json +3 -0
- package/evals/fixtures/flow-kit-repository/mixed-runtime-kit/assets/example.txt +1 -0
- package/evals/fixtures/flow-kit-repository/mixed-runtime-kit/docs/README.md +3 -0
- package/evals/fixtures/flow-kit-repository/mixed-runtime-kit/flows/runtime.flow.json +26 -0
- package/evals/fixtures/flow-kit-repository/mixed-runtime-kit/kit-evals/example.json +3 -0
- package/evals/fixtures/flow-kit-repository/mixed-runtime-kit/kit-skills/mixed/SKILL.md +3 -0
- package/evals/fixtures/flow-kit-repository/mixed-runtime-kit/kit.json +44 -0
- package/evals/fixtures/flow-kit-repository/valid-local-kit/docs/README.md +3 -0
- package/evals/fixtures/flow-kit-repository/valid-local-kit/flows/review.flow.json +26 -0
- package/evals/fixtures/flow-kit-repository/valid-local-kit/kit.json +20 -0
- package/evals/fixtures/hook-influence/cases.json +336 -0
- package/evals/fixtures/pull-work-provider/github-issues.json +170 -0
- package/evals/fixtures/pull-work-wip-shepherding/global-wip-informs.json +43 -0
- package/evals/fixtures/pull-work-wip-shepherding/personal-wip-blocks.json +42 -0
- package/evals/fixtures/surface-trust/accepted-claim-trust-report.json +31 -0
- package/evals/fixtures/surface-trust/artifact-absent.json +19 -0
- package/evals/fixtures/surface-trust/integrity-mismatch-trust-report.json +32 -0
- package/evals/fixtures/surface-trust/missing-authority-trust-report.json +27 -0
- package/evals/fixtures/surface-trust/provider-absent.json +19 -0
- package/evals/fixtures/surface-trust/rejected-claim-trust-report.json +30 -0
- package/evals/fixtures/surface-trust/stale-claim-trust-snapshot.json +31 -0
- package/evals/fixtures/usage-feedback/sample-full.jsonl +11 -0
- package/evals/fixtures/usage-feedback/sample-outcomes.jsonl +1 -0
- package/evals/fixtures/veritas-governance-adapter/fake-veritas-pass.sh +18 -0
- package/evals/fixtures/veritas-governance-adapter/fake-veritas-secret-fail.sh +10 -0
- package/evals/fixtures/veritas-governance-adapter/fake-veritas-unconfigured.sh +4 -0
- package/evals/integration/test_bundle_install.sh +541 -0
- package/evals/integration/test_console_learning_projection.sh +192 -0
- package/evals/integration/test_context_map.sh +65 -0
- package/evals/integration/test_effective_backlog_settings.sh +58 -0
- package/evals/integration/test_fixture_retirement_audit.sh +58 -0
- package/evals/integration/test_flow_agents_statusline.sh +93 -0
- package/evals/integration/test_flow_kit_repository.sh +90 -0
- package/evals/integration/test_goal_fit_hook.sh +482 -0
- package/evals/integration/test_hook_category_behaviors.sh +190 -0
- package/evals/integration/test_hook_influence_cases.sh +69 -0
- package/evals/integration/test_local_flow_kit_install.sh +145 -0
- package/evals/integration/test_publish_change_helper.sh +176 -0
- package/evals/integration/test_pull_work_provider.sh +140 -0
- package/evals/integration/test_runtime_adapter_activation.sh +106 -0
- package/evals/integration/test_telemetry.sh +485 -0
- package/evals/integration/test_telemetry_doctor.sh +193 -0
- package/evals/integration/test_usage_feedback_dashboard.sh +169 -0
- package/evals/integration/test_usage_feedback_global.sh +117 -0
- package/evals/integration/test_usage_feedback_import.sh +227 -0
- package/evals/integration/test_usage_feedback_outcomes.sh +165 -0
- package/evals/integration/test_usage_feedback_report.sh +263 -0
- package/evals/integration/test_veritas_governance_adapter.sh +235 -0
- package/evals/integration/test_workflow_artifact_cleanup_audit.sh +287 -0
- package/evals/integration/test_workflow_artifacts.sh +1247 -0
- package/evals/integration/test_workflow_sidecar_writer.sh +2112 -0
- package/evals/integration/test_workflow_steering_hook.sh +337 -0
- package/evals/lib/assertions/delegated-to.js +40 -0
- package/evals/lib/assertions/max-tool-calls.js +15 -0
- package/evals/lib/assertions/no-write-tools.js +27 -0
- package/evals/lib/assertions/pass-at-k.js +39 -0
- package/evals/lib/assertions/telemetry-utils.js +105 -0
- package/evals/lib/assertions/tool-called.js +39 -0
- package/evals/lib/assertions/verify-after-fix.js +61 -0
- package/evals/lib/claude-judge.sh +40 -0
- package/evals/lib/claude-provider.sh +74 -0
- package/evals/lib/codex-judge.sh +39 -0
- package/evals/lib/codex-provider.sh +81 -0
- package/evals/lib/eval-dev.sh +5 -0
- package/evals/lib/eval-judge.sh +22 -0
- package/evals/lib/eval-provider.sh +26 -0
- package/evals/lib/eval-report.sh +73 -0
- package/evals/lib/kiro-dev.sh +4 -0
- package/evals/lib/kiro-judge.sh +17 -0
- package/evals/lib/kiro-provider.sh +62 -0
- package/evals/lib/node.sh +111 -0
- package/evals/promptfooconfig.yaml +70 -0
- package/evals/run.sh +309 -0
- package/evals/static/test_evidence_refs.sh +141 -0
- package/evals/static/test_package.sh +407 -0
- package/evals/static/test_repo_hooks.sh +68 -0
- package/evals/static/test_universal_bundles.sh +274 -0
- package/evals/static/test_workflow_skills.sh +1207 -0
- package/install.sh +64 -0
- package/integrations/veritas/flow-agents.adapter.json +138 -0
- package/integrations/veritas/flow-agents.authority-settings.json +26 -0
- package/integrations/veritas/flow-agents.repo-standards.json +82 -0
- package/kits/builder/flows/build.flow.json +218 -0
- package/kits/builder/flows/shape.flow.json +127 -0
- package/kits/builder/kit.json +19 -0
- package/kits/catalog.json +11 -0
- package/package.json +130 -0
- package/packaging/README.md +60 -0
- package/packaging/manifest.json +173 -0
- package/packaging/packs.json +69 -0
- package/powers/dependency-checker/POWER.md +20 -0
- package/powers/dependency-checker/mcp.json +20 -0
- package/powers/playwright/POWER.md +25 -0
- package/powers/playwright/mcp.json +12 -0
- package/prompts/code-audit.md +123 -0
- package/prompts/kcommit.md +88 -0
- package/schemas/backlog-provider-settings.schema.json +138 -0
- package/schemas/workflow-acceptance.schema.json +216 -0
- package/schemas/workflow-critique.schema.json +113 -0
- package/schemas/workflow-evidence.schema.json +357 -0
- package/schemas/workflow-handoff.schema.json +52 -0
- package/schemas/workflow-learning.schema.json +223 -0
- package/schemas/workflow-release.schema.json +172 -0
- package/schemas/workflow-state.schema.json +80 -0
- package/scripts/README.md +111 -0
- package/scripts/build-universal-bundles.js +3 -0
- package/scripts/check-content-boundary.cjs +99 -0
- package/scripts/context-budget/budget-scan.sh +166 -0
- package/scripts/detect-tools.sh +3 -0
- package/scripts/discover-agents.sh +28 -0
- package/scripts/effective-backlog-settings.js +2 -0
- package/scripts/filter-installed-packs.js +2 -0
- package/scripts/flow-kit.js +2 -0
- package/scripts/generate-context-map.js +2 -0
- package/scripts/git-status.sh +49 -0
- package/scripts/hooks/claude-hook-adapter.js +174 -0
- package/scripts/hooks/claude-telemetry-hook.js +115 -0
- package/scripts/hooks/codex-hook-adapter.js +176 -0
- package/scripts/hooks/codex-telemetry-hook.js +95 -0
- package/scripts/hooks/config-protection.js +79 -0
- package/scripts/hooks/desktop-notify.sh +39 -0
- package/scripts/hooks/governance-audit.sh +135 -0
- package/scripts/hooks/lib/audit-transport.sh +40 -0
- package/scripts/hooks/lib/hook-flags.js +49 -0
- package/scripts/hooks/lib/patterns.sh +57 -0
- package/scripts/hooks/lib/resolve-formatter.js +80 -0
- package/scripts/hooks/post-edit-accumulator.js +66 -0
- package/scripts/hooks/pre-commit-quality.js +194 -0
- package/scripts/hooks/quality-gate.js +93 -0
- package/scripts/hooks/report-only-guard.js +21 -0
- package/scripts/hooks/run-hook.js +136 -0
- package/scripts/hooks/stop-format-typecheck.js +141 -0
- package/scripts/hooks/stop-goal-fit.js +337 -0
- package/scripts/hooks/workflow-steering.js +250 -0
- package/scripts/install-codex-home.sh +106 -0
- package/scripts/package.json +3 -0
- package/scripts/promote-workflow-artifact.js +2 -0
- package/scripts/publish-change-helper.js +2 -0
- package/scripts/pull-work-provider.js +2 -0
- package/scripts/setup-repo-hooks.sh +8 -0
- package/scripts/statusline/flow-agents-statusline.js +157 -0
- package/scripts/telemetry/console-presets.sh +14 -0
- package/scripts/telemetry/install-console-config.sh +214 -0
- package/scripts/telemetry/lib/config.sh +85 -0
- package/scripts/telemetry/lib/enrich.sh +115 -0
- package/scripts/telemetry/lib/redact.sh +22 -0
- package/scripts/telemetry/lib/session.sh +63 -0
- package/scripts/telemetry/lib/transport.sh +183 -0
- package/scripts/telemetry/lib/usage.sh +29 -0
- package/scripts/telemetry/sync-agents.sh +173 -0
- package/scripts/telemetry/telemetry.conf +23 -0
- package/scripts/telemetry/telemetry.sh +387 -0
- package/scripts/usage-feedback.js +2 -0
- package/scripts/validate-hook-influence-cases.js +2 -0
- package/scripts/validate-package.sh +89 -0
- package/scripts/validate-source-tree.js +9 -0
- package/skills/agentic-engineering/SKILL.md +62 -0
- package/skills/browser-test/SKILL.md +51 -0
- package/skills/builder-shape/SKILL.md +76 -0
- package/skills/context-budget/SKILL.md +40 -0
- package/skills/deliver/SKILL.md +241 -0
- package/skills/dependency-update/SKILL.md +68 -0
- package/skills/design-probe/SKILL.md +107 -0
- package/skills/eval-rebuild/SKILL.md +39 -0
- package/skills/evidence-gate/SKILL.md +186 -0
- package/skills/execute-plan/SKILL.md +110 -0
- package/skills/explore/SKILL.md +137 -0
- package/skills/feedback-loop/SKILL.md +87 -0
- package/skills/fix-bug/SKILL.md +133 -0
- package/skills/frontend-design/SKILL.md +80 -0
- package/skills/github-cli/SKILL.md +63 -0
- package/skills/idea-to-backlog/SKILL.md +267 -0
- package/skills/knowledge-capture/SKILL.md +55 -0
- package/skills/learning-review/SKILL.md +115 -0
- package/skills/pickup-probe/SKILL.md +114 -0
- package/skills/plan-work/SKILL.md +176 -0
- package/skills/pull-work/SKILL.md +309 -0
- package/skills/release-readiness/SKILL.md +121 -0
- package/skills/review-work/SKILL.md +161 -0
- package/skills/search-first/SKILL.md +66 -0
- package/skills/tdd-workflow/SKILL.md +140 -0
- package/skills/verify-work/SKILL.md +109 -0
- package/src/cli/console-learning-projection.ts +140 -0
- package/src/cli/effective-backlog-settings.ts +99 -0
- package/src/cli/fixture-retirement-audit.ts +154 -0
- package/src/cli/flow-kit.ts +139 -0
- package/src/cli/init.ts +248 -0
- package/src/cli/promote-workflow-artifact.ts +64 -0
- package/src/cli/publish-change-helper.ts +143 -0
- package/src/cli/pull-work-provider.ts +481 -0
- package/src/cli/runtime-adapter.ts +24 -0
- package/src/cli/telemetry-doctor.ts +243 -0
- package/src/cli/usage-feedback.ts +418 -0
- package/src/cli/validate-hook-influence.ts +119 -0
- package/src/cli/validate-source-tree.ts +30 -0
- package/src/cli/validate-workflow-artifacts.ts +411 -0
- package/src/cli/veritas-governance.ts +322 -0
- package/src/cli/workflow-artifact-cleanup-audit.ts +281 -0
- package/src/cli/workflow-sidecar.ts +676 -0
- package/src/cli.ts +95 -0
- package/src/flow-kit/validate.ts +74 -0
- package/src/lib/args.ts +43 -0
- package/src/lib/fs.ts +62 -0
- package/src/lib/workflow-learning-projection.ts +491 -0
- package/src/runtime-adapters.ts +154 -0
- package/src/tools/build-universal-bundles.ts +366 -0
- package/src/tools/common.ts +61 -0
- package/src/tools/filter-installed-packs.ts +129 -0
- package/src/tools/generate-context-map.ts +199 -0
- package/src/tools/validate-package.ts +57 -0
- package/src/tools/validate-source-tree.ts +488 -0
- package/tsconfig.json +19 -0
- package/veritas.claims.json +6 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Flow Agents Skills Map
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Flow Agents Skills Map
|
|
6
|
+
|
|
7
|
+
This map groups the current skills by the user journey they support. The Builder Kit workflow system is centered on concrete workflow skills, while Flow Agents coordinates Flow Kit installation, runtime adapters, and local control.
|
|
8
|
+
|
|
9
|
+
For practical operator instructions and copy/paste prompts, see https://github.com/kontourai/flow-agents/blob/main/docs/workflow-usage-guide.md. For the shared cross-distribution contracts behind the workflow artifacts and gates, see https://github.com/kontourai/flow-agents/blob/main/docs/workflow-shared-contracts.md.
|
|
10
|
+
|
|
11
|
+
- `builder-shape`: product-level Builder Kit shape invocation that guides `idea-to-backlog` without requiring the user to name the primitive, links `kits/builder/flows/shape.flow.json`, and stops at the backlog gate unless issue sync is explicit.
|
|
12
|
+
- `idea-to-backlog`: discovery, idea separation, thinnest meaningful slice, shaping, prioritization, and executable GitHub issue creation.
|
|
13
|
+
- `pull-work`: dynamic backlog selection, grouping/dependency checks, WIP awareness, worktree decision, and execution handoff; in Builder Kit build, every selected item or justified group needs fresh pickup Probe evidence before planning.
|
|
14
|
+
- `design-probe`: generic one-question-at-a-time probing interview; Builder Kit uses this step before planning when the build flow needs shared understanding or a pickup decision.
|
|
15
|
+
- `pickup-probe`: Builder Kit specialization of `design-probe` for selected work items; records scope, provider state, WIP/conflict scans, risks, decisions, unresolved questions, accepted gaps, and planning readiness.
|
|
16
|
+
- `plan-work` / `execute-plan` / `deliver`: Definition Of Done, execution orchestration, and local delivery closure.
|
|
17
|
+
- `review-work`: report-only critique for quality, security triggers, architecture fit, and standards findings.
|
|
18
|
+
- `verify-work`: behavior evidence mapped to acceptance criteria and Goal Fit.
|
|
19
|
+
- `evidence-gate`: trust assessment for completed work: acceptance evidence, integrity checks, CI confidence, and next step.
|
|
20
|
+
- `release-readiness`: operational decisioning for a published change: merge/release/deploy/hold, rollback, observability, final acceptance docs, and post-deploy planning.
|
|
21
|
+
- `learning-review`: post-merge/post-deploy learning, follow-up routing, docs promotion checks, and durable knowledge capture.
|
|
22
|
+
|
|
23
|
+
```mermaid
|
|
24
|
+
flowchart LR
|
|
25
|
+
Idea[Raw idea or goal]
|
|
26
|
+
Shape[Builder Kit shape / idea-to-backlog<br/>shape executable work]
|
|
27
|
+
Pickup[pull-work<br/>select ready work]
|
|
28
|
+
Probe[design-probe / pickup-probe<br/>pickup Probe before planning]
|
|
29
|
+
Build[plan-work + execute-plan<br/>build the slice]
|
|
30
|
+
Review[review-work<br/>critique code and risk]
|
|
31
|
+
Verify[verify-work<br/>prove behavior]
|
|
32
|
+
GoalFit[goal-fit<br/>check user outcome]
|
|
33
|
+
Trust[evidence-gate<br/>map criteria to evidence]
|
|
34
|
+
Publish[publish-change<br/>commit / push / PR / CI]
|
|
35
|
+
Release[release-readiness<br/>merge / release / deploy / docs decision]
|
|
36
|
+
Learn[learning-review<br/>route follow-ups]
|
|
37
|
+
Backlog[(GitHub issues)]
|
|
38
|
+
|
|
39
|
+
Idea --> Shape --> Backlog --> Pickup --> Probe --> Build --> Review --> Verify --> GoalFit --> Trust --> Publish --> Release --> Learn
|
|
40
|
+
Probe -->|not needed| Build
|
|
41
|
+
Pickup -->|too vague or stale| Shape
|
|
42
|
+
Review -->|findings| Build
|
|
43
|
+
GoalFit -->|incomplete| Build
|
|
44
|
+
Trust -->|FAIL / NOT_VERIFIED| Build
|
|
45
|
+
Learn -->|new work| Shape
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Current Shape
|
|
49
|
+
|
|
50
|
+
The operating model now has first-class coverage from idea intake through trusted delivery:
|
|
51
|
+
|
|
52
|
+
- Upstream product work is exposed through `builder-shape` and owned by `idea-to-backlog`.
|
|
53
|
+
- Backlog selection and execution handoff are owned by `pull-work`.
|
|
54
|
+
- Design probing is a generic skill named `design-probe`; in the Builder Kit build flow the step is still named `design-probe`, and the `pickup-probe` specialization records selected-work readiness before planning. `decision_gap` route-backs return there for missing pickup/planning decisions.
|
|
55
|
+
- Product-level Builder Kit build may guide `pull-work -> design-probe / pickup-probe -> plan-work`; direct primitives still stop at their own gates and report the expected next step.
|
|
56
|
+
- Broad continuation language does not carry across newly selected work after merge. Queue inspection is allowed, but planning the next item requires a fresh pickup Probe record.
|
|
57
|
+
- Critique is owned by `review-work` and persisted in `critique.json`.
|
|
58
|
+
- Verification is owned by `verify-work` and persisted in `evidence.json`.
|
|
59
|
+
- Trust evidence is assessed by `evidence-gate`; it decides whether completed work has enough proof and integrity to publish or continue fixing.
|
|
60
|
+
- Publishing verified changes is the bridge between evidence and release readiness: commit the verified diff, push the branch, open or update the PR, and collect PR/CI evidence.
|
|
61
|
+
- Merge/release/deploy decisioning is owned by `release-readiness` after the publish-change gate.
|
|
62
|
+
- Retrospective learning and follow-up routing are owned by `learning-review`.
|
|
63
|
+
- Implementation still flows through `plan-work`, `execute-plan`, `review-work`, and `verify-work`, with `Definition Of Done` and `Goal Fit Gate` preventing task-complete-but-user-incomplete delivery.
|
|
64
|
+
- Real browser/runtime checks remain delegated to `feedback-loop` and `browser-test`.
|
|
65
|
+
|
|
66
|
+
The upstream guardrail is intentionally strict: multiple ideas are inventoried separately first, the thinnest meaningful slice is identified for each buildable idea, and bundled work must have an explicit dependency or shared-outcome justification. The pickup workflow repeats this check before planning so unrelated backlog items do not silently become one implementation stream.
|
|
67
|
+
|
|
68
|
+
The intentionally deferred primitives such as `intake-idea`, `shape-work`, `test-map`, and `scope-and-integrity-check` are nested workflow sections for now. They should become separate skills only if their behavior grows enough to need independent contracts, artifacts, or eval suites.
|
|
69
|
+
|
|
70
|
+
## Phase Composition
|
|
71
|
+
|
|
72
|
+
This view shows how each phase is composed. The left rail is the durable phase sequence; each phase row names its primary owner, supporting skills, nested sections that may later become primitives, and the gate/artifact that lets the next phase begin.
|
|
73
|
+
|
|
74
|
+
<section class="phase-map" aria-label="Workflow phase composition">
|
|
75
|
+
<article class="phase-row">
|
|
76
|
+
<div class="phase-step"><span>01</span><strong>Discovery & shaping</strong></div>
|
|
77
|
+
<div class="phase-lanes">
|
|
78
|
+
<section class="phase-lane phase-lane--primary"><h3>Primary</h3><p><code>builder-shape</code> <code>idea-to-backlog</code></p></section>
|
|
79
|
+
<section class="phase-lane"><h3>Support</h3><p><code>knowledge-search</code> <code>search-first</code> <code>explore</code> <code>crowdsource</code> <code>frontend-design</code> <code>github-cli</code> <code>knowledge-capture</code></p></section>
|
|
80
|
+
<section class="phase-lane"><h3>Nested sections / future primitives</h3><p>intake/dedupe, separate ideas, thinnest meaningful slice, opportunity review, explore options, <code>shape-work</code>, prioritize work, sync executable backlog</p></section>
|
|
81
|
+
<section class="phase-lane phase-lane--gate"><h3>Gate & artifact</h3><p>Idea, slice, shape, and backlog gates. Writes shaped briefs and GitHub issue links in <code>.flow-agents/<slug>/</code>.</p></section>
|
|
82
|
+
</div>
|
|
83
|
+
</article>
|
|
84
|
+
<article class="phase-row">
|
|
85
|
+
<div class="phase-step"><span>02</span><strong>Backlog pickup</strong></div>
|
|
86
|
+
<div class="phase-lanes">
|
|
87
|
+
<section class="phase-lane phase-lane--primary"><h3>Primary</h3><p><code>pull-work</code></p></section>
|
|
88
|
+
<section class="phase-lane"><h3>Support</h3><p><code>github-cli</code></p></section>
|
|
89
|
+
<section class="phase-lane"><h3>Nested sections / future primitives</h3><p>board snapshot, WIP check, grouping/dependency check, pickup Probe decision, worktree decision, <code>plan-work</code> handoff</p></section>
|
|
90
|
+
<section class="phase-lane phase-lane--gate"><h3>Gate & artifact</h3><p>Pickup gate and pickup Probe handoff. Writes selected issues, blockers, bundle justification, provider state, accepted gaps, worktree policy, expected modified files, conflict risks, and handoff notes.</p></section>
|
|
91
|
+
</div>
|
|
92
|
+
</article>
|
|
93
|
+
<article class="phase-row">
|
|
94
|
+
<div class="phase-step"><span>03</span><strong>Planning & build</strong></div>
|
|
95
|
+
<div class="phase-lanes">
|
|
96
|
+
<section class="phase-lane phase-lane--primary"><h3>Primary</h3><p><code>plan-work</code> <code>execute-plan</code> <code>review-work</code> <code>verify-work</code></p></section>
|
|
97
|
+
<section class="phase-lane"><h3>Support</h3><p><code>feedback-loop</code> <code>browser-test</code> <code>deliver</code> <code>fix-bug</code> <code>tdd-workflow</code></p></section>
|
|
98
|
+
<section class="phase-lane"><h3>Nested sections / future primitives</h3><p>Definition Of Done, execution plan, parallel waves, implementation session state, critique report, verification report, runtime/browser validation, Goal Fit Gate</p></section>
|
|
99
|
+
<section class="phase-lane phase-lane--gate"><h3>Gate & artifact</h3><p>Review, verification, and Goal Fit gates. Produces critique findings plus test, build, lint, browser, or runtime evidence tied to acceptance criteria and the user-facing outcome.</p></section>
|
|
100
|
+
</div>
|
|
101
|
+
</article>
|
|
102
|
+
<article class="phase-row">
|
|
103
|
+
<div class="phase-step"><span>04</span><strong>Evidence & release</strong></div>
|
|
104
|
+
<div class="phase-lanes">
|
|
105
|
+
<section class="phase-lane phase-lane--primary"><h3>Primary</h3><p><code>evidence-gate</code> <code>release-readiness</code></p></section>
|
|
106
|
+
<section class="phase-lane"><h3>Support</h3><p><code>github-cli</code> <code>eval-rebuild</code></p></section>
|
|
107
|
+
<section class="phase-lane"><h3>Nested sections / future primitives</h3><p>criteria-to-evidence map, CI confidence, <code>scope-and-integrity-check</code>, publish-change, rollback review, observability review, post-deploy plan, final acceptance docs, remediate-ci</p></section>
|
|
108
|
+
<section class="phase-lane phase-lane--gate"><h3>Gate & artifact</h3><p>Evidence, publish-change, release, and docs gates. Writes confidence, integrity, commit/branch/PR/CI links, release scope, risk, rollback, deploy-readiness decisions, and durable documentation links.</p></section>
|
|
109
|
+
</div>
|
|
110
|
+
</article>
|
|
111
|
+
<article class="phase-row">
|
|
112
|
+
<div class="phase-step"><span>05</span><strong>Learning & improvement</strong></div>
|
|
113
|
+
<div class="phase-lanes">
|
|
114
|
+
<section class="phase-lane phase-lane--primary"><h3>Primary</h3><p><code>learning-review</code></p></section>
|
|
115
|
+
<section class="phase-lane"><h3>Support</h3><p><code>knowledge-capture</code> <code>observe</code> <code>idea-to-backlog</code> <code>eval-rebuild</code></p></section>
|
|
116
|
+
<section class="phase-lane"><h3>Nested sections / future primitives</h3><p>facts vs interpretation, follow-up routing, docs promotion review, knowledge updates, eval updates, skill/backlog improvements</p></section>
|
|
117
|
+
<section class="phase-lane phase-lane--gate"><h3>Gate & artifact</h3><p>Learning gate. Writes outcomes, gaps, docs promotion state, follow-ups, knowledge updates, and verdict.</p></section>
|
|
118
|
+
</div>
|
|
119
|
+
</article>
|
|
120
|
+
</section>
|
|
121
|
+
|
|
122
|
+
| Phase | Primary workflow skill | Supporting skills | Nested sections / future primitive candidates |
|
|
123
|
+
| --- | --- | --- | --- |
|
|
124
|
+
| Idea discovery and shaping | `builder-shape`, `idea-to-backlog` | `knowledge-search`, `search-first`, `explore`, `crowdsource`, `frontend-design`, `github-cli`, `knowledge-capture` | intake/dedupe, separate ideas, thinnest meaningful slice, opportunity review, explore options, shape work, prioritize work, sync executable backlog |
|
|
125
|
+
| Backlog pickup | `pull-work` | `github-cli` | board snapshot, WIP check, grouping/dependency check, Probe decision, worktree decision, handoff |
|
|
126
|
+
| Execution planning and build | `design-probe`, `pickup-probe`, `plan-work`, `execute-plan`, `review-work`, `verify-work` | `feedback-loop`, `browser-test`, `deliver`, `fix-bug`, `tdd-workflow` | Probe notes, Builder Kit Probe record, Definition Of Done, execution plan, parallel waves, implementation session state, critique report, verification report, Goal Fit Gate |
|
|
127
|
+
| Evidence and release confidence | `evidence-gate`, `release-readiness` | `github-cli`, `eval-rebuild` | criteria-to-evidence map, CI confidence, scope/integrity check, publish-change, rollback review, observability review, final acceptance docs, post-deploy plan |
|
|
128
|
+
| Learning and improvement | `learning-review` | `knowledge-capture`, `observe`, `idea-to-backlog`, `eval-rebuild` | facts vs interpretation, docs promotion review, follow-up routing, knowledge updates, eval/skill/backlog improvements |
|
|
129
|
+
|
|
130
|
+
The highest-leverage future extractions are likely `shape-work`, `test-map`, `scope-and-integrity-check`, and `remediate-ci`. They are still nested because their behavior is present, but not yet large enough to need separate activation contracts.
|
|
131
|
+
|
|
132
|
+
## Gates And Artifacts
|
|
133
|
+
|
|
134
|
+
Each workflow phase ends with an explicit gate and durable artifact:
|
|
135
|
+
|
|
136
|
+
- `builder-shape` invokes Builder Kit shape, delegates to `idea-to-backlog`, links `kits/builder/flows/shape.flow.json`, and writes the standard `.flow-agents/<slug>/<slug>--idea-to-backlog.md` artifact.
|
|
137
|
+
- `idea-to-backlog` writes `.flow-agents/<slug>/<slug>--idea-to-backlog.md` and produces shaped briefs plus GitHub issue links.
|
|
138
|
+
- `pull-work` writes `.flow-agents/<slug>/<slug>--pull-work.md` with selected issues, WIP notes, blockers, pickup Probe decisions or accepted gaps, worktree decision, expected modified files, conflict risks, and a `plan-work` handoff.
|
|
139
|
+
- `plan-work` and `deliver` write `.flow-agents/<slug>/<slug>--*.md` artifacts with `Definition Of Done`, `Goal Fit Gate`, and `Final Acceptance` sections.
|
|
140
|
+
- `review-work` writes reviewer artifacts when available and updates `critique.json` with quality, security, architecture, standards, and resolution state.
|
|
141
|
+
- `verify-work` writes verification artifacts and updates `evidence.json` with behavior evidence mapped to acceptance criteria.
|
|
142
|
+
- `evidence-gate` writes `.flow-agents/<slug>/<slug>--evidence-gate.md` with acceptance evidence, CI summary, integrity report, verdict, and next step.
|
|
143
|
+
- `release-readiness` writes `.flow-agents/<slug>/<slug>--release-readiness.md` with release scope, evidence reference, risk review, operational plan, rollback plan, observability plan, post-deploy checks, and decision.
|
|
144
|
+
- `learning-review` writes `.flow-agents/<slug>/<slug>--learning-review.md` with outcomes, evidence, decisions, gaps, follow-ups, knowledge updates, and verdict.
|
|
145
|
+
|
|
146
|
+
Core gates:
|
|
147
|
+
|
|
148
|
+
- Idea Gate: raw input is deduped, classified, and routed.
|
|
149
|
+
- Slice Gate: each candidate has one outcome, one thinnest meaningful slice, and explicit split/bundle/dependency reasoning.
|
|
150
|
+
- Shape Gate: scope, non-goals, risk, rollout notes, and acceptance criteria are stable enough.
|
|
151
|
+
- Backlog Gate: GitHub issues represent executable or near-executable work.
|
|
152
|
+
- Pickup Gate: selected work is ready, WIP is acceptable, and worktree policy is recorded.
|
|
153
|
+
- Review Gate: report-only reviewers have no open blocking findings, or findings are explicitly accepted/deferred/false positive.
|
|
154
|
+
- Verification Gate: implementation evidence exists from local, automated, browser, or runtime checks.
|
|
155
|
+
- Goal Fit Gate: the original user outcome is satisfied, gaps are explicit, and local/project/global scope is clear.
|
|
156
|
+
- Evidence Gate: acceptance criteria are mapped to falsifiable evidence and scope integrity is checked.
|
|
157
|
+
- Publish Change Gate: verified changes are committed, pushed, represented by a PR or explicit no-PR decision, and PR checks/CI are linked.
|
|
158
|
+
- Release Gate: CI, docs, rollout, rollback, observability, and owner concerns are addressed for the risk class.
|
|
159
|
+
- Docs Gate: accepted planning artifacts are archived and promoted into durable docs when useful.
|
|
160
|
+
- Learning Gate: failures and recurring patterns are routed to tests, evals, skills, backlog, or knowledge capture.
|
|
161
|
+
|
|
162
|
+
## End-To-End Flow
|
|
163
|
+
|
|
164
|
+
```mermaid
|
|
165
|
+
flowchart LR
|
|
166
|
+
Idea[Idea / vague goal]
|
|
167
|
+
BacklogSkill[idea-to-backlog]
|
|
168
|
+
Issue[Executable GitHub issue]
|
|
169
|
+
Pull[pull-work]
|
|
170
|
+
Probe[design-probe]
|
|
171
|
+
Worktree[worktree decision]
|
|
172
|
+
Plan[plan-work]
|
|
173
|
+
Execute[execute-plan]
|
|
174
|
+
Review[review-work]
|
|
175
|
+
Verify[verify-work]
|
|
176
|
+
GoalFit[goal-fit]
|
|
177
|
+
Evidence[evidence-gate]
|
|
178
|
+
Publish[publish-change]
|
|
179
|
+
Release[release-readiness]
|
|
180
|
+
Docs[final acceptance docs]
|
|
181
|
+
Learning[learning-review]
|
|
182
|
+
Done[merged / shipped]
|
|
183
|
+
|
|
184
|
+
Idea --> BacklogSkill --> Issue --> Pull --> Probe --> Worktree --> Plan --> Execute --> Review --> Verify --> GoalFit --> Evidence
|
|
185
|
+
Evidence -->|PASS| Publish --> Release --> Done --> Docs --> Learning
|
|
186
|
+
Review -->|findings| Execute
|
|
187
|
+
GoalFit -->|incomplete| Plan
|
|
188
|
+
Evidence -->|FAIL / NOT_VERIFIED| Plan
|
|
189
|
+
Pull -->|too vague / stale| BacklogSkill
|
|
190
|
+
Learning -->|systemic change| Eval[eval-rebuild / backlog / skill update]
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Eval Coverage
|
|
194
|
+
|
|
195
|
+
Workflow evals are layered to match this map:
|
|
196
|
+
|
|
197
|
+
- Static contract evals guard non-negotiable skill boundaries.
|
|
198
|
+
- Behavioral activation evals check that agents choose the right workflow and stop at gates.
|
|
199
|
+
- Artifact quality evals inspect durable session artifacts and GitHub issue drafts.
|
|
200
|
+
- Adversarial evals exercise premature coding, vague issues, missing CI, weakened tests, and prototype promotion risks.
|
|
201
|
+
- End-to-end evals cover `idea-to-backlog -> pull-work -> design-probe -> plan-work -> execute-plan -> review-work -> verify-work -> goal-fit -> evidence-gate` selectively.
|
|
202
|
+
|
|
203
|
+
This keeps one conversation capable of carrying the full operating loop while making each phase produce an artifact that the next phase can verify.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Standards Register
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Standards Register
|
|
6
|
+
|
|
7
|
+
Flow Agents should reuse durable standards and common conventions before inventing local formats. This register records the standards Flow Agents intends to align with and where Flow Agents-owned schemas may still be needed.
|
|
8
|
+
|
|
9
|
+
## Adoption Policy
|
|
10
|
+
|
|
11
|
+
Use an existing standard when it covers the job well enough.
|
|
12
|
+
|
|
13
|
+
Invent a Flow Agents format only when:
|
|
14
|
+
|
|
15
|
+
- no durable standard fits the artifact
|
|
16
|
+
- the format is small and purpose-specific
|
|
17
|
+
- the format has a JSON Schema or equivalent contract
|
|
18
|
+
- the artifact is human-inspectable or has a readable companion summary
|
|
19
|
+
- the artifact can be exported to a common format when practical
|
|
20
|
+
|
|
21
|
+
Avoid private formats for skills, repo instructions, contacts, calendars, API descriptions, security findings, dependency provenance, or telemetry when a widely used standard exists.
|
|
22
|
+
|
|
23
|
+
## Standards
|
|
24
|
+
|
|
25
|
+
| Area | Standard / Convention | Flow Agents Use |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| Repo guidance | `AGENTS.md` | Project-level instructions and durable agent guidance. |
|
|
28
|
+
| Source language | TypeScript-first source policy | Product/runtime source should default to TypeScript across Kontour repositories, with narrow JS/MJS exceptions. See `docs/adr/0006-typescript-first-source-policy.md`. |
|
|
29
|
+
| Skills | Agent Skills / `SKILL.md` | Reusable capability packages with progressive disclosure. |
|
|
30
|
+
| Tools | MCP | Tool, resource, prompt, and integration exposure. |
|
|
31
|
+
| API contracts | OpenAPI | HTTP/service integration descriptions. |
|
|
32
|
+
| Auth | OAuth/OIDC | Delegated access and identity boundaries for integrations. |
|
|
33
|
+
| Resource contracts | Kontour Resource Contract | Kubernetes-inspired, runtime-neutral durable records for Flow Agents scope, workflow state, evidence pointers, provider output, and interchange. See `docs/kontour-resource-contract.md`. |
|
|
34
|
+
| Workflow state | JSON Schema | Flow Agents-owned state, criteria, handoff, evidence, critique, release, and learning sidecars. |
|
|
35
|
+
| Telemetry | OpenTelemetry logs/traces and GenAI conventions | Runtime, workflow, tool, model, and eval event alignment. Evidence sidecars reference native OpenTelemetry records instead of copying them. |
|
|
36
|
+
| Findings | SARIF | Code review, security, static analysis, and policy finding interchange where applicable. Evidence sidecars reference native SARIF runs/results. |
|
|
37
|
+
| Supply chain | CycloneDX, SLSA | Dependency, SBOM, provenance, and release-trust workflows. |
|
|
38
|
+
| Contacts | JSContact, vCard where needed | Person and relationship records. |
|
|
39
|
+
| Calendar | iCalendar, CalDAV | Meetings, events, reminders, and schedule references. |
|
|
40
|
+
| Mail/data sync | JMAP | Future-facing mail, contacts, and calendar sync model. |
|
|
41
|
+
| Transcripts | WebVTT/SRT | Meeting and video transcript import/export. |
|
|
42
|
+
| Notes | CommonMark, Markdown frontmatter | Durable human-readable knowledge artifacts. |
|
|
43
|
+
| Structured knowledge | JSON-LD, schema.org | Portable people, organization, event, action, and relationship metadata when useful. |
|
|
44
|
+
| Agent-to-agent | A2A | Watch and integrate only where it helps cross-runtime delegation. |
|
|
45
|
+
| Documentation discovery | `llms.txt` | Track as emerging; use for docs discovery when it becomes stable enough. |
|
|
46
|
+
|
|
47
|
+
## Flow Agents-Owned Formats
|
|
48
|
+
|
|
49
|
+
Flow Agents may need local schemas for reliability glue that existing standards do not define cleanly.
|
|
50
|
+
|
|
51
|
+
| Format | Purpose | Target Location | Status |
|
|
52
|
+
| --- | --- | --- | --- |
|
|
53
|
+
| Workflow state | Current phase, owner, next action, status, and resumability data | `.flow-agents/<slug>/state.json` | Draft schema: `schemas/workflow-state.schema.json` |
|
|
54
|
+
| Acceptance criteria | Criteria, source request, evidence requirements, and goal-fit status | `.flow-agents/<slug>/acceptance.json` | Draft schema: `schemas/workflow-acceptance.schema.json` |
|
|
55
|
+
| Evidence summary | Proof commands, standard refs, skipped checks, not-verified gaps, and external evidence links | `.flow-agents/<slug>/evidence.json` | Draft schema: `schemas/workflow-evidence.schema.json` |
|
|
56
|
+
| Handoff | What another agent or future session needs to continue safely | `.flow-agents/<slug>/handoff.json` | Draft schema: `schemas/workflow-handoff.schema.json` |
|
|
57
|
+
| Critique record | Reviewer passes, findings, severity, and resolution state for critique loops | `.flow-agents/<slug>/critique.json` | Draft schema: `schemas/workflow-critique.schema.json` |
|
|
58
|
+
| Release readiness | Merge, release, deploy, hold, rollback, docs, and operational readiness decisions | `.flow-agents/<slug>/release.json` | Draft schema: `schemas/workflow-release.schema.json` |
|
|
59
|
+
| Learning record | Repeated failure, correction, pattern, and recommended system update | `.flow-agents/<slug>/learning.json` or `.telemetry/outcomes.jsonl` | Draft schema: `schemas/workflow-learning.schema.json` |
|
|
60
|
+
| Context map | Compact project map: structure, commands, conventions, test strategy, packs, and recent state | Generated under `.flow-agents/` or configurable cache | Planned |
|
|
61
|
+
| Pack manifest | Core and optional pack composition for a target install | `packaging/packs.json` plus generated export catalog metadata | Draft manifest: `packaging/packs.json` |
|
|
62
|
+
| Governance adapter | Optional bridge from Flow Agents evidence gates to tools such as Veritas | `context/contracts/governance-adapter-contract.md` | Draft contract |
|
|
63
|
+
|
|
64
|
+
These formats should be treated as contracts once introduced. Breaking changes require schema version bumps and migration notes.
|
|
65
|
+
|
|
66
|
+
## Integration Boundaries
|
|
67
|
+
|
|
68
|
+
Flow Agents should integrate with external systems through narrow adapters.
|
|
69
|
+
|
|
70
|
+
For example, Veritas can own repo-local standards, authority settings, evidence checks, JIT `explain`, and evidence records. Flow Agents can invoke Veritas and ingest its output without taking ownership of Veritas policy semantics.
|
|
71
|
+
|
|
72
|
+
The adapter contract is `context/contracts/governance-adapter-contract.md`.
|
|
73
|
+
|
|
74
|
+
Evidence adapters should preserve native proof when possible:
|
|
75
|
+
|
|
76
|
+
- Static analysis, review, security, and policy findings should point to SARIF artifacts when the source can produce them.
|
|
77
|
+
- Runtime and workflow events should point to OpenTelemetry logs or traces when available.
|
|
78
|
+
- Test runner output should point to JUnit, TAP, or the runner's native artifact when available.
|
|
79
|
+
- Veritas output should be recorded as an optional `standard_refs` or `external_evidence` entry with `standard: "veritas"`.
|
|
80
|
+
|
|
81
|
+
That pattern should apply broadly:
|
|
82
|
+
|
|
83
|
+
- Let specialized tools own their native model.
|
|
84
|
+
- Map their output into Flow Agents evidence or knowledge records.
|
|
85
|
+
- Keep adapters optional unless the capability is required for the core experience.
|
|
86
|
+
|
|
87
|
+
## Review Questions
|
|
88
|
+
|
|
89
|
+
Before merging a new schema, file format, or artifact:
|
|
90
|
+
|
|
91
|
+
- Which standard did we check first?
|
|
92
|
+
- Why was it insufficient?
|
|
93
|
+
- Is the new format schema-described?
|
|
94
|
+
- Is there a human-readable representation?
|
|
95
|
+
- Can another tool consume or export it?
|
|
96
|
+
- Does this belong in core or an optional pack?
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Veritas Integration Boundary
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Veritas Integration Boundary
|
|
6
|
+
|
|
7
|
+
Veritas is a strong fit for Flow Agents' development evidence and governance layer, but it should stay optional and adapter-driven.
|
|
8
|
+
|
|
9
|
+
The guiding rule is simple: Flow owns generic process enforcement, Flow Agents projects Flow-backed workflows into agent harnesses, and Veritas owns repo-local standards, authority, and evidence-check semantics.
|
|
10
|
+
|
|
11
|
+
## User-Facing Story
|
|
12
|
+
|
|
13
|
+
The user should not need to know which tool produced a policy check.
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
User: Keep going until the change is ready.
|
|
17
|
+
|
|
18
|
+
Flow Agents:
|
|
19
|
+
1. Plans the work.
|
|
20
|
+
2. Executes or delegates scoped changes.
|
|
21
|
+
3. Runs normal verification.
|
|
22
|
+
4. If Veritas is configured, asks Veritas for repo-local readiness evidence.
|
|
23
|
+
5. Records the Veritas artifact as gate evidence in the Flow-backed workflow state.
|
|
24
|
+
6. Continues, blocks, or asks for a decision based on the Flow gate outcome.
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The user sees a clear result: pass, fail, hold, or not verified. The implementation detail is that one evidence source may be Veritas.
|
|
28
|
+
|
|
29
|
+
## Ownership Split
|
|
30
|
+
|
|
31
|
+
| Area | Flow Agents Owns | Veritas Owns |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| Workflow | Agent-facing workflow packs, harness hooks, sidecars, release decisions, learning loops | None |
|
|
34
|
+
| Flow | Process steps, gates, transitions, Flow Runs, exceptions, and Flow Reports | None |
|
|
35
|
+
| Governance | When to ask for governance evidence | Repo standards, authority settings, evidence checks |
|
|
36
|
+
| Evidence | `evidence.json`, `standard_refs`, `external_evidence`, acceptance mapping | Native Veritas reports and rule results |
|
|
37
|
+
| UX | Plain-language next action and user decision points | Explain output for policy/rule details |
|
|
38
|
+
| Packaging | Optional power/adapter wiring | Veritas installation and configuration |
|
|
39
|
+
|
|
40
|
+
Flow Agents may use Flow terminology internally as Flow is extracted, but Veritas evidence should remain a compact provider result. Do not copy Veritas requirements into Flow or Flow Agents workflow definitions.
|
|
41
|
+
|
|
42
|
+
## Adapter Contract
|
|
43
|
+
|
|
44
|
+
Flow Agents should integrate through the governance adapter contract:
|
|
45
|
+
https://github.com/kontourai/flow-agents/blob/main/context/contracts/governance-adapter-contract.md
|
|
46
|
+
|
|
47
|
+
The optional TypeScript adapter is available through:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm run veritas-governance -- evidence \
|
|
51
|
+
--artifact-dir .flow-agents/<task-slug> \
|
|
52
|
+
--repo-root . \
|
|
53
|
+
--veritas-bin veritas \
|
|
54
|
+
--veritas-artifact .veritas/readiness/evidence.json \
|
|
55
|
+
--max-age-seconds 3600
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
By default the adapter invokes:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
veritas readiness --check evidence --working-tree
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Use `--veritas-bin <path-or-command>` to point at a local Veritas checkout, wrapper, or fixture. Use `--repo-root <path>` to choose the working directory for the Veritas process. Use `--veritas-root <path>` to append `--root <path>` to the Veritas command. Use `--evidence-path <path>` when the caller wants to write a sidecar somewhere other than `<artifact-dir>/evidence.json`. Use `--max-age-seconds <n>` to mark a configured native artifact stale after a caller-selected threshold.
|
|
65
|
+
|
|
66
|
+
When Veritas runs, Flow Agents records a normal evidence check with a standard ref and top-level external evidence reference:
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"schema_version": "1.0",
|
|
71
|
+
"task_slug": "example-task",
|
|
72
|
+
"verdict": "pass",
|
|
73
|
+
"checks": [
|
|
74
|
+
{
|
|
75
|
+
"id": "veritas-governance-evidence",
|
|
76
|
+
"kind": "policy",
|
|
77
|
+
"status": "pass",
|
|
78
|
+
"summary": "Veritas readiness evidence completed without blocking findings.",
|
|
79
|
+
"standard_refs": [
|
|
80
|
+
{
|
|
81
|
+
"standard": "veritas",
|
|
82
|
+
"ref": "/repo/.veritas/readiness/evidence.json",
|
|
83
|
+
"role": "native",
|
|
84
|
+
"summary": "Native Veritas readiness evidence artifact."
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"external_evidence": [
|
|
90
|
+
{
|
|
91
|
+
"system": "veritas",
|
|
92
|
+
"standard": "veritas",
|
|
93
|
+
"ref": {
|
|
94
|
+
"kind": "external",
|
|
95
|
+
"url": "file:///repo/.veritas/readiness/evidence.json"
|
|
96
|
+
},
|
|
97
|
+
"summary": "Native Veritas readiness evidence artifact."
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The adapter maps native Veritas artifacts only by reference. It writes `kind: "policy"`, `standard_refs[].standard: "veritas"`, and top-level `external_evidence` entries with `standard: "veritas"`. It does not add Veritas-specific fields to Flow Agents schemas or copy native rule details into Flow Agents sidecars.
|
|
104
|
+
|
|
105
|
+
If Veritas is unavailable and the workflow expected it, record `not_verified` instead of inventing a pass. The adapter records `not_verified` when the executable is missing, Veritas exits nonzero, the configured native artifact is missing or unreadable, or the artifact is older than the freshness threshold. `--not-configured` records `not_verified` without invoking Veritas. `--skip` records an explicit skipped policy check when the caller intentionally opts out.
|
|
106
|
+
|
|
107
|
+
## Builder Kit Trust Evidence
|
|
108
|
+
|
|
109
|
+
Builder Kit gates stay provider-neutral. The Builder Kit Flow Definition names gate expectations as `kind: "surface.claim"` and declares the claim type, subject, accepted statuses, and blocking behavior. It does not name Veritas or any other trust producer.
|
|
110
|
+
|
|
111
|
+
When a trust-backed path is configured, Flow Agents may attach a compact Surface-shaped reference to the Builder Kit evidence gate. The reference points at a TrustReport or Trust Snapshot, carries the related gate id, Surface claim type, claim status, artifact ref, integrity summary, authority or trusted-producer summary, subject, and freshness state, and then maps to the normal Flow gate result. Flow owns the gate authority decision, route reason, trusted producer mapping, and accepted gap behavior. Surface owns the portable trust state represented by the Surface claim and the TrustReport / Trust Snapshot. A Probe can request or clarify the evidence needed before planning or before a later Builder Kit gate retries.
|
|
112
|
+
|
|
113
|
+
Veritas is only one optional producer of those artifacts. A local Veritas readiness run can emit native Veritas evidence and, when configured, point Flow Agents at a Surface-shaped TrustReport or Trust Snapshot. Flow Agents records the reference; it does not copy Veritas rule models, readiness semantics, or provider-native fields into Builder Kit gates.
|
|
114
|
+
|
|
115
|
+
Provider and artifact absence are explicit:
|
|
116
|
+
|
|
117
|
+
- If no trust provider is configured, ordinary Builder Kit activation, planning, verification, and evidence gates continue to work through the existing Flow Kit path.
|
|
118
|
+
- If a trust-backed path was requested but no provider is configured, the trust check records `not_verified` with a clear gap instead of blocking unrelated Builder Kit usage.
|
|
119
|
+
- If a provider is configured but the expected TrustReport or Trust Snapshot is absent or unreadable, only the requested trust-backed evidence check records `not_verified`; it does not silently pass and it does not make Veritas mandatory.
|
|
120
|
+
- If a TrustReport or Trust Snapshot is present but has a rejected, stale, expired, missing-authority, or integrity-mismatched Surface claim, the Builder Kit evidence gate routes through the normal `fail` or `not_verified` path.
|
|
121
|
+
|
|
122
|
+
## Adoption Gate
|
|
123
|
+
|
|
124
|
+
Before making Veritas a first-class Flow Agents power, prove:
|
|
125
|
+
|
|
126
|
+
- Veritas can run in advisory readiness mode without becoming a hard dependency.
|
|
127
|
+
- Veritas output maps cleanly into `evidence.json`.
|
|
128
|
+
- Veritas rule failures produce actionable Flow Agents next actions.
|
|
129
|
+
- Non-development and knowledge workflows do not pay a context or install penalty.
|
|
130
|
+
- The integration improves reliability faster than a smaller Flow Agents-only checker.
|
|
131
|
+
|
|
132
|
+
## Current Integration Shape
|
|
133
|
+
|
|
134
|
+
Flow Agents should not introduce a repo-specific Python wrapper as the Veritas integration surface. Until the integration is worth productizing, run Veritas directly from the Veritas checkout or published package and record only compact evidence references in Flow Agents sidecars.
|
|
135
|
+
|
|
136
|
+
The forward path is a small TypeScript adapter or package command that:
|
|
137
|
+
|
|
138
|
+
- invokes Veritas readiness without copying Veritas rule schemas into Flow Agents
|
|
139
|
+
- stores native Veritas output under `.veritas/` or a caller-selected external evidence directory
|
|
140
|
+
- records a compact `evidence.json` reference through the Flow Agents sidecar writer
|
|
141
|
+
- fails honestly with `NOT_VERIFIED` when Veritas was expected but unavailable or unreadable
|
|
142
|
+
|
|
143
|
+
That adapter exists now as `flow-agents veritas-governance evidence`. It is intentionally optional and fixture-tested; ordinary Flow Agents validation and delivery workflows do not require a live Veritas installation.
|
|
144
|
+
|
|
145
|
+
Veritas source and CLI details live in the Veritas repository:
|
|
146
|
+
https://github.com/kontourai/veritas
|
|
147
|
+
|
|
148
|
+
Current local configuration in this repo is limited to:
|
|
149
|
+
|
|
150
|
+
1. Flow Agents adapter metadata under `integrations/veritas/`.
|
|
151
|
+
2. Repo standards that Veritas may evaluate:
|
|
152
|
+
- instruction governance files stay intact
|
|
153
|
+
- workflow contract changes require eval updates
|
|
154
|
+
- hook/script changes require validation evidence
|
|
155
|
+
3. A provider-neutral evidence contract for recording the result back into Flow Agents workflow state.
|
|
156
|
+
|
|
157
|
+
## Non-Goals
|
|
158
|
+
|
|
159
|
+
- Do not vendor Veritas source into Flow Agents.
|
|
160
|
+
- Do not make Veritas mandatory for the core pack.
|
|
161
|
+
- Do not duplicate Veritas policy schemas inside Flow Agents.
|
|
162
|
+
- Do not make knowledge, meeting, or sales workflows depend on development governance tooling.
|
|
163
|
+
- Do not bootstrap `.veritas/repo-map.json` from Flow Agents in this slice. Native Veritas repository setup remains future Veritas-owned or adapter-owned work.
|
|
164
|
+
|
|
165
|
+
This keeps Veritas aligned with the north star without letting one optional governance provider define the whole Flow Agents architecture.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Work Item And Change Adapters
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Work Item And Change Adapters
|
|
6
|
+
|
|
7
|
+
Flow Agents uses provider-neutral workflow vocabulary and maps it to concrete tools through adapters. GitHub is the first adapter and the most common example, but core workflow gates should talk about work items, boards, changes, checks, and evidence instead of assuming GitHub-specific records.
|
|
8
|
+
|
|
9
|
+
The source contract is `context/contracts/work-item-contract.md`.
|
|
10
|
+
|
|
11
|
+
## Provider Roles
|
|
12
|
+
|
|
13
|
+
Use these roles in artifacts and docs:
|
|
14
|
+
|
|
15
|
+
- `WorkItemProvider`: issue-like requested work, defects, chores, or decisions.
|
|
16
|
+
- `BoardProvider`: project, board, queue, sprint, milestone, or planning state.
|
|
17
|
+
- `ChangeProvider`: published implementation records such as pull requests, merge requests, changesets, release proposals, or deploy requests.
|
|
18
|
+
|
|
19
|
+
A provider can implement more than one role. GitHub Issues maps to `WorkItemProvider`, GitHub Projects maps to `BoardProvider`, and GitHub Pull Requests maps to `ChangeProvider`.
|
|
20
|
+
|
|
21
|
+
## Publish Change
|
|
22
|
+
|
|
23
|
+
`publish-change` runs after local evidence is clean enough to share and before release readiness. It should produce a `PublishChangeResult` with:
|
|
24
|
+
|
|
25
|
+
- `work_item_refs`: the selected work items the change intends to satisfy.
|
|
26
|
+
- `board_refs`: any board/project/queue records that contextualize the work.
|
|
27
|
+
- `change_ref`: the published provider change record.
|
|
28
|
+
- `closing_reference_check`: whether the provider recognized expected close/resolve references.
|
|
29
|
+
- `provider_checks`: CI, status, review, mergeability, deployment, policy, or equivalent checks.
|
|
30
|
+
- `evidence_refs`: local sidecars, verification reports, standard evidence artifacts, and provider-native proof.
|
|
31
|
+
|
|
32
|
+
If a provider is unavailable, record `not_verified` unless the workflow explicitly selected a low-risk no-provider path.
|
|
33
|
+
|
|
34
|
+
## Planning Base Drift
|
|
35
|
+
|
|
36
|
+
When a work item is shaped for the backlog, record the target ref and commit SHA that informed the plan, usually current `main`. Provider adapters should preserve that as `planned_base_ref`, `planned_base_sha`, `planned_at`, and `planning_artifact_ref` when possible.
|
|
37
|
+
|
|
38
|
+
At pickup time, compare the current target SHA with the planned base SHA before planning implementation. If relevant files, docs, contracts, schemas, or dependency states changed, pickup Probe should classify the drift as `no_material_drift`, `scope_drift`, `dependency_drift`, `contract_drift`, or `conflict_risk` and ask for alignment when the drift changes scope or risk.
|
|
39
|
+
|
|
40
|
+
GitHub can store this in the issue body, a managed comment, a source artifact, or adapter metadata. Core workflow logic should still treat it as provider-neutral work item metadata.
|
|
41
|
+
|
|
42
|
+
## GitHub Adapter Example
|
|
43
|
+
|
|
44
|
+
For GitHub, `publish-change` usually means:
|
|
45
|
+
|
|
46
|
+
- commit the verified diff
|
|
47
|
+
- push the branch
|
|
48
|
+
- open or update a pull request
|
|
49
|
+
- render the pull request body from a file or structured template
|
|
50
|
+
- include issue closing references, workflow evidence, verification summary, and artifact links
|
|
51
|
+
- ask GitHub which issue references it recognizes
|
|
52
|
+
- collect pull request checks, required reviews, mergeability, and status checks
|
|
53
|
+
|
|
54
|
+
GitHub-specific words belong in adapter sections and examples. The shared workflow result should still be expressed as `change_ref`, `closing_reference_check`, `provider_checks`, and `evidence_refs`.
|
|
55
|
+
|
|
56
|
+
## Risk-Based Missing Checks
|
|
57
|
+
|
|
58
|
+
Provider checks are not equally important for every change.
|
|
59
|
+
|
|
60
|
+
Docs-only changes can pass with an explicit `skip` when:
|
|
61
|
+
|
|
62
|
+
- the repository does not require a provider check for the change
|
|
63
|
+
- local diff review or docs validation is enough for the stated risk
|
|
64
|
+
- the evidence names the skipped check and the reason
|
|
65
|
+
|
|
66
|
+
Runtime, schema, package, hook, security, migration, release, infrastructure, or deployment changes require stronger evidence. Missing provider checks for those changes must become `not_verified` in evidence-gate or `hold` in release-readiness until CI or equivalent proof is available.
|
|
67
|
+
|
|
68
|
+
Do not treat missing CI, missing required review, missing branch protection data, or provider API failure as a clean pass for risky changes.
|
|
69
|
+
|
|
70
|
+
## Artifact Lifecycle
|
|
71
|
+
|
|
72
|
+
Local workflow artifacts under `.flow-agents/<slug>/` or a distribution-specific artifact root are runtime/session state by default. Provider records may link to those artifacts, but long-lived decisions should be promoted into durable docs, release notes, changelogs, ADRs, or provider comments/descriptions that are intended to persist.
|