mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #572] [MERGED] Pixelforge: the seal holds after storage — a read-side fold that cannot sever an honest save #1032
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1032
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/572
Author: @kolacheee
Created: 8/25/2026
Status: ✅ Merged
Merged: 8/25/2026
Merged by: @kolacheee
Base:
staging← Head:fix/566-brief-revalidate📝 Commits (6)
73f68c6fix(pixelforge): a seal that stopped holding the moment the brief was stored9043ceadocs(pixelforge): the sealed spec was still promising a guarantee that ended at the seal4d2d4d3docs(pixelforge): two comments corrected to what measurement showed2359de6test(pixelforge): the tag fold gets the case the review asked for09c5b90fix(pixelforge): the theme fold kept its own copy of a vocabulary it does not ownb16bd40test(pixelforge): the proto map case hands its stubs back📊 Changes
7 files changed (+722 additions, -9 deletions)
View changed files
📝
artifacts/pixelforge-0.12.0.zip(+0 -0)📝
packages/pixelforge/client.js(+147 -3)📝
packages/pixelforge/docs/brief-schema.md(+21 -0)📝
packages/pixelforge/manifest.json(+2 -2)📝
packages/pixelforge/src/18-brief.js(+112 -1)📝
packages/pixelforge/src/20-world.js(+35 -2)📝
packages/pixelforge/test-brief.mjs(+405 -1)📄 Description
Pull request
Linked issue
Closes #566
Why this change
prosperitysilently compiled 10 zones where the brief asks 41 with zero warnings; hostilescale/place.kindsilently degraded the whole generated world to the 3-zone legacy layout. The forward-compat angle makes this legitimately reachable — a newer build's new enum value downgrades an older build's world the same way._configBriefwould (a) sever an honest save on its first load —validate()is not byte-idempotent (a brief that took repairs at seal time re-validates with an empty_repairs, and cast key-order differs between seal paths; either alone re-hashes the brief and trips the S5 severance machinery, which keys on brief identity) — and (b) re-run the seal-time capacity policy, recreating the exact silent content loss the issue exists to close (two existing harness fixtures deliberately shrinkscalepost-seal and would lose places on every load). Both hazards were driven red against the rejected design before the shipped one was written.What changed
pixelforge(catalog-excluded; the uncatalogued-manifest sweep validates it).src/18-brief.js:PF.brief.foldStored(stored, seed)— a read-side fold under the contract seal time may DROP; read time may only FOLD. It deep-copies (mandatory:validate()reorders the caller's cast in place on the leader-hoist path), folds ONLY table-key values (theme,scale,surround,prosperity,places[].kind,features[].tag,cast[].kind/tint/standing) to the same defaults seal time would have chosen, never touches lengths/names/ids/prose, never re-runs capacity policy, and records its work in_foldson the private copy — surfaced asworld.briefFoldsonly when non-empty, never serialized, never written back to metadata.src/20-world.js:build()calls the fold between the existing shape gate andcompile()._configBriefis byte-untouched — the load path still returns the stored object by reference, so brief identity (the severance hash) structurally cannot move: nothing anywhere hashes the folded copy._configBriefdemonstrably severs an honest save on first load).docs/brief-schema.md: the seal-scope guarantee language updated to describe the fold.Package and security impact
pixelforgeonlyValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Boxes are the human contributor's list. Agent-verified, independently replayed by a second adversarial agent:
foldStoredhas exactly one call site and its output never escapes except as the unserializedbriefFolds) and empirically (the rejected design replayed: honest save severs on first load,briefHash 2081522237 → 73619670; the shipped design: identical hash, nothing severed; a genuinely changed brief still severs — the machinery is not deadened).validate()breaks an existing fixture (capacity policy re-run strips content); deleting the deep copy severs immediately (the in-place cast reorder reaching the stored bytes).prosperity/scale/place.kindnow compile the folded default's full world (e.g. 41 zones, tile-identical to the honest equivalent) instead of 10-zone silent loss or legacy-3-zone degrade._ids.zonesvalue-claim does not reproduce (that path is prototype-safe viaMap(Object.entries(…))); the residual hole there is anullshape passing the type gate, with identical pre/post behavior — one boolean if ever wanted, deliberately out of scope.Documentation impact
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.