{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "FAILURE",
      "signature": "const FAILURE = 1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "CHECK_FLAG",
      "signature": "const CHECK_FLAG = \"--check\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "TARGET",
      "signature": "const TARGET = absolutePath(\"claude.register\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "EXCERPT_LENGTH",
      "signature": "const EXCERPT_LENGTH = 100;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "ELLIPSIS",
      "signature": "const ELLIPSIS = \"…\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "ruleTexts",
      "signature": "const ruleTexts = function ruleTexts(rule: CanonRule): readonly DocumentText[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "texts",
      "signature": "const texts = ["
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "layerTexts",
      "signature": "const layerTexts = function layerTexts(layer: CanonLayer): readonly DocumentText[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "ruleOf",
      "signature": "const ruleOf = function ruleOf(check: CanonCheckId): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "rule",
      "signature": "const rule = WRITING_CANON.flatMap((layer) => layer.rules).find((candidate) =>"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "excerpt",
      "signature": "const excerpt = function excerpt(text: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "canonFindings",
      "signature": "const canonFindings = WRITING_CANON.flatMap(layerTexts).flatMap((own) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "documentFindings",
      "signature": "const documentFindings = governedDocumentTexts().flatMap((own) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "rendered",
      "signature": "const rendered = canonMarkdown(WRITING_CANON, REGISTER_HEADER, CANON_PRECEDENCE);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "current",
      "signature": "const current = existsSync(TARGET) ? readFileSync(TARGET, \"utf8\") : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "rules",
      "signature": "const rules = WRITING_CANON.reduce((sum, layer) => sum + layer.rules.length, 0);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/governance#file-governance-rules-entrypoints-writing-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "writing.entrypoint.ts",
  "path": "rules/entrypoints/writing.entrypoint.ts",
  "ref": "anatomy:file-governance-rules-entrypoints-writing-entrypoint-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/governance#folder-governance-rules-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/governance/folder-governance-rules-entrypoints",
          "label": "rules/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/governance/folder-governance-rules-entrypoints.md",
          "ref": "chapter:/anatomy/governance#folder-governance-rules-entrypoints"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-single-source-of-truth",
          "json": "https://banes-lab.com/json/records/architecture/single-source-of-truth",
          "label": "Single Source of Truth",
          "markdown": "https://banes-lab.com/records/architecture/single-source-of-truth.md",
          "ref": "architecture:single-source-of-truth"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-standardization",
          "json": "https://banes-lab.com/json/records/architecture/standardization",
          "label": "Standardization",
          "markdown": "https://banes-lab.com/records/architecture/standardization.md",
          "ref": "architecture:standardization"
        }
      ],
      "relation": "enforces"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "writing",
    "variant": null
  },
  "stats": {
    "bytes": 3603,
    "callable": 4,
    "definitions": 16,
    "edges": 0,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 16
    },
    "lines": {
      "blank": 10,
      "code": 83,
      "total": 93
    }
  },
  "summary": "83 lines of code and 16 definitions.",
  "text": "https://banes-lab.com/source/governance/rules/entrypoints/writing.entrypoint.ts.txt",
  "tree": "governance",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/governance#file-governance-rules-entrypoints-taxonomy-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/governance/rules/entrypoints/taxonomy.entrypoint.ts",
      "label": "rules/entrypoints/taxonomy.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/governance/rules/entrypoints/taxonomy.entrypoint.ts.md",
      "ref": "anatomy:file-governance-rules-entrypoints-taxonomy-entrypoint-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/governance/rules/entrypoints",
    "label": "rules/entrypoints",
    "markdown": "https://banes-lab.com/api/source/governance/rules/entrypoints.md",
    "ref": "api:source/governance/rules/entrypoints"
  }
}
