Factory docs, home

A record from the Factory repository, docs/capacity-planning-format-draft.json, shown exactly as committed. Every hash, date and count is as recorded. The build review says what the Factory's receipts support.

{
  "schema": "software-factory-capacity-planning-format-draft/1",
  "disposition": "implemented-awaiting-independent-review",
  "packet": "W2-17-CAPACITY-FORMAT",
  "scope": "Layout-only reformat of the Capacity planning module family source (src/capacity-planning.ts and src/capacity-planning-contract.ts): one statement or class member per line and no line over 160 characters, with no identifier, literal, comment, punctuation or order change and therefore no behaviour or API change: emitted declarations are byte-identical, and emitted dist/capacity-planning.js differs only in whitespace. Follows the readability follow-up in the #34 review (claude-pr-review/2026-10-01/g16.md).",
  "base": "fd3528c3b6d16ed5b54c616c5472881ec191b287",
  "branch": "claude/w2-17-capacity-format",
  "maxLineLength": 160,
  "layoutRule": "after: no line longer than maxLineLength characters, and no line on which two elements of a statement list (source file, block, module block, case clause) or two class members start; a non-block if/for body stays part of its statement",
  "equivalenceRule": "before and after have identical TypeScript token streams (kind and exact source text of every token, so literals keep their quotes and escapes), identical syntax trees (node kinds in pre-order with list boundaries and leaf text, which catches a changed automatic semicolon insertion), identical comments and identical comment placement (the number of tokens before each comment and, for a comment that mentions @ts-, the tokens on the lines its compiler directive governs, so a directive cannot change which code it covers), each derived by scripts/token-equivalence.ts through the pinned TypeScript 7.0.2 compiler",
  "versions": {
    "src/capacity-planning.ts": {
      "before": {
        "gitBlob": "6fbab46822a043076b4c7d94e021bd10fabbe608",
        "sha256": "sha256:2fc0f26d6c568d375706d3a321f65a5d1fe3702ce23f5d2ab8b4966989c2155c",
        "tokens": 8837,
        "tokenStreamSha256": "sha256:63008a6edaf7407c3a5b11c8214397cc3bb37a94bca3be9dc8a81227f8122510",
        "syntaxTreeSha256": "sha256:9e900394bc788107c9f88d77bb149dd82861aa748d56ccecfb44b93635cdf7b5",
        "commentsSha256": "sha256:55fd8f7cfb4d6f52390028712ab3003e8daa2b025876858da5ea753b3639c8e7",
        "commentPlacementSha256": "sha256:d67c3f52bd118145648ec6f1013bbaa0baccc3d8f00db53f6136a10dcef2fcd1",
        "lines": 272,
        "longestLine": 584,
        "linesOverLimit": 57,
        "sharedStatementLines": 67
      },
      "after": {
        "gitBlob": "19441c72cb399f4e4e9c967e0078ce9b2d63e38f",
        "sha256": "sha256:0bbb9dabbf80ac49be36c6f8d48d5932a8affda92617c81cdcd43f137f8a1c77",
        "tokens": 8837,
        "tokenStreamSha256": "sha256:63008a6edaf7407c3a5b11c8214397cc3bb37a94bca3be9dc8a81227f8122510",
        "syntaxTreeSha256": "sha256:9e900394bc788107c9f88d77bb149dd82861aa748d56ccecfb44b93635cdf7b5",
        "commentsSha256": "sha256:55fd8f7cfb4d6f52390028712ab3003e8daa2b025876858da5ea753b3639c8e7",
        "commentPlacementSha256": "sha256:d67c3f52bd118145648ec6f1013bbaa0baccc3d8f00db53f6136a10dcef2fcd1",
        "lines": 527,
        "longestLine": 160,
        "linesOverLimit": 0,
        "sharedStatementLines": 0
      }
    },
    "src/capacity-planning-contract.ts": {
      "before": {
        "gitBlob": "459bc928b036aef4b5d347e82795c0c31176158e",
        "sha256": "sha256:cd5cc6f6c69ad51ff4b922535e558829169e214e4fea197cd46f8bf462d625c5",
        "tokens": 1537,
        "tokenStreamSha256": "sha256:ef5e9b0d069312fa80a1f37651df502b34560ac5c59bf6119d28bcf9fb1fa5fd",
        "syntaxTreeSha256": "sha256:fee07c2d24cabc4be8276d1e087d1dfe6d9db5976d3b96e5dcc88972f56667bb",
        "commentsSha256": "sha256:f206162ffe342feb93348eaa48c50629a17028756b7d1b845747a9d0d4863a2e",
        "commentPlacementSha256": "sha256:9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa",
        "lines": 97,
        "longestLine": 270,
        "linesOverLimit": 7,
        "sharedStatementLines": 2
      },
      "after": {
        "gitBlob": "c73b22c789b3ae32e180ba345e4e5f5a90d74f32",
        "sha256": "sha256:c613810bd19a56df77bbf163720d6d040746edf5a04ee662b6bf36d23648c5be",
        "tokens": 1537,
        "tokenStreamSha256": "sha256:ef5e9b0d069312fa80a1f37651df502b34560ac5c59bf6119d28bcf9fb1fa5fd",
        "syntaxTreeSha256": "sha256:fee07c2d24cabc4be8276d1e087d1dfe6d9db5976d3b96e5dcc88972f56667bb",
        "commentsSha256": "sha256:f206162ffe342feb93348eaa48c50629a17028756b7d1b845747a9d0d4863a2e",
        "commentPlacementSha256": "sha256:9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa",
        "lines": 112,
        "longestLine": 160,
        "linesOverLimit": 0,
        "sharedStatementLines": 0
      }
    }
  },
  "versionsNote": "Values are sha256:-prefixed so the receipt checker does not read the before bytes, which are history at the base commit, as pins of the current files; gitBlob is the git object ID of each version. test/token-equivalence.test.ts reads both blobs and recomputes every value here.",
  "proof": {
    "tool": "token-equivalence/1",
    "typescript": "7.0.2",
    "command": "node scripts/token-equivalence.ts check --before fd3528c src/capacity-planning.ts src/capacity-planning-contract.ts",
    "exitCode": 0,
    "equivalent": true,
    "layoutMeetsLimits": true,
    "crossCheck": "independent of the compiler: removing every space, tab and line feed from both versions of each file leaves byte-identical text (SHA-256 033dbfc62698472ecc5dc07616d7a4fcaa88a708a77887cd348d4395bf1e0015 for src/capacity-planning.ts and 9cad81817011892e1dd7f0b85d7d0bfb92f40c0e3cd9a0b337420c01dbc97a7a for src/capacity-planning-contract.ts), so only whitespace moved"
  },
  "relatedEvidence": {
    "docs/capacity-planning-adoption-draft.json": "unchanged; drafts are history",
    "docs/capacity-operational-signals-acceptance-receipt.json": "unchanged; it pins the before bytes of both source files, so receipt-check reports those two pins as changed. This draft explains that change as layout-only; it accepts nothing and does not refresh that receipt."
  },
  "testsRun": [
    {
      "command": "npm run typecheck",
      "result": "exit 0"
    },
    {
      "command": "node scripts/token-equivalence.ts check --before fd3528c src/capacity-planning.ts src/capacity-planning-contract.ts",
      "result": "exit 0; equivalent and layoutMeetsLimits true for both files"
    },
    {
      "command": "node --test test/capacity-planning.test.ts",
      "result": "13 pass, 0 fail"
    },
    {
      "command": "node --test test/factory-capacity.test.ts",
      "result": "12 pass, 0 fail"
    },
    {
      "command": "node --test test/module-graph.test.ts",
      "result": "27 pass, 0 fail"
    },
    {
      "command": "node --test test/delivery-boundaries.test.ts",
      "result": "10 pass, 0 fail"
    },
    {
      "command": "node --test test/token-equivalence.test.ts",
      "result": "7 pass, 0 fail"
    }
  ],
  "files": {
    "docs/capacity-planning-adoption-draft.json": "9036e7d87acdadb1573a2559d28bdcc13264ca100d29c035956fb6d495b5db04",
    "scripts/token-equivalence.ts": "8fd6209268e1b75aa8e2d2627fd075eaaac7280adf46ecfeae20d7012d1589cb",
    "src/capacity-planning-contract.ts": "c613810bd19a56df77bbf163720d6d040746edf5a04ee662b6bf36d23648c5be",
    "src/capacity-planning.ts": "0bbb9dabbf80ac49be36c6f8d48d5932a8affda92617c81cdcd43f137f8a1c77",
    "test/token-equivalence.test.ts": "c5bdef322e29971d10f23b09a6432c445021c999f761325d84233226239e1a6d"
  },
  "filesNote": "SHA-256 of each file on branch claude/w2-17-capacity-format at this commit; the adoption draft is listed to show it is unchanged.",
  "notEstablished": [
    "independent review of this reformat or of scripts/token-equivalence.ts (the implementer does not verify its own work)",
    "that every compiler diagnostic stays under the same comment directive: the placement check compares the tokens each @ts- directive governs, and refuses any change to them, rather than compiling either version",
    "a refreshed acceptance receipt for the Capacity planning family",
    "required CI on these bytes",
    "the full npm run check suite and test/distribution.test.ts, not run on the shared host for this packet",
    "publication or release",
    "customer value",
    "closure of any epic"
  ]
}

Source: docs/capacity-planning-format-draft.json