docs(specs): #131 Kan MCP platform-managed discovery v0 prebuild #366

Merged
pdurlej merged 1 commit from claude/fork-B2-kan-mcp-platform-managed into main 2026-05-23 09:19:37 +02:00
Collaborator

Summary

Fork-B2 of 2026-05-18 retry batch (per dispatch template PR #356, worktree-isolated to prevent shared-checkout collision lesson from 2026-05-17).

Prebuild Spec Kit + companion codex execution prompt for migrating OpenClaw's discovery of Kan MCP from a live-only systemd drop-in into platform-managed configuration via mcporter + Infisical. Closes the operator-readable drift named in issue #131.

What's in

docs/specs/kan-mcp-platform-managed-v0/ (6 files):

  • README.md — overview, TL;DR scope, cross-repo boundary
  • 00-constitution.md — 9 non-negotiable principles, non-goals, stop conditions
  • 01-specify.md — acceptance criteria sections A-G (machine-checkable + operator-verifiable)
  • 02-plan.md — 9 design decisions with rejected alternatives, tier classification
  • 03-tasks.md — per-slice task breakdown (Slice a/b/c, plus d out of v0)
  • 04-implement-notes.md — 7 gotchas, prior art, wiring, anti-patterns

prompts/codex-kan-mcp-platform-managed.md — execution runbook with Safety/production boundary section per Codex feedback + PR #326 convention.

Key principles

  • P1 Source of truth in platform repo, not on host
  • P2 Kan agent token never reaches OpenClaw (stays at bridge on RS2000)
  • P5 Backwards compat during rollout; drop-in stays until separate Slice d
  • P6 Composes with PR #349 (secrets-pipeline-foundation-v0) — same Infisical scope expansion that #131 originally blocked on (403 create on secrets)
  • P8 Renderer output stability — mcp.servers.kan structure identical post-migration

Slice tiers (per ADR-0007)

  • Slice (a) registry + module dep — Lite, self-merge OK
  • Slice (b) Infisical scope expansion — Full, class/security-sensitive, operator merge; depends on PR #349
  • Slice (c) cross-repo coordination with pdurlej/iskra-openclaw — Full, issue-based (not PR-stacking); operator merge
  • Slice (d) drop-in removal — OUT OF V0 SCOPE

Per ADR-0018

Explicit anti-patterns + stop conditions reject "accept workaround" outcomes. Constitution P2 (token boundary) non-negotiable. Future cousins reading the drop-in as fire-signal is exactly the failure mode this Spec Kit fixes at root.

Tier (THIS PR)

Trivial per ADR-0007 — prebuild docs, no runtime/schema/sacred-path mutation. Implementation slices tiered separately.

Estimated v0 effort

5-7h wall-clock across 3 PR cycles (Slice a → b → c).

Refs #131, PR #349 (sibling Infisical work), PR #356 (fork dispatch template)

## Summary Fork-B2 of 2026-05-18 retry batch (per dispatch template PR #356, worktree-isolated to prevent shared-checkout collision lesson from 2026-05-17). Prebuild Spec Kit + companion codex execution prompt for migrating OpenClaw's discovery of Kan MCP from a live-only systemd drop-in into platform-managed configuration via mcporter + Infisical. Closes the operator-readable drift named in issue #131. ## What's in `docs/specs/kan-mcp-platform-managed-v0/` (6 files): - README.md — overview, TL;DR scope, cross-repo boundary - 00-constitution.md — 9 non-negotiable principles, non-goals, stop conditions - 01-specify.md — acceptance criteria sections A-G (machine-checkable + operator-verifiable) - 02-plan.md — 9 design decisions with rejected alternatives, tier classification - 03-tasks.md — per-slice task breakdown (Slice a/b/c, plus d out of v0) - 04-implement-notes.md — 7 gotchas, prior art, wiring, anti-patterns `prompts/codex-kan-mcp-platform-managed.md` — execution runbook with Safety/production boundary section per Codex feedback + PR #326 convention. ## Key principles - **P1** Source of truth in platform repo, not on host - **P2** Kan agent token never reaches OpenClaw (stays at bridge on RS2000) - **P5** Backwards compat during rollout; drop-in stays until separate Slice d - **P6** Composes with PR #349 (secrets-pipeline-foundation-v0) — same Infisical scope expansion that #131 originally blocked on (`403 create on secrets`) - **P8** Renderer output stability — `mcp.servers.kan` structure identical post-migration ## Slice tiers (per ADR-0007) - **Slice (a)** registry + module dep — Lite, self-merge OK - **Slice (b)** Infisical scope expansion — Full, `class/security-sensitive`, operator merge; depends on PR #349 - **Slice (c)** cross-repo coordination with `pdurlej/iskra-openclaw` — Full, issue-based (not PR-stacking); operator merge - **Slice (d)** drop-in removal — OUT OF V0 SCOPE ## Per ADR-0018 Explicit anti-patterns + stop conditions reject "accept workaround" outcomes. Constitution P2 (token boundary) non-negotiable. Future cousins reading the drop-in as fire-signal is exactly the failure mode this Spec Kit fixes at root. ## Tier (THIS PR) **Trivial** per ADR-0007 — prebuild docs, no runtime/schema/sacred-path mutation. Implementation slices tiered separately. ## Estimated v0 effort 5-7h wall-clock across 3 PR cycles (Slice a → b → c). Refs #131, PR #349 (sibling Infisical work), PR #356 (fork dispatch template)
docs(specs): Kan MCP platform-managed discovery v0 prebuild (#131)
All checks were successful
base-is-main / guard (pull_request) Successful in 1s
canary-required / collect-diff (pull_request) Successful in 3s
patchwarden-pr-sanity / collect-diff (pull_request) Successful in 3s
canary-required / canary (pull_request) Successful in 14s
patchwarden-pr-sanity / sanity (pull_request) Successful in 20s
8dc054fdeb
Prebuild Spec Kit + companion codex execution prompt for migrating
OpenClaw's discovery of Kan MCP from a live-only systemd drop-in
(/home/openclaw/.config/systemd/user/openclaw-gateway.service.d/kan-mcp.conf)
into platform-managed configuration via mcporter + Infisical.

What's in the Spec Kit (docs/specs/kan-mcp-platform-managed-v0/):
- README.md — overview, TL;DR scope, cross-repo boundary, references
- 00-constitution.md — 9 non-negotiable principles + non-goals + stop conditions
- 01-specify.md — acceptance criteria (machine-checkable + operator-verifiable)
- 02-plan.md — 9 design decisions with alternatives rejected; tier classification
- 03-tasks.md — per-slice task breakdown (Slice a/b/c, plus d out of v0)
- 04-implement-notes.md — 7 gotchas, prior art refs, wiring notes, anti-patterns

Companion: prompts/codex-kan-mcp-platform-managed.md (with Safety/production
boundary section per Codex 2026-05-17 feedback + per PR #326 convention).

Key principles:
- Source of truth in pdurlej/platform repo, not on host (P1)
- Kan agent token never reaches OpenClaw — stays at bridge on RS2000 (P2)
- Tailnet-only Kan write surface preserved (P3)
- Backwards compat during rollout; drop-in stays until Slice d gate (P5)
- Composes with secrets-pipeline-foundation-v0 (PR #349) — same Infisical
  scope expansion that #131 originally blocked on (P6)
- No code in OpenClaw runtime path within this PR boundary (P7)
- Renderer output stability (mcp.servers.kan structure identical) (P8)

Slice classification per ADR-0007:
- Slice (a) registry + module dep — Lite tier, self-merge OK
- Slice (b) Infisical scope expansion — Full tier, class/security-sensitive,
  operator merge; depends on #349
- Slice (c) cross-repo coordination with pdurlej/iskra-openclaw — Full tier,
  cross-repo issue (not PR-stacking); operator merge
- Slice (d) drop-in removal — OUT OF V0 SCOPE; future Slice + observation
  window required

Per ADR-0018: explicit anti-patterns documented; stop conditions reject
"accept workaround" outcomes; Constitution P2 (token boundary) is
non-negotiable across all slices.

Per Codex 2026-05-17 feedback (PR #326): execution prompt includes Safety/
production boundary section + per-slice instructions + stop conditions +
reporting format + cousin coordination + references.

Estimated v0 effort: 5-7h wall-clock across 3 PR cycles (Slice a/b/c).

Tier: Trivial per ADR-0007 (prebuild file, no runtime/schema/sacred-path
mutation in THIS PR — implementation slices are tiered separately).

Fork-B2 of 2026-05-18 retry batch (per dispatch template PR #356).
Worktree-isolated to prevent shared-checkout collision (lesson from
2026-05-17).

Refs #131, PR #349, PR #356
Sign in to join this conversation.
No reviewers
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/platform!366
No description provided.