This directory is the primary home for durable project knowledge.
Use the following document layers.
| Layer | Purpose | Should Contain | Should Not Contain |
|---|---|---|---|
README.md |
External project entry | product overview, quick start, package map, links into docs | deep implementation detail, long maintenance rules |
docs/prd/ |
Product requirements and delivery goals | product problem statement, phase scope, Objective / KR, roadmap, governance | runtime contracts, low-level implementation detail, architecture rationale |
.github/copilot-instructions.md |
AI contributor operating constraints | hard coding rules, validation requirements, doc lookup order, repo-specific pitfalls | full architecture narratives already covered by docs |
MAINTENANCE.md |
Maintainer and operations handbook | environment setup details, build and release recipes, troubleshooting, maintainer runbooks | canonical architecture decisions or executable runtime contracts |
docs/adr/ |
Architecture decisions | context, decision, consequences, invariants | step-by-step contributor workflow or repeated quick start |
docs/specs/ |
Executable maintenance contracts | source of truth, binding rules, schemas, runtime contracts | historical rationale already captured by ADRs |
CONTRIBUTING.md |
Human contribution workflow | setup, branch and PR expectations, validation checklist, pointers to conventions | duplicated architecture content |
- Root
README.md docs/README.mdCONTRIBUTING.md- Relevant ADR or spec for the area you will touch
docs/adr/002-flow-runtime-extension.mddocs/specs/001-flow-node-contract.mddocs/specs/002-runtime-binding.mddocs/specs/003-agents-flow-repo-spec.md- Canonical schema in
packages/flow-schema/src/schema/flow-definition.ts
docs/specs/003-agents-flow-repo-spec.mdpackages/flow-schema/src/schema/agents-flow-assets.tspackages/prompt-asset-resolver/(scanner, parser, resolver, assembler, provider-package, adapter-registry)
docs/prd/agentsflow-prd.mddocs/prd/prd-management.md- Relevant ADR or spec for the affected area
- Target implementation anchors in
packages/orapps/
docs/adr/001-workbench-layout.md.github/copilot-instructions.mdpackages/ui-flow/src/components/workbench.tsxpackages/ui-flow/src/store/workbench-store.ts
docs/testing-supplementation.md.github/copilot-instructions.md§5 (测试约束)packages/testing-kit/(FakeAgentAdapter, golden fixtures)- Existing test files in the target package
docs/adr/001-workbench-layout.md: workbench shell structure, panel ownership, layout invariantsdocs/adr/002-flow-runtime-extension.md: static flow definition, runtime scheduler model, adapter extension boundaries
docs/specs/001-flow-node-contract.md: node kind, port, param, debug, and custom-node maintenance contractdocs/specs/002-runtime-binding.md: current executable path fromnode.agentIdto adapter transportdocs/specs/003-agents-flow-repo-spec.md:.agents-flow/directory convention, prompt asset model, agent reference binding, prompt assembly order
docs/prd/agentsflow-prd.md: current-stage product PRD with Objective / KR structure, scope, gaps, and roadmapdocs/prd/prd-management.md: PRD governance, state transitions, traceability, and change gates
MAINTENANCE.md: maintainer-facing setup, build, release, and troubleshooting handbookCONTRIBUTING.md: contributor workflow and verification checklistdocs/testing-supplementation.md: test addition principles, per-package gap analysis, naming conventions, fixture patterns, and quality gates.github/copilot-instructions.md: AI-specific hard rules and doc lookup order
- Prefer linking to an existing ADR or spec over restating the same rules.
- Put product goals, staged delivery scope, and roadmap in
docs/prd/rather than duplicating them in ADRs or package docs. - Put stable rationale in ADRs, executable rules in specs, and contributor behavior in
CONTRIBUTING.mdor.github/copilot-instructions.md. - Keep
MAINTENANCE.mdfocused on operations, troubleshooting, and maintainer procedures. - Keep
.github/copilot-instructions.mdshort enough to be scanned before editing. - When a new document is added, update this map and add at least one inbound link from
README.mdorCONTRIBUTING.md.