Factory docs, home

A record from the Factory repository, docs/repository-adoption-draft.json, shown as committed except that its local paths appear as placeholders in angle brackets, such as <local evidence archive>, standing for files that are not published. Every hash, date and count is as recorded. The build review says what the Factory's receipts support.

{
  "status": "draft implementation; independent Astra review passed; Fable acceptance pending",
  "scope": "E28 private compiled Repository, Product gate and Delivery records; existing behaviour and explicit caller-owned storage and authority, no new Workflow",
  "baseCommit": "3a819dccbea951b17d1e7b95e33b5b3c947daf0f",
  "artifact": {
    "name": "software-factory-0.1.0.tgz",
    "sha256": "7f9c4543f5330c1dfd215fa8716a7be084adafa2a2e23f84ce382a69f829d9c5",
    "private": true,
    "published": false,
    "version": "0.1.0",
    "publicSubpaths": 17,
    "emittedModules": 25,
    "packedFiles": 71
  },
  "environment": {
    "node": "v26.8.1",
    "platform": "darwin",
    "architecture": "arm64",
    "typescript": "7.0.2",
    "developmentTypes": {
      "node": "26.6.3",
      "undici": "8.9.0"
    },
    "git": "/Applications/Xcode.app/Contents/Developer/usr/bin/git"
  },
  "sourceSha256": {
    "src/repository.ts": "dc49b1cde732701307291ab3fd4756d164b38afb11da1f3b856c713542f0855c",
    "src/repository-protocol.ts": "84ed0235bcc52306276d23b450ff2fdd6a58daccf25b22b047e5135699a0dc16",
    "src/product-gate.ts": "c678574bd9906818654e5a950e4cf59c3644c057b1f579cf3a3d150ff2b464c2",
    "src/delivery-records.ts": "585d178033343303aa08819d0f13f149c06fe45da6f5954466e6dff02d59b621",
    "src/strict-input.ts": "624219f3777cdefdec6e2ad49f94927e4eac27afc76475198accf2fe15fca358",
    "src/journal.ts": "eeb3288f539fe8863632457cf35ff7e7353d4bcee40a0eebae567cdd560e96b4",
    "src/evidence.ts": "b1ef9086845f3e33c92e908eac456f8f6bef3e8d07ad1e9127e92698a25317c4",
    "src/assurance.ts": "141e23e2eda2fdfae16dbab4e3c016187c50bba9732becfa2e0f3f1ec63f9b0d",
    "src/repository-assurance.ts": "bf5abc4d85fcf24476f7564a04e7da4f1f8145ce709600b123ae597182b066ca",
    "src/repository-collector.ts": "7d1b45514063b6ec0f400ada5f6589ea1c122c71752e36d36d564c09d79c2c4d",
    "src/confined-executor.ts": "a46864e9d262a695a607bd2cea639a246ee52782178d1c038df6092cc1f0b322",
    "src/attempt-fence.ts": "f14f25128419873444b7bf014642d3124edb7c85517edaf652a055d071b09ec1",
    "src/intelligence.ts": "fad1bc93dd6e1137fb36a82ed4f42f85a971344d2e09ac34ba8707e8ede02995"
  },
  "runtimeChanges": "None. Public entries compile the same source files Factory already uses. All 42 previously offered JavaScript/declaration files are byte-identical to the collector tarball. All eleven Intelligence policy digests retain their existing values.",
  "protocolsUnchanged": [
    "sf-repository/1",
    "sf-candidate/1",
    "sf-integration/1",
    "sf-product-gate/1",
    "sf-product-binding/1",
    "sf-slice/1",
    "sf-delivery-snapshot/1"
  ],
  "historicalProof": {
    "fixture": "test/fixtures/repository-before-adoption.json",
    "sha256": "d4a3f460e8f97171465ef0d06cb01f0992eb1573a121133faf53ad45166c1df3",
    "sourceHead": "3a819dccbea951b17d1e7b95e33b5b3c947daf0f",
    "provenance": "Actual pre-edit source-mode owned bare Git, confined process collection, Verified Evidence, gate admission, confirmed integration and ledger receipt. Raw aggregates, command receipts, events and outbox captured after close; source hashes and exact evidence object bytes retained. Original source collector /1 pins remain historical, without relabelling to compiled /2.",
    "result": "Reconstructed raw journal and shared Evidence reopen through public packed entries; every row and receipt remains identical, exact admissions replay as history, Verdict and assessment rederive unchanged."
  },
  "checks": [
    {
      "command": "npm run typecheck",
      "result": "passed",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node --test test/repository-adoption.test.ts",
      "result": "10 passed, 0 failed",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node --test final-consumer.test.ts (archived exact tarball runner)",
      "result": "10 passed, 0 failed against the retained SHA256 artefact",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "archived distribution-without-install.test.ts",
      "result": "31 passed, 0 failed; existing distribution assertions unchanged apart from new offered paths/manifests. Archive runner changes only installation to direct tar extraction and resolves the same source/helpers by absolute path; no install performed.",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node --test test/repository.test.ts test/repository-boundaries.test.ts test/repository-integration.test.ts test/repository-nlink-adversarial.test.ts test/repository-protocol.test.ts test/product-gate.test.ts test/product-gate-ordering.test.ts test/product-gate-seams.test.ts test/product-gate-vocabulary.test.ts test/delivery-records.test.ts test/delivery-boundaries.test.ts test/delivery-adversarial.test.ts test/module-graph.test.ts",
      "result": "151 passed, 0 failed",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node --test test/documentation.test.ts test/observability-catalogue.test.ts test/intelligence.test.ts",
      "result": "24 passed, 0 failed; in-memory render only",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node scripts/style-lint.ts",
      "result": "passed; no baseline change",
      "evidence": "<local evidence archive>"
    }
  ],
  "externalProof": {
    "usefulResult": "Actual module-owned bare Git Candidate, journal/fence, two real confined checks, Verified shared-brand Evidence, pure supported assessment, Product gate admission and retained confirmed integration receipt.",
    "onceAndRecovery": "Two concurrent invokeOnce calls submit one move. SIGKILL after the durable result loses the caller acknowledgement; a fresh process reopens the exact gate, receipt, prepared intent and Slice, replays admission without permission, inspects and rejudges without process or Git dispatch or journal row changes.",
    "unknown": "Guard failure after the durable claim withholds the move; a fresh process reads unknown, another invoke starts nothing, the same generation cannot impersonate a reconciler and unsettled gate integration blocks another dispatch.",
    "refusals": "Foreign Product/store binding, changed Slice pins, conflicting record, copied Evidence, changed recipe, stale journal version and revoked grant refuse; stale Git target returns non-dispatched with no claim. Corrupt gate/ledger refuse, corrupt Evidence stays Inconclusive.",
    "boundaries": "Restricted import has no write/process/network permission; private implementation paths stay closed. Compiler-derived closures are bounded (Repository 5 modules; records 9; gate 11), excluding Factory, Portfolio, Dashboard and Git from gate/records runtime closures.",
    "types": "Strict fresh external declarations use explicit existing Node/undici development types, no Factory source or hidden imports, and reject malformed guard answers, receipt observations and unpinned owners.",
    "guide": "Self-contained example executes verbatim from the tarball: retained Candidate, withheld invocation, unknown retained claim and unchanged target. Every relative guide link resolves inside the artifact."
  },
  "remainingGates": [
    "Fable acceptance; independent Astra implementation review passed, including the sole metadata correction.",
    "Coordinator stack integration, full suite and generated documentation; not run in this lane.",
    "Complete Implementation/Verification/other Workflow and Factory adoption remain open.",
    "The unguarded local Repository effect remains caller-authorised exactly as before; this packet adds no ambient grant or provider access.",
    "Trusted local installation/storage; no hostile-writer guarantee, cross-ref atomicity, power-loss guarantee or new platform qualification.",
    "No live journal, provider qualification, migration, automatic repin, publication, dependency installation or runtime dependency."
  ],
  "independentReview": {
    "verdict": "PASS after REPO-DOC-1 metadata correction",
    "reviewedHead": "3bb03285cc45aa72981650a6c4a720a54c9782a2",
    "correctionHead": "ffc7f23231fc8b456f655dcb0ae57f10f96b256d",
    "evidence": "<local evidence archive>",
    "scope": "Runtime source parity, exact tarball, 10 packed checks, 33 source regressions and three additional independent crash/authority phases. Optional base64 metadata removed; runtime and original artifact unchanged."
  },
  "combinedIntegration": {
    "discoveryHead": "abbaf5520d50c049d78498227aff619129a9c8ef",
    "repositoryReviewedHead": "ffc7f23231fc8b456f655dcb0ae57f10f96b256d",
    "artifact": {
      "name": "software-factory-0.1.0.tgz",
      "sha256": "a5c6db89232768921f639c24db55636d59d2ff180a58a205d9f651776ec555c7",
      "publicSubpaths": 26,
      "emittedModules": 41,
      "packedFiles": 109,
      "published": false
    },
    "checks": {
      "typecheck": "passed",
      "combinedDistribution": "57 passed, 0 failed",
      "repositoryConsumer": "10 passed, 0 failed",
      "focusedSourceAndGraph": "67 passed, 0 failed"
    },
    "sourceParity": "Every src file is byte-identical to reviewed Discovery stack 55dfbf51ccc9694075f5747e3f7eeca7dfcf480f; Repository/Gate/Delivery implementation is unchanged from its reviewed candidate.",
    "scope": "Mechanical union of reviewed package entries, compiler roots, exact package assertions, documentation and inventory. Both package harnesses retained; no runtime implementation changes.",
    "remainingGates": [
      "Root combined full suite and generated documentation",
      "Fable acceptance"
    ],
    "evidence": "<local evidence archive>"
  },
  "coordinatorProof": {
    "artifactSha256": "cbeb1d9d92f334597527fabe3c1b83182dddb434479bae66ce9e9ba66c58fbfc",
    "combinedIndependentReplay": "Three independent crash/hostile-guard phases passed; unknown effect retained without retry",
    "guideCorrection": "Generate the disposable owner UUID instead of embedding a synthetic UUID literal rejected by the public privacy scanner. All other108 packed files unchanged;10 package checks, including verbatim guide, passed. Scanner unchanged.",
    "fullSuite": "Final combined-stack full result recorded at stack head; no separate full run claimed for this intermediate snapshot"
  }
}

Source: docs/repository-adoption-draft.json