{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "STATED_CELLS",
      "signature": "const STATED_CELLS = 5;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "NO_CHECKABLE_HALF",
      "signature": "const NO_CHECKABLE_HALF = \"—\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "isStated",
      "signature": "const isStated = function isStated(row: RosterRow): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "isMarker",
      "signature": "const isMarker = function isMarker(row: RosterRow): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "commandOf",
      "signature": "const commandOf = function commandOf(path: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "root",
      "signature": "const root = ENTRYPOINT_ROOTS.find((entry) => path.startsWith(entry));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "name",
      "signature": "const name = root === undefined ? \"\" : path.slice(root.length);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "dot",
      "signature": "const dot = name.indexOf(\".\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 37,
      "name": "check",
      "signature": "check(context: RuleContext): RuleResult {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "rows",
      "signature": "const rows = rosterRows(context.read(ROSTER));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "unstated",
      "signature": "const unstated = rows.filter((row) => !isStated(row));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "ruleIds",
      "signature": "const ruleIds = new Set(context.paths.filter((path) => path.startsWith(RULE_ROOT)).map(identityOf));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "emitted",
      "signature": "const emitted = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "stepIds",
      "signature": "const stepIds = new Set(emitted.filter((id) => !id.includes(PAIR_SEPARATOR)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "stepKinds",
      "signature": "const stepKinds = new Set(emitted.filter((id) => id.includes(PAIR_SEPARATOR)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "commands",
      "signature": "const commands = new Set(context.paths.flatMap(commandOf));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "registered",
      "signature": "const registered = new Set<string>([...ruleIds, ...stepIds, ...commands]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "certified",
      "signature": "const certified = new Set(publishedKinds(context.repoRoot));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "keyed",
      "signature": "const keyed = new Set<string>([...certified, ...stepKinds]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "observed",
      "signature": "const observed = rows.filter((row) => isStated(row) && !isMarker(row));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "resolving",
      "signature": "const resolving = observed.filter((row) => observerResolves(row.cell, registered, keyed));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "unresolved",
      "signature": "const unresolved = observed.filter((row) => !observerResolves(row.cell, registered, keyed));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "corpora",
      "signature": "const corpora = Object.fromEntries("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "findings",
      "signature": "const findings = [...unstated.map(unstatedFinding), ...unresolved.map(unresolvedFinding)];"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-conduct-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "conduct.rule.ts",
  "path": "tools/rules/conduct.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-conduct-rule-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-rules",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-rules",
          "label": "tools/rules",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-rules.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-rules"
        }
      ],
      "relation": "contained-in"
    }
  ],
  "slots": {
    "concern": "rule",
    "subject": "conduct",
    "variant": null
  },
  "stats": {
    "bytes": 7195,
    "callable": 4,
    "definitions": 25,
    "edges": 0,
    "exported": 17,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 25
    },
    "lines": {
      "blank": 16,
      "code": 111,
      "total": 127
    }
  },
  "summary": "111 lines of code and 25 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/conduct.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-converge-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/converge.rule.ts",
      "label": "tools/rules/converge.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/converge.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-converge-rule-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-claim-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/claim.rule.ts",
      "label": "tools/rules/claim.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/claim.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-claim-rule-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/rules",
    "label": "tools/rules",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/rules.md",
    "ref": "api:source/coordination/tools/rules"
  }
}
