code-anchored-context 0.1.1 → 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 +13 -13
- package/README.md +14 -14
- package/bin/code-anchored-context.js +34 -34
- 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 +2 -2
- 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 +3 -3
- 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 +12 -12
- 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 +27 -27
- 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 +6 -6
- package/{Documentation → docs}/_authoring/README.md +4 -4
- package/{Documentation → docs}/_authoring/areas/README.md +1 -1
- package/{Documentation → docs}/_authoring/areas/_template.md +4 -4
- package/{Documentation → docs}/_authoring/terminology.md +1 -1
- package/{Documentation → docs}/_authoring/workflow.md +22 -22
- package/{Documentation → docs}/releases/index.md +1 -1
- package/package.json +19 -18
- /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
- /package/{Documentation → docs}/_templates/area/README.md +0 -0
- /package/{Documentation → docs}/_templates/area/features/feature-template.md +0 -0
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
</div>
|
|
491
491
|
<div class="connector">or defer to</div>
|
|
492
492
|
<div class="node backlog">
|
|
493
|
-
<strong>
|
|
493
|
+
<strong>Context backlog item</strong>
|
|
494
494
|
<span>Isolated cut scope saved for later</span>
|
|
495
495
|
</div>
|
|
496
496
|
</div>
|
|
@@ -515,23 +515,23 @@
|
|
|
515
515
|
<section id="why">
|
|
516
516
|
<h2>Why This Exists</h2>
|
|
517
517
|
<p class="section-intro">
|
|
518
|
-
<code>
|
|
519
|
-
<code>
|
|
518
|
+
<code>docs/</code> is released product truth.
|
|
519
|
+
<code>context/</code> is working development truth. Code-Anchored
|
|
520
520
|
Context keeps agent context, planning, and decisions visible without
|
|
521
521
|
mixing in-progress thinking into released product documentation.
|
|
522
522
|
</p>
|
|
523
523
|
<div class="grid two">
|
|
524
524
|
<div class="tile accent-release">
|
|
525
|
-
<h3>Use <code>
|
|
525
|
+
<h3>Use <code>context/</code> while work is forming</h3>
|
|
526
526
|
<p>
|
|
527
527
|
Put plans, specs, ADRs, backlog, implementation context, future
|
|
528
528
|
phases, and release-doc notes here during normal development.
|
|
529
529
|
</p>
|
|
530
530
|
</div>
|
|
531
531
|
<div class="tile accent-program">
|
|
532
|
-
<h3>Use <code>
|
|
532
|
+
<h3>Use <code>docs/</code> only for shipped product docs</h3>
|
|
533
533
|
<p>
|
|
534
|
-
Product documentation remains release anchored.
|
|
534
|
+
Product documentation remains release anchored. Working context
|
|
535
535
|
can feed it later through <code>release-doc-notes.md</code>.
|
|
536
536
|
</p>
|
|
537
537
|
</div>
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
<div class="tile accent-program">
|
|
549
549
|
<h3>Program</h3>
|
|
550
550
|
<p>Cross-release parent effort with durable context, roadmap, phase history, and program-level ADRs.</p>
|
|
551
|
-
<code class="path">
|
|
551
|
+
<code class="path">context/programs/<program>/</code>
|
|
552
552
|
</div>
|
|
553
553
|
<div class="tile accent-planned">
|
|
554
554
|
<h3>Planned initiative</h3>
|
|
@@ -577,13 +577,13 @@
|
|
|
577
577
|
<div class="decision">
|
|
578
578
|
<div class="question">Is this active in the current release?</div>
|
|
579
579
|
<div class="answer">Use a release initiative. It is the delivery surface for the current release.</div>
|
|
580
|
-
<div class="target"><code>
|
|
580
|
+
<div class="target"><code>context/releases/<current>/initiatives/</code></div>
|
|
581
581
|
</div>
|
|
582
582
|
|
|
583
583
|
<div class="decision">
|
|
584
584
|
<div class="question">Does this span releases or phases?</div>
|
|
585
585
|
<div class="answer">Use a program for durable context, roadmap, and program-level decisions.</div>
|
|
586
|
-
<div class="target"><code>
|
|
586
|
+
<div class="target"><code>context/programs/</code></div>
|
|
587
587
|
</div>
|
|
588
588
|
|
|
589
589
|
<div class="decision">
|
|
@@ -594,8 +594,8 @@
|
|
|
594
594
|
|
|
595
595
|
<div class="decision">
|
|
596
596
|
<div class="question">Was isolated work cut from scope?</div>
|
|
597
|
-
<div class="answer">Use a
|
|
598
|
-
<div class="target"><code>
|
|
597
|
+
<div class="answer">Use a context backlog item. Link it back to the originating initiative.</div>
|
|
598
|
+
<div class="target"><code>context/backlog/items/</code></div>
|
|
599
599
|
</div>
|
|
600
600
|
</section>
|
|
601
601
|
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
The same work can move through several containers as it becomes more
|
|
606
606
|
concrete. Promotion is explicit and traceable.
|
|
607
607
|
</p>
|
|
608
|
-
<div class="timeline" aria-label="
|
|
608
|
+
<div class="timeline" aria-label="Context lifecycle">
|
|
609
609
|
<div class="step">
|
|
610
610
|
<span class="step-number">1</span>
|
|
611
611
|
<h3>Plan the arc</h3>
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
<section id="delivery-surface">
|
|
638
638
|
<h2>Delivery Surface</h2>
|
|
639
639
|
<p class="section-intro">
|
|
640
|
-
|
|
640
|
+
Working context describes the whole delivery system, not only the
|
|
641
641
|
product code. The structure follows delivery concerns, not specific
|
|
642
642
|
technologies or vendors.
|
|
643
643
|
</p>
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
<section id="release-transition">
|
|
758
758
|
<h2>Release Transition</h2>
|
|
759
759
|
<p class="section-intro">
|
|
760
|
-
Changing <code>
|
|
760
|
+
Changing <code>context/current.md</code> is a workflow. The agent
|
|
761
761
|
should materialize planned work for the new current release.
|
|
762
762
|
</p>
|
|
763
763
|
<table class="matrix">
|
|
@@ -801,19 +801,19 @@
|
|
|
801
801
|
<div class="grid two">
|
|
802
802
|
<div class="tile">
|
|
803
803
|
<h3>For vocabulary</h3>
|
|
804
|
-
<p><a href="terminology.md">
|
|
804
|
+
<p><a href="terminology.md">context/terminology.md</a></p>
|
|
805
805
|
</div>
|
|
806
806
|
<div class="tile">
|
|
807
807
|
<h3>For active release context</h3>
|
|
808
|
-
<p><a href="current.md">
|
|
808
|
+
<p><a href="current.md">context/current.md</a></p>
|
|
809
809
|
</div>
|
|
810
810
|
<div class="tile">
|
|
811
811
|
<h3>For release transitions</h3>
|
|
812
|
-
<p><a href="_templates/release-transition.md">
|
|
812
|
+
<p><a href="_templates/release-transition.md">context/_templates/release-transition.md</a></p>
|
|
813
813
|
</div>
|
|
814
814
|
<div class="tile">
|
|
815
815
|
<h3>For agent behavior</h3>
|
|
816
|
-
<p><a href="../.agents/skills/
|
|
816
|
+
<p><a href="../.agents/skills/code-anchored-context/SKILL.md">code-anchored-context skill</a></p>
|
|
817
817
|
</div>
|
|
818
818
|
</div>
|
|
819
819
|
</section>
|
|
@@ -821,8 +821,8 @@
|
|
|
821
821
|
|
|
822
822
|
<footer>
|
|
823
823
|
<div class="wrap">
|
|
824
|
-
Static brief for the repository <code>
|
|
825
|
-
Product documentation still lives under <code>
|
|
824
|
+
Static brief for the repository <code>context/</code> context model.
|
|
825
|
+
Product documentation still lives under <code>docs/</code> and
|
|
826
826
|
follows its own release refresh rules.
|
|
827
827
|
</div>
|
|
828
828
|
</footer>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Current
|
|
1
|
+
# Current Context
|
|
2
2
|
|
|
3
3
|
Current release: `v0_1_0`
|
|
4
4
|
|
|
@@ -26,7 +26,7 @@ Registered initiatives:
|
|
|
26
26
|
- `releases/v0_1_0/initiatives/npm-installer-cli/` - npm initializer for
|
|
27
27
|
installing this context template into existing projects.
|
|
28
28
|
|
|
29
|
-
To start an initiative, copy `
|
|
30
|
-
`
|
|
29
|
+
To start an initiative, copy `context/_templates/initiative/` into
|
|
30
|
+
`context/releases/v0_1_0/initiatives/<initiative-slug>/`, then update the
|
|
31
31
|
copied `README.md` first so agents have a clear entry point before editing the
|
|
32
32
|
supporting files.
|
|
@@ -16,13 +16,13 @@ infrastructure conversations, and people's heads. The problem is that agents
|
|
|
16
16
|
need this context in a structured, discoverable form.
|
|
17
17
|
|
|
18
18
|
This is why I started separating **released product documentation** from
|
|
19
|
-
**
|
|
19
|
+
**working context**.
|
|
20
20
|
|
|
21
21
|
```text
|
|
22
|
-
|
|
22
|
+
docs/
|
|
23
23
|
What shipped.
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
context/
|
|
26
26
|
What we are planning, building, deciding, testing, shipping, hosting,
|
|
27
27
|
deferring, and learning.
|
|
28
28
|
```
|
|
@@ -31,7 +31,7 @@ Product documentation should stay stable and release-accurate. It should
|
|
|
31
31
|
describe the behavior of a known release, not the current shape of an unfinished
|
|
32
32
|
branch.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Working context is different. It is allowed to evolve. It is where humans
|
|
35
35
|
and agents work through ambiguity.
|
|
36
36
|
|
|
37
37
|
Over time, I have started thinking about this as **Code-Anchored Context**.
|
|
@@ -53,7 +53,7 @@ One practical benefit is that the reasoning travels with the work.
|
|
|
53
53
|
When context is materialized in the repository, it stops being tied to one
|
|
54
54
|
chat transcript, IDE, agent, or session. A team can switch tools without
|
|
55
55
|
losing the trail of why the system is shaped the way it is. The next human or
|
|
56
|
-
agent can open the repo, read the
|
|
56
|
+
agent can open the repo, read the working context, and continue from the
|
|
57
57
|
same accumulated understanding instead of reconstructing it from memory. That
|
|
58
58
|
continuity keeps hours of planning from being lost and makes handoffs between
|
|
59
59
|
models and team members materially better.
|
|
@@ -61,8 +61,8 @@ models and team members materially better.
|
|
|
61
61
|
```mermaid
|
|
62
62
|
flowchart LR
|
|
63
63
|
Code["Codebase<br/>What exists in the system"]
|
|
64
|
-
Dev["
|
|
65
|
-
Docs["
|
|
64
|
+
Dev["context/<br/>What is being planned, built, decided, tested, shipped, hosted, deferred, and learned"]
|
|
65
|
+
Docs["docs/<br/>What shipped in a known release"]
|
|
66
66
|
Agents["Agents and humans<br/>Need context before changing behavior"]
|
|
67
67
|
|
|
68
68
|
Agents --> Code
|
|
@@ -86,7 +86,7 @@ So the rule became:
|
|
|
86
86
|
|
|
87
87
|
Local `AGENTS.md` files can point agents toward the right place. But plans,
|
|
88
88
|
specs, ADRs, release context, testing strategy, delivery notes, and
|
|
89
|
-
infrastructure context should live centrally under `
|
|
89
|
+
infrastructure context should live centrally under `context/`.
|
|
90
90
|
|
|
91
91
|
```mermaid
|
|
92
92
|
flowchart TD
|
|
@@ -94,7 +94,7 @@ flowchart TD
|
|
|
94
94
|
AreaA["product area AGENTS.md<br/>local signpost"]
|
|
95
95
|
AreaB["delivery area AGENTS.md<br/>local signpost"]
|
|
96
96
|
AreaC["nested project AGENTS.md<br/>local signpost"]
|
|
97
|
-
Dev["
|
|
97
|
+
Dev["context/<br/>central working context"]
|
|
98
98
|
Initiative["Release initiative<br/>single delivery story"]
|
|
99
99
|
|
|
100
100
|
Root --> Dev
|
|
@@ -107,7 +107,7 @@ flowchart TD
|
|
|
107
107
|
## The Core Model
|
|
108
108
|
|
|
109
109
|
Code-Anchored Context uses explicit terminology, captured in
|
|
110
|
-
`
|
|
110
|
+
`context/terminology.md`. That matters because agents need stable
|
|
111
111
|
vocabulary as much as humans do.
|
|
112
112
|
|
|
113
113
|
The main containers are:
|
|
@@ -122,7 +122,7 @@ Planned initiative
|
|
|
122
122
|
Release initiative
|
|
123
123
|
Active or historical delivery work for a specific release.
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
Context backlog item
|
|
126
126
|
Isolated work cut from scope but worth preserving.
|
|
127
127
|
|
|
128
128
|
Program release slice
|
|
@@ -132,7 +132,7 @@ Program release slice
|
|
|
132
132
|
This gives each kind of context a natural home.
|
|
133
133
|
|
|
134
134
|
```text
|
|
135
|
-
|
|
135
|
+
context/
|
|
136
136
|
terminology.md
|
|
137
137
|
current.md
|
|
138
138
|
programs/
|
|
@@ -168,7 +168,7 @@ flowchart TD
|
|
|
168
168
|
Release initiatives are the main unit of active delivery.
|
|
169
169
|
|
|
170
170
|
```text
|
|
171
|
-
|
|
171
|
+
context/releases/v0_1_0/initiatives/<initiative>/
|
|
172
172
|
README.md
|
|
173
173
|
plan.md
|
|
174
174
|
spec.md
|
|
@@ -276,7 +276,7 @@ stable knowledge a place to land.
|
|
|
276
276
|
## Testing, Delivery, And Infrastructure
|
|
277
277
|
|
|
278
278
|
The model treats verification, delivery, and infrastructure as first-class
|
|
279
|
-
|
|
279
|
+
working context.
|
|
280
280
|
|
|
281
281
|
That matters because agents often need to answer questions beyond "what code
|
|
282
282
|
should change?"
|
|
@@ -332,7 +332,7 @@ Some work is bigger than one release.
|
|
|
332
332
|
A program holds durable context for multi-release work:
|
|
333
333
|
|
|
334
334
|
```text
|
|
335
|
-
|
|
335
|
+
context/programs/<program>/
|
|
336
336
|
README.md
|
|
337
337
|
context.md
|
|
338
338
|
roadmap.md
|
|
@@ -350,7 +350,7 @@ future phase is clear enough to plan, but the target release is not current
|
|
|
350
350
|
yet, it becomes a planned initiative:
|
|
351
351
|
|
|
352
352
|
```text
|
|
353
|
-
|
|
353
|
+
context/programs/<program>/planned-initiatives/<initiative>/
|
|
354
354
|
```
|
|
355
355
|
|
|
356
356
|
A planned initiative can also preserve future testing, delivery, or
|
|
@@ -365,7 +365,7 @@ When the target release becomes current, the planned initiative is promoted
|
|
|
365
365
|
into:
|
|
366
366
|
|
|
367
367
|
```text
|
|
368
|
-
|
|
368
|
+
context/releases/<version>/initiatives/<initiative>/
|
|
369
369
|
```
|
|
370
370
|
|
|
371
371
|
Promotion is explicit and traceable. The original planned initiative remains
|
|
@@ -386,7 +386,7 @@ flowchart LR
|
|
|
386
386
|
History -.->|"links to promoted initiative"| Release
|
|
387
387
|
```
|
|
388
388
|
|
|
389
|
-
##
|
|
389
|
+
## Context Backlog
|
|
390
390
|
|
|
391
391
|
Not every deferred item deserves a program or planned initiative.
|
|
392
392
|
|
|
@@ -394,7 +394,7 @@ Sometimes work is cut from scope because of risk, timing, or focus, but it is
|
|
|
394
394
|
still worth preserving. That belongs in:
|
|
395
395
|
|
|
396
396
|
```text
|
|
397
|
-
|
|
397
|
+
context/backlog/items/
|
|
398
398
|
<originating-initiative>--<item>.md
|
|
399
399
|
```
|
|
400
400
|
|
|
@@ -408,7 +408,7 @@ release initiative. It is not silently rewritten.
|
|
|
408
408
|
|
|
409
409
|
Changing the current release is not just editing a pointer.
|
|
410
410
|
|
|
411
|
-
`
|
|
411
|
+
`context/current.md` identifies the active release, but moving from one
|
|
412
412
|
release to another is a release transition. During that transition, agents
|
|
413
413
|
should scan program planned initiatives, find items targeting the new release,
|
|
414
414
|
promote them into the release folder, and update links both ways.
|
|
@@ -462,22 +462,22 @@ It helps agents and humans answer:
|
|
|
462
462
|
The mental model is simple:
|
|
463
463
|
|
|
464
464
|
```text
|
|
465
|
-
|
|
465
|
+
docs/
|
|
466
466
|
Released truth.
|
|
467
467
|
|
|
468
|
-
|
|
468
|
+
context/releases/
|
|
469
469
|
Release-scoped delivery truth.
|
|
470
470
|
|
|
471
|
-
|
|
471
|
+
context/programs/
|
|
472
472
|
Multi-release truth.
|
|
473
473
|
|
|
474
|
-
|
|
474
|
+
context/programs/*/planned-initiatives/
|
|
475
475
|
Future scoped program work.
|
|
476
476
|
|
|
477
|
-
|
|
477
|
+
context/backlog/
|
|
478
478
|
Deferred isolated work.
|
|
479
479
|
|
|
480
|
-
|
|
480
|
+
context/terminology.md
|
|
481
481
|
Shared vocabulary.
|
|
482
482
|
|
|
483
483
|
AGENTS.md
|
|
@@ -486,7 +486,7 @@ AGENTS.md
|
|
|
486
486
|
|
|
487
487
|
Code tells an agent what exists.
|
|
488
488
|
|
|
489
|
-
|
|
489
|
+
Working context tells it why it exists, where it is going, what has
|
|
490
490
|
already been decided, how it should be verified, how it should ship, what
|
|
491
491
|
infrastructure it relies on, and what has intentionally been left for later.
|
|
492
492
|
|
|
@@ -10,7 +10,7 @@ Use a program when an effort has:
|
|
|
10
10
|
- planned future work that should remain visible
|
|
11
11
|
- context that would be lost if it lived only in one release initiative
|
|
12
12
|
|
|
13
|
-
Create programs from `
|
|
13
|
+
Create programs from `context/_templates/program/`.
|
|
14
14
|
|
|
15
15
|
## Planned Initiatives
|
|
16
16
|
|
|
@@ -19,7 +19,7 @@ to scope, split, or preserve implementation intent, but the target release is
|
|
|
19
19
|
not current yet.
|
|
20
20
|
|
|
21
21
|
When a planned initiative's target release becomes current, promote it into
|
|
22
|
-
`
|
|
22
|
+
`context/releases/<version>/initiatives/` and leave the planned initiative
|
|
23
23
|
behind as historical planning context.
|
|
24
24
|
|
|
25
25
|
## Current Programs
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# v0.1.0
|
|
1
|
+
# v0.1.0 Context
|
|
2
2
|
|
|
3
|
-
This folder contains
|
|
3
|
+
This folder contains working context for the `v0_1_0` release.
|
|
4
4
|
|
|
5
5
|
## Navigation
|
|
6
6
|
|
|
@@ -14,20 +14,20 @@ Create an initiative when work is non-trivial, behavior-changing,
|
|
|
14
14
|
cross-project, release-significant, or likely to need future product
|
|
15
15
|
documentation.
|
|
16
16
|
|
|
17
|
-
Use `
|
|
17
|
+
Use `context/_templates/initiative/` as the starting point.
|
|
18
18
|
|
|
19
19
|
## Carry-Forward Rule
|
|
20
20
|
|
|
21
21
|
If an initiative is part of a larger phased effort, link it to a program
|
|
22
|
-
under `
|
|
22
|
+
under `context/programs/`.
|
|
23
23
|
|
|
24
24
|
If isolated work is cut from scope but should be kept for later, create a
|
|
25
|
-
backlog item under `
|
|
25
|
+
backlog item under `context/backlog/items/` and link it back to the
|
|
26
26
|
originating initiative.
|
|
27
27
|
|
|
28
28
|
## Planned Initiative Promotion
|
|
29
29
|
|
|
30
30
|
When this release becomes current, promote matching planned initiatives from
|
|
31
|
-
`
|
|
31
|
+
`context/programs/*/planned-initiatives/` into this release's
|
|
32
32
|
`initiatives/` folder. Leave the planned initiative in place as historical
|
|
33
33
|
planning context and update its status to `Promoted`.
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Context Terminology
|
|
2
2
|
|
|
3
3
|
This glossary defines the terms used by the Code-Anchored Context practice in
|
|
4
|
-
`
|
|
4
|
+
`context/`. Use these terms consistently in programs, initiatives,
|
|
5
5
|
backlog items, ADRs, agent summaries, and release-transition work.
|
|
6
6
|
|
|
7
7
|
## Core Folders
|
|
8
8
|
|
|
9
9
|
| Term | Meaning |
|
|
10
10
|
| --- | --- |
|
|
11
|
-
| `
|
|
12
|
-
| `
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
15
|
-
| `
|
|
16
|
-
| `
|
|
11
|
+
| `context/` | Working context: plans, specs, ADRs, implementation notes, delivery-surface context, future scope, and release-documentation notes. |
|
|
12
|
+
| `docs/` | Released product documentation. It describes shipped behavior for a release/tag and is not edited during normal development work. |
|
|
13
|
+
| `context/current.md` | Pointer to the current active release context. Updating this is a release transition. |
|
|
14
|
+
| `context/releases/<version>/` | Release-scoped working context for one version. |
|
|
15
|
+
| `context/programs/` | Durable multi-release working context. |
|
|
16
|
+
| `context/backlog/items/` | Deferred isolated work cut from initiatives but worth preserving. |
|
|
17
17
|
|
|
18
18
|
## Work Containers
|
|
19
19
|
|
|
20
20
|
| Term | Meaning | Lives in |
|
|
21
21
|
| --- | --- | --- |
|
|
22
|
-
| Program | A cross-release parent effort with durable context, roadmap, phase history, and program-level decisions. | `
|
|
23
|
-
| Planned initiative | A scoped future delivery slice that belongs to a program but is not in the current release yet. | `
|
|
24
|
-
| Release initiative | An active or historical delivery slice for a specific release. | `
|
|
25
|
-
|
|
|
26
|
-
| Program release slice | A program-level summary of what a release is expected to do or did for the program. | `
|
|
22
|
+
| Program | A cross-release parent effort with durable context, roadmap, phase history, and program-level decisions. | `context/programs/<program-slug>/` |
|
|
23
|
+
| Planned initiative | A scoped future delivery slice that belongs to a program but is not in the current release yet. | `context/programs/<program-slug>/planned-initiatives/<initiative-slug>/` |
|
|
24
|
+
| Release initiative | An active or historical delivery slice for a specific release. | `context/releases/<version>/initiatives/<initiative-slug>/` |
|
|
25
|
+
| Context backlog item | Isolated deferred work that was cut from an initiative and may be picked up later. | `context/backlog/items/<originating-initiative>--<item>.md` |
|
|
26
|
+
| Program release slice | A program-level summary of what a release is expected to do or did for the program. | `context/programs/<program-slug>/releases/<version>.md` |
|
|
27
27
|
|
|
28
28
|
## Choosing The Right Container
|
|
29
29
|
|
|
@@ -36,7 +36,7 @@ or needs a roadmap beyond one release.
|
|
|
36
36
|
Use a planned initiative when future program work is clear enough to plan,
|
|
37
37
|
specify, or split, but the target release is not current yet.
|
|
38
38
|
|
|
39
|
-
Use a
|
|
39
|
+
Use a context backlog item when an isolated piece of work was cut from
|
|
40
40
|
scope and should be preserved, but it does not need program-level context.
|
|
41
41
|
|
|
42
42
|
## Files
|
|
@@ -45,7 +45,7 @@ The structure follows delivery concerns, not technologies. Use concern names
|
|
|
45
45
|
such as `testing.md`, `delivery.md`, and `infrastructure.md`; name specific
|
|
46
46
|
tools inside those files only when the tools matter.
|
|
47
47
|
|
|
48
|
-
Mermaid is the preferred diagram syntax for
|
|
48
|
+
Mermaid is the preferred diagram syntax for working context because it is
|
|
49
49
|
both readable Markdown for agents and renderable visual context for humans.
|
|
50
50
|
|
|
51
51
|
| Term | Meaning |
|
|
@@ -60,7 +60,7 @@ both readable Markdown for agents and renderable visual context for humans.
|
|
|
60
60
|
| `infrastructure.md` | Stable description of environment shape, IaC, resources, networking, identity, storage, secrets, and environment dependencies. |
|
|
61
61
|
| `operations.md` | Optional actionable runtime support context: observability, failure modes, rollback, repair, support procedures, and tooling. |
|
|
62
62
|
| `backlog.md` | Trackable work items for the containing initiative or program. |
|
|
63
|
-
| `release-doc-notes.md` | Notes for future product documentation refresh work. This is the bridge to `
|
|
63
|
+
| `release-doc-notes.md` | Notes for future product documentation refresh work. This is the bridge to `docs/`. |
|
|
64
64
|
| ADR | Architecture Decision Record. Use for durable decisions and tradeoffs. |
|
|
65
65
|
| `brief.html` | Optional human-friendly presentation layer. |
|
|
66
66
|
|
|
@@ -88,15 +88,15 @@ Planned initiatives are promoted when their target release becomes current or
|
|
|
88
88
|
when release planning explicitly begins:
|
|
89
89
|
|
|
90
90
|
```text
|
|
91
|
-
|
|
92
|
-
->
|
|
91
|
+
context/programs/<program>/planned-initiatives/<initiative>/
|
|
92
|
+
-> context/releases/<version>/initiatives/<initiative>/
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
Backlog items are promoted when someone decides to pick them up:
|
|
96
96
|
|
|
97
97
|
```text
|
|
98
|
-
|
|
99
|
-
->
|
|
98
|
+
context/backlog/items/<originating-initiative>--<item>.md
|
|
99
|
+
-> context/releases/<version>/initiatives/<initiative>/
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
Promotion does not silently move or delete the original context. Leave the
|
|
@@ -105,7 +105,7 @@ original planned initiative or backlog item in place, update its status to
|
|
|
105
105
|
|
|
106
106
|
## Release Transition
|
|
107
107
|
|
|
108
|
-
A release transition is the act of changing `
|
|
108
|
+
A release transition is the act of changing `context/current.md` to a new
|
|
109
109
|
release. This is not just a line edit.
|
|
110
110
|
|
|
111
111
|
During a release transition, agents should:
|
|
@@ -117,4 +117,4 @@ During a release transition, agents should:
|
|
|
117
117
|
- update links both ways
|
|
118
118
|
- leave planned initiatives as historical planning context
|
|
119
119
|
|
|
120
|
-
Use `
|
|
120
|
+
Use `context/_templates/release-transition.md` as the checklist.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# PROJECT_NAME
|
|
1
|
+
# PROJECT_NAME Docs
|
|
2
2
|
|
|
3
3
|
Welcome to the release-anchored documentation for PROJECT_NAME.
|
|
4
4
|
|
|
5
5
|
This folder describes shipped behavior for a known release or tag. It is not
|
|
6
6
|
the place for in-progress feature planning, implementation notes, or draft
|
|
7
|
-
architecture decisions. Put that work in `
|
|
7
|
+
architecture decisions. Put that work in `context/`.
|
|
8
8
|
|
|
9
|
-
## How
|
|
9
|
+
## How These Docs Are Organized
|
|
10
10
|
|
|
11
11
|
```text
|
|
12
|
-
|
|
12
|
+
docs/
|
|
13
13
|
.order
|
|
14
14
|
Welcome.md
|
|
15
15
|
releases/
|
|
@@ -30,7 +30,7 @@ Every documented area should have:
|
|
|
30
30
|
|
|
31
31
|
- a high-level `README.md` that explains the area's purpose and architecture
|
|
32
32
|
- one page per feature under `features/`
|
|
33
|
-
- an authoring guide under `
|
|
33
|
+
- an authoring guide under `docs/_authoring/areas/`
|
|
34
34
|
|
|
35
35
|
## Contributing
|
|
36
36
|
|
|
@@ -45,4 +45,4 @@ Every documented area should have:
|
|
|
45
45
|
- Describe behavior, inputs, outputs, permissions, errors, business rules, and
|
|
46
46
|
operational expectations in domain language.
|
|
47
47
|
- Prefer Mermaid diagrams for flows, architecture, and relationships.
|
|
48
|
-
- Add release refreshes to `
|
|
48
|
+
- Add release refreshes to `docs/releases/index.md`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Docs Authoring Guide
|
|
2
2
|
|
|
3
3
|
This subtree owns all guidance for authoring and refreshing the documentation
|
|
4
|
-
under `
|
|
4
|
+
under `docs/`. Humans and agents both read from here to know how
|
|
5
5
|
documentation is structured, when it is refreshed, what belongs in each area,
|
|
6
6
|
and which domain terminology to use.
|
|
7
7
|
|
|
@@ -18,14 +18,14 @@ and which domain terminology to use.
|
|
|
18
18
|
Create one authoring guide per documented area:
|
|
19
19
|
|
|
20
20
|
```text
|
|
21
|
-
|
|
21
|
+
docs/_authoring/areas/<area-slug>.md
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Each area guide should identify:
|
|
25
25
|
|
|
26
26
|
- the source locations that own the behavior, such as product code,
|
|
27
27
|
interfaces, tests, CI/CD, generated artifacts, infrastructure, or config
|
|
28
|
-
- the
|
|
28
|
+
- the docs root under `docs/`
|
|
29
29
|
- feature pages that should exist
|
|
30
30
|
- behavior that matters at release time
|
|
31
31
|
- changes to ignore, such as pure refactors or test-only edits
|
|
@@ -5,7 +5,7 @@ This folder contains one authoring guide per documented area.
|
|
|
5
5
|
Create a guide from `_template.md` when adding a documentation area:
|
|
6
6
|
|
|
7
7
|
```text
|
|
8
|
-
|
|
8
|
+
docs/_authoring/areas/<area-slug>.md
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Each guide should help a human or agent refresh docs from a release diff
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- Source orientation: `path/to/runtime-or-product-code`, `path/to/contracts`,
|
|
6
6
|
`path/to/tests`, `path/to/ci-or-delivery`, `path/to/infra-or-config`
|
|
7
|
-
-
|
|
7
|
+
- Docs root: `docs/<Area>/`
|
|
8
8
|
- Owner or reviewer: TBD
|
|
9
9
|
|
|
10
10
|
Describe what this area owns and what it intentionally does not own.
|
|
@@ -18,9 +18,9 @@ operational expectations without private implementation detail.
|
|
|
18
18
|
|
|
19
19
|
## Feature Inventory
|
|
20
20
|
|
|
21
|
-
| Feature |
|
|
21
|
+
| Feature | Docs page | Notes |
|
|
22
22
|
| --- | --- | --- |
|
|
23
|
-
| TBD | `
|
|
23
|
+
| TBD | `docs/<Area>/features/<feature>.md` | TBD |
|
|
24
24
|
|
|
25
25
|
## What Matters At Release Time
|
|
26
26
|
|
|
@@ -57,7 +57,7 @@ known gaps, and questions that should not yet appear in product-facing docs.
|
|
|
57
57
|
|
|
58
58
|
## Terminology
|
|
59
59
|
|
|
60
|
-
List area-specific terms or link to `
|
|
60
|
+
List area-specific terms or link to `docs/_authoring/terminology.md`.
|
|
61
61
|
|
|
62
62
|
## Cross-Links
|
|
63
63
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Use this file to define the domain language that documentation should use.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Docs should translate code-level names into reader-facing domain
|
|
6
6
|
terms when those differ. The goal is consistency for QA, product, support,
|
|
7
7
|
operators, and future agents.
|
|
8
8
|
|