A record from the Factory repository, docs/marketing-workflow-job-correction-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-marketing-workflow-job-correction-draft/1",
"disposition": "corrected-awaiting-independent-source-review",
"packet": "W2-08-MARKETING-2 (W33 step 2), review round 1",
"supersedes": "docs/marketing-workflow-job-draft.json for the files listed here; that draft is kept unchanged as the reviewed revision",
"implementer": "Opus 5.5 (Claude Code); not an independent review",
"source": {
"reviewed": "1d2f141",
"branch": "claude/w2-08-marketing-2",
"commit": "the commit that adds this file"
},
"findings": [
{
"finding": "a returned Promise whose native then throws (a fake Promise, or a throwing constructor getter) rejected the run with a raw error and left the call dispatched",
"fix": "native Promises are recognised with types.isPromise; a throwing native then settles the call unknown/threw at once; a fake Promise is not plain JSON"
},
{
"finding": "drafts judged one block at a time could together exceed the pack size limit and wedge the job after spending its Budget",
"fix": "a valid draft is used only if the whole effective brief with it in place renders; otherwise invalid/over-limit (measured) and the block keeps its template"
},
{
"finding": "a cited fact whose own wording holds personal data was shown to the drafter, because the personal-data refusal names no fact",
"fix": "in a block holding personal data each cited fact is checked alone and withheld if it holds personal data; a block left with none is not-dispatched/no-usable-fact"
},
{
"finding": "the deadline was enforced against a stale clock reading at dispatch, timer and reply",
"fix": "no dispatch is recorded at or after the deadline at its own timestamp; the clock is re-read before contacting the drafter and for the timer; a reply at or after the deadline is unknown/deadline"
},
{
"finding": "a caller cancellation during the dispatch write still invoked the drafter with an unaborted signal",
"fix": "cancellation is checked and wired before the drafter is contacted; after a recorded dispatch the call settles unknown/cancelled with its reservation kept"
},
{
"finding": "a stored unknown attempt with zero reservation and debit replayed",
"fix": "every dispatched attempt needs a reservation of at least one byte; reasons, measurement, debits and refusals are checked per state, and a breach is CORRUPT with nothing written"
}
],
"closure": "node:util added to the Marketing job runtime closure for types.isPromise; test/module-graph.test.ts pins it",
"files": {
"docs/agents/marketing-workflow.md": "ccab477540fa74c2eea2f815c0e5cc715f85db2b34a7587da6258a02e742045b",
"docs/build-review.md": "cbb0202bbf77cd31aba7c47f524dc5cd038cb025ebd64cf15ac4aba2ca6f25e0",
"docs/guide/marketing-workflow.md": "721bc21889c3264b7a1627cd19bb0e4d77b6b232066316ee93dd31a204ab19b2",
"docs/implementation-packets.md": "4ba2b73f0fcb3f5d9bd0d118dc11ad46994a66e9dcaba2e32d4a173ba88da9d7",
"src/marketing-job-contract.ts": "818950582bab1911edfa2553fee8e26188703962d0ac56dc8bf9ffe1d5caf062",
"src/marketing-job.ts": "3a6caec0d7532e9f33bda98fd545cb91f72a4322fc842ee32ce9de3a41ff2de4",
"test/marketing-job.test.ts": "cb88c40063b1e06f88778a789532f07b1a043973312204da6fb8710394c95f18",
"test/module-graph.test.ts": "193b728f064d20b73915747c4b757acfac0e650fae2238c326eaa0061931520b"
},
"environment": {
"node": "v26.8.1",
"platform": "darwin",
"architecture": "arm64"
},
"checks": [
{
"command": "npm run typecheck",
"result": "pass"
},
{
"command": "node --test test/marketing-job.test.ts",
"result": "17 of 17 pass; the six new regression tests each fail against the reviewed revision 1d2f141 of src/marketing-job.ts, restored byte for byte"
},
{
"command": "node --test test/marketing-job.test.ts test/marketing-workflow.test.ts test/module-graph.test.ts test/delivery-boundaries.test.ts test/intelligence.test.ts test/intelligence-lifecycle.test.ts test/observability-catalogue.test.ts test/documentation.test.ts test/docs-site.test.ts test/design-tokens.test.ts test/readability.test.ts test/style-lint.test.ts",
"result": "184 of 184 pass; test/receipt-check.test.ts and test/website.test.ts also 90 of 90 pass"
},
{
"command": "rm -rf site && npm run docs",
"result": "site/ regenerated and committed"
}
],
"notRun": [
"npm run check (full suite; shared-machine rule: coordinator only)",
"test/distribution.test.ts (shared-machine rule; no package entry exists)"
],
"notEstablished": [
"independent source review of the corrected revision",
"coordinator integration and full checks",
"acceptance",
"a live model drafter or any provider call",
"personal data that appears only when two cited facts are rendered side by side (each fact alone is screened)",
"personal data in a brief template literal, which the drafter is still shown as the brief block it rewrites",
"cross-process liveness of an in-flight call before the deadline",
"publication adapter (W33 step 3)",
"installed external consumer",
"E33 or E21 acceptance"
]
}
