一键导入
alignment
Focused DEOS alignment protocol for boundary discipline, durable failure memory, project-local audits, and diff-aware completion gates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Focused DEOS alignment protocol for boundary discipline, durable failure memory, project-local audits, and diff-aware completion gates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compiles and maintains `/wiki` as a generated, provenance-aware, cross-linked semantic projection of `/docs`. Supports automatic incremental sync and forced rebuild/lint/repair/consolidation flows. The generated wiki must remain suitable both for agent reasoning and for frontend-rendered onboarding/reference experiences for project newcomers.
Validates and guides Domain DAG architecture for domain ownership, acyclic local dependency graphs, composition roots, boundary direction, public contracts, interface-surface pressure, and shared-bucket drift. Use when auditing, refactoring, or extending modular codebases across frontend, backend, extensions, CLIs, SDKs, and service packages.
| name | alignment |
| description | Focused DEOS alignment protocol for boundary discipline, durable failure memory, project-local audits, and diff-aware completion gates. |
This skill keeps agents aligned with DEOS architecture without turning the skill into a second project manual. It should evolve intensively: compress rules, sharpen gates, and consolidate recurring drift classes instead of adding more phases, checklists, or prose inventory.
Use this skill when work touches DEOS architecture, runtime semantics, project validation, backlog/context hygiene, or autonomous execution gates.
Default posture:
Before non-trivial design or runtime changes, classify the change with five questions:
Boundary: L0/L1 physics, L2/tactical policy, frontend/read-model, tooling, or docs/context?Trigger: what deterministic event, schedule, balance ingress, or explicit call drives it?Bound: what keeps storage, iteration, weight, proof size, and history bounded?Truth surface: authoritative on-chain projection or external/materialized read model?Rejected shortcut: what lazy default would violate DEOS, and why is it not used?Do not emit this matrix for tiny mechanical fixes unless it helps avoid confusion.
Ledgers are high-order memory only:
ledgers/hallucinations.jsonl — false architecture claims or contract-violating implementation movesledgers/ambiguities.jsonl — unresolved competing meanings, owners, or truth surfacesledgers/dead_ends.jsonl — tempting but globally wrong workflows or local trapsledgers/boundary_drifts.jsonl — membrane violations: L0/L1/L2, mechanism/policy, on-chain/indexed, generic/template vs ecosystem-specificReject low-signal entries such as bare Gate Failed, Compilation Failed, or Audit Failed notes. A durable entry must state:
Use the helper only when the lesson meets that bar:
./.agents/skills/alignment/scripts/log-ledger.sh --help
Project-specific audit leaves live here because they encode DEOS coordination memory. /scripts may orchestrate them, but durable project-audit knowledge should stay in this skill layer.
Routine fast path:
./scripts/validate-local.sh --audit-only
Network-backed dependency posture is opt-in:
./scripts/validate-local.sh --audit-only --dependency-audit
Narrow leaves are available under:
./.agents/skills/alignment/scripts/<audit-name>.sh --help
Current audit families cover architecture drift, economic-claim anchors/falsification inventory, script entrypoint and skill-metadata contracts, template readiness, numeric parsing, simulator determinism/mirror sync, code suppressions, backlog shape, release-line/package-marker consistency, repository portability, wiki trust/consolidation, dependency posture, runtime-source test gating, and the repo-local completion gate.
When a new recurring drift appears:
SKILL.md as the router and rationale layer; put implementation detail in scripts and --help output.For Rust pallet/runtime architecture checks:
./.agents/skills/alignment/scripts/auditor.sh
Defaults are diff-aware: changed Rust lines plus full untracked files. Use a path or --all only when the task truly needs a broader sweep.
If the auditor emits a remedy path, read that referenced document before changing code.
Local delivery slices should pass the repo-local completion gate before continuing or committing:
./.agents/skills/alignment/scripts/completion-gate.sh
The gate runs the smallest meaningful changed-scope set: architecture audit, shell syntax, simulator, cargo check, runtime unit tests for runtime-source changes, wiki trust, release-line audit, and knowledge sync as applicable. It is a project validation entrypoint, not a dependency on any one operator's local execution-loop skill.
Useful flags:
./.agents/skills/alignment/scripts/completion-gate.sh --all-rust
./.agents/skills/alignment/scripts/completion-gate.sh --skip-simulator
./.agents/skills/alignment/scripts/completion-gate.sh --skip-runtime-tests
./.agents/skills/alignment/scripts/completion-gate.sh --allow-no-context-sync