From 3039adab3f09abd30dc93d1c85a1aadf5d9a4e43 Mon Sep 17 00:00:00 2001 From: Parfii-bot Date: Tue, 21 Apr 2026 13:35:03 +0800 Subject: [PATCH] refactor(manifests): prefix all 14 kit agents with kei- MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename _manifests/{architect,code-implementer,cost-guardian,critic, fal-ai-runner,infra-implementer,ml-implementer,ml-researcher,modal-runner, patent-compliance,patent-researcher,researcher,security-auditor,validator}.toml to kei-.toml (git mv — history preserved). - Update every `name = "..."` field to the new kei- name. - Update every handoff `target = "..."` cross-reference (62 occurrences across 14 manifests) to point at the kei-prefixed counterpart. - Update backticked prose cross-refs in role/forbidden_domain/description strings: `code-implementer` -> `kei-code-implementer`, etc. - Update SSoT header comments: "SSoT for ." -> "SSoT for kei-.". - Fix 3 bare-word prose refs missed by quoted/backticked patterns: kei-code-implementer.toml (validator enforces), kei-security-auditor.toml (description Hands fixes off to ..., forbidden_domain separate critic pass). Noun-phrase mentions left intact (not agent refs): "senior software architect", "ruthless code critic", "patent prior-art researcher", "architectural claim", "critical findings", etc. Verify: cd _assembler && cargo build --release AGENT_ROOT=$(pwd)/.. target/release/assemble --validate -> 14 OK Namespace motivation: kit-shipped agents live in a reserved "kei-*" namespace so downstream installs can drop in custom, same-name agents without collision (e.g. user's own `validator` or `critic`). Co-Authored-By: Claude Opus 4.7 (1M context) --- .../{architect.toml => kei-architect.toml} | 18 +++++++-------- ...ementer.toml => kei-code-implementer.toml} | 22 +++++++++---------- ...t-guardian.toml => kei-cost-guardian.toml} | 16 +++++++------- _manifests/{critic.toml => kei-critic.toml} | 18 +++++++-------- ...-ai-runner.toml => kei-fal-ai-runner.toml} | 12 +++++----- ...menter.toml => kei-infra-implementer.toml} | 20 ++++++++--------- ...plementer.toml => kei-ml-implementer.toml} | 20 ++++++++--------- ...researcher.toml => kei-ml-researcher.toml} | 18 +++++++-------- ...odal-runner.toml => kei-modal-runner.toml} | 14 ++++++------ ...liance.toml => kei-patent-compliance.toml} | 8 +++---- ...archer.toml => kei-patent-researcher.toml} | 10 ++++----- .../{researcher.toml => kei-researcher.toml} | 16 +++++++------- ...auditor.toml => kei-security-auditor.toml} | 20 ++++++++--------- .../{validator.toml => kei-validator.toml} | 12 +++++----- 14 files changed, 112 insertions(+), 112 deletions(-) rename _manifests/{architect.toml => kei-architect.toml} (92%) rename _manifests/{code-implementer.toml => kei-code-implementer.toml} (89%) rename _manifests/{cost-guardian.toml => kei-cost-guardian.toml} (93%) rename _manifests/{critic.toml => kei-critic.toml} (86%) rename _manifests/{fal-ai-runner.toml => kei-fal-ai-runner.toml} (96%) rename _manifests/{infra-implementer.toml => kei-infra-implementer.toml} (92%) rename _manifests/{ml-implementer.toml => kei-ml-implementer.toml} (92%) rename _manifests/{ml-researcher.toml => kei-ml-researcher.toml} (92%) rename _manifests/{modal-runner.toml => kei-modal-runner.toml} (96%) rename _manifests/{patent-compliance.toml => kei-patent-compliance.toml} (96%) rename _manifests/{patent-researcher.toml => kei-patent-researcher.toml} (96%) rename _manifests/{researcher.toml => kei-researcher.toml} (93%) rename _manifests/{security-auditor.toml => kei-security-auditor.toml} (87%) rename _manifests/{validator.toml => kei-validator.toml} (94%) diff --git a/_manifests/architect.toml b/_manifests/kei-architect.toml similarity index 92% rename from _manifests/architect.toml rename to _manifests/kei-architect.toml index e72e94b..5124cc5 100644 --- a/_manifests/architect.toml +++ b/_manifests/kei-architect.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for architect. +# Agent manifest — Constructor Pattern SSoT for kei-architect. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "architect" +name = "kei-architect" description = "Senior software architect — analyzes structure, dependencies, patterns, data flow, coupling/cohesion. Read-only. Use for architecture review, system design, module-boundary analysis, pattern inventory, structural evidence-graded verdict." tools = ["Glob", "Grep", "Read", "WebFetch", "WebSearch"] model = "opus" @@ -38,8 +38,8 @@ domain_in = [ forbidden_domain = [ "Writing code, editing files, or running Bash (read-only agent)", "Editing files that aren't research output — you produce a report, not code changes", - "Proposing refactor patches directly — hand off to `code-implementer` with structural findings", - "Running tests / benchmarks — hand off to `ml-implementer` or `validator`", + "Proposing refactor patches directly — hand off to `kei-code-implementer` with structural findings", + "Running tests / benchmarks — hand off to `kei-ml-implementer` or `kei-validator`", "Wishy-washy \"it depends\" verdicts — pick ONE approach and justify it", "Returning a claim without an [E1]-[E6] evidence grade", "File:line references that are fabricated — every citation must Grep-verify", @@ -66,23 +66,23 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "structural finding implies a concrete refactor / extraction / module split" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "anti-pattern sweep needed on flagged hotspots (Constructor-Pattern violations, god-objects, circular deps)" [[handoff]] -target = "researcher" +target = "kei-researcher" trigger = "external-library behavior / version / doc needs verification to ground architectural claim" [[handoff]] -target = "ml-researcher" +target = "kei-ml-researcher" trigger = "system is ML/research-class and structural review must apply Math-First lens" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "architectural claim needs hard reproduction (build graph, import graph, coupling metric)" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/code-implementer.toml b/_manifests/kei-code-implementer.toml similarity index 89% rename from _manifests/code-implementer.toml rename to _manifests/kei-code-implementer.toml index 3d15ec3..39bd4a6 100644 --- a/_manifests/code-implementer.toml +++ b/_manifests/kei-code-implementer.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for code-implementer. +# Agent manifest — Constructor Pattern SSoT for kei-code-implementer. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler (Rust). # Edit THIS file, not the generated .md. -name = "code-implementer" +name = "kei-code-implementer" description = "Generic implementation specialist for Rust/Swift/Python/Go/Flutter/TypeScript. Constructor Pattern enforced, Rust-first, Test-First, Plan Mode for non-trivial changes." tools = ["Glob", "Grep", "Read", "Edit", "Write", "Bash", "NotebookEdit", "Agent"] model = "opus" @@ -11,14 +11,14 @@ role = """ You are a senior implementation engineer. You write production code in Rust, Swift, Python, Go, \ Flutter, or TypeScript, enforcing the Constructor Pattern and the Rust-first default. You own \ the Pre-Dev Gate, API-Contract-First, Test-First, and Checkpoint-Commit discipline. You are NOT \ -an ML trainer (hand off to `ml-implementer`), NOT an infra/deploy engineer (hand off to \ -`infra-implementer`). Your output is working code with tests, inside Constructor Pattern limits \ +an ML trainer (hand off to `kei-ml-implementer`), NOT an infra/deploy engineer (hand off to \ +`kei-infra-implementer`). Your output is working code with tests, inside Constructor Pattern limits \ (file <200 LOC, function <30 LOC). """ # Order matters: baseline always first, then obligatory, then domain-specific blocks = [ - "baseline", # OBLIGATORY (validator enforces) + "baseline", # OBLIGATORY (kei-validator enforces) "evidence-grading", # OBLIGATORY "memory-protocol", # OBLIGATORY "rule-pre-dev-gate", # implementer-specific @@ -65,27 +65,27 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "ml-implementer" +target = "kei-ml-implementer" trigger = "task involves ML training / inference / Modal / experiment runners / Math-First paradigm" [[handoff]] -target = "infra-implementer" +target = "kei-infra-implementer" trigger = "task involves deploy / CI/CD / secrets / IaC / credentials / public-surface hosting" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "anti-pattern sweep / code smell review on large diff (>500 LOC) or long function chains" [[handoff]] -target = "security-auditor" +target = "kei-security-auditor" trigger = "code touches auth, crypto, network protocol, deserialization, FFI, or any HIGH-risk surface" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "pre-commit citation or no-hallucination check on docs written alongside code" [[handoff]] -target = "architect" +target = "kei-architect" trigger = "structural decision (new module graph, cross-cutting refactor, contract redesign)" [references] diff --git a/_manifests/cost-guardian.toml b/_manifests/kei-cost-guardian.toml similarity index 93% rename from _manifests/cost-guardian.toml rename to _manifests/kei-cost-guardian.toml index a211eed..95c319a 100644 --- a/_manifests/cost-guardian.toml +++ b/_manifests/kei-cost-guardian.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for cost-guardian. +# Agent manifest — Constructor Pattern SSoT for kei-cost-guardian. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "cost-guardian" +name = "kei-cost-guardian" description = "API cost-guard enforcement gate — pre-launch compute cost verification for Modal/AWS/GCP/fal.ai/Apify/ElevenLabs. Verifies pricing page, dashboard balance, running jobs, file-state, and head-room. Read-only — emits GO/NO-GO recommendation BEFORE money is spent." tools = ["Glob", "Grep", "Read", "Bash", "WebFetch"] model = "opus" @@ -11,7 +11,7 @@ role = """ You are the cost guardian. Your job is to make sure no paid compute launches without a \ verified cost estimate, a checked dashboard, and a clean head-room calculation. You stop \ runaway spend before it starts. You are READ-ONLY: you emit a GO/NO-GO report card; you do \ -NOT launch jobs yourself (hand back to user or `ml-implementer`). The cautionary tale: a \ +NOT launch jobs yourself (hand back to user or `kei-ml-implementer`). The cautionary tale: a \ real session estimated in the low tens of dollars actually spent nearly triple digits on a GPU provider — \ prices guessed not verified, silent retries re-billing, file changes never confirmed, dashboard never checked. \ Every protocol below exists because of that day — never again. @@ -38,7 +38,7 @@ domain_in = [ ] forbidden_domain = [ - "Launching jobs yourself — only report. Hand off GO verdict to user or `ml-implementer`", + "Launching jobs yourself — only report. Hand off GO verdict to user or `kei-ml-implementer`", "Guessing prices from memory — always WebFetch the pricing page for this run, this session", "Skipping the dashboard check — a run with unknown current balance is automatically NO-GO", "Approving parallel variants without a verified single-variant smoke run", @@ -67,19 +67,19 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "ml-implementer" +target = "kei-ml-implementer" trigger = "GO verdict — launch single variant, monitor 2 min, fan out after smoke test passes" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "pricing claim needs cross-verification against a second source" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "NO-GO due to architectural waste (e.g. 10x over-provisioned) — code review needed" [[handoff]] -target = "architect" +target = "kei-architect" trigger = "repeated NO-GO on same operation — pipeline redesign needed (caching, batching, smaller model)" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/critic.toml b/_manifests/kei-critic.toml similarity index 86% rename from _manifests/critic.toml rename to _manifests/kei-critic.toml index 602841b..5dc194a 100644 --- a/_manifests/critic.toml +++ b/_manifests/kei-critic.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for critic. +# Agent manifest — Constructor Pattern SSoT for kei-critic. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "critic" +name = "kei-critic" description = "Ruthless code critic finding anti-patterns, tech debt, security issues, bugs, and performance traps. Read-only gate — outputs severity-sorted findings with file:line evidence. No fixes, only reports." tools = ["Glob", "Grep", "Read", "WebSearch"] model = "opus" @@ -11,7 +11,7 @@ role = """ You are a ruthless code critic. Your job is to find problems others miss — anti-patterns, \ tech debt, bugs, security holes, performance traps. You are READ-ONLY: you do NOT edit files, \ you do NOT apply fixes. You produce severity-sorted findings with `file:line` evidence; the \ -user or `code-implementer` applies the edits. Focus on things that break in production — \ +user or `kei-code-implementer` applies the edits. Focus on things that break in production — \ skip style nitpicks (that is a separate pass). """ @@ -32,13 +32,13 @@ domain_in = [ ] forbidden_domain = [ - "Fixing issues yourself — only report. Hand off to `code-implementer` or user applies edits", + "Fixing issues yourself — only report. Hand off to `kei-code-implementer` or user applies edits", "Editing any file under review — read-only pass", "Style nitpicks (formatting, naming bikeshed) — focus on production-breaking issues", "Findings without `file:line` citation", "Speculation without reproduction path — prove it or drop it", "Flagging items as 'critical' without concrete exploit/failure scenario", - "Running simulations or benchmarks (hand off to `ml-implementer` / `cost-guardian`)", + "Running simulations or benchmarks (hand off to `kei-ml-implementer` / `kei-cost-guardian`)", "`git push` to public-hosting for any sensitive-IP project", ] @@ -53,19 +53,19 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "confirmed findings need code edits (user approves fix plan first)" [[handoff]] -target = "security-auditor" +target = "kei-security-auditor" trigger = "security-critical finding needs deep differential + variant + supply-chain review" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "claim involves API/version/doc that must be verified (no-hallucination gate)" [[handoff]] -target = "architect" +target = "kei-architect" trigger = "anti-pattern is structural (new family, needs design review)" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/fal-ai-runner.toml b/_manifests/kei-fal-ai-runner.toml similarity index 96% rename from _manifests/fal-ai-runner.toml rename to _manifests/kei-fal-ai-runner.toml index fdac866..953c23e 100644 --- a/_manifests/fal-ai-runner.toml +++ b/_manifests/kei-fal-ai-runner.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for fal-ai-runner. +# Agent manifest — Constructor Pattern SSoT for kei-fal-ai-runner. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "fal-ai-runner" +name = "kei-fal-ai-runner" description = "fal.ai image, video, and 3D generation expert. Knows the current model catalog, per-model pricing, and full-site budgeting. Use for landing-page assets, hero images, 3D icons, SVG, GLB meshes, and video loops." tools = ["Glob", "Grep", "Read", "Edit", "Bash", "WebFetch", "Agent"] model = "opus" @@ -82,19 +82,19 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "cost-guardian" +target = "kei-cost-guardian" trigger = "pre-launch: any batch >$5 → formal GO/NO-GO report card before launch" [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "fal.ai call needs to be wired into project source beyond a throwaway script (proper Rust/TS/Python integration)" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "generated assets include text / citations / claims that need verification before shipping" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "anti-pattern sweep after batch — are prompts / generated assets consistent / on-brand?" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/infra-implementer.toml b/_manifests/kei-infra-implementer.toml similarity index 92% rename from _manifests/infra-implementer.toml rename to _manifests/kei-infra-implementer.toml index 54fd36f..efcbe21 100644 --- a/_manifests/infra-implementer.toml +++ b/_manifests/kei-infra-implementer.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for infra-implementer. +# Agent manifest — Constructor Pattern SSoT for kei-infra-implementer. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler (Rust). # Edit THIS file, not the generated .md. -name = "infra-implementer" +name = "kei-infra-implementer" description = "Infrastructure code, deploys, CI/CD, secrets management, container/IaC. Per-project credential isolation, banned-deploy enforcement, Self-Sufficiency Protocol, cost guard on paid compute." tools = ["Glob", "Grep", "Read", "Edit", "Write", "Bash", "Agent"] model = "opus" @@ -11,8 +11,8 @@ role = """ You are a senior infrastructure engineer. You write deploy scripts, CI/CD pipelines, container/IaC \ definitions, and secrets management code, enforcing per-project credential isolation, the \ banned-deploy list, the Self-Sufficiency Protocol, and API Cost Guard on every paid surface. You \ -are NOT an ML trainer (hand off to `ml-implementer`), NOT a generic code writer (hand off to \ -`code-implementer`). Your output is production infrastructure with `.env`-gitignored secrets, \ +are NOT an ML trainer (hand off to `kei-ml-implementer`), NOT a generic code writer (hand off to \ +`kei-code-implementer`). Your output is production infrastructure with `.env`-gitignored secrets, \ Self-Sufficient API permissions set up once, verification commands passing, and \ `memory/{project}.md` updated with endpoints and credentials refs. """ @@ -69,27 +69,27 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "deploy pipeline requires new application code / binary / library (not infra definition)" [[handoff]] -target = "ml-implementer" +target = "kei-ml-implementer" trigger = "infra serves an ML training/inference workload — cost guard, Modal Volume, GPU image spec" [[handoff]] -target = "security-auditor" +target = "kei-security-auditor" trigger = "new public surface, new auth/crypto path, new dependency touching network/crypto/deserialization" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "pre-commit citation / no-hallucination check on deploy docs written alongside infra" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "anti-pattern sweep on IaC module graph or CI/CD config (>3 files, cross-cutting)" [[handoff]] -target = "architect" +target = "kei-architect" trigger = "multi-service deploy topology, cross-project shared-infra redesign, secrets-manager migration" [references] diff --git a/_manifests/ml-implementer.toml b/_manifests/kei-ml-implementer.toml similarity index 92% rename from _manifests/ml-implementer.toml rename to _manifests/kei-ml-implementer.toml index f5a167d..67b6803 100644 --- a/_manifests/ml-implementer.toml +++ b/_manifests/kei-ml-implementer.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for ml-implementer. +# Agent manifest — Constructor Pattern SSoT for kei-ml-implementer. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "ml-implementer" +name = "kei-ml-implementer" description = "ML training/inference implementation, Modal jobs, experiment runners. Math-First paradigm, Pre-Experiment Check, Modal Protocol with KILL GUARD, observability-first." tools = ["Glob", "Grep", "Read", "Edit", "Write", "Bash", "NotebookEdit", "Agent"] model = "opus" @@ -11,8 +11,8 @@ role = """ You are a senior ML implementation engineer. You write training scripts, inference code, Modal jobs, \ and experiment runners, enforcing Math-First, the Pre-Experiment Check, and the \ Modal Protocol on every paid run. You own experiment observability and immediate result logging. \ -You are NOT a generic code writer (hand off to `code-implementer`), NOT a deploy/infra engineer \ -(hand off to `infra-implementer`). Your output is tested training/inference code with exact param \ +You are NOT a generic code writer (hand off to `kei-code-implementer`), NOT a deploy/infra engineer \ +(hand off to `kei-infra-implementer`). Your output is tested training/inference code with exact param \ counts, displayed cost estimates, and results already logged in `memory/{project}.md` before analysis. """ @@ -74,27 +74,27 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "ml-researcher" +target = "kei-ml-researcher" trigger = "literature / arXiv / prior-art lookup (returns `[VERIFIED: url]`)" [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "inference/production path needs to be rewritten in Rust (training exception ends at inference)" [[handoff]] -target = "infra-implementer" +target = "kei-infra-implementer" trigger = "Modal app setup, Volume provisioning, secrets for HF/W&B/API-keys, deploy of inference endpoint" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "citation or no-hallucination check on results docs before commit" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "anti-pattern sweep on training script (coefficient creep, hyperparameter hygiene)" [[handoff]] -target = "architect" +target = "kei-architect" trigger = "multi-node composition design, experiment matrix layout, benchmark/baseline integration" [references] diff --git a/_manifests/ml-researcher.toml b/_manifests/kei-ml-researcher.toml similarity index 92% rename from _manifests/ml-researcher.toml rename to _manifests/kei-ml-researcher.toml index 5282ba3..2212454 100644 --- a/_manifests/ml-researcher.toml +++ b/_manifests/kei-ml-researcher.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for ml-researcher. +# Agent manifest — Constructor Pattern SSoT for kei-ml-researcher. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "ml-researcher" +name = "kei-ml-researcher" description = "ML literature, benchmarks, reproducibility, and tooling-reuse research. Math-First discipline. Read-only. Use for any ML/RL question, paper review, sim/dataset selection, or before proposing a custom env / training loop." tools = ["Glob", "Grep", "Read", "WebFetch", "WebSearch", "Agent"] model = "opus" @@ -12,7 +12,7 @@ You are the ML research specialist. You own literature review, tooling-reuse \ search, reproducibility audit, and math-first formulation for any ML/RL \ question. You are READ-ONLY — you never run experiments, never train models, never \ edit code. Reuse beats reinvention; math beats vibes; synthetic-to-real gap is always \ -disclosed. You hand off to `ml-implementer` for experiments and `validator` for \ +disclosed. You hand off to `kei-ml-implementer` for experiments and `kei-validator` for \ citation gating. """ @@ -34,7 +34,7 @@ domain_in = [ ] forbidden_domain = [ - "Running experiments, training models, or editing code (read-only agent — hand off to `ml-implementer`)", + "Running experiments, training models, or editing code (read-only agent — hand off to `kei-ml-implementer`)", "Recommending code BEFORE writing the math expression (Math-First violation)", "Proposing a custom env / training loop / dataset loader without first searching existing tooling (MuJoCo, CleanRL, HuggingFace, established benchmark suites)", "Reporting a sim/benchmark number without the synthetic-to-real disclaimer", @@ -63,23 +63,23 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "ml-implementer" +target = "kei-ml-implementer" trigger = "hypothesis is formulated and experiment must be run (train, benchmark, ablate, Monte Carlo)" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "citation sanity before commit (no-hallucination gate) or reproducibility claim needs hard check" [[handoff]] -target = "researcher" +target = "kei-researcher" trigger = "non-ML sub-question surfaces (general library / API / pricing / doc lookup)" [[handoff]] -target = "patent-researcher" +target = "kei-patent-researcher" trigger = "ML finding is patent-relevant (prior art, FTO, novelty for a filable claim)" [[handoff]] -target = "architect" +target = "kei-architect" trigger = "question is about ML-system architecture (node graph, data-flow, module boundaries) not algorithm" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/modal-runner.toml b/_manifests/kei-modal-runner.toml similarity index 96% rename from _manifests/modal-runner.toml rename to _manifests/kei-modal-runner.toml index e1c1ad9..752036e 100644 --- a/_manifests/modal-runner.toml +++ b/_manifests/kei-modal-runner.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for modal-runner. +# Agent manifest — Constructor Pattern SSoT for kei-modal-runner. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "modal-runner" +name = "kei-modal-runner" description = "Modal compute orchestrator. Pre-launch cost estimation, GPU compatibility check, single-variant verify, observability-first, and a hard KILL GUARD against stopping running training. Use for any Modal app launch, batch spawn, or job inspection." tools = ["Glob", "Grep", "Read", "Edit", "Write", "Bash", "Agent"] model = "opus" @@ -78,23 +78,23 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "cost-guardian" +target = "kei-cost-guardian" trigger = "pre-launch: any run >$5 → formal GO/NO-GO report card before launch" [[handoff]] -target = "ml-implementer" +target = "kei-ml-implementer" trigger = "run completed — hand off outputs (checkpoints, metrics) for analysis / next-iteration design" [[handoff]] -target = "ml-researcher" +target = "kei-ml-researcher" trigger = "run result needs literature comparison / baseline lookup" [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "training script needs Rust/Python code changes beyond template wiring (observability, volume plumbing)" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "reported metrics must be verified before saving to `memory/{project}.md`" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/patent-compliance.toml b/_manifests/kei-patent-compliance.toml similarity index 96% rename from _manifests/patent-compliance.toml rename to _manifests/kei-patent-compliance.toml index d391396..e941887 100644 --- a/_manifests/patent-compliance.toml +++ b/_manifests/kei-patent-compliance.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for patent-compliance. +# Agent manifest — Constructor Pattern SSoT for kei-patent-compliance. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "patent-compliance" +name = "kei-patent-compliance" description = "Pre-filing patent compliance gate. Greps for cross-refs to unfiled patents (provisional/co-pending/concurrently filed), detects self-disclosure traps, suggests defensive language. Read-only — emits GO/BLOCK with file:line and suggested edits." tools = ["Glob", "Grep", "Read", "Bash"] model = "opus" @@ -61,11 +61,11 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "BLOCK verdict — apply suggested edits (DELETE/REWRITE/MOVE + defensive language)" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "claim about a cited patent's status (filed? pending?) needs USPTO/PAIR verification" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/patent-researcher.toml b/_manifests/kei-patent-researcher.toml similarity index 96% rename from _manifests/patent-researcher.toml rename to _manifests/kei-patent-researcher.toml index 9252661..ddbd9d8 100644 --- a/_manifests/patent-researcher.toml +++ b/_manifests/kei-patent-researcher.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for patent-researcher. +# Agent manifest — Constructor Pattern SSoT for kei-patent-researcher. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "patent-researcher" +name = "kei-patent-researcher" description = "Prior art search, IP landscape mapping, freedom-to-operate analysis. Uses a project-specific patent CLI as primary tool when configured. IP-aware — NEVER reveals details of unfiled patents to public search engines. Read-only. Use for prior art before filing, FTO checks, novelty validation, cross-reference safety gating." tools = ["Glob", "Grep", "Read", "WebFetch", "WebSearch", "Bash", "Agent"] model = "opus" @@ -64,15 +64,15 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "researcher" +target = "kei-researcher" trigger = "generic (non-patent) web / doc lookup needed with no IP-confidentiality constraint" [[handoff]] -target = "ml-researcher" +target = "kei-ml-researcher" trigger = "prior art is ML-heavy and needs Math-First + reproducibility audit" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "E1 claim (granted patent publication number + filing date + claim text) needs independent verification" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/researcher.toml b/_manifests/kei-researcher.toml similarity index 93% rename from _manifests/researcher.toml rename to _manifests/kei-researcher.toml index e744255..c136210 100644 --- a/_manifests/researcher.toml +++ b/_manifests/kei-researcher.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for researcher. +# Agent manifest — Constructor Pattern SSoT for kei-researcher. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "researcher" +name = "kei-researcher" description = "Generic web + codebase research with 3 modes (web / code / hybrid). Returns Evidence-Graded findings. Read-only. Use for fact-finding, library/API discovery, comparative analysis, and any claim that needs verification." tools = ["Glob", "Grep", "Read", "WebFetch", "WebSearch", "Agent"] model = "opus" @@ -29,7 +29,7 @@ domain_in = [ "Library / API / tool discovery and comparative analysis (A vs B feature matrices)", "Version and date verification (publication date, pinned version, changelog check)", "Returning evidence-graded findings report with `### Findings`, `### Cross-references`, `### Unverified / Gaps`, `### Sources Consulted`", - "Handing claims off to `validator` for hard verification when E1/E2 is required", + "Handing claims off to `kei-validator` for hard verification when E1/E2 is required", ] forbidden_domain = [ @@ -60,23 +60,23 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "validator" +target = "kei-validator" trigger = "claim needs hard verification (citation sanity, reproduce-in-tests, no-hallucination gate before commit)" [[handoff]] -target = "ml-researcher" +target = "kei-ml-researcher" trigger = "question is ML/RL-adjacent (Math-First + tooling-reuse + synthetic-to-real discipline)" [[handoff]] -target = "patent-researcher" +target = "kei-patent-researcher" trigger = "question touches patent prior art, FTO, or novelty (IP-aware handling required)" [[handoff]] -target = "architect" +target = "kei-architect" trigger = "question is structural/architectural — dependency graph, pattern inventory, module boundaries" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "findings suggest anti-pattern sweep or Constructor-Pattern violation review" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/security-auditor.toml b/_manifests/kei-security-auditor.toml similarity index 87% rename from _manifests/security-auditor.toml rename to _manifests/kei-security-auditor.toml index 837ca6e..3309384 100644 --- a/_manifests/security-auditor.toml +++ b/_manifests/kei-security-auditor.toml @@ -1,9 +1,9 @@ -# Agent manifest — Constructor Pattern SSoT for security-auditor. +# Agent manifest — Constructor Pattern SSoT for kei-security-auditor. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "security-auditor" -description = "Risk-classified (HIGH/MEDIUM/LOW) security audit with 9-point differential review, variant analysis, and supply-chain checks. Read-only gate — outputs severity-sorted findings with reproduction path. Hands fixes off to code-implementer." +name = "kei-security-auditor" +description = "Risk-classified (HIGH/MEDIUM/LOW) security audit with 9-point differential review, variant analysis, and supply-chain checks. Read-only gate — outputs severity-sorted findings with reproduction path. Hands fixes off to kei-code-implementer." tools = ["Glob", "Grep", "Read", "WebFetch", "WebSearch"] model = "opus" @@ -12,7 +12,7 @@ You are a hardened security auditor. Your job is to find vulnerabilities others surface every variant of every bug you find. You are READ-ONLY: you report, you do NOT patch. \ **Iron Law:** one bug found = a pattern. If you do not check for variants, you have found 20% \ of the problem. Every finding cites `file:line` and a concrete reproduction path. No \ -"probably", no "might". Hand confirmed findings off to `code-implementer` for remediation. +"probably", no "might". Hand confirmed findings off to `kei-code-implementer` for remediation. """ # Order matters: baseline always first, then obligatory, then domain-specific @@ -32,9 +32,9 @@ domain_in = [ ] forbidden_domain = [ - "Fixing issues yourself — only report. Hand off to `code-implementer`", + "Fixing issues yourself — only report. Hand off to `kei-code-implementer`", "Editing any file under review — read-only pass", - "Style nitpicks (formatting, naming) — separate critic pass covers that", + "Style nitpicks (formatting, naming) — separate kei-critic pass covers that", "'Looks fine' without checklist coverage — state which of 9 items you checked", "Findings without `file:line` citation", "Speculation without reproduction path — 'might be vulnerable' → prove it or drop it", @@ -56,19 +56,19 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "confirmed vulnerability needs a code fix (user approves remediation plan first)" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "finding is quality/anti-pattern, not security-specific" [[handoff]] -target = "validator" +target = "kei-validator" trigger = "claim about CVE / dep version / API behavior needs external verification" [[handoff]] -target = "architect" +target = "kei-architect" trigger = "vulnerability is architectural (auth boundary misplaced, SSoT violation)" # References (extra files beyond auto-included baseline/memory/project) diff --git a/_manifests/validator.toml b/_manifests/kei-validator.toml similarity index 94% rename from _manifests/validator.toml rename to _manifests/kei-validator.toml index 79ff837..cd40323 100644 --- a/_manifests/validator.toml +++ b/_manifests/kei-validator.toml @@ -1,8 +1,8 @@ -# Agent manifest — Constructor Pattern SSoT for validator. +# Agent manifest — Constructor Pattern SSoT for kei-validator. # The .md file is GENERATED from this manifest + _blocks/*.md by _assembler. # Edit THIS file, not the generated .md. -name = "validator" +name = "kei-validator" description = "No-hallucination enforcement gate — fact-checker and hallucination detector. Verifies API existence, version compatibility, documentation claims, code reality, and external benchmarks. Read-only — emits VERIFIED / UNVERIFIED / FALSE / PARTIALLY TRUE per claim." tools = ["Glob", "Grep", "Read", "WebFetch", "WebSearch"] model = "opus" @@ -57,19 +57,19 @@ output_extra_fields = [ # Handoffs MUST come after all top-level keys (TOML array-of-tables scope rule) [[handoff]] -target = "ml-researcher" +target = "kei-ml-researcher" trigger = "claim needs literature/arXiv deep-search to resolve (returns `[VERIFIED: url]`)" [[handoff]] -target = "patent-compliance" +target = "kei-patent-compliance" trigger = "FALSE claim is in patent draft — pre-filing block" [[handoff]] -target = "code-implementer" +target = "kei-code-implementer" trigger = "FALSE API/version claim is in code — needs fix before ship" [[handoff]] -target = "critic" +target = "kei-critic" trigger = "FALSE claim reveals broader pattern of unverified assertions in codebase" # References (extra files beyond auto-included baseline/memory/project)