denis@keisei — keiseikit-browse — 144×42
⌘1
KEISEIKIT v0.16.2DAEMON UPSLEEP 03:07
session 4f3amem 47/2002026-05-01 05:21

$ ls ~/.claude/rules/*.md | wc -l → 17

/rules engine

Load-bearing rules survive every context compaction. Topic rules live in ~/.claude/rules/*.md and are linked from the umbrella CLAUDE.md. Each rule has a written lock date and is enforced by 0–2 hooks.

$ filter --by=cat=allload-bearingtopic
[LOAD-BEARING]

RULE -1No Downgrade / Constructive Only

On any problem: never just state it — return with a solution path.

[LOAD-BEARING]

RULE 0.2Rust First

Rust is the default. Other languages need an explicit architectural reason BEFORE writing code.

✓ enforced by 2 hooks
[LOAD-BEARING]

RULE 0.4No Hallucination / Citation Verify

Never fabricate numbers, links, or results. Not verified — say so.

✓ enforced by 1 hook
[LOAD-BEARING]

RULE 0.5Plan Mode First

Non-trivial task → written plan BEFORE code. Approval → then Edit/Write.

[LOAD-BEARING]

RULE ZEROConstructor Pattern

Cube = 1 file, 1 class, 1 pattern — self-contained, readable, reproducible.

[LOAD-BEARING]

KARPATHYKarpathy Behavioral Primitives

Three primitives: Think Before Coding / Surgical Changes / Goal-Driven Execution.

[TOPIC]

RULE 0.6Observable Classification

Classify the observable as classical-noise vs amplitude-only BEFORE applying statistics.

✓ enforced by 1 hook
[TOPIC]

RULE 0.7Manifold-SDE Tangent Sanity

Before committing an SDE drift on a manifold: verify the drift is not in the normal space.

[TOPIC]

RULE 0.8Secrets Single Source

Every token lives in ONE file: ~/.claude/secrets/.env (+ per-project secrets/*.env).

✓ enforced by 1 hook
[TOPIC]

RULE 0.9Math-First Gate

Pure-theory experiments: ask "provable?" — if YES derive first, run ONCE to confirm.

[TOPIC]

RULE 0.10Recurrence Escalate

Same mistake ≥2× per session → invoke /escalate-recurrence skill (rule + wiki + hook).

✓ enforced by 1 hook
[TOPIC]

RULE 0.12Agent Git Model

Every non-trivial Agent invocation = forked git branch + 6-file artefact bundle + ledger row.

✓ enforced by 1 hook
[TOPIC]

RULE 0.13Orchestrator Branch First

Orchestrator owns branch + commits + push. Agent writes files only (sandbox denies Bash inside worktree).

✓ enforced by 1 hook
[TOPIC]

RULE 0.14Session Self-Audit

Stop / milestone-commit / error-spike → kei-memory analyze + patterns → AskUserQuestion to triage.

✓ enforced by 2 hooks
[TOPIC]

RULE 0.15Sleep Layer

Nightly REM consolidation via cloud-agent trigger. A:incubation → B:REM → C:NREM (deep-sleep weekly).

[LOAD-BEARING]

RULE 0.16Shipped-vs-Functional Drift

STATUS-TRUTH MARKER agent footer + stub-scan hook + orchestrator pre-commit cargo gate.

✓ enforced by 1 hook
[TOPIC]

guardAPI Cost Guard

Pre-launch cost verification for Modal / AWS / GCP / fal.ai / Apify / ElevenLabs.