Skip to content

P0004 (accept + execute): docs-proxy canon-as-tool pattern (introduces canon/patterns/)#173

Merged
klappy merged 1 commit intomainfrom
claude/p0004-docs-proxy-canon-as-tool
May 5, 2026
Merged

P0004 (accept + execute): docs-proxy canon-as-tool pattern (introduces canon/patterns/)#173
klappy merged 1 commit intomainfrom
claude/p0004-docs-proxy-canon-as-tool

Conversation

@klappy
Copy link
Copy Markdown
Owner

@klappy klappy commented May 5, 2026

What this PR does

Combined acceptance + execution of promotion P0004 — adds a tier-2 pattern doc for the docs-proxy tool that lets MCP server consumers wire one MCP instead of two.

Acceptance (1 file)

  • docs/promotions/P0004-docs-proxy-canon-as-tool.md
    • promotion_status: proposedaccepted
    • Tags array "proposed""accepted"
    • Status section header → accepted (2026-05-05)
    • Review Notes filled

Execution (1 file, NEW)

  • canon/patterns/docs-proxy-canon-as-tool.md (new tier-2 pattern doc)
    • Frontmatter:
      • tier: 2, audience: canon, status: active
      • derives_from: vodka-architecture, consistency-same-pattern-every-time, dry-canon-says-it-once
      • complements: doing-less-enables-more
    • Sections: The Pattern (inputs/returns/failure spec) / Vodka Check / Why the Pattern Exists / Failure Mode / Receipts

⚠ New canon subdirectory: canon/patterns/

This is the first doc under canon/patterns/. Existing canon subdirectories are: bootstrap, case-studies, constraints, decisions, defaults, definitions, diagnostics, instructions, meta, methods, observations, principles, resonance, values.

The proposal explicitly names canon/patterns/docs-proxy-canon-as-tool.md as the target. If you'd rather the doc live under methods/ or principles/, the move is one git mv + a one-line uri: edit in the frontmatter — no downstream consumers yet.

Position in the 8-proposal sweep

# ID Status
1 P0009 PR #167
2 P0001 PR #168
3 P0008 PR #169
4 P0007 PR #170
5 P0006 PR #171
6 P0003 PR #172
7 P0004 this PR
8 P0005 last in queue — async-by-default principle

DoD

  • Proposal frontmatter promotion_status flipped
  • Review Notes filled (with explicit flag about the new subdirectory)
  • New canon doc created at the proposed path
  • Frontmatter follows frontmatter-schema
  • H1 + blockquote + descriptive headers

Note

Low Risk
Low risk documentation-only change; main risk is introducing a new canon/patterns/ directory that could affect nav/build discovery if tooling assumes a fixed canon tree.

Overview
Accepts P0004 by updating docs/promotions/P0004-docs-proxy-canon-as-tool.md from proposed to accepted, including frontmatter tags/status and filled review notes.

Executes the promotion by adding a new tier-2 canon pattern doc at canon/patterns/docs-proxy-canon-as-tool.md, establishing the new canon/patterns/ section and specifying the expected docs(query, audience?, depth?) proxy tool shape, return contract, and graceful failure behavior.

Reviewed by Cursor Bugbot for commit 1df616c. Bugbot is set up for automated code reviews on this repo. Configure here.

…/patterns/ subdir)

Acceptance:
- Flip docs/promotions/P0004 promotion_status: proposed -> accepted
- Update tags array ("proposed" -> "accepted")
- Fill Review Notes with operator decision (klappy, 2026-05-05)

Execution:
- canon/patterns/docs-proxy-canon-as-tool.md (NEW): tier-2 pattern doc
- This introduces a NEW canon subdirectory: canon/patterns/
  (existing subdirs: bootstrap, case-studies, constraints, decisions,
  defaults, definitions, diagnostics, instructions, meta, methods,
  observations, principles, resonance, values)
- Frontmatter declares: derives_from vodka-architecture +
  consistency-same-pattern-every-time + dry-canon-says-it-once;
  complements doing-less-enables-more
- Codifies the docs-proxy tool: action MCP servers expose docs(query, ...)
  that forwards to the canon-server (oddkit) with the action server's
  repo URL pinned as knowledge_base_url; consumers wire one MCP, get both
  surfaces; vodka boundary preserved (zero domain semantics in the proxy)

Receipts: PTXprint v1.2 §3 docs tool (added 2026-04-29, reversing v1.0's
no-retrieval decision).

Seventh of 8 stuck proposals. Previous: P0009 (#167), P0001 (#168),
P0008 (#169), P0007 (#170), P0006 (#171), P0003 (#172). Last: P0005
(async-by-default principle, new doc).
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Canon Quality — oddkit_audit

No dead klappy:// references or legacy link patterns found in writings/. 39 files scanned.

Spec: klappy://docs/oddkit/specs/oddkit-audit · Workflow: .github/workflows/canon-quality.yml · Run: #44

@klappy klappy merged commit ea0d73a into main May 5, 2026
2 checks passed
@klappy klappy deleted the claude/p0004-docs-proxy-canon-as-tool branch May 5, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants