Factory docs, home

A record from the Factory repository, docs/repository-collector-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 and combined checks passed, Fable acceptance pending",
  "scope": "E28 private compiled Repository collector and pure Repository Assurance, with neutral caller-owned Candidate and snapshot contracts",
  "baseCommit": "2f23b84927823702c599a69d597f92207e6d78a1",
  "artifact": {
    "name": "software-factory-0.1.0.tgz",
    "sha256": "7aef3988e4b2e2b073f071bb6f32a428616ad88f743a30cd369fa8eba6b38888",
    "private": true,
    "published": false,
    "version": "0.1.0"
  },
  "environment": {
    "node": "v26.8.1",
    "platform": "darwin",
    "architecture": "arm64",
    "osVersion": "27.0",
    "typescript": "7.0.2",
    "developmentTypes": {
      "node": "26.6.3",
      "undici": "8.9.0"
    }
  },
  "sourceSha256": {
    "src/assurance.ts": "141e23e2eda2fdfae16dbab4e3c016187c50bba9732becfa2e0f3f1ec63f9b0d",
    "src/attempt-fence.ts": "f14f25128419873444b7bf014642d3124edb7c85517edaf652a055d071b09ec1",
    "src/attempt-ledger.ts": "e1a95b4dc98da5f8caa453f764a97d552dbab0a5faa3bd03e456389cfafd892f",
    "src/attempt-workspace.ts": "302544b53265745d7d0b398c75314620668a980c2e4eb5c45dd89151e902d733",
    "src/canonical-json.ts": "986f7f53e942101a3a689e000242f49c5d611e641beb2817312553db32edaec2",
    "src/confined-executor.ts": "a46864e9d262a695a607bd2cea639a246ee52782178d1c038df6092cc1f0b322",
    "src/errors.ts": "22e6444f42c15b40b7e8167017f01fb1922156764e6711de4248c3b8401f2357",
    "src/evidence.ts": "b1ef9086845f3e33c92e908eac456f8f6bef3e8d07ad1e9127e92698a25317c4",
    "src/execution.ts": "b33b8c072a54719150a9880cb75e8978bcf28f977512662d3d80dd1dbf5a51a6",
    "src/factory-support.ts": "4ea813b5fb6469885457c8324d108776589bd4d78ab014f1a459cd2aaa1671d8",
    "src/fixture-child.ts": "e2f214750778820465a37ac5b1b0ac76f6f685c57bcfb5cb715875c5f29be67e",
    "src/fixture-gate.ts": "c6cb8f21a3e44de24e5e88cf113167123b2f9d652fcc4793297b0641571f9182",
    "src/fixture-manifest.ts": "ba90ad014406ae2ea446259d525bdc01f4024dd80e947b4e54db6af218df16c8",
    "src/guarded-verification.ts": "8df66946bfed03ac17bde8a3e15b670f135108f6a8446332b6484f28d7d96748",
    "src/intelligence.ts": "fad1bc93dd6e1137fb36a82ed4f42f85a971344d2e09ac34ba8707e8ede02995",
    "src/journal.ts": "eeb3288f539fe8863632457cf35ff7e7353d4bcee40a0eebae567cdd560e96b4",
    "src/lifecycle-schedule.ts": "a480a351a2452fb0be2e3065e4178c9fcfee745a62ddcb30c4c759ebf673a101",
    "src/local-worker.ts": "bd74df1f42863d1328c82aeb2ae63452ce105e951a3b2c316b57bd7c482de983",
    "src/repository-assurance.ts": "bf5abc4d85fcf24476f7564a04e7da4f1f8145ce709600b123ae597182b066ca",
    "src/repository-collector.ts": "7d1b45514063b6ec0f400ada5f6589ea1c122c71752e36d36d564c09d79c2c4d",
    "src/repository-protocol.ts": "84ed0235bcc52306276d23b450ff2fdd6a58daccf25b22b047e5135699a0dc16",
    "src/repository.ts": "dc49b1cde732701307291ab3fd4756d164b38afb11da1f3b856c713542f0855c",
    "src/delivery-records.ts": "585d178033343303aa08819d0f13f149c06fe45da6f5954466e6dff02d59b621"
  },
  "resourceClosure": {
    "source": "sha256:e40a43506c28a9da91631bceb2de5c865d60acb7533b10ec323e2afbf04709af",
    "compiled": "sha256:ab162dd1219d4bbd781a572117c5e9a8cc5369c02d5e803576b79bc8717cd9dd",
    "resources": 8,
    "compilerChecked": true
  },
  "protocols": {
    "source": {
      "recipe": "sf-repository-verify/1",
      "collector": "sf-repository-scenario-collector/1"
    },
    "compiled": {
      "recipe": "sf-repository-verify/2",
      "collector": "sf-repository-scenario-collector/2"
    },
    "unchanged": [
      "sf-candidate/1",
      "sf-repository/1",
      "sf-delivery-snapshot/1",
      "sf-repository-acceptance/1",
      "sf-repository-observation/1",
      "sf-evidence/1"
    ]
  },
  "historicalProof": {
    "fixture": "test/fixtures/repository-collector-v1-before-resources.json",
    "sourceHead": "2f23b84927823702c599a69d597f92207e6d78a1",
    "sha256": "9887e6db0c74aa4e819b310b54609402b9993546804aab497cd2e9c6a104d53e",
    "closure": "sha256:b51d662afe38b3b27320a9eb7a58e6d6b3eb1f3fe167514b0933ca055e3a8bec",
    "recipeDigest": "sha256:10d3673f1424d6c1a60965c8b26199b13d7d9ca802fef95945b98e0e3b631168",
    "result": "actual pre-edit source /1 Verified; captured closure equals the eight original Git blobs; exact records and digest formulas rejudge unchanged in source and compiled consumers; current drift and mode mismatch refuse dispatch"
  },
  "checks": [
    {
      "command": "npm run typecheck",
      "result": "passed",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node --test test/distribution.test.ts",
      "result": "31 passed, 0 failed",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node --test test/repository-assurance.test.ts test/repository-collector.test.ts test/repository-collector-adversarial.test.ts test/repository-resource-protocol.test.ts test/module-graph.test.ts test/delivery-boundaries.test.ts",
      "result": "63 passed, 0 failed",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node --test test/repository-protocol.test.ts test/repository.test.ts test/delivery-records.test.ts test/product-gate.test.ts",
      "result": "36 passed, 0 failed",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node --test test/observability-catalogue.test.ts test/intelligence.test.ts test/design-tokens.test.ts test/documentation.test.ts",
      "result": "50 passed, 0 failed",
      "evidence": "<local evidence archive>"
    },
    {
      "command": "node scripts/style-lint.ts",
      "result": "passed; no baseline changes",
      "evidence": "<local evidence archive>"
    }
  ],
  "externalProof": {
    "package": "fourteen exact public subpaths, twenty-one emitted modules, ten explicit Node declaration wrappers, fifty-nine packed files; prior Journal/foundations/executor/fixture assertions preserved; no runtime dependencies or TypeScript runtime sidecars",
    "closure": "compiler-derived eight-file runtime closure equals declared JavaScript resources; closure hash independently recomputed from actual installed bytes; all eight tested for mutation, absence, symbolic link, hard link and identical-byte replacement during gate read",
    "usefulExecution": "caller-owned canonical Candidate and base contracts, snapshots, Evidence and Product fence run real confined processes: correct output Verified, wrong output Failed, missing/corrupt/copied/foreign records Inconclusive; shared Evidence brand preserved",
    "ownership": "foreign Product fence and lost hold refuse before process launch or Evidence; actual launched-process cancellation stays Inconclusive; resource drift while a process runs suppresses new Evidence",
    "restart": "fresh process gathers exact stored references and rejudges the retained proof without dispatch or rewriting it; low-level collect itself has no durable replay policy",
    "trustProbe": "caller-controlled loader changes evaluated code while installed-file hashes still match; this explicitly proves the documented trusted-installation/controller limitation",
    "typesAndPassivity": "strict external declarations, explicit caller Node types, passive restricted imports, private paths refused and guide links resolved inside the tarball"
  },
  "remainingGates": [
    "Fable acceptance and any repairs; no merge authorised before Fable.",
    "Repository and Product gate standalone adoption, complete Workflow and Factory adoption remain open.",
    "No hostile-installation authentication, freezing of already-loaded JavaScript, elimination of post-check filesystem races, concurrent-writer storage guarantee or new platform qualification.",
    "Canonical Candidate bytes do not grant Git ownership/integration authority. Historical Verified does not establish current validity.",
    "No live journal, provider call, migration, automatic repin, publication or new runtime dependency."
  ],
  "combinedStackProof": {
    "baseCommit": "dcff926b336344f7e0dfab6a800cb0562850efb9",
    "artifactSha256": "8a4ef016eb945216b935415c71b374bef7dc51ef4efdc06bd9a0ed79d16d9408",
    "publicEntries": 18,
    "compiledSources": 30,
    "packedConsumerChecks": 43,
    "independentReview": "Astra ultra runtime PASS; 11 package modes, seven independent probes, 99 focused checks, historical closure recomputed; DOC-1 corrected",
    "reviewedByteParity": "38 prior emitted files unchanged, with only previously reviewed ancestor Intelligence/calendar differences; final guide-only repack preserved all runtime bytes",
    "combinedIndependentReplay": "All seven independent edge probes passed against combined runtime",
    "fullSuite": {
      "passed": 1683,
      "failed": 0,
      "skipped": 0,
      "concurrentTestFiles": 4,
      "evidence": "<local evidence archive>"
    },
    "initialFullRuns": "Each passed1682/1683. The first found lifecycle deriveAssessment line anchor364 stale after type extraction; the second exposed the corresponding exact-anchor expectation. Both now cite357, retaining all semantic checks. Focused15/15 and full rerun passed; no runtime repair.",
    "limits": "Trusted installation/controller; no new integration authority, complete Workflow, Fable acceptance or epic closure"
  }
}

Source: docs/repository-collector-adoption-draft.json