Pipeline
Version history and changelog of the publishing pipeline. Current version: v3.18.4
v3.17.0 — 2026-10-20
- Batch composition rules: an Analysis quota and a featuring floor. Auditing the archive showed that parallel writer batches had drifted almost entirely to single-release Briefings and News (October 2026: 88 Briefings, 104 News, 0 Analysis, against 78 Analysis in March) and that the review step had stopped featuring anything (0 featured of 192 in October; the previous featured article was 2026-09-26), because every writer and every reviewer decides alone and the default of each is the cheapest option.
config/editorial_policy.mdnow defines a batch (articles commissioned together and reviewed in one session) with two rules. Format quota: in a batch of 5 or more articles, at leastceil(20% × N)writers are assignedformat: analysis(10 articles → 2); the quota counts articles that survive review, so a rejected or unachievable Analysis is replaced before the batch is deployed, and an article can only count as an Analysis if it meets the new Analysis requirements (800–2000 words, at least 4 sources of which at least 2 are independent of the subject, an examination of a topic rather than a recap of one release, facts separated from analysis). Featuring floor: every review now ends itsoverall_assessmentwith aFeatured candidacy: 0–3line; a single review still setsfeatured: truealone only for a 3, but in a batch of 8 or more approved articles the orchestrator features the topceil(10% × N)(at most 3, never a 0 or an unapproved article) by editing only the unsigned article-meta files before deploying./write-articlegains aformat:hint (independent of thecategory:hint, and not human-requested) and its length block now matches the policy ranges (Briefing 300–800, Analysis 800–2000, News 400–1200) instead of the looser figures that had been listed there;/review-submissiongains the candidacy line, the Analysis-requirements check and the revisedfeatureddefault. The automated length check inchief:reviewis unchanged and still only warns outside its own looser bounds. No script, content-schema or signed-content change
v3.16.4 — 2026-09-16
- Fixed source snapshots silently corrupting binary content (e.g. PDFs).
attemptFetch()inscripts/lib/source_snapshot.tsread every fetched response withres.text()regardless ofContent-Type, which UTF-8-decodes the bytes and replaces any invalid sequence with U+FFFD — for a binary file like a PDF this silently mangled the content before it was ever hashed or gzipped (observed case: a 53,497-byte PDF became a 95,391-byte corrupted snapshot thatpdftotext/qpdfcould no longer parse, discovered during the 2026-09-11 OpenAI/Buckmaster review when the Chief Editor had to fall back to a live re-fetch to verify quotes). The fetch now readsres.arrayBuffer()and threads a rawBufferstraight through topersistSnapshot(), which hashes and gzips those exact bytes with no decode/re-encode step in between — so the storedsha256inmanifest.jsonnow reflects the true origin-server bytes for every content type, not just HTML. The suspicious-content regex scan now only runs against content whoseContent-Typeis text-like (text/*,application/json,application/xml,application/xhtml+xml, etc.); it’s skipped for binary bodies rather than scanning U+FFFD noise. Regression tests added intests/source_snapshot.test.ts(byte-for-byte PDF preservation, hash-of-original-bytes, and confirming text/charset content still scans normally). No content-schema or editorial-rule change
v3.16.3 — 2026-08-15
- Fixed
gh pr createintermittently failing after a successful push from write-article worktree agents. Worktree agents run withremote.origin.fetchrestricted tomain(part of the sparse-checkout setup), so after pushing a new submission branch, no local remote-tracking ref exists for it —gh pr create's ambient branch-tracking detection then fails with "you must first push the current branch to a remote, or use the --head flag" even though the push genuinely succeeded on the remote. This was observed on effectively every parallel write-article batch, with agents manually recovering viagh pr create --head <branch> --base main.prCreateArgs()inscripts/submission_pr.tsnow passes--head/--baseexplicitly instead of relying on that detection. Regression tests added intests/submission_pr.test.ts. No content-schema or editorial-rule change
v3.16.2 — 2026-08-12
- Fixed a bug where
submission:prcould report success on a failed PR creation.execFileLive()inscripts/submission_pr.tscaught everyexecFileSyncfailure and checked'stdout' in errorto decide whether to swallow it — but Node always sets a (possiblynull)stdoutproperty on that error object regardless of exit reason, so the check was true for essentially every failure. This masked failedgit pushandgh pr createcalls behind a printed "✅ Pull Request created successfully!" message, and independently broke two error-recovery paths that expected the failure to actually propagate: the SSH→HTTPS push fallback, and claim-branch cleanup's not-found handling. Removed the swallow-and-return-empty-string catch entirely so the nativeexecFileSyncexception propagates, matching what every call site already assumed. Regression test added intests/submission_pr.test.ts. No content-schema or editorial-rule change
v3.16.1 — 2026-08-02
- Source allowlist: added
cppa.ca.gov(California Privacy Protection Agency — the regulator's own primary-source domain, precedented byoag.ca.gov),california.public.law(statutory-text repository for California Civil Code, precedented bylaw.cornell.edu/justia.com), andabc7news.com(ABC-affiliated San Francisco TV newsroom, precedented byabcnews.go.com/cbsnews.com), surfaced as off-allowlist warnings during Chief Editor review of the California Delete Act / DROP enforcement submission. All three were independently source-verified during that review before being added. No content-schema or editorial-rule change