cortex-document-map
Audit Nook Cortex navigation, ownership graphs, and canonical index structure.
- License 许可
- MIT
- 所属仓库
- meta-secret/nook
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- cortex-document-map
- description
- Audit Nook Cortex navigation, ownership graphs, and canonical index structure.
02 资源文件 22
- 脚本scripts/.gitignore13 B
- 脚本scripts/.oxlintrc.json3.0 KB
- 脚本scripts/.prettierrc162 B
- 脚本scripts/executable-skill.json365 B
- 脚本scripts/package.json922 B
- 脚本scripts/src/action.ts3.3 KB
- 脚本scripts/src/application.ts2.4 KB
- 脚本scripts/src/audit.ts2.1 KB
- 脚本scripts/src/codec.ts17.1 KB
- 脚本scripts/src/cortex-document-structure.ts25.9 KB
- 脚本scripts/src/cortex-index.ts12.2 KB
- 脚本scripts/src/domain.ts1.2 KB
- 脚本scripts/src/verification.ts17.6 KB
- 脚本scripts/tests/application.test.ts6.6 KB
- 脚本scripts/tests/cortex-document-structure-scenario.ts7.0 KB
- 脚本scripts/tests/cortex-document-structure.test.ts16.5 KB
- 脚本scripts/tests/cortex-index.test.ts11.4 KB
- 脚本scripts/tests/cortex-markdown-syntax.test.ts3.1 KB
- 脚本scripts/tests/project-contexts.test.ts5.8 KB
- 脚本scripts/tests/result-contract.test.ts10.9 KB
- 脚本scripts/tests/vale-navigation.test.ts3.1 KB
- 脚本scripts/tsconfig.json684 B
03 SKILL.md 正文
Nook Cortex Navigation
Purpose
Route people and agents to Nook's owning Cortex context without copying upstream authoring practices or another document's headings.
Meta-Cortex owns generic graph and article rules. Follow its knowledge-graph practice and article-structure practice. Nook graph placement and topology are defined below and in the root index.
Nook graph topology
Every Nook navigation document is named index.md. Existing subject catalogs
keep that same filename. The document-map tooling uses root, owner, and child
indexes directly, without alternate navigation filenames.
Nook has one root router, project specifications and architecture, six functional owner graphs, shared knowledge, and project-local document owners.
- The root graph selects project requirements and functional owner catalogs.
- Project documents supply Nook requirements to Prime and its specialists.
- The six owner graphs describe Delivery Pipeline, AI, development core, security, SRE, and web development context.
- All executable roles and coordinator behavior come from Meta-Cortex.
- The shared graph indexes genuinely cross-team documents.
- Each Nook document belongs to one owning graph. The root graph does not index child documents directly, and one child graph does not index another context's documents.
- Project-local
.cortex/docs/spec/index.mdand.cortex/docs/architecture/index.mdown their local documents. Root and team graphs route to these indexes. Broader project indexes route to narrower module indexes without duplicating document ownership. Each local document is indexed once by its own spec or architecture index. Local graphs may read shared root requirements and route other local owner indexes; they do not directly index another owner's document.
Prohibited: launch separate AI and web coordinators because their contexts have separate graphs.
Preferred: the existing Prime supplies the AI and web contexts to their bounded worker assignments.
-
Prohibited: move an auth specification beside
nook-auth2but retain a second owning entry in the root development-core catalog, or omit it from audit discovery because it is outside root.cortex/. -
Required: index that specification once in
nook-app/nook-platform/nook-auth2/.cortex/docs/spec/index.md. Route the root team graph to that catalog. Discover project-local Cortex documents and apply the same document and ownership audits to them.
Nook document placement
When adding or moving a Nook document:
- Select its owning context from the root graph, following team routes to the owning project index for local documents.
- Put the document under its owning context and link it once from that owner's graph. Route other graphs to the owner index.
- Remove obsolete ownership links and update direct callers when a path changes.
- Update the central Nook skill registry when a skill card is added, moved, or retired.
- Place delivery specifications under the Delivery Pipeline specification catalog.
Use the supplied context and the upstream assignment-context rules for general context loading. An assigned Cortex writer works from the supplied AI context and relevant authorities without restarting root routing.
Validation
The required pull request path runs task loom:cortex-audit in
pr-verification. The policy path ci:pr:tests:policy-with-delivery-helpers
invokes preflight:repository-policy; its Docker stage inherits
loom-verify and runs task loom:verify plus the document-map audit. Hosted
execution is the default; required hosted checks remain mandatory. A local run
of task loom:cortex-audit is a diagnostic governed by the root
delivery and validation policy
and never replaces the hosted result. Do not invoke unrelated or broader local
preflight targets. A specific preflight target may be selected directly when it
is the smallest suitable diagnostic for the recorded task need under the root
policy. A selected repository task may also execute its declared necessary
Taskfile prerequisites through that task.
task loom:cortex-audit
task loom:verify
task loom:cortex-audit checks Nook graph topology, document ownership, index
uniqueness, and fragment-link rules. task loom:verify runs through the policy
Docker stage described above as a required hosted check. A local loom:verify
run is permitted only if that exact target is the smallest suitable diagnostic
for the recorded task need under the root policy, whether selected directly or
declared as a necessary prerequisite and invoked through the selected Task
target; local output never replaces the hosted result. Semantic review still
checks that the selected owner and links match the document's actual purpose.
The co-located read-only TypeScript application owns deterministic graph
topology diagnostics and legacy index migration rendering. The static
executable-skill host exposes its validated audit action through strict YAML;
discover it with task skills:tools-list. The action does not read or write
repository files, spawn processes, or coordinate agents.
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-consistency
Compile Nook typed Cortex policy contracts and workflow bindings.
cortex-article-structure
Apply Nook executable article-structure audits to Cortex documents.