cortex-consistency
Compile Nook typed Cortex policy contracts and workflow bindings.
- License 许可
- MIT
- 所属仓库
- meta-secret/nook
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- cortex-consistency
- description
- Compile Nook typed Cortex policy contracts and workflow bindings.
02 资源文件 15
- 脚本scripts/.gitignore14 B
- 脚本scripts/.oxlintrc.json3.0 KB
- 脚本scripts/.prettierrc162 B
- 脚本scripts/executable-skill.json363 B
- 脚本scripts/package.json820 B
- 脚本scripts/src/action.ts2.9 KB
- 脚本scripts/src/application.ts848 B
- 脚本scripts/src/audit.ts18.3 KB
- 脚本scripts/src/codec.ts4.7 KB
- 脚本scripts/src/domain.ts4.3 KB
- 脚本scripts/src/registry.ts2.1 KB
- 脚本scripts/src/runtime-command.ts1.6 KB
- 脚本scripts/tests/audit.test.ts13.8 KB
- 脚本scripts/tests/codec.test.ts1.3 KB
- 脚本scripts/tsconfig.json684 B
03 SKILL.md 正文
Nook Cortex Consistency Compiler
Meta-Cortex consistency owns generic authority and consistency rules. This card owns Nook's closed policy registry and executable compilation.
Deterministic contract compilation
The ownership boundary is explicit:
- This skill's co-located TypeScript application owns the contract types, registry, ownership mapping, policy checks, and deterministic verification.
- Loom only discovers repository Markdown and adapts parsed references into the skill request.
- Loom also adapts commands from inline and fenced code as inert facts.
- Markdown does not become executable state.
- The rules and their executable policy remain beside this procedure.
Run the compiler through the Cortex consistency command below in the required feature PR checks. A local diagnostic follows the root delivery and validation policy and never replaces the hosted result.
task loom:cortex-audit
The command reports failures in contractFindings.
The co-located application is also a discoverable executable skill. Its required hosted check runs in the feature PR stage. Local diagnostics follow the root policy and do not replace that check:
task skills:tools-list
task skills:run REQUEST_YAML='<cortexConsistency.compile request>'
The executable request contains parsed document paths and references. The registry and policy semantics remain internal to this skill.
Request contract v2 adds the required commands collection to each document.
The former cortex-consistency-compile-v1 transport is not accepted; callers
must regenerate the request through the current Loom Markdown adapter.
- Context ownership and policy applicability determine required policy imports.
- Authority and policy document paths are their contract identities.
- The registry does not repeat owner names beside those paths.
- Recognized authority paths determine context and policy ownership.
- A registered contract path without a recognized owner fails the audit.
- A foreign policy import requires a direct reference from the context authority.
- Direct references use Markdown syntax-tree semantics.
- Persisted-representation policy requires a schema-versioning authority.
- It also requires a legacy-decode or migration-test obligation.
- One policy discriminator selects the persisted contract and its obligations.
- Missing imports, references, authorities, or evidence obligations fail the Cortex audit.
- Registered workflow runtime bindings are closed policy.
- A missing required entrypoint fails the audit.
- An unregistered Task or Loom command fails the owning workflow audit.
- A retired entrypoint fails even when legacy implementation remains present.
- Native Team Agent workflows cannot bind repository journals as dispatch.
The registry covers only relationships promoted into its closed TypeScript model. It does not infer meaning from Markdown or replace semantic review.
04 同仓库更多 Skills
fixture-skill
Prove executable skill scripts are outside Cortex prose linting.
executable-skill-host
Discover and invoke the AI team's closed executable skill catalog through strict, bounded YAML.
delegation-visualization
Render Gizmo's ephemeral native Team Agent plan without acquiring lifecycle authority.
cortex-document-map
Audit Nook Cortex navigation, ownership graphs, and canonical index structure.
cortex-article-structure
Apply Nook executable article-structure audits to Cortex documents.