Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/INDEPENDENT-REFERENCE-COMPARISON.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Pinned Checkup 8e48aa1806ad2c856d35e1a68f08128b4673f2c5, parsePerfectionTracker
## Independent catalogue, walnut and cart parity
Compared exact Checkup 8e48aa1806ad2c856d35e1a68f08128b4673f2c5 and Predictor b9e7c717b94924ae8bdb10c59f96eebc8fa7ab08 sources. All 551 reference catalogue items agree (cooking/fishing/shipping by ID and case-folded name, museum by ID and normalized name, crafting by normalized recipe name); Checkup's extra shipping Clam is excluded per 1.6 classification. All 69 walnut keys and reward counts agree (130). Executed upstream object/furniture selection, CSRandom and xxHash for 240 visits using four seeds, two RNG modes and year 2 spring/winter and year 25 autumn; ordered stock IDs, prices, quantities, independent offers and book title all match. Stored expected outputs in tests/fixtures/competitor-parity.json; existing public/licenses notices apply. Not actual gameplay, no year-1 guarantee or day-adjust parity, no precise farm coordinate approval, no real device or release approval. No raw game maps or art copied.

## Real 1.6.8 shipping comparison

Opened the same pinned public 1.6.8 save in this tool and Stardew Checkup 5.0.5. Checkup reports 4/155 shipping entries and this tool reports 3/154. The 151 remaining items agree after case-normalizing the egg names. The save contains a shipped Clam, counted by Checkup's reference. The game changelog reclassifies Clam as a fish in 1.6 and the Shipping Collection lists it under Fishing. The tracker reports Clam, Oyster and Sunfish as known outside the current Full Shipment checklist. The audit independently verifies the three counted entries and three known exclusions. Both tools show zero museum donations; this save supplies no positive museum or Community Center donation evidence and no in-game Perfection score.

## Crop, Fair and Grandpa comparison
Pinned Stardew Profits bc8b72255e6960360415de9736756496971ccdcf: all 43 crop growth, regrowth, normal raw price and guaranteed yield match; all 34 shop seed prices match selected source. Four owned-seed examples differ in cost intentionally because our model accepts user-entered owned seed cost. Upstream harvests() independently executed for each of 28 planting days of each crop: 1,204 reference scenarios captured for CI, restricted to single-season no-fertilizer normal-quality guaranteed output, not expected RNG quality or full processing parity. Fair threshold table and formula from https://stardewvalleywiki.com/Stardew_Valley_Fair ; actual sale price input. Correct imported fruit and Fiddlehead Fern category. Grandpa from pinned Checkup parseGrandpa and https://stardewvalleywiki.com/Grandpa ; correct 1975-point friendship observation threshold, ceremony implies completion, older saved observations need re-merge. Added threshold regression tests. No independent actual-game results for these tests; exact map geometry, recipe ingredient/unlock parity and real device verification remain pending. r3 keeps compatible prior layout/backup bindings; it does not relabel legacy observations.

Expand Down
9 changes: 9 additions & 0 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ Reference-pack candidate: the lock records exact Git blob hashes of every manife

## Consolidated stop-scope acceptance (2026-11-28)
R28 main c1d484d8; R29/R30 candidates cover geode alternatives, bounded stock planning, museum practice arrangement and observed positions, walnut coordinate markers and golden-parrot evidence, and observed-only farm coordinates. Independent pinned 1.6.8 sample audit 46116735483: 698 coordinate records plotted, 697 editable placements, one observed-only; not a collision fix. R31 candidate compares eight starter layouts using pinned masks, occupied footprint deductions and reachability. Scope frozen to existing 16 routes; no new tools needed for acceptance. The current 182-intent review remains 142 reference implemented, 35 partial, 2 mixed, 3 excluded until a separate evidence-based re-review. Record exact final CI/deployed revision before acceptance. Production remains HOLD pending actual matching-version fixtures, rights, domain, US-localized SERP, real physical devices and paired rollback. No approval flag changed.


## Production cutover

Use `npm run build:production` and deploy `dist-production` on the public Pages project after choosing the domain and recording the existing release approvals. Build the workspace with `npm run build:workspace`, output `dist-workspace`, and bind it to the separate `app` subdomain. Configure the public build with both HTTPS origins. Before redirecting the old workspace origin, export local project and progress backups and verify restore on the new origin. IndexedDB is origin-specific.

