Skip to content

Add SOP architecture layer (type: sop) + fix template frontmatter validation#1

Merged
aedneth merged 2 commits into
mainfrom
feat/sop-architecture
Jun 7, 2026
Merged

Add SOP architecture layer (type: sop) + fix template frontmatter validation#1
aedneth merged 2 commits into
mainfrom
feat/sop-architecture

Conversation

@aedneth

@aedneth aedneth commented Jun 6, 2026

Copy link
Copy Markdown
Owner

What

Introduces Standard Operating Procedures (SOPs) as a first-class CKIS artifact type — type: sop. An SOP is an executable, repeatable, step-by-step procedure, distinct from a permanent note (compounding knowledge) and a workflow (a large multi-file operating system).

Added

  • 00-systems/sops/_convention.md — canonical SOP convention: the type: sop frontmatter standard, the body template (Purpose → When → Prerequisites → Steps → Verification → optional Troubleshooting / Lessons / Agent-Delegatable Summary), the two-tier home rule, domains, and a "how to add a new SOP" procedure.
  • 00-systems/sops/_index.md — global SOP registry (template form, with generic example rows).
  • 08-templates/sop.md — the SOP template mold.
  • 00-systems/_convention.md — the systems-folder convention (was missing from this repo).

Wired into the spec & governance

  • SCHEMA.md and the 02 / 08 frontmatter enums now include sop.
  • File 08 gains an "SOP Template" section; file 13 gains a "New SOP" maintenance trigger + procedure; file 00 gains an SOP operating mode.

Two-tier home rule

  • Project-specific SOPs live in <project>/processes/.
  • Cross-cutting / system SOPs live in 00-systems/sops/<domain>/ (ckis, dev, content, os-hardware).
  • Both tiers are registered in one index.

Also: fixes a pre-existing CI bug

scripts/validate-frontmatter.py now skips 08-templates/. Those files are Obsidian template molds containing {{date}} / {{title}} placeholders — valid Templater syntax, but not valid YAML — so the validator was erroring on all 9 existing templates (daily.md, monthly.md, weekly-review.md, …). This change makes the templates step pass.

Heads-up: other pre-existing CI failures (NOT introduced here)

CI on main was already red before this PR, for reasons unrelated to SOPs. This PR does not address them (out of scope), but flagging for visibility:

  • Missing frontmatter on 04-resources/CONVENTION.md, 04-resources/social-captures/CONVENTION.md, 05-areas/CONVENTION.md, 06-goals/CONVENTION.md, 07-people/CONVENTION.md — the validator errors on these.
  • Secret-scan false positives: scripts/setup-crons.sh and the crons docs reference sk-ant-... as a documentation placeholder, which the secret-scan grep flags (it excludes example|placeholder|YOUR_KEY but not the ... form). No real secrets are present.

Happy to fix both in a follow-up PR if you want fully-green CI.

Sanitization

The new SOP files are genericized (no owner/project/client names); example registry rows use [YOUR_PROJECT] / <project> placeholders.

🤖 Generated with Claude Code


Update — pre-existing CI repaired (this branch): Added YAML frontmatter to 9 per-directory CONVENTION.md files and tightened the secret-scan regex to match real key shapes (not bare prefixes / the ANTHROPIC_API_KEY variable name), eliminating false positives on documentation placeholders. Both CI steps now pass locally; the SOP-architecture changes add zero new failures.

aedneth and others added 2 commits June 6, 2026 16:25
…er validation

Introduce Standard Operating Procedures (SOPs) as a first-class CKIS artifact
type — executable, repeatable, step-by-step procedures, distinct from permanent
notes (compounding knowledge) and workflows (multi-file operating systems).

Added:
- 00-systems/sops/_convention.md — canonical SOP convention (type: sop standard,
  body template, two-tier home rule, domains, how-to-add).
- 00-systems/sops/_index.md — global SOP registry (template, with example rows).
- 08-templates/sop.md — SOP template.
- 00-systems/_convention.md — systems-folder convention (was missing here).

Wired into the spec/governance: SCHEMA.md + 02/08 frontmatter enums gain `sop`;
file 08 gets an SOP template section; file 13 gets a "New SOP" trigger + procedure;
file 00 gets an SOP operating mode.

Also fixes a pre-existing CI bug: scripts/validate-frontmatter.py now skips
08-templates/, whose files are Obsidian template molds containing {{date}} /
{{title}} placeholders that are valid Templater syntax but not valid YAML.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…regex

- Add YAML frontmatter (type: system / subtype: convention) to 9 per-directory
  CONVENTION.md files so the frontmatter validator passes.
- Tighten secret-scan to match real key shapes (sk-ant-<token>, etc.) instead of
  bare prefixes / the ANTHROPIC_API_KEY var name — removes false positives on
  documentation placeholders while still catching genuine keys.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aedneth aedneth merged commit a6eccbd into main Jun 7, 2026
1 check passed
@aedneth aedneth deleted the feat/sop-architecture branch June 7, 2026 01:16
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.

1 participant