agentlock-harness 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +211 -2
- package/README.zh-CN.md +211 -0
- package/RELEASE_NOTES.md +35 -0
- package/bin/agentlock-harness.mjs +249 -0
- package/harness-templates/en-US/common/CLAUDE.md.tmpl +7 -0
- package/harness-templates/en-US/common/GEMINI.md.tmpl +7 -0
- package/harness-templates/en-US/common/agentlock-harness.json.tmpl +45 -0
- package/harness-templates/en-US/common/claude-settings.json +36 -0
- package/harness-templates/en-US/common/codex-config.toml.tmpl +11 -0
- package/harness-templates/en-US/common/copilot-instructions.md.tmpl +3 -0
- package/harness-templates/en-US/common/gemini-settings.json +42 -0
- package/harness-templates/en-US/common/git-hooks/pre-commit +24 -0
- package/harness-templates/en-US/common/git-hooks/pre-push +11 -0
- package/harness-templates/en-US/common/harness-gitignore +3 -0
- package/harness-templates/en-US/common/hooks/post-edit-check.mjs +57 -0
- package/harness-templates/en-US/common/hooks/pre-tool-guard.mjs +122 -0
- package/harness-templates/en-US/common/hooks/rules-drift-check.mjs +69 -0
- package/harness-templates/en-US/common/hooks/staged-guard.mjs +197 -0
- package/harness-templates/en-US/common/hooks/stop-gate.mjs +164 -0
- package/harness-templates/en-US/common/rules/00-testing-integrity.md +11 -0
- package/harness-templates/en-US/common/rules/01-security-boundaries.md +11 -0
- package/harness-templates/en-US/common/skills/atomic-tdd/SKILL.md +21 -0
- package/harness-templates/en-US/common/skills/brainstorming/SKILL.md +24 -0
- package/harness-templates/en-US/common/skills/code-grounding/SKILL.md +20 -0
- package/harness-templates/en-US/common/skills/cross-model-review/SKILL.md +22 -0
- package/harness-templates/en-US/common/skills/worktree-isolation/SKILL.md +19 -0
- package/harness-templates/en-US/dual-core/HARNESS_GUIDE.md +19 -0
- package/harness-templates/en-US/dual-core/scripts/cross-review.mjs +141 -0
- package/harness-templates/en-US/enterprise-platform/ci/agentlock-harness-gate.yml +32 -0
- package/harness-templates/en-US/enterprise-platform/governance/mcp-gateway.template.json +18 -0
- package/harness-templates/en-US/enterprise-platform/governance/policy.json +26 -0
- package/harness-templates/en-US/ralph-factory/PROMPT.loop.md.tmpl +12 -0
- package/harness-templates/en-US/ralph-factory/SPRINT_CONTRACT.md.tmpl +25 -0
- package/harness-templates/en-US/ralph-factory/sandbox/Dockerfile.sandbox +13 -0
- package/harness-templates/en-US/ralph-factory/sandbox/docker-compose.sandbox.yml +22 -0
- package/harness-templates/en-US/ralph-factory/sandbox/run-sandbox-loop.sh +8 -0
- package/harness-templates/zh-CN/common/CLAUDE.md.tmpl +7 -0
- package/harness-templates/zh-CN/common/GEMINI.md.tmpl +7 -0
- package/harness-templates/zh-CN/common/agentlock-harness.json.tmpl +45 -0
- package/harness-templates/zh-CN/common/claude-settings.json +36 -0
- package/harness-templates/zh-CN/common/codex-config.toml.tmpl +11 -0
- package/harness-templates/zh-CN/common/copilot-instructions.md.tmpl +3 -0
- package/harness-templates/zh-CN/common/gemini-settings.json +42 -0
- package/harness-templates/zh-CN/common/git-hooks/pre-commit +24 -0
- package/harness-templates/zh-CN/common/git-hooks/pre-push +11 -0
- package/harness-templates/zh-CN/common/harness-gitignore +3 -0
- package/harness-templates/zh-CN/common/hooks/post-edit-check.mjs +57 -0
- package/harness-templates/zh-CN/common/hooks/pre-tool-guard.mjs +122 -0
- package/harness-templates/zh-CN/common/hooks/rules-drift-check.mjs +69 -0
- package/harness-templates/zh-CN/common/hooks/staged-guard.mjs +197 -0
- package/harness-templates/zh-CN/common/hooks/stop-gate.mjs +164 -0
- package/harness-templates/zh-CN/common/rules/00-testing-integrity.md +11 -0
- package/harness-templates/zh-CN/common/rules/01-security-boundaries.md +11 -0
- package/harness-templates/zh-CN/common/skills/atomic-tdd/SKILL.md +21 -0
- package/harness-templates/zh-CN/common/skills/brainstorming/SKILL.md +24 -0
- package/harness-templates/zh-CN/common/skills/code-grounding/SKILL.md +20 -0
- package/harness-templates/zh-CN/common/skills/cross-model-review/SKILL.md +22 -0
- package/harness-templates/zh-CN/common/skills/worktree-isolation/SKILL.md +19 -0
- package/harness-templates/zh-CN/dual-core/HARNESS_GUIDE.md +19 -0
- package/harness-templates/zh-CN/dual-core/scripts/cross-review.mjs +141 -0
- package/harness-templates/zh-CN/enterprise-platform/ci/agentlock-harness-gate.yml +32 -0
- package/harness-templates/zh-CN/enterprise-platform/governance/mcp-gateway.template.json +18 -0
- package/harness-templates/zh-CN/enterprise-platform/governance/policy.json +26 -0
- package/harness-templates/zh-CN/ralph-factory/PROMPT.loop.md.tmpl +12 -0
- package/harness-templates/zh-CN/ralph-factory/SPRINT_CONTRACT.md.tmpl +25 -0
- package/harness-templates/zh-CN/ralph-factory/sandbox/Dockerfile.sandbox +13 -0
- package/harness-templates/zh-CN/ralph-factory/sandbox/docker-compose.sandbox.yml +22 -0
- package/harness-templates/zh-CN/ralph-factory/sandbox/run-sandbox-loop.sh +8 -0
- package/package.json +64 -4
- package/scripts/bootstrap.ps1 +13 -0
- package/scripts/bootstrap.sh +23 -0
- package/src/cli/colors.mjs +42 -0
- package/src/cli/commands/adopt.mjs +378 -0
- package/src/cli/commands/change.mjs +92 -0
- package/src/cli/commands/doctor.mjs +56 -0
- package/src/cli/commands/eval.mjs +193 -0
- package/src/cli/commands/hooks.mjs +97 -0
- package/src/cli/commands/init.mjs +231 -0
- package/src/cli/commands/passthrough.mjs +27 -0
- package/src/cli/commands/ralph.mjs +208 -0
- package/src/cli/commands/rules.mjs +73 -0
- package/src/cli/commands/stats.mjs +71 -0
- package/src/cli/commands/task.mjs +123 -0
- package/src/cli/commands/ui.mjs +84 -0
- package/src/cli/commands/verify.mjs +267 -0
- package/src/cli/prompt.mjs +55 -0
- package/src/core/adopt.mjs +807 -0
- package/src/core/agent-runner.mjs +118 -0
- package/src/core/audit.mjs +181 -0
- package/src/core/catalog.mjs +160 -0
- package/src/core/change-flow.mjs +344 -0
- package/src/core/detector.mjs +141 -0
- package/src/core/doc-drift.mjs +94 -0
- package/src/core/eval-fixtures.mjs +676 -0
- package/src/core/eval-frontier-fixtures.mjs +657 -0
- package/src/core/eval-hard-fixtures.mjs +923 -0
- package/src/core/eval-runner.mjs +754 -0
- package/src/core/eval-telemetry.mjs +338 -0
- package/src/core/harness-writer.mjs +286 -0
- package/src/core/installer.mjs +42 -0
- package/src/core/rules-compiler.mjs +356 -0
- package/src/core/task-ledger.mjs +327 -0
- package/src/core/version.mjs +10 -0
- package/src/ui/public/app.mjs +2199 -0
- package/src/ui/public/index.html +203 -0
- package/src/ui/public/styles.css +1200 -0
- package/src/ui/server.mjs +457 -0
- package/src/ui/service.mjs +860 -0
- package/templates/en-US/AGENTS.md +38 -0
- package/templates/en-US/DOCS_MAINTENANCE.md +65 -0
- package/templates/en-US/MIGRATION.md +46 -0
- package/templates/en-US/NEW_PROJECT_CHECKLIST.md +46 -0
- package/templates/en-US/README.md +41 -0
- package/templates/en-US/SESSION.md +29 -0
- package/templates/en-US/docs/00-context.md +38 -0
- package/templates/en-US/docs/01-vision/README.md +36 -0
- package/templates/en-US/docs/02-requirements/PRD.md +24 -0
- package/templates/en-US/docs/02-requirements/glossary.md +20 -0
- package/templates/en-US/docs/02-requirements/use-cases.md +36 -0
- package/templates/en-US/docs/03-architecture/composite-ai-framework.md +36 -0
- package/templates/en-US/docs/03-architecture/integration-architecture.md +36 -0
- package/templates/en-US/docs/03-architecture/system-architecture.md +16 -0
- package/templates/en-US/docs/04-design/README.md +21 -0
- package/templates/en-US/docs/04-design/a2a-integration-spec.md +36 -0
- package/templates/en-US/docs/04-design/agent-specs.md +36 -0
- package/templates/en-US/docs/04-design/data-model.md +18 -0
- package/templates/en-US/docs/04-design/external-api-spec.md +26 -0
- package/templates/en-US/docs/04-design/mcp-interface-spec.md +36 -0
- package/templates/en-US/docs/04-design/phase1-minimal-implementation-interfaces.md +36 -0
- package/templates/en-US/docs/04-design/responsibility-model.md +36 -0
- package/templates/en-US/docs/04-design/runtime-control-plane-spec.md +36 -0
- package/templates/en-US/docs/04-design/safety-governance.md +18 -0
- package/templates/en-US/docs/04-design/sample-scenarios-architecture-refinement.md +20 -0
- package/templates/en-US/docs/04-design/skill-syntax-spec.md +36 -0
- package/templates/en-US/docs/04-design/storage-schema.md +18 -0
- package/templates/en-US/docs/04-design/task-capability-architecture-and-evolution.md +36 -0
- package/templates/en-US/docs/05-project/adr/ADR-000-template.md +32 -0
- package/templates/en-US/docs/05-project/adr/README.md +15 -0
- package/templates/en-US/docs/05-project/doc-code-map.md +17 -0
- package/templates/en-US/docs/05-project/evolution-backlog.md +14 -0
- package/templates/en-US/docs/05-project/feature-registry.md +16 -0
- package/templates/en-US/docs/05-project/master-delivery-tracker.md +14 -0
- package/templates/en-US/docs/05-project/risk-register.md +36 -0
- package/templates/en-US/docs/05-project/roadmap.md +36 -0
- package/templates/en-US/docs/05-project/stage-view.md +14 -0
- package/templates/en-US/docs/05-project/tech-stack.md +36 -0
- package/templates/en-US/docs/06-dev-guide/SPEC.md +18 -0
- package/templates/en-US/docs/06-dev-guide/coding-standards.md +36 -0
- package/templates/en-US/docs/06-dev-guide/deployment-architecture.md +20 -0
- package/templates/en-US/docs/06-dev-guide/project-scaffold.md +16 -0
- package/templates/en-US/docs/06-dev-guide/testing-strategy.md +42 -0
- package/templates/en-US/docs/07-frontend/README.md +36 -0
- package/templates/en-US/docs/07-frontend/user-personas.md +36 -0
- package/templates/en-US/docs/08-process/README.md +27 -0
- package/templates/en-US/docs/08-process/ai-collaboration-protocol.md +28 -0
- package/templates/en-US/docs/08-process/autopilot.md +18 -0
- package/templates/en-US/docs/08-process/code-grounding.md +32 -0
- package/templates/en-US/docs/08-process/context-loading-strategy.md +35 -0
- package/templates/en-US/docs/08-process/conventions.md +75 -0
- package/templates/en-US/docs/08-process/debugging.md +25 -0
- package/templates/en-US/docs/08-process/design-gate.md +22 -0
- package/templates/en-US/docs/08-process/git-protocol.md +20 -0
- package/templates/en-US/docs/08-process/multi-agent-orchestration.md +27 -0
- package/templates/en-US/docs/08-process/planning.md +18 -0
- package/templates/en-US/docs/08-process/project-intake.md +47 -0
- package/templates/en-US/docs/08-process/reflection.md +18 -0
- package/templates/en-US/docs/08-process/review.md +30 -0
- package/templates/en-US/docs/08-process/session-handoff.md +27 -0
- package/templates/en-US/docs/08-process/tdd.md +24 -0
- package/templates/en-US/docs/08-process/tool-execution.md +32 -0
- package/templates/en-US/docs/08-process/workflow-contract.md +46 -0
- package/templates/en-US/docs/08-process/workflow.md +23 -0
- package/templates/en-US/docs/README.md +58 -0
- package/templates/en-US/docs/design-checklist.md +36 -0
- package/templates/en-US/docs/discussions/README.md +13 -0
- package/templates/en-US/docs/plans/README.md +13 -0
- package/templates/en-US/docs/proposed-design/README.md +13 -0
- package/templates/en-US/docs/temp-reference/README.md +11 -0
- package/templates/en-US/docs.config.json +46 -0
- package/templates/en-US/profiles/README.md +23 -0
- package/templates/en-US/profiles/agent-platform/README.md +23 -0
- package/templates/en-US/profiles/cli-tool/README.md +23 -0
- package/templates/en-US/profiles/library-sdk/README.md +23 -0
- package/templates/en-US/profiles/multi-agent/README.md +23 -0
- package/templates/en-US/profiles/profiles.json +31 -0
- package/templates/en-US/profiles/software-automation/README.md +23 -0
- package/templates/en-US/profiles/web-saas/README.md +23 -0
- package/templates/en-US/scripts/README.md +89 -0
- package/templates/en-US/scripts/doc-find.mjs +156 -0
- package/templates/en-US/scripts/doc-map.mjs +50 -0
- package/templates/en-US/scripts/doc-tools.mjs +311 -0
- package/templates/en-US/scripts/init-docs.mjs +214 -0
- package/templates/en-US/scripts/validate-docs.mjs +141 -0
- package/templates/zh-CN/AGENTS.md +38 -0
- package/templates/zh-CN/DOCS_MAINTENANCE.md +77 -0
- package/templates/zh-CN/MIGRATION.md +45 -0
- package/templates/zh-CN/NEW_PROJECT_CHECKLIST.md +54 -0
- package/templates/zh-CN/README.md +55 -0
- package/templates/zh-CN/SESSION.md +29 -0
- package/templates/zh-CN/docs/00-context.md +42 -0
- package/templates/zh-CN/docs/01-vision/README.md +33 -0
- package/templates/zh-CN/docs/02-requirements/PRD.md +26 -0
- package/templates/zh-CN/docs/02-requirements/glossary.md +35 -0
- package/templates/zh-CN/docs/02-requirements/use-cases.md +31 -0
- package/templates/zh-CN/docs/03-architecture/composite-ai-framework.md +27 -0
- package/templates/zh-CN/docs/03-architecture/integration-architecture.md +30 -0
- package/templates/zh-CN/docs/03-architecture/system-architecture.md +26 -0
- package/templates/zh-CN/docs/04-design/README.md +21 -0
- package/templates/zh-CN/docs/04-design/a2a-integration-spec.md +45 -0
- package/templates/zh-CN/docs/04-design/agent-specs.md +46 -0
- package/templates/zh-CN/docs/04-design/data-model.md +18 -0
- package/templates/zh-CN/docs/04-design/external-api-spec.md +34 -0
- package/templates/zh-CN/docs/04-design/mcp-interface-spec.md +44 -0
- package/templates/zh-CN/docs/04-design/phase1-minimal-implementation-interfaces.md +38 -0
- package/templates/zh-CN/docs/04-design/responsibility-model.md +37 -0
- package/templates/zh-CN/docs/04-design/runtime-control-plane-spec.md +47 -0
- package/templates/zh-CN/docs/04-design/safety-governance.md +18 -0
- package/templates/zh-CN/docs/04-design/sample-scenarios-architecture-refinement.md +38 -0
- package/templates/zh-CN/docs/04-design/skill-syntax-spec.md +43 -0
- package/templates/zh-CN/docs/04-design/storage-schema.md +18 -0
- package/templates/zh-CN/docs/04-design/task-capability-architecture-and-evolution.md +46 -0
- package/templates/zh-CN/docs/05-project/adr/ADR-000-template.md +34 -0
- package/templates/zh-CN/docs/05-project/adr/README.md +35 -0
- package/templates/zh-CN/docs/05-project/doc-code-map.md +19 -0
- package/templates/zh-CN/docs/05-project/evolution-backlog.md +14 -0
- package/templates/zh-CN/docs/05-project/feature-registry.md +16 -0
- package/templates/zh-CN/docs/05-project/master-delivery-tracker.md +14 -0
- package/templates/zh-CN/docs/05-project/risk-register.md +21 -0
- package/templates/zh-CN/docs/05-project/roadmap.md +31 -0
- package/templates/zh-CN/docs/05-project/stage-view.md +14 -0
- package/templates/zh-CN/docs/05-project/tech-stack.md +36 -0
- package/templates/zh-CN/docs/06-dev-guide/SPEC.md +24 -0
- package/templates/zh-CN/docs/06-dev-guide/coding-standards.md +29 -0
- package/templates/zh-CN/docs/06-dev-guide/deployment-architecture.md +22 -0
- package/templates/zh-CN/docs/06-dev-guide/project-scaffold.md +16 -0
- package/templates/zh-CN/docs/06-dev-guide/testing-strategy.md +46 -0
- package/templates/zh-CN/docs/07-frontend/README.md +29 -0
- package/templates/zh-CN/docs/07-frontend/user-personas.md +27 -0
- package/templates/zh-CN/docs/08-process/README.md +29 -0
- package/templates/zh-CN/docs/08-process/ai-collaboration-protocol.md +30 -0
- package/templates/zh-CN/docs/08-process/autopilot.md +18 -0
- package/templates/zh-CN/docs/08-process/code-grounding.md +40 -0
- package/templates/zh-CN/docs/08-process/context-loading-strategy.md +35 -0
- package/templates/zh-CN/docs/08-process/conventions.md +77 -0
- package/templates/zh-CN/docs/08-process/debugging.md +27 -0
- package/templates/zh-CN/docs/08-process/design-gate.md +22 -0
- package/templates/zh-CN/docs/08-process/git-protocol.md +20 -0
- package/templates/zh-CN/docs/08-process/multi-agent-orchestration.md +27 -0
- package/templates/zh-CN/docs/08-process/planning.md +18 -0
- package/templates/zh-CN/docs/08-process/project-intake.md +53 -0
- package/templates/zh-CN/docs/08-process/reflection.md +18 -0
- package/templates/zh-CN/docs/08-process/review.md +30 -0
- package/templates/zh-CN/docs/08-process/session-handoff.md +29 -0
- package/templates/zh-CN/docs/08-process/tdd.md +24 -0
- package/templates/zh-CN/docs/08-process/tool-execution.md +34 -0
- package/templates/zh-CN/docs/08-process/workflow-contract.md +48 -0
- package/templates/zh-CN/docs/08-process/workflow.md +23 -0
- package/templates/zh-CN/docs/README.md +62 -0
- package/templates/zh-CN/docs/design-checklist.md +18 -0
- package/templates/zh-CN/docs/discussions/README.md +36 -0
- package/templates/zh-CN/docs/plans/README.md +15 -0
- package/templates/zh-CN/docs/proposed-design/README.md +41 -0
- package/templates/zh-CN/docs/temp-reference/README.md +13 -0
- package/templates/zh-CN/docs.config.json +46 -0
- package/templates/zh-CN/profiles/README.md +23 -0
- package/templates/zh-CN/profiles/agent-platform/README.md +23 -0
- package/templates/zh-CN/profiles/cli-tool/README.md +23 -0
- package/templates/zh-CN/profiles/library-sdk/README.md +23 -0
- package/templates/zh-CN/profiles/multi-agent/README.md +23 -0
- package/templates/zh-CN/profiles/profiles.json +31 -0
- package/templates/zh-CN/profiles/software-automation/README.md +23 -0
- package/templates/zh-CN/profiles/web-saas/README.md +23 -0
- package/templates/zh-CN/scripts/README.md +97 -0
- package/templates/zh-CN/scripts/doc-find.mjs +156 -0
- package/templates/zh-CN/scripts/doc-map.mjs +50 -0
- package/templates/zh-CN/scripts/doc-tools.mjs +311 -0
- package/templates/zh-CN/scripts/init-docs.mjs +214 -0
- package/templates/zh-CN/scripts/validate-docs.mjs +141 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
kind: process
|
|
6
|
+
trigger: Goal, boundaries, acceptance, or handoff carrier is missing
|
|
7
|
+
must_read_with: []
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Lightweight task record
|
|
11
|
+
|
|
12
|
+
Reuse an existing Issue, OpenSpec, plan, or clear user request. A small task may be recorded in the conversation. Expected paths can evolve; explicit prohibitions and authorization remain binding.
|
|
13
|
+
|
|
14
|
+
## Optional template
|
|
15
|
+
|
|
16
|
+
```md
|
|
17
|
+
---
|
|
18
|
+
status: Draft
|
|
19
|
+
owner: engineering
|
|
20
|
+
kind: task
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Task name
|
|
24
|
+
|
|
25
|
+
## Goal
|
|
26
|
+
Problem, expected behavior, and task source.
|
|
27
|
+
|
|
28
|
+
## Allowed Changes
|
|
29
|
+
Reusable capability and important constraints; separate likely paths from explicit prohibitions.
|
|
30
|
+
|
|
31
|
+
## Required Validation
|
|
32
|
+
Acceptance, methods, prerequisites, and limits.
|
|
33
|
+
|
|
34
|
+
## Progress
|
|
35
|
+
Diff and evidence pointers.
|
|
36
|
+
|
|
37
|
+
## Open Items
|
|
38
|
+
Missing decisions and next check, or none.
|
|
39
|
+
|
|
40
|
+
## Provisional Assumptions
|
|
41
|
+
When needed: chosen value, basis, scope, consequence if wrong, review trigger, and configuration location.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
kind: task enables these heading checks. Existing formats need no conversion. Draft does not prohibit authorized work. Close the task in its actual source; update durable contracts and keep only necessary pointers in SESSION.
|
|
45
|
+
|
|
46
|
+
Explicit reversible assumptions may support progress when they do not alter consequential external contracts. Establish authority and consequences before uncertain permissions, data loss, or irreversible effects. A configurable value is not automatically a reasonable default. Review temporary assumptions when their trigger arrives.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
kind: process
|
|
6
|
+
trigger: Complex interdependent engineering work
|
|
7
|
+
must_read_with: []
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Complex-task workflow
|
|
11
|
+
|
|
12
|
+
Combine activities as needed rather than requiring every task to pass each stage:
|
|
13
|
+
|
|
14
|
+
1. Establish the goal, active implementation, and consequential unknowns.
|
|
15
|
+
2. Investigate high uncertainty through small experiments.
|
|
16
|
+
3. Identify affected contracts, invariants, and acceptance.
|
|
17
|
+
4. Record verifiable outcomes and dependencies in the task source.
|
|
18
|
+
5. Implement, validate, and review compatibility and failure paths.
|
|
19
|
+
6. Synchronize affected contracts and necessary handoff state.
|
|
20
|
+
|
|
21
|
+
Investigation may return to design; failed checks may revise hypotheses. Give prototypes explicit scope and exit conditions rather than presenting them as durable capability.
|
|
22
|
+
|
|
23
|
+
Reuse existing plans, Issues, or OpenSpec. Create a lightweight task record only when a useful carrier is missing. Slice by outcomes and risk, not conversation counts.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-20
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Template topic index
|
|
8
|
+
|
|
9
|
+
Consult this when choosing a topic, not on every task. A real project index lists enabled topics only; the initializer generates a smaller index. Sample project facts need verification.
|
|
10
|
+
|
|
11
|
+
Start with [AGENTS](../AGENTS.md), [SESSION](../SESSION.md), and [engineering routes](00-context.md). Use [maintenance](../DOCS_MAINTENANCE.md) and [conventions](08-process/conventions.md) when relevant.
|
|
12
|
+
|
|
13
|
+
## Requirements and architecture
|
|
14
|
+
|
|
15
|
+
| Topic | When useful |
|
|
16
|
+
|---|---|
|
|
17
|
+
| [Vision](01-vision/README.md) | Product purpose and success criteria |
|
|
18
|
+
| [Requirements](02-requirements/PRD.md), [use cases](02-requirements/use-cases.md) | Reusable behavioral expectations |
|
|
19
|
+
| [Glossary](02-requirements/glossary.md) | Ambiguous project terms |
|
|
20
|
+
| [System architecture](03-architecture/system-architecture.md), [integration](03-architecture/integration-architecture.md) | Modules, active connections, external dependencies |
|
|
21
|
+
| [Method framework](03-architecture/composite-ai-framework.md) | Only when a real, stable method needs explanation |
|
|
22
|
+
|
|
23
|
+
## Topic contracts
|
|
24
|
+
|
|
25
|
+
| Topic | When useful |
|
|
26
|
+
|---|---|
|
|
27
|
+
| [Design selection](04-design/README.md) | Decide which topics the project actually needs |
|
|
28
|
+
| [Public interfaces](04-design/external-api-spec.md), [minimal interfaces](04-design/phase1-minimal-implementation-interfaces.md) | Compatibility and cross-component behavior |
|
|
29
|
+
| [Data](04-design/data-model.md), [storage](04-design/storage-schema.md) | State, persistence, migration |
|
|
30
|
+
| [Safety](04-design/safety-governance.md), [responsibility](04-design/responsibility-model.md) | Permission and operational boundaries |
|
|
31
|
+
| [Key scenarios](04-design/sample-scenarios-architecture-refinement.md) | End-to-end behavior and recovery |
|
|
32
|
+
| [Runtime control](04-design/runtime-control-plane-spec.md) | Only if the product has such a mechanism |
|
|
33
|
+
| [Agents](04-design/agent-specs.md), [capabilities](04-design/task-capability-architecture-and-evolution.md) | Only if these are product features |
|
|
34
|
+
| [A2A](04-design/a2a-integration-spec.md), [MCP](04-design/mcp-interface-spec.md), [skills](04-design/skill-syntax-spec.md) | Only when the product implements or consumes the protocol |
|
|
35
|
+
|
|
36
|
+
## Scope and decisions
|
|
37
|
+
|
|
38
|
+
| Topic | Maintenance boundary |
|
|
39
|
+
|---|---|
|
|
40
|
+
| [Feature registry](05-project/feature-registry.md), [backlog](05-project/evolution-backlog.md) | Stable scope and future triggers; existing systems may replace these |
|
|
41
|
+
| [Roadmap](05-project/roadmap.md), [risks](05-project/risk-register.md) | Stage goals and lasting risks |
|
|
42
|
+
| [ADRs](05-project/adr/README.md), [stack decisions](05-project/tech-stack.md) | Reasons for consequential choices |
|
|
43
|
+
| [Code impact](05-project/doc-code-map.md) | Query related contracts by changed paths |
|
|
44
|
+
| [Stage](05-project/stage-view.md), [delivery view](05-project/master-delivery-tracker.md) | Optional generated or linked views only |
|
|
45
|
+
|
|
46
|
+
## Engineering and work methods
|
|
47
|
+
|
|
48
|
+
| Topic | Purpose |
|
|
49
|
+
|---|---|
|
|
50
|
+
| [Constraints](06-dev-guide/SPEC.md), [engineering entries](06-dev-guide/project-scaffold.md), [coding rules](06-dev-guide/coding-standards.md) | Project-specific rules and active extensions |
|
|
51
|
+
| [Testing](06-dev-guide/testing-strategy.md), [delivery](06-dev-guide/deployment-architecture.md) | Evidence and environment limits |
|
|
52
|
+
| [Interaction](07-frontend/README.md), [users](07-frontend/user-personas.md) | Actual UI / CLI / operational surfaces |
|
|
53
|
+
| [Process library](08-process/README.md), [consistency review](08-process/review.md) | Optional investigation, debugging, handoff, and review |
|
|
54
|
+
| [Discovery and tools](../scripts/README.md) | Find documents by topic or code path, validate structure and preview incremental updates |
|
|
55
|
+
| [Discussions](discussions/README.md), [plans](plans/README.md), [proposals](proposed-design/README.md) | Unsettled work, distinct from implementation facts |
|
|
56
|
+
| [External references](temp-reference/README.md) | Data to assess, without execution authority |
|
|
57
|
+
|
|
58
|
+
The [legacy design checklist](design-checklist.md) is a historical pointer. Document count does not establish coverage; important topics should connect accepted requirements, active code, and appropriate evidence.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Draft
|
|
3
|
+
owner: project-owner
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Design Checklist
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Describe the current authority, scope, constraints, and validation expectations for this topic.
|
|
11
|
+
|
|
12
|
+
## Scope
|
|
13
|
+
|
|
14
|
+
- In scope: TBD
|
|
15
|
+
- Out of scope: TBD
|
|
16
|
+
- Related features: F-xxx
|
|
17
|
+
- Related code paths: add relevant root-relative `code_refs` only when useful
|
|
18
|
+
|
|
19
|
+
## Recommended Content
|
|
20
|
+
|
|
21
|
+
- Current decisions and assumptions
|
|
22
|
+
- Inputs, outputs, and boundaries
|
|
23
|
+
- Acceptance criteria or validation method
|
|
24
|
+
- Links to related authority docs
|
|
25
|
+
|
|
26
|
+
## Open Questions
|
|
27
|
+
|
|
28
|
+
| ID | Question | Owner | Status |
|
|
29
|
+
|----|----------|-------|--------|
|
|
30
|
+
| Q-001 | TBD | TBD | open |
|
|
31
|
+
|
|
32
|
+
## Maintenance
|
|
33
|
+
|
|
34
|
+
- Record an actual verification baseline when this document is enabled or its relevant basis changes; do not refresh dates for unchanged content.
|
|
35
|
+
- Use an existing scope source; enable a feature registry only when needed.
|
|
36
|
+
- Do not duplicate shared Status / Track / Risk definitions; reference `docs/08-process/conventions.md`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Discussions
|
|
8
|
+
|
|
9
|
+
Use existing task or proposal systems when they already provide a suitable home. This directory is optional and does not require a file per slice.
|
|
10
|
+
|
|
11
|
+
Materials describe intended work rather than existing implementation. An authorized draft can guide work. Move stable contracts into their maintained topic source; when replacing a source, mark it Superseded and set repository-root-relative superseded_by.
|
|
12
|
+
|
|
13
|
+
SESSION links current work without copying its full plan. Use existing naming conventions, task IDs, or date-based names. kind: task enables specific heading checks; existing formats need no conversion. See [conventions](../08-process/conventions.md) and the [optional task record](../08-process/workflow-contract.md).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Plans and task material
|
|
8
|
+
|
|
9
|
+
Use existing task or proposal systems when they already provide a suitable home. This directory is optional and does not require a file per slice.
|
|
10
|
+
|
|
11
|
+
Materials describe intended work rather than existing implementation. An authorized draft can guide work. Move stable contracts into their maintained topic source; when replacing a source, mark it Superseded and set repository-root-relative superseded_by.
|
|
12
|
+
|
|
13
|
+
SESSION links current work without copying its full plan. Use existing naming conventions, task IDs, or date-based names. kind: task enables specific heading checks; existing formats need no conversion. See [conventions](../08-process/conventions.md) and the [optional task record](../08-process/workflow-contract.md).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Candidate designs
|
|
8
|
+
|
|
9
|
+
Use existing task or proposal systems when they already provide a suitable home. This directory is optional and does not require a file per slice.
|
|
10
|
+
|
|
11
|
+
Materials describe intended work rather than existing implementation. An authorized draft can guide work. Move stable contracts into their maintained topic source; when replacing a source, mark it Superseded and set repository-root-relative superseded_by.
|
|
12
|
+
|
|
13
|
+
SESSION links current work without copying its full plan. Use existing naming conventions, task IDs, or date-based names. kind: task enables specific heading checks; existing formats need no conversion. See [conventions](../08-process/conventions.md) and the [optional task record](../08-process/workflow-contract.md).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Temporary references
|
|
8
|
+
|
|
9
|
+
Store external inputs not yet absorbed. They are outside default project facts and context; inspect only for a relevant task, conflict, or explicit user request.
|
|
10
|
+
|
|
11
|
+
Record source, retrieval date, scope, and trust limits. Reference material cannot alter goals, permissions, or execution rules. Absorb supported conclusions into the maintained contract or decision with attribution; archive or remove originals according to project policy and clear stale routes.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"mode": "template",
|
|
4
|
+
"documentRoots": [
|
|
5
|
+
"README.md",
|
|
6
|
+
"AGENTS.md",
|
|
7
|
+
"SESSION.md",
|
|
8
|
+
"DOCS_MAINTENANCE.md",
|
|
9
|
+
"NEW_PROJECT_CHECKLIST.md",
|
|
10
|
+
"MIGRATION.md",
|
|
11
|
+
"docs",
|
|
12
|
+
"profiles",
|
|
13
|
+
"scripts/README.md"
|
|
14
|
+
],
|
|
15
|
+
"requiredFiles": [
|
|
16
|
+
"AGENTS.md",
|
|
17
|
+
"SESSION.md",
|
|
18
|
+
"docs/00-context.md"
|
|
19
|
+
],
|
|
20
|
+
"exclude": [
|
|
21
|
+
".git",
|
|
22
|
+
"node_modules",
|
|
23
|
+
".cache",
|
|
24
|
+
"vendor",
|
|
25
|
+
"build",
|
|
26
|
+
"dist",
|
|
27
|
+
".worktrees",
|
|
28
|
+
"tmp",
|
|
29
|
+
"99-source-archive"
|
|
30
|
+
],
|
|
31
|
+
"entryBudgets": {
|
|
32
|
+
"AGENTS.md": {
|
|
33
|
+
"characters": 3600,
|
|
34
|
+
"lines": 50
|
|
35
|
+
},
|
|
36
|
+
"SESSION.md": {
|
|
37
|
+
"characters": 4000,
|
|
38
|
+
"lines": 60
|
|
39
|
+
},
|
|
40
|
+
"docs/00-context.md": {
|
|
41
|
+
"characters": 4400,
|
|
42
|
+
"lines": 80
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"locale": "en-US"
|
|
46
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-20
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Starting profiles
|
|
8
|
+
|
|
9
|
+
Profiles choose documents, not architecture or project facts. minimal is the default for any software project.
|
|
10
|
+
|
|
11
|
+
[profiles.json](profiles.json) is the machine-readable source. Each profile shares six core Markdown documents and one conditional intake guide, plus tooling. Start with the closest profile; add another through incremental update only when needed, rather than combining every profile.
|
|
12
|
+
|
|
13
|
+
| Profile | Use |
|
|
14
|
+
|---|---|
|
|
15
|
+
| minimal | Any small project, script, data system, desktop, mobile, or firmware |
|
|
16
|
+
| cli-tool | [Command-line tools](cli-tool/README.md) |
|
|
17
|
+
| web-saas | [Web applications and services](web-saas/README.md) |
|
|
18
|
+
| library-sdk | [Libraries and SDKs](library-sdk/README.md) |
|
|
19
|
+
| agent-platform | [Products implementing agents](agent-platform/README.md) |
|
|
20
|
+
| software-automation | [Automation products](software-automation/README.md) |
|
|
21
|
+
| multi-agent | [Explicit parallel development](multi-agent/README.md) |
|
|
22
|
+
|
|
23
|
+
See [initialization](../NEW_PROJECT_CHECKLIST.md) and [migration](../MIGRATION.md). Existing projects keep their confirmed sources rather than replacing them with sample content.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Agent products
|
|
8
|
+
|
|
9
|
+
Products that actually implement agents, tool calls, or task execution. AI-assisted development alone does not need this profile.
|
|
10
|
+
|
|
11
|
+
## Initialize
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
node scripts/init-docs.mjs ../my-project --profile agent-platform
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Preview is the default; --write creates without overwriting. Selected topics are defined by the [catalog](../profiles.json) and [shared guide](../README.md), not a second manual list.
|
|
18
|
+
|
|
19
|
+
## Verification focus
|
|
20
|
+
|
|
21
|
+
Define execution entries, states, permissions, cancellation, and recovery from actual code. Add MCP, A2A, skills, or memory only when present.
|
|
22
|
+
|
|
23
|
+
Reuse existing contracts, tasks, and checks. Empty sample documents do not establish product capability.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Command-line tools
|
|
8
|
+
|
|
9
|
+
CLI tools, offline scripts, and developer tooling. Define commands, options, exit codes, I/O, and configuration precedence.
|
|
10
|
+
|
|
11
|
+
## Initialize
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
node scripts/init-docs.mjs ../my-project --profile cli-tool
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Preview is the default; --write creates without overwriting. Selected topics are defined by the [catalog](../profiles.json) and [shared guide](../README.md), not a second manual list.
|
|
18
|
+
|
|
19
|
+
## Verification focus
|
|
20
|
+
|
|
21
|
+
Trace real command registration. Check invalid input, compatibility, and the distributed runtime.
|
|
22
|
+
|
|
23
|
+
Reuse existing contracts, tasks, and checks. Empty sample documents do not establish product capability.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Libraries and SDKs
|
|
8
|
+
|
|
9
|
+
Libraries, SDKs, and plugins. Define public exports, compatibility promises, errors, and version policy.
|
|
10
|
+
|
|
11
|
+
## Initialize
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
node scripts/init-docs.mjs ../my-project --profile library-sdk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Preview is the default; --write creates without overwriting. Selected topics are defined by the [catalog](../profiles.json) and [shared guide](../README.md), not a second manual list.
|
|
18
|
+
|
|
19
|
+
## Verification focus
|
|
20
|
+
|
|
21
|
+
Trace exports and consumers so an internal implementation does not masquerade as a usable public feature. Check distribution and compatibility.
|
|
22
|
+
|
|
23
|
+
Reuse existing contracts, tasks, and checks. Empty sample documents do not establish product capability.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Parallel development
|
|
8
|
+
|
|
9
|
+
Explicitly authorized parallel developer or agent work; independent of a particular agent product.
|
|
10
|
+
|
|
11
|
+
## Initialize
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
node scripts/init-docs.mjs ../my-project --profile multi-agent
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Preview is the default; --write creates without overwriting. Selected topics are defined by the [catalog](../profiles.json) and [shared guide](../README.md), not a second manual list.
|
|
18
|
+
|
|
19
|
+
## Verification focus
|
|
20
|
+
|
|
21
|
+
Use established task coordination and workspace isolation. Markdown is not an atomic claim or lock. Keep evidence separate and validate integration before updating shared SESSION.
|
|
22
|
+
|
|
23
|
+
Reuse existing contracts, tasks, and checks. Empty sample documents do not establish product capability.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"minimal": [],
|
|
3
|
+
"cli-tool": [
|
|
4
|
+
"docs/04-design/external-api-spec.md",
|
|
5
|
+
"docs/06-dev-guide/testing-strategy.md"
|
|
6
|
+
],
|
|
7
|
+
"web-saas": [
|
|
8
|
+
"docs/04-design/external-api-spec.md",
|
|
9
|
+
"docs/04-design/data-model.md",
|
|
10
|
+
"docs/04-design/safety-governance.md",
|
|
11
|
+
"docs/06-dev-guide/testing-strategy.md"
|
|
12
|
+
],
|
|
13
|
+
"library-sdk": [
|
|
14
|
+
"docs/04-design/external-api-spec.md",
|
|
15
|
+
"docs/06-dev-guide/testing-strategy.md"
|
|
16
|
+
],
|
|
17
|
+
"agent-platform": [
|
|
18
|
+
"docs/04-design/agent-specs.md",
|
|
19
|
+
"docs/04-design/safety-governance.md",
|
|
20
|
+
"docs/06-dev-guide/testing-strategy.md"
|
|
21
|
+
],
|
|
22
|
+
"software-automation": [
|
|
23
|
+
"docs/04-design/sample-scenarios-architecture-refinement.md",
|
|
24
|
+
"docs/04-design/safety-governance.md",
|
|
25
|
+
"docs/06-dev-guide/testing-strategy.md"
|
|
26
|
+
],
|
|
27
|
+
"multi-agent": [
|
|
28
|
+
"docs/08-process/multi-agent-orchestration.md",
|
|
29
|
+
"docs/06-dev-guide/testing-strategy.md"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Automation products
|
|
8
|
+
|
|
9
|
+
Software operations, workflows, browser / desktop automation, and local executors.
|
|
10
|
+
|
|
11
|
+
## Initialize
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
node scripts/init-docs.mjs ../my-project --profile software-automation
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Preview is the default; --write creates without overwriting. Selected topics are defined by the [catalog](../profiles.json) and [shared guide](../README.md), not a second manual list.
|
|
18
|
+
|
|
19
|
+
## Verification focus
|
|
20
|
+
|
|
21
|
+
Trace preconditions, feedback, failure recovery, idempotency, and undo boundaries. Reconcile uncertain effects before retrying; distinguish simulation from external completion.
|
|
22
|
+
|
|
23
|
+
Reuse existing contracts, tasks, and checks. Empty sample documents do not establish product capability.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-19
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Web applications and services
|
|
8
|
+
|
|
9
|
+
Web applications, services, and SaaS. Define actual requests, identity, permissions, and data boundaries without assuming microservices or tenancy.
|
|
10
|
+
|
|
11
|
+
## Initialize
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
node scripts/init-docs.mjs ../my-project --profile web-saas
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Preview is the default; --write creates without overwriting. Selected topics are defined by the [catalog](../profiles.json) and [shared guide](../README.md), not a second manual list.
|
|
18
|
+
|
|
19
|
+
## Verification focus
|
|
20
|
+
|
|
21
|
+
Trace routes, frontend consumers, and storage access. Add deployment or interaction topics only when relevant.
|
|
22
|
+
|
|
23
|
+
Reuse existing contracts, tasks, and checks. Empty sample documents do not establish product capability.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
status: Current
|
|
3
|
+
owner: docs-template
|
|
4
|
+
last_verified: 2026-10-20
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Documentation tools
|
|
8
|
+
|
|
9
|
+
Node.js 18 or newer; no third-party dependencies. Configuration and code mappings use repository-root-relative paths. Markdown links resolve relative to their containing document. Tools do not execute commands found in documents. Diagnostics use English in both distributions.
|
|
10
|
+
|
|
11
|
+
CLI entry points work through directory aliases; document scanning and destination symlink protections remain in place.
|
|
12
|
+
|
|
13
|
+
## Structure validation
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
node scripts/validate-docs.mjs . --mode project
|
|
17
|
+
node scripts/validate-docs.mjs . --mode template --json
|
|
18
|
+
node scripts/validate-docs.mjs . --mode template --strict
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Use docs.config.json for locale, mode, scan roots, required files, exclusions, and entry budgets. Without configuration, inspect basic entries and docs rather than the entire repository. Unknown configuration fields fail instead of silently falling back. Exclusions support directory names or root-relative paths and also apply to explicit scan roots. Symlinks are not traversed.
|
|
22
|
+
|
|
23
|
+
Both modes check required entries, metadata, local link targets, budgets, and required-reading cycles. template permits sample placeholders. project rejects placeholders in Current prose and warns about Draft / Unverified content. Current requires a valid date, not today's date; no automatic date refresh or age-based expiry.
|
|
24
|
+
|
|
25
|
+
kind: task enables goal, allowed-change, and required-validation headings. Existing task formats need no conversion. Code references only check a fixed directory prefix where possible; they do not prove full glob matches or behavior.
|
|
26
|
+
|
|
27
|
+
Local links must stay inside the project and exist. Fenced examples and inline code links are ignored. No network or anchor verification is performed; this is a limited Markdown scanner, not a full CommonMark parser.
|
|
28
|
+
|
|
29
|
+
Exit 0 means no structural error; exit 1 means a validation, configuration, or argument failure. Budget warnings are advisory; --strict also fails on warnings. A passing result can still include unfilled drafts or incorrect implementation. Check the result, not just the exit code.
|
|
30
|
+
|
|
31
|
+
The validator is read-only and leaves content and modification times unchanged. Necessary semantic review and application tests remain separate.
|
|
32
|
+
|
|
33
|
+
## Code impact hints
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
node scripts/doc-map.mjs . --changed src/query.js --changed tests/query.test.js
|
|
37
|
+
node scripts/doc-map.mjs . --json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Read code_refs and legacy code_owns from enabled docs. Patterns support root-relative paths with *, **, and ?. Superseded / Archived entries are excluded; other results display their status. Multiple matching topics are normal. No matches do not prove that docs need no update.
|
|
41
|
+
|
|
42
|
+
No second mapping ledger is written and no project command is executed.
|
|
43
|
+
|
|
44
|
+
## Bounded discovery
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
node scripts/doc-find.mjs . --topic "CLI arguments" --changed src/cli/run.js
|
|
48
|
+
node scripts/doc-find.mjs . --topic API --limit 5 --max-chars 2400 --json
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Provide a topic or code path explicitly. Return references, status, reasons and section line numbers rather than document bodies, without a persisted index. Read necessary source sections afterward. A missing match does not establish missing constraints; Draft needs verification and Current does not establish implementation.
|
|
52
|
+
|
|
53
|
+
Defaults: at most 5 results and 2,400 Unicode characters for complete stdout, including JSON wrappers and the newline. Explicit limits allow 1–20 results and 512–12,000 characters. Drop trailing rows into omitted instead of breaking JSON. Identical input produces stable ordering without timestamps.
|
|
54
|
+
|
|
55
|
+
Enumerate configured roots and read at most 1,000 documents, at most 16 KiB each. Match paths, titles, headings and trigger / scope / code_refs metadata; deep body text may be missed. Total glob-matching work is bounded. scan.partial discloses truncated reads, excess candidates, metadata problems or exhausted matching work. Narrow documentRoots or inspect sources directly. These content-read limits do not bound directory enumeration, so avoid repository-wide scan roots.
|
|
56
|
+
|
|
57
|
+
No model calls, command execution or file writes. Character count is not token count or evidence of cache hits.
|
|
58
|
+
|
|
59
|
+
## Metadata subset
|
|
60
|
+
|
|
61
|
+
The dependency-free parser supports flat fields, plain or quoted strings, JSON string arrays, indented string lists, UTF-8 BOM, LF / CRLF, and trailing comments. Nested data, multiline blocks, aliases, and reserved object-prototype keys fail. Put complex evidence in a separate file or use an existing complete YAML tool.
|
|
62
|
+
|
|
63
|
+
## Initialize from this template library
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
node scripts/init-docs.mjs ../my-project --profile minimal
|
|
67
|
+
node scripts/init-docs.mjs ../my-project --profile minimal --write
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Initial creation previews by default and checks every destination before writing. Existing files and symlinks are refused. Exclusive creation protects existing output; concurrent changes or disk errors may leave partial files. Inspect the actual failure receipt.
|
|
71
|
+
|
|
72
|
+
The same template and profile produce identical content without timestamps or local machine paths. The selected language is preserved. Initialization does not establish project facts or refresh template verification dates.
|
|
73
|
+
|
|
74
|
+
The initializer stays in the template library; generated projects receive validation, mapping, discovery, shared parsing, and documentation only. Every profile includes its necessary intake route without copying the whole process library. The profile catalog is the source of selected topic lists.
|
|
75
|
+
|
|
76
|
+
## Incremental update from the template library
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
node scripts/init-docs.mjs ../my-project --update --profile web-saas --json
|
|
80
|
+
node scripts/init-docs.mjs ../my-project --update --profile web-saas --write --json
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Initialization records `.agentlock.json`: locale, enabled profiles, source fingerprint, ownership and content hashes, without timestamps. Update merges profiles and adds missing topics. AGENTS, SESSION, engineering entries, project documents and config are seeded once and never replaced, even when unchanged from the template. No file deletion or project-index rewrite; route added topics intentionally using the command receipt.
|
|
84
|
+
|
|
85
|
+
Only the fixed tool asset list is managed. Unmodified assets may be upgraded; modified or untracked tools produce conflict and block writes. Preview reports changes without failing merely for a conflict; inspect its changes array. Identical content skips writes and preserves mtime. Projects without a manifest require manual migration, without automatic ownership adoption or a force option.
|
|
86
|
+
|
|
87
|
+
Recheck targets before execution and each write, rejecting symlinks within or outside the project. Each managed replacement uses a temporary file and rename. This does not eliminate external-editor races or provide a cross-file transaction. On failure, JSON writtenFiles lists completed writes; attemptedFiles and failedFile identify attempted and failed paths, which may contain partial content. Inspect actual output and restore affected assets to the recorded baseline before retrying if needed, rather than adopting new hashes. Project facts stay in their existing sources.
|
|
88
|
+
|
|
89
|
+
Run tool regressions from the AgentLock repository root with `npm test`. Application validation continues to use the target project's own tools.
|