Verify the exact commit on both hosts. On the public host check all 16 status codes, matching canonical and sitemap URLs, crawlability, no noindex header, and the 404 response. On the workspace confirm noindex and local save import. On separate iPhone Safari and Android Chrome devices, verify placement, pan, undo, opening and canceling a shared link, and a local save import. Record the commit and the device/browser for each run. Run the local fixture audit with the claimed 1.6.15 observations before expanding support. A pinned 1.6.8 structural sample does not establish the 1.6.15 game results or a perfection score.

Once both custom hosts pass, set up a path-preserving 301 from the old public Pages host, verify a deep tool route and a shared-layout link, then submit the custom-domain sitemap in Search Console. Keep workspace backups available through the migration.
30 changes: 30 additions & 0 deletions scripts/audit-public-save-reference.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {SAVE_COLLECTION_IDS} from '../src/lib/save-collection-ids.ts';
import {CATALOGS} from '../src/lib/game-collections.ts';
import {observedFarmPreview} from '../src/lib/observed-farm-preview.ts';
import assert from 'node:assert/strict';
import {readFile} from 'node:fs/promises';
Expand Down Expand Up @@ -28,6 +30,34 @@ try{
// Independent XML extraction, not another call to the project's parser.
const plotted=observedFarmPreview(s,result.plan,result.issues);assert.equal(plotted.plotted.length,698);assert.equal(plotted.unlocated,0);assert.equal(plotted.editable,result.imported);assert.equal(plotted.observedOnly,result.issues.length);console.log('Observed coordinate review: '+plotted.plotted.length+' plotted; '+plotted.editable+' editable; '+plotted.observedOnly+' observed-only. No placement override.');
const raw=JSON.parse(execFileSync('python3',['scripts/public-save-story-baseline.py',process.argv[2]],{encoding:'utf8',maxBuffer:2*1024*1024,stdio:['ignore','pipe','pipe']}));
for(const kind of ['shipping','museum']){
const ids=raw[kind],actual=s.progress.collections?.[kind];
if(ids===null){assert.equal(actual,undefined);console.log('Independent XML '+kind+': no readable dictionary.');continue}
const map=SAVE_COLLECTION_IDS[kind],names=kind==='shipping'?new Set(CATALOGS.shipping.map(row=>row.name)):null;
const recognized=new Set(),outsideTarget=new Set();let unknown=0;
for(const id of ids){
if(Object.hasOwn(map,id)&&(!names||names.has(map[id])))recognized.add(map[id]);
else if(kind==='shipping'&&Object.hasOwn(SAVE_COLLECTION_IDS.fishing,id))outsideTarget.add(SAVE_COLLECTION_IDS.fishing[id]);
else unknown++;
}
assert.deepEqual([...actual.done].sort(),[...recognized].sort());
assert.equal(actual.unmapped,unknown);
assert.deepEqual([...(actual.outsideTarget??[])].sort(),[...outsideTarget].sort());
if(kind==='shipping'){
assert.deepEqual([...actual.done].sort(),['Daffodil','Fiber','Leek']);
assert.deepEqual([...actual.outsideTarget].sort(),['Clam','Oyster','Sunfish']);
}
console.log('Independent XML '+kind+': '+recognized.size+' positive entries, '+outsideTarget.size+' known outside checklist, '+unknown+' unmatched IDs.');
}
let bundleFlags=0;
for(const [id,slots] of Object.entries(raw.bundle_donations)){
if(!slots.length)continue;
const bundle=s.progress.bundles?.find(row=>row.id===Number(id));
assert.ok(bundle);
assert.deepEqual(bundle.slots.flatMap((slot,i)=>slot.donated===true?[i]:[]),slots);
bundleFlags+=slots.length;
}
console.log('Independent XML Community Center: '+bundleFlags+' positive donation flags compared.');
const q=s.progress.quests,story=q?.story;
const pairs=[
['notes',raw.notes,story?.notes,[...NOTE_IDS,...JOURNAL_IDS],story?.unknownNotes],
Expand Down
16 changes: 11 additions & 5 deletions scripts/browser-smoke.mjs

Large diffs are not rendered by default.

40 changes: 39 additions & 1 deletion scripts/public-save-story-baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,42 @@ def unique(parent, name, tags):
player = root.find('player')
team = root.find('team')
orders = root.findall('completedSpecialOrders') + (team.findall('completedSpecialOrders') if team is not None else [])
print(json.dumps(dict(notes=unique(player,'secretNotesSeen',{'int'}),events=unique(player,'eventsSeen',{'int','string'}),achievements=unique(player,'achievements',{'int'}),orders=unique(root,'completedSpecialOrders',{'string'}) if len(orders)==1 and root.find('completedSpecialOrders') is not None else unique(team,'completedSpecialOrders',{'string'}) if len(orders)==1 else None)))
locations = root.findall('locations/GameLocation')

def location(name):
matches = [node for node in locations if node.findtext('name') == name]
return matches[0] if len(matches) == 1 else None

def dictionary(parent, name, key_path, positive_path=None):
node = parent.find(name) if parent is not None else None
if node is None or node.get('{http://www.w3.org/2001/XMLSchema-instance}nil') in ('1', 'true'):
return None
ids = set()
for entry in node:
key = entry.findtext(key_path + '/string') or entry.findtext(key_path + '/int')
if entry.tag != 'item' or not key:
return None
if positive_path is not None:
quantity = entry.findtext(positive_path)
if quantity is None or not quantity.isdecimal():
return None
if int(quantity) == 0:
continue
ids.add(key.removeprefix('(O)'))
return sorted(ids)

center = location('CommunityCenter')
definitions = root.find('bundleData')
bundle_donations = {}
if center is not None and definitions is not None:
defined_ids = {node.rsplit('/', 1)[-1] for entry in definitions.findall('item')
if (node := entry.findtext('key/string'))}
for entry in center.findall('bundles/item'):
bundle_id = entry.findtext('key/int')
if bundle_id in defined_ids:
bundle_donations[bundle_id] = [i for i, flag in enumerate(entry.findall('value/ArrayOfBoolean/boolean'))
if flag.text == 'true']

print(json.dumps(dict(shipping=dictionary(player, 'basicShipped', 'key', 'value/int'),
museum=dictionary(location('ArchaeologyHouse'), 'museumPieces', 'value'),
bundle_donations=bundle_donations, notes=unique(player,'secretNotesSeen',{'int'}),events=unique(player,'eventsSeen',{'int','string'}),achievements=unique(player,'achievements',{'int'}),orders=unique(root,'completedSpecialOrders',{'string'}) if len(orders)==1 and root.find('completedSpecialOrders') is not None else unique(team,'completedSpecialOrders',{'string'}) if len(orders)==1 else None)))
4 changes: 2 additions & 2 deletions src/config/reference-pack-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
},
{
"path": "src/lib/save-progress.ts",
"gitBlob": "32e1a1749dc3bbd9dec1ab1e632de7f0697e7207"
"gitBlob": "e612f950aab054cbbb7d34b69c42e3d04ec2a3a4"
},
{
"path": "src/lib/save-quests.ts",
Expand Down Expand Up @@ -313,5 +313,5 @@
"gitBlob": "82f03cb8e496ef429736f978a12c815418318e5a"
}
],
"id": "ref-pc-1.6.15-20261128-r32"
"id": "ref-pc-1.6.15-20261128-r33"
}
8 changes: 4 additions & 4 deletions src/config/tool-guides.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"steps": [
[
"Choose a farm map",
"Select one of eight terrain references or an independent practice landscape. Use a starter scene or blank map, then preview one of 16 editable examples before replacing your layout."
"Start on Standard Farm with its starter structures. Choose another terrain reference or practice landscape from the landscape menu, or preview one of 16 editable examples."
],
[
"Check the layout",
"Place crops, buildings and paths, inspect terrain restrictions and coverage, and use undo, selection or move tools. Reference maps do not include every dynamic object or exact game collision."
],
[
"Share, export or continue",
"Generate a layout code for a supported built-in reference, or export editable JSON or PNG. Personal screenshots, saves and persistent local projects require the separate private workspace."
"Copy a share link for a supported map or export editable JSON or PNG. Recipients can preview the shared map before opening it. Personal screenshots, saves and persistent local projects require the separate private workspace."
]
],
"example": "Place nine crop markers around an iridium sprinkler on an unobstructed practice grid. Turn on water coverage to see which crop cells are reached; the sprinkler occupies its own tile.",
Expand All @@ -26,7 +26,7 @@
],
[
"Where can I find Stardew Valley farm layout ideas?",
"Open map settings and select one of 12 editable examples: eight farm-specific reference designs and four original practice layouts. Expand the selected preview to inspect crop coverage and added base building costs before loading. These examples are not exact game layouts or guaranteed optimal designs."
"Open map settings and select one of 16 editable examples: twelve farm reference designs and four original practice layouts. Expand the selected preview to inspect crop coverage and added base building costs before loading. These examples are not exact game layouts or guaranteed optimal designs."
],
[
"Can I design a farmhouse interior?",
Expand Down Expand Up @@ -416,7 +416,7 @@
"faq": [
[
"How many items are tracked?",
"The reference target is 154 produce and forage shipping entries."
"The 1.6 Full Shipment reference has 154 entries. Clam appears under Fishing and can still be recorded in a save's shipping history."
],
[
"Does every sale count?",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/reference-pack.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Single available reference pack; no game-verified compatibility or commercial approval.
export const REFERENCE_PACK_ID='ref-pc-1.6.15-20261128-r32';
export const REFERENCE_PACK_ID='ref-pc-1.6.15-20261128-r33';
export function decodeReferenceBinding(raw:unknown):string|undefined{
if(raw===undefined)return undefined;
if(typeof raw!=='string'||(raw!==REFERENCE_PACK_ID&&raw!=='ref-pc-1.6.15-20261128-r31'&&raw!=='ref-pc-1.6.15-20261128-r30'&&raw!=='ref-pc-1.6.15-20261128-r29'&&raw!=='ref-pc-1.6.15-20261128-r28'&&raw!=='ref-pc-1.6.15-20261128-r27'&&raw!=='ref-pc-1.6.15-20261128-r26'&&raw!=='ref-pc-1.6.15-20261128-r25'&&raw!=='ref-pc-1.6.15-20261128-r24'&&raw!=='ref-pc-1.6.15-20261128-r23'&&raw!=='ref-pc-1.6.15-20261128-r22'&&raw!=='ref-pc-1.6.15-20261128-r21'&&raw!=='ref-pc-1.6.15-20261128-r20'&&raw!=='ref-pc-1.6.15-20261128-r19'&&raw!=='ref-pc-1.6.15-20261128-r18'&&raw!=='ref-pc-1.6.15-20261128-r17'&&raw!=='ref-pc-1.6.15-20261128-r16'&&raw!=='ref-pc-1.6.15-20261128-r15'&&raw!=='ref-pc-1.6.15-20261128-r14'&&raw!=='ref-pc-1.6.15-20261128-r13'&&raw!=='ref-pc-1.6.15-20261128-r12'&&raw!=='ref-pc-1.6.15-20261128-r11'&&raw!=='ref-pc-1.6.15-20261128-r10'&&raw!=='ref-pc-1.6.15-20261128-r9'&&raw!=='ref-pc-1.6.15-20261128-r8'&&raw!=='ref-pc-1.6.15-20261128-r7'&&raw!=='ref-pc-1.6.15-20261128-r1'&&raw!=='ref-pc-1.6.15-20261128-r2'&&raw!=='ref-pc-1.6.15-20261128-r3'&&raw!=='ref-pc-1.6.15-20261128-r4'&&raw!=='ref-pc-1.6.15-20261128-r5'&&raw!=='ref-pc-1.6.15-20261128-r6'))throw Error('Unsupported reference pack. Keep the original backup and use its matching build; no automatic conversion was performed.');
if(typeof raw!=='string'||(raw!==REFERENCE_PACK_ID&&raw!=='ref-pc-1.6.15-20261128-r32'&&raw!=='ref-pc-1.6.15-20261128-r31'&&raw!=='ref-pc-1.6.15-20261128-r30'&&raw!=='ref-pc-1.6.15-20261128-r29'&&raw!=='ref-pc-1.6.15-20261128-r28'&&raw!=='ref-pc-1.6.15-20261128-r27'&&raw!=='ref-pc-1.6.15-20261128-r26'&&raw!=='ref-pc-1.6.15-20261128-r25'&&raw!=='ref-pc-1.6.15-20261128-r24'&&raw!=='ref-pc-1.6.15-20261128-r23'&&raw!=='ref-pc-1.6.15-20261128-r22'&&raw!=='ref-pc-1.6.15-20261128-r21'&&raw!=='ref-pc-1.6.15-20261128-r20'&&raw!=='ref-pc-1.6.15-20261128-r19'&&raw!=='ref-pc-1.6.15-20261128-r18'&&raw!=='ref-pc-1.6.15-20261128-r17'&&raw!=='ref-pc-1.6.15-20261128-r16'&&raw!=='ref-pc-1.6.15-20261128-r15'&&raw!=='ref-pc-1.6.15-20261128-r14'&&raw!=='ref-pc-1.6.15-20261128-r13'&&raw!=='ref-pc-1.6.15-20261128-r12'&&raw!=='ref-pc-1.6.15-20261128-r11'&&raw!=='ref-pc-1.6.15-20261128-r10'&&raw!=='ref-pc-1.6.15-20261128-r9'&&raw!=='ref-pc-1.6.15-20261128-r8'&&raw!=='ref-pc-1.6.15-20261128-r7'&&raw!=='ref-pc-1.6.15-20261128-r1'&&raw!=='ref-pc-1.6.15-20261128-r2'&&raw!=='ref-pc-1.6.15-20261128-r3'&&raw!=='ref-pc-1.6.15-20261128-r4'&&raw!=='ref-pc-1.6.15-20261128-r5'&&raw!=='ref-pc-1.6.15-20261128-r6'))throw Error('Unsupported reference pack. Keep the original backup and use its matching build; no automatic conversion was performed.');
return raw;
}
15 changes: 12 additions & 3 deletions src/lib/save-progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {SAVE_COLLECTION_IDS} from './save-collection-ids.ts';
import {CATALOGS,CRAFTING} from './game-collections.ts';
import {levelAt} from './game-rules.ts';
export type NamedCount={name:string;count:number};
export type ObservedCollection={done:string[];unmapped:number};
export type ObservedCollection={done:string[];unmapped:number;outsideTarget?:string[]};
export type SaveProgress={quests?:QuestObservations;professions?:ProfessionObservation;walnutTasks?:WalnutObservation;masteryXp?:number|null;backpack?:Backpack;storage?:StorageObservation;stepsTaken?:number|null;monsterKills?:MonsterCounts;milestones?:SaveMilestones;bundles?:SaveBundle[];collections?:Partial<Record<'shipping'|'fishing'|'cooking'|'museum',ObservedCollection>>;xp:number[]|null;money:number|null;lifetimeEarnings:number|null;walnutsFound:number|null;walnutsBalance:number|null;crafting:{known:string[];done:string[];unmapped:number}|null;learnedCooking:number|null;warnings:string[]};
export function normalizeSkillXp(values:unknown[]):number[]|null{
if((values.length!==5&&values.length!==6)||values.some(n=>typeof n!=='number'||!Number.isSafeInteger(n)||n<0||n>1000000000))return null;
Expand All @@ -27,7 +27,16 @@ export function skillTotal(xp:number[]|null){return xp===null?null:xp.reduce((n,

export function normalizeObjectCollection(kind:keyof typeof SAVE_COLLECTION_IDS,rows:NamedCount[]):ObservedCollection{
const map:Record<string,string>=SAVE_COLLECTION_IDS[kind],done=new Set<string>(),unmapped=new Set<string>();
const outsideTarget=new Set<string>();
const validNames=kind==='museum'?null:new Set(CATALOGS[kind].map(i=>i.name));
for(const {name,count} of rows){if(!Number.isSafeInteger(count)||count<0||typeof name!=='string'||name.length>160)throw Error('Invalid object observation');if(count===0)continue;const key=name.startsWith('(O)')?name.slice(3):name;if(!Object.hasOwn(map,key)){unmapped.add(key);continue}const value=map[key];if(validNames&&!validNames.has(value)){unmapped.add(key);continue}done.add(value)}
return {done:[...done],unmapped:unmapped.size}
const fish:Record<string,string>=SAVE_COLLECTION_IDS.fishing;
for(const {name,count} of rows){
if(!Number.isSafeInteger(count)||count<0||typeof name!=='string'||name.length>160)throw Error('Invalid object observation');
if(count===0)continue;
const key=name.startsWith('(O)')?name.slice(3):name;
if(Object.hasOwn(map,key)&&(!validNames||validNames.has(map[key])))done.add(map[key]);
else if(kind==='shipping'&&Object.hasOwn(fish,key))outsideTarget.add(fish[key]);
else unmapped.add(key);
}
return {done:[...done],unmapped:unmapped.size,...(outsideTarget.size?{outsideTarget:[...outsideTarget]}:{})};
}
Loading
Loading