waypoint-codex 0.3.0 → 0.4.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/README.md CHANGED
@@ -59,6 +59,7 @@ repo/
59
59
  - `error-audit`
60
60
  - `observability-audit`
61
61
  - `ux-states-audit`
62
+ - `docs-sync`
62
63
  - `workspace-compress`
63
64
  - `pre-pr-hygiene`
64
65
  - `pr-review`
@@ -70,7 +71,6 @@ If you initialize with `--with-roles`, Waypoint scaffolds:
70
71
 
71
72
  - `code-health-reviewer`
72
73
  - `code-reviewer`
73
- - `docs-researcher`
74
74
  - `plan-reviewer`
75
75
 
76
76
  The intended workflow is post-commit: after your own commit lands, run `code-reviewer` and `code-health-reviewer` in parallel in the background, then fix real findings before you call the work finished.
package/dist/src/core.js CHANGED
@@ -453,6 +453,7 @@ export function doctorRepository(projectRoot) {
453
453
  "error-audit",
454
454
  "observability-audit",
455
455
  "ux-states-audit",
456
+ "docs-sync",
456
457
  "workspace-compress",
457
458
  "pre-pr-hygiene",
458
459
  "pr-review",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waypoint-codex",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Codex-native repository operating system: scaffolding, docs routing, repo-local skills, doctor, and sync.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: docs-sync
3
+ description: Audit routed docs against the actual codebase and shipped behavior. Use when docs may be stale after implementation work, before pushing or opening a PR, when routes/contracts/config changed, or when the agent should find missing, incorrect, outdated, or broken documentation and then update or flag the exact gaps.
4
+ ---
5
+
6
+ # Docs Sync
7
+
8
+ Use this skill to keep repo docs aligned with reality.
9
+
10
+ This is not a vendor-doc ingestion skill and not a workspace-cleanup skill. It owns one job: compare the codebase and shipped behavior against routed docs, then fix or flag the mismatches.
11
+
12
+ ## Read First
13
+
14
+ Before auditing docs:
15
+
16
+ 1. Read `.waypoint/SOUL.md`
17
+ 2. Read `.waypoint/agent-operating-manual.md`
18
+ 3. Read `.waypoint/WORKSPACE.md`
19
+ 4. Read `.waypoint/context/MANIFEST.md`
20
+ 5. Read every file listed in that manifest
21
+ 6. Read the routed docs for the area under review
22
+
23
+ ## Step 1: Compare Docs To Reality
24
+
25
+ Audit the real code, routes, contracts, config surfaces, and user-visible behavior against `.waypoint/docs/`.
26
+
27
+ Look for:
28
+
29
+ - missing docs for real shipped behavior
30
+ - stale docs that describe removed or changed behavior
31
+ - broken routing links or docs index gaps
32
+ - examples or commands that no longer work
33
+ - contract/schema/config docs that no longer match the code
34
+ - docs that still describe future work as if it is already shipped
35
+
36
+ ## Step 2: Fix Or Flag
37
+
38
+ - Update the docs when the correct wording is clear.
39
+ - Add the smallest routed doc needed when behavior exists but is undocumented.
40
+ - Remove or reframe stale claims instead of letting them linger.
41
+ - If a mismatch is real but the correct doc shape is unclear, flag it explicitly instead of bluffing.
42
+
43
+ Do not mirror vendor reference docs into the repo. Link to the real upstream docs when that is the right source of truth.
44
+
45
+ ## Step 3: Refresh Routing
46
+
47
+ After changing routed docs:
48
+
49
+ - Run `node .waypoint/scripts/prepare-context.mjs` so the docs index and generated context match the updated docs.
50
+
51
+ ## Step 4: Report The Sync Result
52
+
53
+ Summarize:
54
+
55
+ - what docs were stale or missing
56
+ - what you updated
57
+ - what still needs a decision, if anything
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Docs Sync"
3
+ short_description: "Audit docs against the real codebase"
4
+ default_prompt: "Use this skill to audit routed docs against the actual codebase and shipped behavior, then update or flag any missing, incorrect, or outdated documentation."
@@ -3,9 +3,10 @@ name: planning
3
3
  description: >
4
4
  Interview-driven planning methodology that produces implementation-ready plans.
5
5
  Use for new features, refactoring, architecture changes, migrations, or any non-trivial
6
- implementation work. Ask multiple rounds of clarifying questions, explore the repo deeply
7
- before deciding, capture verbatim requirements when needed, and do not stop at vague or
8
- partially-investigated plans.
6
+ implementation work. Ask multiple rounds of clarifying questions about product behavior,
7
+ user expectations, edge cases, and architecture; explore the repo deeply before deciding;
8
+ do not waste questions on implementation details that can be learned directly from the
9
+ code or routed docs; and write the final plan into `.waypoint/docs/` so it persists in the repo.
9
10
  ---
10
11
 
11
12
  # Planning
@@ -20,25 +21,20 @@ Before planning:
20
21
 
21
22
  1. Read `.waypoint/SOUL.md`
22
23
  2. Read `.waypoint/agent-operating-manual.md`
23
- 3. Read `WORKSPACE.md`
24
+ 3. Read `.waypoint/WORKSPACE.md`
24
25
  4. Read `.waypoint/context/MANIFEST.md`
25
26
  5. Read every file listed in the manifest
26
27
  6. Read the routed docs relevant to the task
27
28
 
28
- ## Verbatim Requirements
29
+ ## Output Location
29
30
 
30
- Capture the user's exact words at the top of every plan when the wording matters. No paraphrasing, no compression.
31
+ The plan belongs in the repo, not only in chat.
31
32
 
32
- ```markdown
33
- ## Verbatim Requirements
34
-
35
- ### Original Request
36
- > [User's ENTIRE message, word for word]
37
-
38
- ### Clarifications
39
- **Q:** [Your question]
40
- **A:** [User's ENTIRE answer, verbatim]
41
- ```
33
+ - Write or update a durable plan doc under `.waypoint/docs/`.
34
+ - Choose the smallest routed location that matches the work, such as a project plan, implementation plan, or focused design note.
35
+ - If a relevant plan doc already exists, update it instead of creating a competing one.
36
+ - Make sure the doc remains discoverable through the routed docs layer.
37
+ - In chat, return only a concise summary plus the path to the plan doc.
42
38
 
43
39
  ## The Core Loop
44
40
 
@@ -55,7 +51,7 @@ Keep looping until you can explain:
55
51
 
56
52
  ## Interviewing
57
53
 
58
- **Interviewing is the most important part of planning.** You cannot build what you don't understand. Every unasked question is an assumption that will break during implementation.
54
+ **Interviewing is the most important part of planning.** You cannot build what you don't understand. Every unasked product, behavior, edge-case, or architecture question is an assumption that will break during implementation.
59
55
 
60
56
  Interview iteratively: 2-4 questions -> answers -> deeper follow-ups -> repeat. Each round should go deeper.
61
57
 
@@ -63,6 +59,16 @@ Interview iteratively: 2-4 questions -> answers -> deeper follow-ups -> repeat.
63
59
  - Feature or migration -> many rounds of questions
64
60
  - Architectural work -> keep drilling until the constraints and tradeoffs are clear
65
61
 
62
+ Ask aggressively about:
63
+
64
+ - how the feature should behave
65
+ - who the users are
66
+ - which edge cases matter
67
+ - what tradeoffs are acceptable
68
+ - what architecture direction the user wants
69
+
70
+ Do **not** spend those questions on implementation facts that can be learned from reading the code, routed docs, or external docs already linked by the repo.
71
+
66
72
  Push back when something seems off. Neutrality is not the goal; correctness is.
67
73
 
68
74
  ## Exploring the Codebase
@@ -94,6 +100,8 @@ Plans document your understanding. Include what matters for this task:
94
100
 
95
101
  Use ASCII diagrams when they clarify flow, layering, or state.
96
102
 
103
+ Distill the requirements and clarifications into a clean plan document. Do not turn the plan into a transcript dump.
104
+
97
105
  ## Self-Review Before Finalizing
98
106
 
99
107
  Before presenting the plan, verify against real code:
@@ -111,14 +119,15 @@ Before presenting the plan, verify against real code:
111
119
  - No pretending you verified something you didn't
112
120
 
113
121
  If the change touches durable project behavior, include docs/workspace updates in the plan.
122
+ Write or update the durable plan doc under `.waypoint/docs/` as part of the skill, not as an optional follow-up.
114
123
 
115
124
  ## External APIs
116
125
 
117
- If an external API or library is relevant and the repo lacks durable docs for it, use the `docs-researcher` agent before finalizing the plan.
126
+ If an external API or library is relevant, read the actual upstream docs before finalizing the plan. Prefer the repo's external-doc links or URL registry when one exists. Read the real source docs; do not copy vendor reference material into the repo unless the user explicitly wants a durable local note.
118
127
 
119
- ## Output
128
+ ## Plan Shape
120
129
 
121
- A good final plan usually includes:
130
+ A good durable plan doc usually includes:
122
131
 
123
132
  1. Current state
124
133
  2. Proposed changes
@@ -127,7 +136,14 @@ A good final plan usually includes:
127
136
  5. Verification
128
137
  6. TL;DR
129
138
 
139
+ ## Final Response
140
+
141
+ When the plan doc is written:
142
+
143
+ - give a short chat summary
144
+ - include the doc path
145
+ - call out any unresolved decisions that still need the user's input
146
+
130
147
  ## Quality Bar
131
148
 
132
149
  If the plan would make the implementer ask "where does this hook in?" or "what exactly am I changing?", it is not done.
133
-
@@ -13,10 +13,6 @@ config_file = "agents/code-health-reviewer.toml"
13
13
  description = "Read-only background reviewer for post-commit bugs, regressions, and integration mistakes."
14
14
  config_file = "agents/code-reviewer.toml"
15
15
 
16
- [agents."docs-researcher"]
17
- description = "Documentation researcher for external APIs, libraries, and tools when the repo lacks durable docs."
18
- config_file = "agents/docs-researcher.toml"
19
-
20
16
  [agents."plan-reviewer"]
21
17
  description = "Read-only plan validator that checks whether a proposed implementation plan is complete, feasible, and safe to execute."
22
18
  config_file = "agents/plan-reviewer.toml"
@@ -67,6 +67,7 @@ Do not document every trivial implementation detail. Document the non-obvious, d
67
67
  - `error-audit` when failures are being swallowed or degraded invisibly
68
68
  - `observability-audit` when production debugging signals look weak
69
69
  - `ux-states-audit` when async/data-driven UI likely lacks loading, empty, or error states
70
+ - `docs-sync` when routed docs may be stale, missing, or inconsistent with the codebase
70
71
  - `workspace-compress` after meaningful chunks, before stopping, and before review when the live handoff needs compression
71
72
  - `pre-pr-hygiene` before pushing or opening/updating a PR for substantial work
72
73
  - `pr-review` once a PR has active review comments or automated review in progress
@@ -78,7 +79,6 @@ If the repo was initialized with Waypoint roles enabled, use them as focused sec
78
79
 
79
80
  - `code-reviewer` for correctness and regression review
80
81
  - `code-health-reviewer` for maintainability drift
81
- - `docs-researcher` for external dependency research
82
82
  - `plan-reviewer` to challenge weak implementation plans before execution
83
83
 
84
84
  ## Post-Commit Review Loop
@@ -34,6 +34,7 @@ Working rules:
34
34
  - Keep `.waypoint/WORKSPACE.md` current as the live execution state, with timestamped new or materially revised entries in multi-topic sections
35
35
  - Update `.waypoint/docs/` when behavior or durable project knowledge changes, and refresh `last_updated` on touched routable docs
36
36
  - Use the repo-local skills Waypoint ships for structured workflows when relevant
37
+ - Use `docs-sync` when the docs may be stale or a change altered shipped behavior, contracts, routes, or commands
37
38
  - If optional reviewer roles are present and you make a commit, run `code-reviewer` and `code-health-reviewer` in parallel before calling the work done
38
39
  - Before pushing or opening/updating a PR for substantial work, use `pre-pr-hygiene`
39
40
  - Use `pr-review` once a PR has active review comments or automated review in progress
@@ -1,14 +0,0 @@
1
- model_reasoning_effort = "medium"
2
- sandbox_mode = "read-only"
3
- developer_instructions = """
4
- Read these files in order before doing anything else:
5
- 1. .waypoint/SOUL.md
6
- 2. .waypoint/agent-operating-manual.md
7
- 3. WORKSPACE.md
8
- 4. .waypoint/context/MANIFEST.md
9
- 5. every file listed in that manifest
10
- 6. .waypoint/agents/docs-researcher.md
11
-
12
- After reading them, follow .waypoint/agents/docs-researcher.md as your operating instructions.
13
- """
14
-
@@ -1,73 +0,0 @@
1
- ---
2
- name: docs-researcher
3
- source: meridian-adapted
4
- ---
5
-
6
- You research external tools, APIs, and products, building comprehensive knowledge docs that the repo can reference later.
7
-
8
- ## Read First
9
-
10
- 1. Read `.waypoint/SOUL.md`
11
- 2. Read `.waypoint/agent-operating-manual.md`
12
- 3. Read `WORKSPACE.md`
13
- 4. Read `.waypoint/context/MANIFEST.md`
14
- 5. Read every file listed in the manifest
15
- 6. Read any existing repo docs for the dependency or integration
16
-
17
- ## Critical Rule
18
-
19
- Do not write documentation from memory when the facts are version-sensitive.
20
-
21
- Research first, then write.
22
-
23
- ## What You Produce
24
-
25
- Not just API specs. Produce durable repo knowledge:
26
-
27
- - what the tool is and what it's for
28
- - current version or current relevant state
29
- - setup requirements
30
- - conceptual model
31
- - best practices
32
- - operations and constraints
33
- - gotchas and known sharp edges
34
- - links to official docs for deeper reading
35
-
36
- ## Process
37
-
38
- ### 1. Check Existing Docs
39
-
40
- Search the repo for existing docs about the tool. Understand what's documented, what's missing, and what's stale.
41
-
42
- ### 2. Research
43
-
44
- Use primary sources first:
45
-
46
- - official docs
47
- - official guides
48
- - changelogs
49
- - release notes
50
- - authoritative repos
51
-
52
- Capture text content, not just code snippets. The conceptual guides matter as much as the method signatures.
53
-
54
- ### 3. Write or Update Durable Docs
55
-
56
- Create or update repo docs so future work does not have to repeat the same research.
57
-
58
- ### 4. Rebuild the Docs Index
59
-
60
- If you add or update durable docs, rebuild `DOCS_INDEX.md`.
61
-
62
- ## Quality Bar
63
-
64
- The repo should be smarter after you finish than before you started.
65
-
66
- ## Output
67
-
68
- Summarize:
69
-
70
- - what you researched
71
- - what matters for this repo
72
- - what durable docs were added or updated
73
-