Add publication Night Editor review loop

This commit is contained in:
Meta Vens 2026-08-29 19:39:07 +02:00
commit f8bf73d8c4
6 changed files with 888 additions and 265 deletions

View file

@ -79,8 +79,12 @@ fn validate_completed_newspaper_recomposition_receipt(
.ok_or_else(|| {
anyhow::anyhow!("completed wave newspaper recomposition has no recovery boundary")
})?;
if recomposition["schema"] != "ghostlight.newspaper_wave_recomposition.v1"
|| recomposition["wave_index"].as_u64() != Some(wave_index)
let recomposition_schema = recomposition["schema"].as_str();
if !matches!(
recomposition_schema,
Some("ghostlight.newspaper_wave_recomposition.v1")
| Some("ghostlight.newspaper_wave_recomposition.v2")
) || recomposition["wave_index"].as_u64() != Some(wave_index)
|| wave_index < current_recovery_start_wave as u64
|| recorded_recovery_start_wave == 0
|| recorded_recovery_start_wave > wave_index
@ -89,6 +93,8 @@ fn validate_completed_newspaper_recomposition_receipt(
|| recomposition["editorial_contract_digest"] != editorial_contract_digest
|| recomposition["issue"].is_null()
|| recomposition["newspaper_grounding"]["accepted"] != true
|| recomposition_schema == Some("ghostlight.newspaper_wave_recomposition.v2")
&& recomposition["newspaper_editorial"]["accepted"] != true
|| recomposition["issue_file"] != format!("newspaper-wave-{wave_index:02}.md")
|| recomposition["issue_audit_file"] != format!("newspaper-wave-{wave_index:02}.audit.md")
{
@ -154,6 +160,21 @@ fn validate_completed_newspaper_recomposition_receipt(
"completed wave newspaper recomposition grounding differs from its receipt"
)
}
if recomposition_schema == Some("ghostlight.newspaper_wave_recomposition.v2") {
let editorial: ghostlight_dungeon::newspaper::WorldNewspaperEditorialVerdict =
serde_json::from_value(recomposition["newspaper_editorial"].clone()).map_err(
|error| {
anyhow::anyhow!(
"completed wave newspaper recomposition has an invalid editorial verdict: {error}"
)
},
)?;
if recomposition["editorial_digest"] != strategic_smoke_digest(&editorial)? {
anyhow::bail!(
"completed wave newspaper recomposition editorial verdict differs from its receipt"
)
}
}
}
Ok(())
}
@ -1844,6 +1865,7 @@ async fn main() -> anyhow::Result<()> {
let (
issue,
newspaper_grounding,
newspaper_editorial,
newspaper_model_receipts,
issue_path,
issue_audit_path,
@ -1869,6 +1891,7 @@ async fn main() -> anyhow::Result<()> {
(
Some(composition.issue),
Some(composition.grounding),
Some(composition.editorial),
composition.model_receipts,
Some(issue_path),
Some(issue_audit_path),
@ -1880,6 +1903,7 @@ async fn main() -> anyhow::Result<()> {
checkpoint,
model_receipts,
}) => (
None,
None,
None,
model_receipts,
@ -1895,6 +1919,7 @@ async fn main() -> anyhow::Result<()> {
return Err(error);
};
(
None,
None,
None,
failure.model_receipts.clone(),
@ -1917,6 +1942,7 @@ async fn main() -> anyhow::Result<()> {
"commit":committed,
"issue":issue,
"newspaper_grounding":newspaper_grounding,
"newspaper_editorial":newspaper_editorial,
"newspaper_model_receipts":newspaper_model_receipts,
"newspaper_error":newspaper_error,
"newspaper_reconciliation_checkpoint":newspaper_reconciliation_checkpoint,
@ -2068,7 +2094,7 @@ async fn main() -> anyhow::Result<()> {
std::fs::write(&issue_path, &reader_copy)?;
std::fs::write(&issue_audit_path, &audit_copy)?;
let checkpoint = serde_json::json!({
"schema":"ghostlight.newspaper_wave_recomposition.v1",
"schema":"ghostlight.newspaper_wave_recomposition.v2",
"wave_index":wave_index,
"recovery_start_wave":newspaper_recovery_start_wave,
"world_revision":issue_campaign.revision,
@ -2076,11 +2102,13 @@ async fn main() -> anyhow::Result<()> {
"editorial_contract_digest":editorial_contract_digest,
"issue_digest":strategic_smoke_digest(&composition.issue)?,
"grounding_digest":strategic_smoke_digest(&composition.grounding)?,
"editorial_digest":strategic_smoke_digest(&composition.editorial)?,
"model_receipt_set_digest":strategic_smoke_digest(&composition.model_receipts)?,
"reader_copy_digest":strategic_smoke_bytes_digest(reader_copy.as_bytes()),
"audit_copy_digest":strategic_smoke_bytes_digest(audit_copy.as_bytes()),
"issue":composition.issue,
"newspaper_grounding":composition.grounding,
"newspaper_editorial":composition.editorial,
"newspaper_model_receipts":composition.model_receipts,
"issue_file":format!("newspaper-wave-{wave_index:02}.md"),
"issue_audit_file":format!("newspaper-wave-{wave_index:02}.audit.md"),
@ -2112,7 +2140,12 @@ async fn main() -> anyhow::Result<()> {
let report = wave_reports[report_index]
.as_object_mut()
.ok_or_else(|| anyhow::anyhow!("completed wave report is not an object"))?;
for field in ["issue", "newspaper_grounding", "newspaper_model_receipts"] {
for field in [
"issue",
"newspaper_grounding",
"newspaper_editorial",
"newspaper_model_receipts",
] {
report.insert(field.into(), recomposition[field].clone());
}
report.insert("issue_path".into(), serde_json::to_value(issue_path)?);
@ -2284,6 +2317,7 @@ async fn main() -> anyhow::Result<()> {
"news_count":campaign.news.len(),
"newspaper":newspaper_composition.issue,
"newspaper_grounding":newspaper_composition.grounding,
"newspaper_editorial":newspaper_composition.editorial,
"newspaper_model_receipts":newspaper_composition.model_receipts,
"newspaper_path":newspaper_path,
"newspaper_audit_path":newspaper_audit_path,
@ -2911,7 +2945,7 @@ mod tests {
}
#[test]
fn current_recomposition_is_still_typed_and_rerendered() {
fn current_recomposition_requires_both_review_verdicts_and_rerenders() {
let issue = ghostlight_dungeon::newspaper::WorldNewspaperIssue {
schema: "ghostlight.world_newspaper_issue.v3".into(),
id: "issue:current".into(),
@ -2935,8 +2969,13 @@ mod tests {
assessment: "Exact current grounding".into(),
findings: Vec::new(),
};
let editorial = ghostlight_dungeon::newspaper::WorldNewspaperEditorialVerdict {
accepted: true,
assessment: "Exact current editorial acceptance".into(),
findings: Vec::new(),
};
let recomposition = serde_json::json!({
"schema":"ghostlight.newspaper_wave_recomposition.v1",
"schema":"ghostlight.newspaper_wave_recomposition.v2",
"wave_index":18,
"recovery_start_wave":18,
"world_revision":27,
@ -2944,11 +2983,13 @@ mod tests {
"editorial_contract_digest":"sha256:contract",
"issue_digest":strategic_smoke_digest(&issue).unwrap(),
"grounding_digest":strategic_smoke_digest(&grounding).unwrap(),
"editorial_digest":strategic_smoke_digest(&editorial).unwrap(),
"model_receipt_set_digest":strategic_smoke_digest(&receipts).unwrap(),
"reader_copy_digest":strategic_smoke_bytes_digest(reader_copy.as_bytes()),
"audit_copy_digest":strategic_smoke_bytes_digest(audit_copy.as_bytes()),
"issue":issue,
"newspaper_grounding":grounding,
"newspaper_editorial":editorial,
"newspaper_model_receipts":receipts,
"issue_file":"newspaper-wave-18.md",
"issue_audit_file":"newspaper-wave-18.audit.md",
@ -2965,6 +3006,27 @@ mod tests {
&audit_copy,
)
.unwrap();
let mut legacy_current = recomposition.clone();
legacy_current["schema"] = serde_json::json!("ghostlight.newspaper_wave_recomposition.v1");
legacy_current
.as_object_mut()
.unwrap()
.remove("editorial_digest");
legacy_current
.as_object_mut()
.unwrap()
.remove("newspaper_editorial");
validate_completed_newspaper_recomposition_receipt(
&legacy_current,
18,
18,
27,
"sha256:campaign",
"sha256:contract",
&reader_copy,
&audit_copy,
)
.unwrap();
assert!(
validate_completed_newspaper_recomposition_receipt(
&recomposition,
@ -2978,6 +3040,22 @@ mod tests {
)
.is_err()
);
let mut changed_editorial = recomposition.clone();
changed_editorial["newspaper_editorial"]["assessment"] =
serde_json::json!("Changed after admission");
assert!(
validate_completed_newspaper_recomposition_receipt(
&changed_editorial,
18,
18,
27,
"sha256:campaign",
"sha256:contract",
&reader_copy,
&audit_copy,
)
.is_err()
);
let mut changed_grounding = recomposition.clone();
changed_grounding["newspaper_grounding"]["assessment"] =
serde_json::json!("Changed after admission");

File diff suppressed because it is too large Load diff

View file

@ -819,6 +819,14 @@ mod tests {
})
.to_string());
}
if request.stage == "newspaper_night_editor" {
return Ok(serde_json::json!({
"accepted":true,
"assessment":"The page makes its admitted accusation legible and consequential.",
"findings":[]
})
.to_string());
}
registry_newspaper_editor_response(request)
}

View file

@ -1310,6 +1310,36 @@ The audit discloses when an immutable source account reaches the shared
account and asserts nothing beyond it. Reviewers must treat that as the owned
world-source boundary, not as newsroom truncation or omitted provenance.
Exact-source run 57 at
`0c1400985c061c0db44969288846eff79eeed69a`, using rewrite-desk contract v6,
is an immutable mechanically complete newspaper-only run over frozen world
revision 27 with 18 waves, 363 events, and 853 news rows. SHA-256: newspaper
`d90758f411193aa6e86ae2e8cb390650d9b8a58eac77ef87018bd61e9a668c57`;
audit `895268bc22aa3e4176b1da31388e85327f0fe11e4ea4ea4ee600b4e3270a8eed`;
archive `241354b669ee2357c9bb7a06e10e0b93378637621ff2b8b27ab7cf35c2e44e28`.
Mechanical grounding accepts.
Independent blind editorial review fails. The lead and other stories remain
administrative, lived stakes are abstract, no named accountable Greathold
opposition appears, severed hands are buried without court responses or
suspects, and the seed-vault story repeats procedure. The admitted editorial
agenda is materially sharper than the rendered copy. World simulation, ledger
access, and lead selection are therefore not the active blocker; the live
hypothesis is missing editorial-quality acceptance and feedback between agenda
and publication.
The completed local Night Editor cut owns contract
`canopy-ledger-night-editor.v7` and is verified but not yet committed or
provider-accepted. The independent copy-desk agent remains the sole factual
judge. After factual clearance, the publication-owned Night Editor judges the
page against the admitted agenda and selected facts. A rejection names exact
article passages and achievable editorial goals, then enters the same
publication-owned full-article rewrite path used for factual rejection. Every
revision returns through copy-desk judgment and Night Editor judgment before
acceptance. The Night Editor gains no fact, world, event, selection, or
persistence authority. Gates pass 30/30 focused newspaper tests, 485/485
library tests, and 15/15 strategic-smoke tests.
Run 54 exposed one separate upstream publicity defect: a public strategic
activity propagates its channel to private `MemberMemory` outcomes, which is
how Orin Pell retaining a memory became a public news row. The newsroom should
@ -1317,15 +1347,18 @@ ignore that bookkeeping, but revision 27 remains immutable. Future kernel work
must require an outcome's own observable or communicated public scope before
materializing a `NewsIssue`.
1. Preserve immutable runs 55 and 56 and the exact live services. Stage pushed
commit `0c1400985c061c0db44969288846eff79eeed69a` against run 56's frozen
revision-27 campaign and accepted per-wave publications.
2. Run one immutable final-newspaper-only acceptance with no world or per-wave
replay. Retain and resume typed rewrite checkpoints rather than rerunning
the publication writer.
3. Require exact newspaper, audit, result, archive, manifest, provenance, and
service-isolation proof, then obtain independent blind editorial and
grounding reviews. Deliver the actual copy only if both accept.
1. Commit the exact verified Night Editor v7 worktree and push the resulting
commit. Do not name a commit hash until that exact body exists remotely.
2. Preserve immutable runs 55 through 57 and the exact live services. Stage the
exact pushed commit for immutable Run 58 as a newsroom-only continuation
from run 57's frozen revision-27 campaign and accepted per-wave
publications. Replay no world mechanic or wave; retain and resume typed
rewrite checkpoints.
3. Require internal copy-desk factual acceptance and Night Editor
editorial-quality acceptance, exact newspaper, audit, result, archive,
manifest, provenance, and service-isolation proof, then independent blind
editorial and grounding acceptance. Deliver the actual copy only if both
independent reviews accept.
4. Defer multiple publication Personas, TeX layout, and engraved cuts until the
single Canopy Ledger passes.
5. Per-wave issues may use daily-like reporting windows, while a final

View file

@ -1297,8 +1297,13 @@ The deliberative newsroom boundary is live under this authority map:
candidate agenda, its exact digest, and commit admission. The initial
publication editor owns the first prose proposal. The admitted agenda remains
the sole owner of article selection, order, focus, citation grouping, and
framing. The copy desk owns factual judgment. `WorldKernel` remains the only
world-event writer. Query results and editorial proofs own nothing.
framing. The copy desk owns factual judgment. The Night Editor owns
editorial-quality acceptance and article-specific findings after factual
clearance. The publication rewrite desk owns prose repair for either desk's
rejection, and the shared publication-review primitive owns the fixed review
order: copy desk first, Night Editor second. `WorldKernel` remains the only
world-event writer. Query results, editorial proofs, and both review verdicts
own no world facts.
- **Inputs:** one exact campaign revision, publication title and voice, article
budget, source-receipt ancestry, and newsroom contract version. Through the
existing generic agent harness, the selector issues deterministic bounded
@ -1343,28 +1348,36 @@ The deliberative newsroom boundary is live under this authority map:
each article on its focus record's consequential fact, and may not widen or
regroup the selection. Record bookkeeping, memory retention, maintained
warnings, and procedure are not automatically the lede merely because they
are recent. The copy desk and rejected-copy rewrite desk see the same
selected-record projection.
- **Grounding path:** accepted stable IDs lower once into the existing
are recent. The copy desk, Night Editor, and publication rewrite desk see the
same selected-record projection.
- **Review and grounding path:** accepted stable IDs lower once into the existing
self-contained semantic audit with source news IDs, channels, reliability,
exact account text, assertion status, event IDs, supported identity
attributes, institutions, populations, and places. Reader-facing numeric
labels are assigned only during lowering. Rejected copy enters one
publication-owned rewrite desk. That agent receives
the exact copy-desk findings, frozen selected-record projection, publication
title and house voice, admitted agenda, and current frozen page. It may
labels are assigned only during lowering. The copy desk first judges every
concrete reader-facing claim against those exact cited records. Only a
factually accepted page reaches the Night Editor, which judges whether the
page makes the admitted throughline and strongest honest case legible from
the same selected records. Either desk may reject through one tagged desk
verdict. Rejected copy enters one publication-owned rewrite desk. That agent
receives the rejecting desk's exact findings, frozen selected-record
projection, publication title and house voice, admitted agenda, and current
frozen page. It may
rewrite all reader-facing prose of only the articles named by the findings:
headline, deck, dateline, and paragraphs. Its deterministic workbench merges
only those complete article rewrites into the page, preserves article
selection, order, section, byline, citations, every unaffected article, and
all world state, then invokes the same copy desk on the whole resulting page.
all world state, then invokes the same shared publication review on the whole
resulting page. Acceptance requires both an accepted factual verdict and an
accepted editorial-quality verdict.
- **Invariants:** private events do not enter the query surface; every selected
stable ID resolves at the bound revision; article facts remain constrained to
selected records; story order, selection, citation grouping, and focus remain
agenda-owned; no proposal can become editor input without one intervening
deterministic proof observation
and an exact-current-digest commit; omitted public facts remain true; query,
proof, editing, copy review, and rewrite cannot mutate the world; the rewrite
proof, editing, factual review, editorial-quality review, and rewrite cannot
mutate the world; the rewrite
desk cannot change an unaffected article or retain a rejected article by
editing around one phrase; resume does not rerun selection or initial
editing. If the admitted selection and citations cannot support an honest
@ -1379,34 +1392,42 @@ The deliberative newsroom boundary is live under this authority map:
set. The copy desk cannot rewrite prose. The rewrite desk cannot select or
delete articles; reorder them; change section, byline, citation membership,
agenda, findings, facts, title, or house voice; rewrite an article absent from
the rejected verdict; persist checkpoints; or accept its own copy. Caches and
renderers cannot decide record equivalence, assertion status, story
the rejected verdict; persist checkpoints; or accept its own copy. The copy
desk cannot decide whether accurate prose is compelling journalism. The
Night Editor cannot relitigate factual grounding, demand facts absent from
the selection, select stories, rewrite prose, or accept its own requested
repair. Caches and renderers cannot decide record equivalence, assertion
status, story
relevance, or fact completion. The newspaper module has no second event-kind
status switch.
- **Shared paths:** fresh composition queries stable records, proposes one or
more agendas, observes the deterministic front-page proof for each proposal,
and commits exactly one current candidate before invoking the editor. Editor,
copy desk, lowering, audit, and rejected-copy rewrite all dereference that
committed agenda's same stable IDs. On rejection, both fresh and resumed
paths derive the affected article set from the exact verdict, invoke the same
rewrite desk with the same frozen facts, title, house voice, and agenda,
merge the complete rewrites through the same deterministic workbench, and
rerun the same copy desk. Resume reconstructs the selected projection from
copy desk, Night Editor, lowering, audit, and rewrite desk all dereference
that committed agenda's same stable IDs. Initial editor output and every
merged rewrite call the same `run_publication_review` primitive: the copy
desk runs first, and only factual acceptance reaches the Night Editor. On
either rejection, both fresh and resumed paths derive the affected article
set from the exact tagged verdict, invoke the same rewrite desk with the same
frozen facts, title, house voice, and agenda, merge the complete rewrites
through the same deterministic workbench, and return through that same
two-desk review primitive. Resume reconstructs the selected projection from
the checkpointed committed agenda and bound ledger without replaying
selection, proof, commit, or initial editing. Accepted-composition
idempotence returns the stored issue.
- **Persistence and compatibility:** reconciliation checkpoint v2 binds the
agenda, draft, verdict, task and exact editorial bindings, immutable receipt
- **Persistence and compatibility:** reconciliation checkpoint v3 binds the
agenda, draft, tagged rejecting-desk verdict, task and exact editorial
bindings, immutable receipt
chain, generation, and parent. The internal contract is
`canopy-ledger-publication-rewrite-desk.v6`; it prevents pre-cut compositions
and checkpoints from winning current idempotence, so phrase-repair
checkpoints cannot resume as rewrite-desk authority. Candidate
`canopy-ledger-night-editor.v7`; it prevents pre-cut compositions and
checkpoints from winning current idempotence. Candidate
agendas and proofs are ephemeral within one bounded selector run; only the
committed agenda and its ordered model-receipt ancestry cross into editor and
reconciliation persistence. Public issue schema v3 and the accepted
composition envelope remain structurally unchanged. The read-only `angle`
reconciliation persistence. Public issue schema v3 remains unchanged.
Accepted composition envelope v2 stores both factual and editorial verdicts,
and current idempotence requires both to be accepted. The read-only `angle`
alias and empty legacy `focus_citation` default can decode historical rows
but cannot authorize a fresh v6 compose.
but cannot authorize a fresh v7 compose.
- **Cut line:** `NewsroomSource`, transient ordinal selection IDs, fact-bundle
deduplication, fixed newest-32/preceding-12/foundational-12 windows,
per-story and total citation ceilings, global record uniqueness across
@ -1416,7 +1437,9 @@ The deliberative newsroom boundary is live under this authority map:
Phrase replacements, finding references, target-field and
paragraph addressing, byte-span resolution, overlap ordering, empty-phrase
deletion, and article deletion are deleted. No compatibility path may retain
any of those operations as an alternate writer. Complete rejected-article
any of those operations as an alternate writer. The copy-desk-only
acceptance path is deleted: no initial draft or rewritten page can lower into
an accepted composition without both desk verdicts. Complete rejected-article
prose is the rewrite unit, and the admitted agenda plus deterministic merge
remains the owner of everything around it.
Query projection and front-page proof reuse the generic agent harness and
@ -1436,12 +1459,15 @@ The deliberative newsroom boundary is live under this authority map:
citations, agenda, and unaffected article bytes survive unchanged; old
finding-ref/span/delete commands are absent from schemas and code; malformed,
partial, duplicate, unknown, or unaffected-article rewrites are rejected;
the same whole-page copy desk judges every merged draft; exact-chain resume
the same whole-page two-desk review judges every initial and merged draft;
Night Editor findings target one exact unique passage and an achievable
rewrite goal without widening the selected facts; exact-chain resume
reaches that same workbench without the initial editor; and no world event or
campaign revision changes. The bounded package, strategic-smoke, formatting,
state, and system-map gates pass at 28/28 focused newspaper tests, 483/483
library tests, and 15/15 strategic-smoke tests. The cut adds no service,
crate, dependency, event authority, or simulation pass.
campaign revision changes. Verification remains bounded to the existing
newspaper library and strategic-smoke targets plus formatting, state, and
system-map gates; the current focused gates pass at 30/30 newspaper tests,
485/485 library tests, and 15/15 strategic-smoke tests. The cut adds no
service, crate, dependency, event authority, or simulation pass.
Run 54 is immutable mechanically complete evidence at exact source
`01581b8576774f370884e331558605e7ef5e1b9b`, implementation
@ -1465,7 +1491,7 @@ or communicated public scope before `NewsIssue` materialization. Revision 27
remains immutable evidence and is not rewritten for this newsroom-only
acceptance.
The resumable composition and rejected-copy rewrite boundary is live:
The resumable composition and publication-review rewrite boundary is live:
- **Owner:** `newspaper::advance_world_newspaper` is the single composition,
checkpoint-advance, resume, and accepted-composition owner. `CampaignStore`
@ -1475,17 +1501,21 @@ The resumable composition and rejected-copy rewrite boundary is live:
rewrite desk proposes complete reader-facing prose for rejected articles
only. Its deterministic workbench owns affected-article membership, frozen
field preservation, merge, local structural validation, and reinvocation of
the copy desk. The copy desk alone accepts or rejects factual grounding.
the shared publication review. The copy desk alone accepts or rejects factual
grounding; the Night Editor alone accepts or rejects editorial quality after
grounding passes. The same rewrite desk handles the tagged rejection from
either owner and cannot accept its own result.
- **Inputs:** one exact `Campaign` snapshot, title, editorial voice, article
budget, model port, and `CampaignStore`. A publication-task binding covers
campaign id and revision plus title, voice, and budget. The editorial binding
additionally covers the exact ordered public-record projections derived from
the bound `NewsIssue` and `Event` ledger. Each rewrite action receives the
admitted agenda, current frozen page, complete exact copy-desk verdict,
admitted agenda, current frozen page, complete exact rejecting-desk verdict,
selected frozen facts, publication title, and house voice.
This lets the owner find the task's checkpoint chain while still rejecting
same-task source drift before inference.
- **Outputs:** acceptance is one immutable persisted composition. A still
- **Outputs:** acceptance is one immutable persisted composition containing an
accepted factual verdict and an accepted editorial-quality verdict. A still
rejected page is typed `Pending`, carrying the current immutable checkpoint
and complete ordered receipt chain; pending is not a
`WorldNewspaperCompositionFailure`. Fatal model, schema, local-validation,
@ -1494,33 +1524,41 @@ The resumable composition and rejected-copy rewrite boundary is live:
complete reader-facing prose replacement for every rejected article and none
for any other article. The workbench emits a merged full-page draft only
after preserving the frozen fields and unaffected articles.
- **Persistent and derived state:** the initial copy-desk rejection persists its
narrative-selection, editor, and copy-desk receipts, then publishes
generation zero before any rewrite action. Each later rejected action persists
its new receipts before
- **Persistent and derived state:** the initial review rejection persists its
narrative-selection, editor, copy-desk, and, when factual review passed,
Night Editor receipts, then publishes generation zero before any rewrite
action. Each later rejected action persists its new receipts before
appending one checkpoint with task and editorial bindings, generation,
parent id, typed origin, admitted editorial agenda, current private draft,
rejected verdict, ordered receipt ids, and receipt-chain digest. The rejected
article-index set, per-article rewrite schema, immutable-field comparison,
selected fact projection, and chain tip are derived and validated; they are
not parallel state owners. Three actions per call remain only the current
tagged rejecting-desk verdict, ordered receipt ids, and receipt-chain digest.
Checkpoint v3 verifies that the latest review receipt matches the desk named
by that rejection. The rejected article-index set, per-article rewrite schema,
immutable-field comparison, selected fact projection, and chain tip are
derived and validated; they are not parallel state owners. Each persisted
verdict is also validated so acceptance is true exactly when its finding set
is empty.
Three actions per call remain only the current
advance cadence. Reaching that boundary returns `Pending` and does not make
rejection terminal.
- **Resume and idempotence:** every call checks the accepted composition marker
before checkpoint discovery. Otherwise it loads the unique checkpoint tip,
reloads every typed receipt, validates checkpoint identity, task and exact
editorial bindings, generation and parent links, strict receipt-prefix
growth, agenda admission and editor alignment, draft, rejected verdict and
rejected article membership, then reconstructs the same rewrite workbench. A
growth, agenda admission and editor alignment, draft, tagged rejecting-desk
verdict, rejecting-desk receipt, and rejected article membership, then
reconstructs the same rewrite workbench. A
resumed action
includes the checkpoint id and every prior receipt in its causal ancestry and
never invokes the initial editor. Acceptance
persists its receipts and a composition linked to the source checkpoint;
never invokes the initial editor. Acceptance persists its receipts and a
composition-v2 envelope linked to the source checkpoint only when both
review verdicts accept;
later calls return that composition without model work even though the
historical pending chain remains immutable.
- **Forbidden writers:** the initial editor, rewrite desk, and copy desk may
propose, rewrite, and judge within their named seams but cannot persist or
resume reconciliation state. The rewrite desk cannot alter article count,
- **Forbidden writers:** the initial editor, rewrite desk, copy desk, and Night
Editor may propose, rewrite, or judge only within their named seams and cannot
persist or resume reconciliation state. The copy desk cannot own editorial
quality; the Night Editor cannot own factual admission or prose; neither may
bypass the other. The rewrite desk cannot alter article count,
selection, order, section, byline, citations, agenda, unaffected articles,
findings, facts, world state, or acceptance. Registry, strategic smoke,
renderers, JSON result/checkpoint projections, world cells, Nemesis, clocks,
@ -1529,7 +1567,9 @@ The resumable composition and rejected-copy rewrite boundary is live:
already accepted issue to repair editorial copy.
- **Shared paths:** Registry calls `advance_world_newspaper` directly. Strategic
live per-wave, missing-issue recovery, and final-combined composition use a
thin `compose_persisted_newspaper` delegate to that same owner and store. A
thin `compose_persisted_newspaper` delegate to that same owner and store. All
entry paths use the same initial-or-resumed rewrite workbench and the same
ordered copy-desk-then-Night-Editor review primitive. A
pending interim issue is recorded in its immutable wave report and does not
stop later strategic waves; recovery resumes it from `CampaignStore`. A
pending final combined issue writes pending result/status projections and
@ -1553,12 +1593,14 @@ The resumable composition and rejected-copy rewrite boundary is live:
phrase-edit command algebra, finding reference catalog, field and
paragraph target resolution, byte ranges, overlap ordering, whitespace seam,
and article-delete branch before adding the rejected-article rewrite command.
None remains as a compatibility writer.
None remains as a compatibility writer. Copy-desk acceptance is no longer
publication acceptance, and no second rewrite mechanism was added for Night
Editor findings.
- **Verification layer:** focused tests prove typed harness exhaustion,
generation zero plus one append per rejected rewrite, typed pending after
three `REWRITE_DESK_ACTIONS_PER_ADVANCE`, exact-chain resume without the
initial editor, cumulative
receipt and copy-desk ancestry, accepted-composition idempotence without
receipt and review ancestry, accepted-composition idempotence without
inference, same-task source-drift rejection and fork rejection before
inference, typed legacy import through the common validator, and Registry
preservation of pending state. Implemented negative tests require the exact
@ -1568,12 +1610,16 @@ The resumable composition and rejected-copy rewrite boundary is live:
exposes only the rejected article-index enum and complete headline, deck,
dateline, and paragraph fields; it exposes no section, byline, citations, or
finding reference. Focused path tests prove the same selected records, title,
house voice, agenda, and exact findings reach the desk; the same whole-page
copy desk judges the merge; repeated rejection may invoke another whole
house voice, agenda, and exact findings reach the desk; initial drafts and
merged rewrites use the same ordered publication review; a copy-desk
rejection skips the Night Editor, while factual acceptance must still obtain
Night Editor acceptance; a Night Editor rejection returns through the same
full-article rewrite path; repeated rejection may invoke another whole
rewrite without another initial editor; exact-chain resume preserves receipt
ancestry; and accepted output retains the admitted source IDs. The current
verified gates are 28/28 focused newspaper tests, 483/483 library tests, and
15/15 strategic-smoke binary tests.
ancestry; and accepted output retains the admitted source IDs plus both
verdicts. Strategic recomposition receipt v2 binds and validates both verdict
digests while historical receipt v1 remains readable evidence. No event,
world-simulation, selector, agenda, or source-provenance authority moved.
The typed issue retains exact event IDs, channels, reliability, source
revision, and model receipts as audit data. Its internal issue time is derived
@ -1585,8 +1631,9 @@ commit always project the final completed wave, matching the top-level counts
and persisted campaign head; per-wave history remains under `waves`. The reader
renderer has no path to provenance fields and escapes all model- and
consumer-supplied plain text before Markdown emission; the provenance renderer
applies the same plain-text boundary to its audit data. Neither editor, copy
desk, renderer, nor receipt persistence can write world state.
applies the same plain-text boundary to its audit data. Neither editor, rewrite
desk, copy desk, Night Editor, renderer, nor receipt persistence can write
world state.
#### Acceptance-driver per-wave newspaper recovery
@ -1605,12 +1652,14 @@ desk, renderer, nor receipt persistence can write world state.
already exists, its immutable receipt and exact named reader/audit files are
additional inputs.
- **Output:** acceptance writes one separately named immutable recomposition
checkpoint containing the issue, grounding verdict, and newspaper model
receipts, plus the rendered reader and audit files. Its receipt binds the
checkpoint containing the issue, grounding verdict, editorial verdict, and
newspaper model receipts, plus the rendered reader and audit files. Its
receipt binds the
narrowed source campaign, recovery boundary, title/voice/article-budget
contract, issue, model-receipt collection, expected filenames, and both
rendered byte streams by digest. Current v3 receipts additionally bind the
complete typed grounding verdict by digest. The configured boundary is also
rendered byte streams by digest. Current recomposition v2 receipts bind the
complete typed grounding and editorial verdicts by digest. The configured
boundary is also
projected through run status and success or failure result artifacts. The
driver fills only the missing newspaper fields in its in-memory result
projection. Pending reconciliation
@ -1637,8 +1686,9 @@ desk, renderer, nor receipt persistence can write world state.
consumer recovery and cannot repair mechanics.
- **Shared paths:** live per-wave composition, recovery composition, and final
combined composition all call the thin `compose_persisted_newspaper` delegate
into `advance_world_newspaper`, including the same grounding/copy-desk,
checkpoint-resume, and receipt-persistence owner. A later resume advances a
into `advance_world_newspaper`, including the same ordered factual and
editorial review, checkpoint-resume, and receipt-persistence owner. A later
resume advances a
pending library checkpoint without rerunning the editor. Once accepted, it
consumes the successful recomposition artifact instead of paying for the
newspaper again. The driver recomputes its wave, source-campaign, and
@ -1646,11 +1696,13 @@ desk, renderer, nor receipt persistence can write world state.
boundary, and checks the exact issue value, typed model-receipt set, reader
bytes, and audit bytes against their immutable digests. A current-schema issue
and grounding verdict are additionally deserialized, their grounding digest
is required, and the issue is rendered again. A historical v2 accepted issue
is required, and the issue is rendered again. Current recomposition v2 also
deserializes the accepted editorial verdict and requires its exact digest. A
historical v2 accepted issue
is structurally deserialized only as v2 and is not reinterpreted through the
current issue type or renderer; its original receipt owns those historical
bytes, and the driver carries its JSON only as an inert result projection.
Historical v2 predates `grounding_digest`, so this local validator requires
Historical issue v2 predates `grounding_digest`, so this local validator requires
accepted status but does not claim a retroactive digest for its complete
grounding verdict. Whole-checkpoint integrity instead remains anchored by the
unchanged Run 51 source-root/archive hash and Run 52 before/after artifact
@ -1659,9 +1711,10 @@ desk, renderer, nor receipt persistence can write world state.
renderer output are no longer authorities over a historical accepted issue.
Raw digest verification is not a migration path and cannot create, repair, or
reaccept a paper: all applicable original source, contract, filename, issue,
receipt-set, and byte bindings must already be present and exact. Current v3
also requires its exact grounding digest; historical v2 keeps the explicitly
bounded accepted-status plus archive/manifest proof described above.
receipt-set, and byte bindings must already be present and exact. Current
issue v3 requires its exact grounding digest, and recomposition v2 additionally
requires exact editorial acceptance and digest; historical issue v2 keeps the
explicitly bounded accepted-status plus archive/manifest proof described above.
Strategic state and per-wave artifacts remain forbidden writers.
- **Verification layer:** the focused boundary regression proves that a second
wave is recomposed from only its newly appended news row while retaining the
@ -1676,8 +1729,9 @@ desk, renderer, nor receipt persistence can write world state.
skipped while later missing issues are selected. Dedicated regressions prove
that historical v2 preserves its recorded original recovery boundary and
accepts exact historical bytes without current rendering while rejecting byte
drift, and that current v3 still requires typed deserialization, exact
rendering, and an exact grounding digest. The strategic binary gate is 15/15.
drift, that current issue v3 still requires typed deserialization, exact
rendering, and an exact grounding digest, and that current recomposition v2
rejects editorial-verdict drift. The strategic binary gate is 15/15.
The first-wave limit is now an explicit closed boundary rather than inferred
recovery: when wave one is selected, the driver refuses to compose without a

View file

@ -326,7 +326,7 @@ data_flow:
current_status:
summary: Ghostlight's generic consumer boundary admits sparse WorldSeeds, runs the hundreds-class parallel cell machinery used by Dungeon, and projects grounded newspapers from committed public events. Local acceptance proves 1,000 subjects across 200 cells and two-wave durable named-person emergence. Exact-source provider run 38 at `596e50679244b5d42b4cfdf70d723f815751b8ff` resumed the preserved world at revision 8 without replaying compilation or four committed locality elaborations, recovered 51 of 52 strategic-wave cells on pulse three and the final cell on pulse four, then committed all six waves through revision 14. Pushed commit `3a69306f3004e4af2cd57bba612a6ad8d1b8132f` implements the mapped clock-consequence owner and is verified locally: world clocks own declared consequence text and exact observable scope; a bounded agent may propose legacy scope binding, while `WorldKernel` alone admits it and materializes stable threshold-crossing events and public news through the common mutation path. Binding, emitted-event ancestry, mutation receipts, and the next newspaper boundary persist atomically. Exact-source run 39 resumed run 38 without replaying its six committed waves, bound clock consequences, committed six new waves through revision 21, and emitted Issues 7 through 12 plus a final digest. This completes the mechanical provider acceptance path; all inherited wave 1-6 checkpoint hashes match run 38 exactly and live services were unchanged. Independent blind editorial review returns FAIL: only Issue 7 approaches spicy, while Issues 8-12 are dominated by plans, filings, inspections, warnings, and abstract relationship deltas without betrayal, scandal, public reaction, sustained reversal, or material lived cost. That run-39 diagnosis is superseded for the current phase: run 51 closes the world and reconciliation mechanics, and the active defect belongs to newsroom narrative selection and self-contained semantic provenance over immutable facts. Independent grounding review also returns FAIL: Issue 9 inflates a planned expedited agenda into completion, while Issue 8 assigns unsupported feminine pronouns to Sela Venn and Eryn Tal. Other grounding mechanics pass: 208/208 citations resolve, no future events appear, no replay occurred, the player remained unchanged, all 116/116 manifest entries verify, the archive is exact, and root independently confirmed the live service PIDs and invocation IDs remained unchanged. Editorial and grounding acceptance are terminally failed for run 39. Eight titled elaborators use the generic agent harness under deterministic weighted scheduling, bounded parallelism, and Luna/Terra/Sol routing. Workers remain proposal-only; deterministic admission binds exact frozen schedules, dispatch, receipts, conflicts, and semantic verification, and `WorldKernel` alone owns atomic CultCache persistence. Destination reconciliation is a private transactional workbench, provider schema compatibility is lowered once at the shared model-connector boundary, and durable elaboration and strategic-pulse checkpoints bind to their canonical mutation proofs. The generic ModelAgent harness remains consumer-neutral transport. Provider run 23 remains stopped; earlier failed runs and checkpoint archives remain immutable provenance. The live daemons remain outside the acceptance body. Dungeon play remains regression pressure, the Delvehold game-side adapter remains unimplemented, and unpublished Mars and Kalsa destination previews remain unapproved.
provider_acceptance_checkpoint: Exact-source run 56 at `c34c4b1f94706661cdc35d5314ea23347bda6fd7` is an immutable mechanically complete newspaper-only run over the frozen revision-27 simulation. Independent grounding and blind editorial reviews both fail. The query-backed selector and deliberative lead challenge worked: the newsroom chose the consequential lead. The remaining repair path then reduced rejected copy through phrase-level grounding reconciliation, producing compliance prose rather than a source-safe journalistic structure. Run 55 and its exact hashes remain immutable prior evidence.
implementation_checkpoint: Pushed exact commit `0c1400985c061c0db44969288846eff79eeed69a` owns contract `canopy-ledger-publication-rewrite-desk.v6` over the deliberative selector. Phrase-level repair is replaced by a publication-owned full-article rewrite desk over the admitted selection, exact canonical public records, rejected articles, and complete copy-desk findings. The deterministic workbench freezes article selection, order, sections, bylines, citations, and unaffected articles; the rewrite desk may reconstruct all reader-facing prose for every rejected article, then the same independent copy-desk agent rechecks the whole page as factual judge. Typed rewrite checkpoints preserve the exact draft, verdict, selected records, and receipt chain for resume without editor or simulation replay. Verification passes 28/28 focused newspaper tests, 483/483 library tests, and 15/15 strategic-smoke tests. The audit explicitly discloses when an immutable source account reaches the shared 240-character public-event summary boundary: it shows the complete stored account and asserts nothing beyond it, so reviewers must not mistake that owned world boundary for newsroom truncation. No fact, world, or event authority moves into the rewrite desk. The separate kernel publicity defect remains recorded and revision 27 remains immutable.
next_action: Preserve immutable runs 55 and 56 and the exact live services; stage pushed commit `0c1400985c061c0db44969288846eff79eeed69a` against run 56's frozen revision-27 campaign and accepted per-wave publications. Run one immutable final-newspaper-only acceptance with no world or per-wave replay, retaining and resuming typed rewrite checkpoints rather than rerunning the publication writer. Require exact newspaper, audit, result, archive, manifest, provenance, and service-isolation proof, then obtain independent blind editorial and grounding reviews. Deliver the actual copy only if both accept. Keep the weekly-style current-issue model; defer multi-publication Personas, TeX layout, and engraved cuts.
provider_acceptance_checkpoint: Exact-source run 57 at `0c1400985c061c0db44969288846eff79eeed69a`, using rewrite-desk contract v6, is an immutable mechanically complete newspaper-only run over frozen world revision 27 with 18 waves, 363 events, and 853 news rows. Newspaper SHA-256 is `d90758f411193aa6e86ae2e8cb390650d9b8a58eac77ef87018bd61e9a668c57`, audit is `895268bc22aa3e4176b1da31388e85327f0fe11e4ea4ea4ee600b4e3270a8eed`, and archive is `241354b669ee2357c9bb7a06e10e0b93378637621ff2b8b27ab7cf35c2e44e28`. Mechanical grounding accepts. Independent blind editorial review fails: the lead and other stories remain administrative, lived stakes stay abstract, no named accountable Greathold opposition appears, the severed hands are buried without court responses or suspects, and the seed-vault story repeats procedure. The admitted editorial agenda is materially sharper than the rendered copy, so world simulation, ledger access, and lead selection are not the active blocker.
implementation_checkpoint: The completed local Night Editor cut owns contract `canopy-ledger-night-editor.v7` and is verified but not yet committed or provider-accepted. The independent copy-desk agent remains the sole factual judge. After factual clearance, the publication-owned Night Editor judges editorial quality against the admitted agenda and selected facts; a rejection names exact article passages and achievable editorial goals, then enters the same publication-owned full-article rewrite path used for factual rejection. Every revision returns through copy-desk judgment and Night Editor judgment before acceptance. The Night Editor gains no fact, world, event, selection, or persistence authority. Verification passes 30/30 focused newspaper tests, 485/485 library tests, and 15/15 strategic-smoke tests. The shared 240-character public-event summary disclosure remains part of the audit. The separate kernel publicity defect remains recorded and revision 27 remains immutable.
next_action: Commit the exact verified Night Editor v7 worktree and push that resulting commit; do not claim a hash until it exists remotely. Preserve immutable runs 55 through 57 and the exact live services, then stage that exact pushed commit for immutable Run 58 as a newsroom-only continuation from run 57's frozen revision-27 campaign and accepted per-wave publications. Replay no world mechanic or wave. Retain and resume typed rewrite checkpoints, and require both internal verdicts—copy desk factual acceptance and Night Editor editorial-quality acceptance—plus exact newspaper, audit, result, archive, manifest, provenance, and service-isolation proof. Then obtain independent blind editorial and grounding acceptance and deliver the actual copy only if both accept. Defer multi-publication Personas, TeX layout, and engraved cuts.
gestalt_population: Gestalt Personas own shared population baselines; persistent member deltas own named individuality; WorldKernel materialization and approval-gated fission preserve lineage and identity. Materialisation/folding changes only representation and the exact member delta, advances resolution epoch, and retires the old cover; it has no Gestalt-wide effect authority. Selected actionable member exceptions are mandatory Projector perspective owners, so aggregation cannot silently erase their decision. Presence projection is limited to nearby active leaves and exact-location dormant members, includes reciprocal player relationship evidence, and may propose an earned cast without committing it. Simulation cells are derived covers only.