code-anchored-context 0.1.0 → 0.2.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/.agents/skills/README.md +1 -1
- package/.agents/skills/{development-initiative-context → code-anchored-context}/SKILL.md +38 -38
- package/AGENTS.md +15 -13
- package/README.md +14 -14
- package/bin/code-anchored-context.js +125 -43
- package/{Development → context}/AGENTS.md +13 -13
- package/{Development → context}/README.md +29 -29
- package/{Development → context}/_templates/backlog-item.md +2 -2
- package/{Development → context}/_templates/initiative/README.md +9 -5
- package/{Development → context}/_templates/initiative/backlog.md +2 -2
- package/{Development → context}/_templates/initiative/plan.md +2 -2
- package/{Development → context}/_templates/initiative/release-doc-notes.md +6 -6
- package/{Development → context}/_templates/planned-initiative/README.md +10 -6
- package/{Development → context}/_templates/planned-initiative/release-doc-notes.md +5 -5
- package/{Development → context}/_templates/program/README.md +1 -1
- package/{Development → context}/_templates/program/backlog.md +1 -1
- package/{Development → context}/_templates/program/releases/v0_1_0.md +1 -1
- package/{Development → context}/_templates/release-context/README.md +6 -6
- package/{Development → context}/_templates/release-context/backlog.md +1 -2
- package/{Development → context}/_templates/release-transition.md +7 -7
- package/{Development → context}/backlog/README.md +3 -3
- package/{Development → context}/code-anchored-context-structure.md +16 -15
- package/{Development → context}/code-anchored-context-why.md +8 -8
- package/{Development → context}/code-anchored-context.html +20 -20
- package/{Development → context}/current.md +3 -3
- package/{Development → context}/giving-ai-agents-context-around-code.md +32 -32
- package/{Development → context}/programs/README.md +2 -2
- package/{Development → context}/releases/v0_1_0/README.md +6 -6
- package/{Development → context}/releases/v0_1_0/backlog.md +1 -1
- package/{Development → context}/terminology.md +22 -22
- package/{Documentation → docs}/Welcome.md +11 -6
- package/{Documentation → docs}/_authoring/README.md +6 -5
- package/{Documentation → docs}/_authoring/areas/README.md +1 -1
- package/{Documentation → docs}/_authoring/areas/_template.md +19 -5
- package/{Documentation → docs}/_authoring/terminology.md +1 -1
- package/docs/_authoring/workflow.md +210 -0
- package/docs/_templates/area/README.md +58 -0
- package/docs/_templates/area/features/feature-template.md +71 -0
- package/{Documentation → docs}/releases/index.md +3 -1
- package/package.json +19 -18
- package/Documentation/_authoring/workflow.md +0 -123
- package/Documentation/_templates/area/README.md +0 -20
- package/Documentation/_templates/area/features/feature-template.md +0 -29
- /package/{Development → context}/_templates/initiative/architecture.md +0 -0
- /package/{Development → context}/_templates/initiative/brief.html +0 -0
- /package/{Development → context}/_templates/initiative/decisions/ADR-0000-template.md +0 -0
- /package/{Development → context}/_templates/initiative/delivery.md +0 -0
- /package/{Development → context}/_templates/initiative/infrastructure.md +0 -0
- /package/{Development → context}/_templates/initiative/interface.md +0 -0
- /package/{Development → context}/_templates/initiative/operations.md +0 -0
- /package/{Development → context}/_templates/initiative/spec.md +0 -0
- /package/{Development → context}/_templates/initiative/testing.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/architecture.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/backlog.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/decisions/ADR-0000-template.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/delivery.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/infrastructure.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/interface.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/operations.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/plan.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/spec.md +0 -0
- /package/{Development → context}/_templates/planned-initiative/testing.md +0 -0
- /package/{Development → context}/_templates/program/context.md +0 -0
- /package/{Development → context}/_templates/program/decisions/ADR-0000-template.md +0 -0
- /package/{Development → context}/_templates/program/planned-initiatives/.gitkeep +0 -0
- /package/{Development → context}/_templates/program/roadmap.md +0 -0
- /package/{Development → context}/_templates/release-context/initiatives/.gitkeep +0 -0
- /package/{Development → context}/backlog/items/.gitkeep +0 -0
- /package/{Development → context}/releases/v0_1_0/initiatives/.gitkeep +0 -0
- /package/{Documentation → docs}/.order +0 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# Docs Workflow
|
|
2
|
+
|
|
3
|
+
This file defines how documentation is versioned, refreshed, and structured
|
|
4
|
+
across the repo. It applies to all documented areas; area-specific guidance
|
|
5
|
+
lives in [`areas/`](areas/).
|
|
6
|
+
|
|
7
|
+
## When Docs Get Edited
|
|
8
|
+
|
|
9
|
+
Doc refresh is an explicit, on-request activity, not a side effect of code
|
|
10
|
+
work. Humans or agents touch `docs/` only when:
|
|
11
|
+
|
|
12
|
+
- A human explicitly asks for a release-time refresh, typically after the
|
|
13
|
+
release tag is cut and QA has signed off.
|
|
14
|
+
- A human explicitly asks for baseline documentation for an existing project,
|
|
15
|
+
such as "document this repo baseline" or "create initial docs for the current
|
|
16
|
+
system."
|
|
17
|
+
- A human explicitly asks to update a specific page.
|
|
18
|
+
- A human asks to fix a demonstrable error in an existing page, such as a
|
|
19
|
+
broken link or factual inaccuracy.
|
|
20
|
+
|
|
21
|
+
Do not update docs as part of a feature PR, bug fix, refactor, or dependency
|
|
22
|
+
bump. Mid-stream commits are partial work; "feature complete" is only
|
|
23
|
+
well-defined once the release is accepted.
|
|
24
|
+
|
|
25
|
+
Agents: if you are working on a code change and notice a doc that looks
|
|
26
|
+
outdated, leave it alone. Flag the staleness in your summary or add it to the
|
|
27
|
+
initiative's `release-doc-notes.md`, but do not edit the doc as part of the
|
|
28
|
+
current change unless explicitly asked.
|
|
29
|
+
|
|
30
|
+
## Docs Modes
|
|
31
|
+
|
|
32
|
+
There are two valid ways to introduce or maintain `docs/`.
|
|
33
|
+
|
|
34
|
+
### Baseline Docs
|
|
35
|
+
|
|
36
|
+
Use this mode only when a human explicitly asks to document the current system
|
|
37
|
+
as a starting point. This is common when adopting the template in an existing
|
|
38
|
+
project that has little or no product documentation.
|
|
39
|
+
|
|
40
|
+
When creating a baseline:
|
|
41
|
+
|
|
42
|
+
1. Confirm the scope: whole repo, one product area, one feature family, or one
|
|
43
|
+
operational surface.
|
|
44
|
+
2. Create or update the matching area guide under
|
|
45
|
+
`docs/_authoring/areas/` before writing product-facing pages.
|
|
46
|
+
3. Document stable, currently accepted behavior from the current branch,
|
|
47
|
+
current tag, or explicit reference point named by the human.
|
|
48
|
+
4. Prefer broad, accurate coverage over exhaustive implementation detail.
|
|
49
|
+
5. Record the baseline reference in `docs/releases/index.md`. If
|
|
50
|
+
there is no release tag yet, use the commit, branch, date, or human-named
|
|
51
|
+
baseline label that was used as the source.
|
|
52
|
+
6. Leave uncertain or future behavior out of `docs/`. Capture open
|
|
53
|
+
questions in `context/` or in the area authoring guide.
|
|
54
|
+
|
|
55
|
+
Baseline docs are a snapshot of the system as adopted; they are not a promise
|
|
56
|
+
that every undocumented behavior is unimportant.
|
|
57
|
+
|
|
58
|
+
### Release-Forward Docs
|
|
59
|
+
|
|
60
|
+
Use this mode when the team chooses not to create a full baseline. In this
|
|
61
|
+
mode, `docs/` may start sparse. Agents capture documentation impact
|
|
62
|
+
in initiative `release-doc-notes.md` during development, then update product
|
|
63
|
+
docs only at explicit release-refresh time.
|
|
64
|
+
|
|
65
|
+
This is valid when a full baseline would be too expensive. The documentation
|
|
66
|
+
becomes complete incrementally around behavior the team changes and releases.
|
|
67
|
+
|
|
68
|
+
## Cadence And Versioning
|
|
69
|
+
|
|
70
|
+
Docs live under `docs/`. After any explicit baseline pass, they are
|
|
71
|
+
refreshed once per release, at git-tag time, after release acceptance. Release
|
|
72
|
+
docs are anchored to the release tag; the docs at tag `release/v1_2_3`
|
|
73
|
+
describe the behavior of that release.
|
|
74
|
+
|
|
75
|
+
Default tag names follow the convention `release/vMAJOR_MINOR_PATCH` and match
|
|
76
|
+
the release branch name. If a project uses a different release convention,
|
|
77
|
+
document it here before the first refresh. If the first documentation pass is
|
|
78
|
+
a baseline without a tag, record the baseline reference in
|
|
79
|
+
`docs/releases/index.md`.
|
|
80
|
+
|
|
81
|
+
## Audience
|
|
82
|
+
|
|
83
|
+
Docs are written for non-developer technical readers by default: QA, product
|
|
84
|
+
owners, solution owners, support engineers, customer engineers, or operators.
|
|
85
|
+
Adjust this only when the project explicitly defines a different audience.
|
|
86
|
+
|
|
87
|
+
- Describe behavior, inputs, outputs, permissions, error conditions, and
|
|
88
|
+
business rules in domain language.
|
|
89
|
+
- Avoid code snippets, private type names, SQL, and framework jargon unless
|
|
90
|
+
the concept has no plain-language equivalent.
|
|
91
|
+
- For readers who need more depth than the docs provide, link to the source
|
|
92
|
+
rather than replicating the implementation in prose.
|
|
93
|
+
|
|
94
|
+
## Writing Focus
|
|
95
|
+
|
|
96
|
+
Write from behavior outward.
|
|
97
|
+
|
|
98
|
+
Start with what a user, Product Owner, operator, API consumer, support person,
|
|
99
|
+
or business process can observe. Add technical detail only when it affects
|
|
100
|
+
released behavior, configuration, permissions, data, integrations, errors,
|
|
101
|
+
support, operations, or auditability.
|
|
102
|
+
|
|
103
|
+
Docs should be product-readable first and technically anchored
|
|
104
|
+
second. They can feed release notes, but they are more durable than release notes:
|
|
105
|
+
release notes summarize what changed, while `docs/` describes what
|
|
106
|
+
the accepted system does as of a release or baseline.
|
|
107
|
+
|
|
108
|
+
Use progressive depth:
|
|
109
|
+
|
|
110
|
+
1. Summary and purpose in product or domain language.
|
|
111
|
+
2. Workflows, roles, permissions, and business rules.
|
|
112
|
+
3. Inputs, outputs, data effects, integrations, errors, and edge cases.
|
|
113
|
+
4. Operational expectations, configuration, and dependencies when relevant.
|
|
114
|
+
5. Source references for verification, not as a substitute for explanation.
|
|
115
|
+
|
|
116
|
+
Do not document private implementation structure unless it is needed to
|
|
117
|
+
explain released behavior or support a reader's operational task.
|
|
118
|
+
|
|
119
|
+
## Two Levels Of Detail
|
|
120
|
+
|
|
121
|
+
Every documented area has two layers:
|
|
122
|
+
|
|
123
|
+
1. High level: a summary of what the area is for and an architecture
|
|
124
|
+
description.
|
|
125
|
+
2. Detailed: one page per feature, written to the audience above.
|
|
126
|
+
|
|
127
|
+
Standard per-area layout:
|
|
128
|
+
|
|
129
|
+
```text
|
|
130
|
+
docs/<Area>/
|
|
131
|
+
README.md
|
|
132
|
+
features/
|
|
133
|
+
<feature>.md
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Diagrams
|
|
137
|
+
|
|
138
|
+
Use Mermaid for architecture, flow, sequence, state, and data-relationship
|
|
139
|
+
diagrams. Mermaid remains readable as Markdown source and renders in common
|
|
140
|
+
Markdown viewers.
|
|
141
|
+
|
|
142
|
+
Use a diagram when the relationship between moving parts is easier to show
|
|
143
|
+
than to describe in prose. Prefer a short diagram over a long paragraph; prefer
|
|
144
|
+
a short sentence over an unnecessary diagram.
|
|
145
|
+
|
|
146
|
+
Avoid ASCII-art box drawings. When you edit a page that already has one,
|
|
147
|
+
replace it with Mermaid if the diagram is still useful.
|
|
148
|
+
|
|
149
|
+
Preferred diagram types:
|
|
150
|
+
|
|
151
|
+
| Scenario | Mermaid type |
|
|
152
|
+
| --- | --- |
|
|
153
|
+
| Component, topology, or data flow | `flowchart LR` or `flowchart TD` |
|
|
154
|
+
| Sequence of interactions | `sequenceDiagram` |
|
|
155
|
+
| Entity or table relationships | `erDiagram` |
|
|
156
|
+
| State machine | `stateDiagram-v2` |
|
|
157
|
+
|
|
158
|
+
Keep diagrams small enough to read. If a diagram needs more than about 15 nodes
|
|
159
|
+
or steps, simplify it or split it.
|
|
160
|
+
|
|
161
|
+
## Feature Docs Cover The Full Vertical
|
|
162
|
+
|
|
163
|
+
A feature doc should describe the full behavior path the feature touches:
|
|
164
|
+
entry point, important services or processes, data stored or read, external
|
|
165
|
+
systems, permissions, validation, errors, and operational expectations.
|
|
166
|
+
|
|
167
|
+
If a feature spans multiple areas, place the doc in the area that owns the
|
|
168
|
+
user-facing or operator-facing entry point. Cross-link from the other areas.
|
|
169
|
+
|
|
170
|
+
## Release-Time Doc Refresh
|
|
171
|
+
|
|
172
|
+
When invoked to refresh docs for a release:
|
|
173
|
+
|
|
174
|
+
1. Work from the diff `<previous-release-tag>..HEAD`, scoped to one area at a
|
|
175
|
+
time.
|
|
176
|
+
2. Read the matching area guide in `docs/_authoring/areas/`.
|
|
177
|
+
3. Read relevant initiative `release-doc-notes.md` files under
|
|
178
|
+
`context/releases/<release>/initiatives/`.
|
|
179
|
+
4. Update the area's `README.md` if the high-level picture changed.
|
|
180
|
+
5. Update feature pages for behavior that changed.
|
|
181
|
+
6. Ignore pure refactors, internal renames, test-only changes, formatting,
|
|
182
|
+
lint fixes, and dependency bumps with no behavior change.
|
|
183
|
+
7. Append one row to `docs/releases/index.md`.
|
|
184
|
+
|
|
185
|
+
## Source Order
|
|
186
|
+
|
|
187
|
+
For release refreshes, start from release-owned context before falling back to
|
|
188
|
+
source inspection:
|
|
189
|
+
|
|
190
|
+
1. Previous release tag to current release diff.
|
|
191
|
+
2. Relevant initiative `release-doc-notes.md` files.
|
|
192
|
+
3. Matching area guide under `docs/_authoring/areas/`.
|
|
193
|
+
4. Existing product documentation.
|
|
194
|
+
5. Source code, tests, config, CI/CD, infrastructure, and generated artifacts
|
|
195
|
+
only as needed to verify shipped behavior.
|
|
196
|
+
|
|
197
|
+
For baseline documentation, start from the explicit baseline scope and
|
|
198
|
+
reference point named by the human. If no reference is named, use the current
|
|
199
|
+
working tree and say so in the release index row.
|
|
200
|
+
|
|
201
|
+
## What Not To Document
|
|
202
|
+
|
|
203
|
+
- Internal helpers, private types, or implementation details that can change
|
|
204
|
+
without user or operator impact.
|
|
205
|
+
- Anything already covered by generated API reference or inline comments. Link
|
|
206
|
+
to it when helpful.
|
|
207
|
+
- Transient migration scaffolding that will be removed before or soon after
|
|
208
|
+
the release.
|
|
209
|
+
- Draft plans, undecided architecture, or open implementation questions. Those
|
|
210
|
+
belong in `context/`.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Area Name
|
|
2
|
+
|
|
3
|
+
Briefly describe what this area does, who uses it, and why it exists.
|
|
4
|
+
|
|
5
|
+
## Reader Summary
|
|
6
|
+
|
|
7
|
+
Explain the area in product or domain language. A Product Owner should be able
|
|
8
|
+
to understand the purpose, scope, and user or business value from this section.
|
|
9
|
+
|
|
10
|
+
## Primary Workflows
|
|
11
|
+
|
|
12
|
+
- TBD
|
|
13
|
+
|
|
14
|
+
## Architecture At A Glance
|
|
15
|
+
|
|
16
|
+
```mermaid
|
|
17
|
+
flowchart LR
|
|
18
|
+
User["User or operator"] -->|"uses"| Area["Area"]
|
|
19
|
+
Area -->|"reads or writes"| Data["Data store"]
|
|
20
|
+
Area -->|"calls"| External["External system"]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Responsibilities
|
|
24
|
+
|
|
25
|
+
- TBD
|
|
26
|
+
|
|
27
|
+
## Data And State
|
|
28
|
+
|
|
29
|
+
Describe the important records, files, queues, external state, or generated
|
|
30
|
+
artifacts this area creates, reads, or changes.
|
|
31
|
+
|
|
32
|
+
- TBD
|
|
33
|
+
|
|
34
|
+
## Configuration And Dependencies
|
|
35
|
+
|
|
36
|
+
List configuration, environment assumptions, external systems, scheduled jobs,
|
|
37
|
+
or infrastructure this area depends on.
|
|
38
|
+
|
|
39
|
+
- TBD
|
|
40
|
+
|
|
41
|
+
## Operational Expectations
|
|
42
|
+
|
|
43
|
+
Describe support, observability, recovery, audit, or routine operational
|
|
44
|
+
expectations that matter to readers.
|
|
45
|
+
|
|
46
|
+
- TBD
|
|
47
|
+
|
|
48
|
+
## Source References
|
|
49
|
+
|
|
50
|
+
Optional links to source files, generated references, dashboards, runbooks, or
|
|
51
|
+
release context that help technical readers verify behavior. Keep explanation
|
|
52
|
+
in this page instead of replacing it with links.
|
|
53
|
+
|
|
54
|
+
- TBD
|
|
55
|
+
|
|
56
|
+
## Feature Pages
|
|
57
|
+
|
|
58
|
+
- [Feature Name](features/feature-template.md)
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Feature Name
|
|
2
|
+
|
|
3
|
+
Describe the shipped behavior in product or domain language. Start with what a
|
|
4
|
+
Product Owner, QA reader, support person, operator, or API consumer can
|
|
5
|
+
observe.
|
|
6
|
+
|
|
7
|
+
## Reader Summary
|
|
8
|
+
|
|
9
|
+
Explain what the feature does, why it matters, and the outcome it provides.
|
|
10
|
+
|
|
11
|
+
## Who Uses It
|
|
12
|
+
|
|
13
|
+
- TBD
|
|
14
|
+
|
|
15
|
+
## Entry Points
|
|
16
|
+
|
|
17
|
+
Describe where the feature is triggered: UI, API, CLI, scheduled job,
|
|
18
|
+
integration, import/export, or operator workflow.
|
|
19
|
+
|
|
20
|
+
- TBD
|
|
21
|
+
|
|
22
|
+
## Behavior
|
|
23
|
+
|
|
24
|
+
- TBD
|
|
25
|
+
|
|
26
|
+
## Business Rules
|
|
27
|
+
|
|
28
|
+
Describe rules, limits, lifecycle states, timing, or decision logic in
|
|
29
|
+
reader-facing language.
|
|
30
|
+
|
|
31
|
+
- TBD
|
|
32
|
+
|
|
33
|
+
## Inputs And Outputs
|
|
34
|
+
|
|
35
|
+
| Input or output | Description |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| TBD | TBD |
|
|
38
|
+
|
|
39
|
+
## Data And State Changes
|
|
40
|
+
|
|
41
|
+
Describe important records, files, generated artifacts, messages, or external
|
|
42
|
+
state this feature creates, reads, updates, deletes, or retains.
|
|
43
|
+
|
|
44
|
+
- TBD
|
|
45
|
+
|
|
46
|
+
## Permissions And Validation
|
|
47
|
+
|
|
48
|
+
- TBD
|
|
49
|
+
|
|
50
|
+
## Configuration And Dependencies
|
|
51
|
+
|
|
52
|
+
List flags, settings, environment requirements, external systems, or
|
|
53
|
+
infrastructure dependencies that affect this feature.
|
|
54
|
+
|
|
55
|
+
- TBD
|
|
56
|
+
|
|
57
|
+
## Errors And Edge Cases
|
|
58
|
+
|
|
59
|
+
- TBD
|
|
60
|
+
|
|
61
|
+
## Operational Notes
|
|
62
|
+
|
|
63
|
+
- TBD
|
|
64
|
+
|
|
65
|
+
## Source References
|
|
66
|
+
|
|
67
|
+
Optional links to source files, generated references, runbooks, dashboards, or
|
|
68
|
+
release context that help technical readers verify behavior. Do not use this
|
|
69
|
+
section for private implementation detail that has no reader-visible impact.
|
|
70
|
+
|
|
71
|
+
- TBD
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Release
|
|
1
|
+
# Release Docs Index
|
|
2
2
|
|
|
3
3
|
One row per tagged release. Tag names default to `release/vMAJOR_MINOR_PATCH`
|
|
4
4
|
unless the project documents a different convention.
|
|
@@ -11,6 +11,8 @@ Docs at a given tag describe the behavior of that release.
|
|
|
11
11
|
|
|
12
12
|
## Notes For Future Release Rows
|
|
13
13
|
|
|
14
|
+
- For an explicit baseline documentation pass, the tag may be a commit,
|
|
15
|
+
branch, date, or human-named baseline label when no release tag exists yet.
|
|
14
16
|
- The first row may be a bootstrap refresh. Subsequent rows should describe
|
|
15
17
|
incremental refreshes from `<previous-tag>..HEAD`.
|
|
16
18
|
- "Areas refreshed" lists only areas with material behavior changes.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "code-anchored-context",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Install repo-local agent context,
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Install repo-local agent context, release initiatives, and release-anchored docs scaffolding into an existing project.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"AGENTS.md",
|
|
12
12
|
".agents/",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
13
|
+
"context/AGENTS.md",
|
|
14
|
+
"context/README.md",
|
|
15
|
+
"context/_templates/",
|
|
16
|
+
"context/backlog/",
|
|
17
|
+
"context/code-anchored-context-structure.md",
|
|
18
|
+
"context/code-anchored-context-why.md",
|
|
19
|
+
"context/code-anchored-context.html",
|
|
20
|
+
"context/current.md",
|
|
21
|
+
"context/giving-ai-agents-context-around-code.md",
|
|
22
|
+
"context/programs/",
|
|
23
|
+
"context/releases/v0_1_0/README.md",
|
|
24
|
+
"context/releases/v0_1_0/backlog.md",
|
|
25
|
+
"context/releases/v0_1_0/initiatives/.gitkeep",
|
|
26
|
+
"context/terminology.md",
|
|
27
|
+
"docs/",
|
|
28
28
|
"bin/",
|
|
29
29
|
"README.md",
|
|
30
30
|
"LICENSE"
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"codex",
|
|
41
41
|
"ai",
|
|
42
42
|
"documentation",
|
|
43
|
-
"
|
|
43
|
+
"working-context",
|
|
44
|
+
"docs"
|
|
44
45
|
]
|
|
45
46
|
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
# Documentation Workflow
|
|
2
|
-
|
|
3
|
-
This file defines how documentation is versioned, refreshed, and structured
|
|
4
|
-
across the repo. It applies to all documented areas; area-specific guidance
|
|
5
|
-
lives in [`areas/`](areas/).
|
|
6
|
-
|
|
7
|
-
## When Docs Get Edited
|
|
8
|
-
|
|
9
|
-
Doc refresh is an explicit, on-request activity, not a side effect of code
|
|
10
|
-
work. Humans or agents touch `Documentation/` only when:
|
|
11
|
-
|
|
12
|
-
- A human explicitly asks for a release-time refresh, typically after the
|
|
13
|
-
release tag is cut and QA has signed off.
|
|
14
|
-
- A human explicitly asks to update a specific page.
|
|
15
|
-
- A human asks to fix a demonstrable error in an existing page, such as a
|
|
16
|
-
broken link or factual inaccuracy.
|
|
17
|
-
|
|
18
|
-
Do not update docs as part of a feature PR, bug fix, refactor, or dependency
|
|
19
|
-
bump. Mid-stream commits are partial work; "feature complete" is only
|
|
20
|
-
well-defined once the release is accepted.
|
|
21
|
-
|
|
22
|
-
Agents: if you are working on a code change and notice a doc that looks
|
|
23
|
-
outdated, leave it alone. Flag the staleness in your summary or add it to the
|
|
24
|
-
initiative's `release-doc-notes.md`, but do not edit the doc as part of the
|
|
25
|
-
current change unless explicitly asked.
|
|
26
|
-
|
|
27
|
-
## Cadence And Versioning
|
|
28
|
-
|
|
29
|
-
Docs live under `Documentation/` and are refreshed once per release, at
|
|
30
|
-
git-tag time, after release acceptance. Docs are anchored to the release tag;
|
|
31
|
-
the docs at tag `release/v1_2_3` describe the behavior of that release.
|
|
32
|
-
|
|
33
|
-
Default tag names follow the convention `release/vMAJOR_MINOR_PATCH` and match
|
|
34
|
-
the release branch name. If a project uses a different release convention,
|
|
35
|
-
document it here before the first refresh.
|
|
36
|
-
|
|
37
|
-
## Audience
|
|
38
|
-
|
|
39
|
-
Docs are written for non-developer technical readers by default: QA, product
|
|
40
|
-
owners, solution owners, support engineers, customer engineers, or operators.
|
|
41
|
-
Adjust this only when the project explicitly defines a different audience.
|
|
42
|
-
|
|
43
|
-
- Describe behavior, inputs, outputs, permissions, error conditions, and
|
|
44
|
-
business rules in domain language.
|
|
45
|
-
- Avoid code snippets, private type names, SQL, and framework jargon unless
|
|
46
|
-
the concept has no plain-language equivalent.
|
|
47
|
-
- For readers who need more depth than the docs provide, link to the source
|
|
48
|
-
rather than replicating the implementation in prose.
|
|
49
|
-
|
|
50
|
-
## Two Levels Of Detail
|
|
51
|
-
|
|
52
|
-
Every documented area has two layers:
|
|
53
|
-
|
|
54
|
-
1. High level: a summary of what the area is for and an architecture
|
|
55
|
-
description.
|
|
56
|
-
2. Detailed: one page per feature, written to the audience above.
|
|
57
|
-
|
|
58
|
-
Standard per-area layout:
|
|
59
|
-
|
|
60
|
-
```text
|
|
61
|
-
Documentation/<Area>/
|
|
62
|
-
README.md
|
|
63
|
-
features/
|
|
64
|
-
<feature>.md
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
## Diagrams
|
|
68
|
-
|
|
69
|
-
Use Mermaid for architecture, flow, sequence, state, and data-relationship
|
|
70
|
-
diagrams. Mermaid remains readable as Markdown source and renders in common
|
|
71
|
-
Markdown viewers.
|
|
72
|
-
|
|
73
|
-
Use a diagram when the relationship between moving parts is easier to show
|
|
74
|
-
than to describe in prose. Prefer a short diagram over a long paragraph; prefer
|
|
75
|
-
a short sentence over an unnecessary diagram.
|
|
76
|
-
|
|
77
|
-
Avoid ASCII-art box drawings. When you edit a page that already has one,
|
|
78
|
-
replace it with Mermaid if the diagram is still useful.
|
|
79
|
-
|
|
80
|
-
Preferred diagram types:
|
|
81
|
-
|
|
82
|
-
| Scenario | Mermaid type |
|
|
83
|
-
| --- | --- |
|
|
84
|
-
| Component, topology, or data flow | `flowchart LR` or `flowchart TD` |
|
|
85
|
-
| Sequence of interactions | `sequenceDiagram` |
|
|
86
|
-
| Entity or table relationships | `erDiagram` |
|
|
87
|
-
| State machine | `stateDiagram-v2` |
|
|
88
|
-
|
|
89
|
-
Keep diagrams small enough to read. If a diagram needs more than about 15 nodes
|
|
90
|
-
or steps, simplify it or split it.
|
|
91
|
-
|
|
92
|
-
## Feature Docs Cover The Full Vertical
|
|
93
|
-
|
|
94
|
-
A feature doc should describe the full behavior path the feature touches:
|
|
95
|
-
entry point, important services or processes, data stored or read, external
|
|
96
|
-
systems, permissions, validation, errors, and operational expectations.
|
|
97
|
-
|
|
98
|
-
If a feature spans multiple areas, place the doc in the area that owns the
|
|
99
|
-
user-facing or operator-facing entry point. Cross-link from the other areas.
|
|
100
|
-
|
|
101
|
-
## Release-Time Doc Refresh
|
|
102
|
-
|
|
103
|
-
When invoked to refresh docs for a release:
|
|
104
|
-
|
|
105
|
-
1. Work from the diff `<previous-release-tag>..HEAD`, scoped to one area at a
|
|
106
|
-
time.
|
|
107
|
-
2. Read the matching area guide in `Documentation/_authoring/areas/`.
|
|
108
|
-
3. Update the area's `README.md` if the high-level picture changed.
|
|
109
|
-
4. Update feature pages for behavior that changed.
|
|
110
|
-
5. Ignore pure refactors, internal renames, test-only changes, formatting,
|
|
111
|
-
lint fixes, and dependency bumps with no behavior change.
|
|
112
|
-
6. Append one row to `Documentation/releases/index.md`.
|
|
113
|
-
|
|
114
|
-
## What Not To Document
|
|
115
|
-
|
|
116
|
-
- Internal helpers, private types, or implementation details that can change
|
|
117
|
-
without user or operator impact.
|
|
118
|
-
- Anything already covered by generated API reference or inline comments. Link
|
|
119
|
-
to it when helpful.
|
|
120
|
-
- Transient migration scaffolding that will be removed before or soon after
|
|
121
|
-
the release.
|
|
122
|
-
- Draft plans, undecided architecture, or open implementation questions. Those
|
|
123
|
-
belong in `Development/`.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Area Name
|
|
2
|
-
|
|
3
|
-
Briefly describe what this area does, who uses it, and why it exists.
|
|
4
|
-
|
|
5
|
-
## Architecture At A Glance
|
|
6
|
-
|
|
7
|
-
```mermaid
|
|
8
|
-
flowchart LR
|
|
9
|
-
User["User or operator"] -->|"uses"| Area["Area"]
|
|
10
|
-
Area -->|"reads or writes"| Data["Data store"]
|
|
11
|
-
Area -->|"calls"| External["External system"]
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Responsibilities
|
|
15
|
-
|
|
16
|
-
- TBD
|
|
17
|
-
|
|
18
|
-
## Feature Pages
|
|
19
|
-
|
|
20
|
-
- [Feature Name](features/feature-template.md)
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Feature Name
|
|
2
|
-
|
|
3
|
-
Describe the shipped behavior in domain language.
|
|
4
|
-
|
|
5
|
-
## Who Uses It
|
|
6
|
-
|
|
7
|
-
- TBD
|
|
8
|
-
|
|
9
|
-
## Behavior
|
|
10
|
-
|
|
11
|
-
- TBD
|
|
12
|
-
|
|
13
|
-
## Inputs And Outputs
|
|
14
|
-
|
|
15
|
-
| Input or output | Description |
|
|
16
|
-
| --- | --- |
|
|
17
|
-
| TBD | TBD |
|
|
18
|
-
|
|
19
|
-
## Permissions And Validation
|
|
20
|
-
|
|
21
|
-
- TBD
|
|
22
|
-
|
|
23
|
-
## Errors And Edge Cases
|
|
24
|
-
|
|
25
|
-
- TBD
|
|
26
|
-
|
|
27
|
-
## Operational Notes
|
|
28
|
-
|
|
29
|
-
- TBD
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{Development → context}/_templates/planned-initiative/decisions/ADR-0000-template.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|