Files
settled-reach/server/tests/golden/river_course_golden.json
T
jpmschweitzerandClaude Fable 5 4320df9b60 feat(simulation): T-1170 A2/A3 + T-1168 A5 — course inventor, coast termination, riparian signal
A2 (river_course.rs): Stage A rung-independent valley-seeking control
path (chord/8 stations, k=5 bilinear-scored candidates + continuity
penalty); Stage B rung-indexed perpendicular warp on GLOBAL arc-length
(window-independence, Ruling 1e), band chord/2 down to min_wavelength_m
hard-truncate, sine taper to zero at anchors, amplitude min(8% chord,
half-cell) slope/class-scaled. SeedDomain::RiverCourse=17, distinct
salt. Wire: RiverCourse{edge_id,class,points,terminus} on
DistrictWindowLayer.courses (serde-default); bbox-culled, window-
cropped +1 station. TerrainAnalysisCache retains Layer1Output (the
gen_queue:626 discard, Ruling 4b). A3: mouth termination walks
stations sampling the window's OWN rung-consistent morphology verdict,
6-iteration bisect; land-at-anchor probes one segment then None;
EdgeDrain never probes. A5: near_perennial_water point-to-segment
predicate (D-239 §8 governed bands 1-3m class-scaled) threaded through
both batch and window paths; Region always false; never touches
moisture_q. Discipline closed: dormant zoom-ladder bench run + numbers
recorded in the design doc (District 3.009/1.785, Quarter 1.823
us/cell, Region window 0.617ms); course-cost bench CAUGHT a real
+12-36% per-cell riparian scan regression -> precomputed bbox O(1)
reject (60ns->2.2ns/call), final delta +3.4-6.9% at budget; three
determinism tests (overlapping-window byte-identity, cross-rung
amplitude bound, warp-stream cross-correlation r<0.3); goldens: window
sweep gained a verified course-bearing position (pure append), new
river_course golden at both rungs, believability verified unchanged.
Revert-verification discovered the pole-row branch is structurally
unreachable (flow_direction bounds-check) — the real edge-drain path
is k<0 flat-plateau; test fixture rewritten to exercise reality.
scale.rs stale comment fixed. Full cargo test green.

Tickets: T-1170, T-1168

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 13:36:16 +02:00

1579 lines
20 KiB
JSON

[
{
"rung": "district",
"edge_id": 655476,
"class": 2,
"terminus": "Interior",
"points": [
[
36277345,
-6830545
],
[
36277344,
-6834641
],
[
36277343,
-6838737
],
[
36277342,
-6842833
],
[
36277341,
-6846929
],
[
36277335,
-6851025
],
[
36277323,
-6855121
],
[
36277294,
-6859217
],
[
36277287,
-6863313
],
[
36277283,
-6867409
],
[
36277263,
-6871505
],
[
36277211,
-6875601
],
[
36277137,
-6879697
],
[
36277063,
-6883793
],
[
36276993,
-6887889
],
[
36276946,
-6891985
],
[
36276902,
-6896081
],
[
36276842,
-6900177
],
[
36276801,
-6904273
],
[
36276749,
-6908369
],
[
36276723,
-6912465
],
[
36276750,
-6916561
],
[
36276762,
-6920657
],
[
36276799,
-6924753
],
[
36276829,
-6928849
],
[
36276833,
-6932945
],
[
36276846,
-6937041
],
[
36276916,
-6941137
],
[
36276999,
-6945233
],
[
36277048,
-6949329
],
[
36277032,
-6953425
],
[
36276990,
-6957521
],
[
36276893,
-6961617
],
[
36276733,
-6965713
],
[
36276672,
-6969809
],
[
36276720,
-6973905
],
[
36276842,
-6978001
],
[
36276855,
-6982097
],
[
36276849,
-6986193
],
[
36276857,
-6990289
],
[
36276852,
-6994385
],
[
36276832,
-6998481
],
[
36276811,
-7002577
],
[
36276835,
-7006673
],
[
36276878,
-7010769
],
[
36276917,
-7014865
],
[
36276961,
-7018961
],
[
36277115,
-7023057
],
[
36277175,
-7027153
],
[
36277207,
-7031249
],
[
36277202,
-7035345
],
[
36277199,
-7039441
],
[
36277242,
-7043537
],
[
36277301,
-7047633
],
[
36277376,
-7051729
],
[
36277464,
-7055825
],
[
36277529,
-7059921
],
[
36277549,
-7064017
],
[
36277547,
-7068113
],
[
36277547,
-7072209
],
[
36277562,
-7076305
],
[
36277602,
-7080401
],
[
36277670,
-7084497
],
[
36277715,
-7088593
],
[
36277690,
-7092689
],
[
36277633,
-7096785
],
[
36277591,
-7100881
],
[
36277558,
-7104977
],
[
36277532,
-7109073
],
[
36277516,
-7113169
],
[
36277530,
-7117265
],
[
36277519,
-7121361
],
[
36277499,
-7125457
],
[
36277478,
-7129553
],
[
36277452,
-7133649
],
[
36277433,
-7137745
],
[
36277401,
-7141841
],
[
36277364,
-7145937
],
[
36277345,
-7148245
]
]
},
{
"rung": "quarter",
"edge_id": 655476,
"class": 2,
"terminus": "Interior",
"points": [
[
36277345,
-6830545
],
[
36277345,
-6831569
],
[
36277345,
-6832593
],
[
36277345,
-6833617
],
[
36277345,
-6834641
],
[
36277344,
-6835665
],
[
36277344,
-6836689
],
[
36277345,
-6837713
],
[
36277345,
-6838737
],
[
36277345,
-6839761
],
[
36277345,
-6840785
],
[
36277344,
-6841809
],
[
36277344,
-6842833
],
[
36277344,
-6843857
],
[
36277344,
-6844881
],
[
36277344,
-6845905
],
[
36277344,
-6846929
],
[
36277343,
-6847953
],
[
36277343,
-6848977
],
[
36277343,
-6850001
],
[
36277342,
-6851025
],
[
36277342,
-6852049
],
[
36277342,
-6853073
],
[
36277341,
-6854097
],
[
36277339,
-6855121
],
[
36277338,
-6856145
],
[
36277335,
-6857169
],
[
36277333,
-6858193
],
[
36277332,
-6859217
],
[
36277329,
-6860241
],
[
36277329,
-6861265
],
[
36277329,
-6862289
],
[
36277329,
-6863313
],
[
36277331,
-6864337
],
[
36277330,
-6865361
],
[
36277329,
-6866385
],
[
36277329,
-6867409
],
[
36277328,
-6868433
],
[
36277328,
-6869457
],
[
36277328,
-6870481
],
[
36277326,
-6871505
],
[
36277323,
-6872529
],
[
36277319,
-6873553
],
[
36277316,
-6874577
],
[
36277313,
-6875601
],
[
36277310,
-6876625
],
[
36277303,
-6877649
],
[
36277300,
-6878673
],
[
36277296,
-6879697
],
[
36277291,
-6880721
],
[
36277284,
-6881745
],
[
36277279,
-6882769
],
[
36277274,
-6883793
],
[
36277271,
-6884817
],
[
36277266,
-6885841
],
[
36277263,
-6886865
],
[
36277260,
-6887889
],
[
36277257,
-6888913
],
[
36277251,
-6889937
],
[
36277247,
-6890961
],
[
36277244,
-6891985
],
[
36277242,
-6893009
],
[
36277240,
-6894033
],
[
36277241,
-6895057
],
[
36277237,
-6896081
],
[
36277233,
-6897105
],
[
36277228,
-6898129
],
[
36277225,
-6899153
],
[
36277224,
-6900177
],
[
36277217,
-6901201
],
[
36277212,
-6902225
],
[
36277212,
-6903249
],
[
36277212,
-6904273
],
[
36277209,
-6905297
],
[
36277207,
-6906321
],
[
36277203,
-6907345
],
[
36277200,
-6908369
],
[
36277199,
-6909393
],
[
36277197,
-6910417
],
[
36277193,
-6911441
],
[
36277194,
-6912465
],
[
36277195,
-6913489
],
[
36277195,
-6914513
],
[
36277198,
-6915537
],
[
36277201,
-6916561
],
[
36277202,
-6917585
],
[
36277197,
-6918609
],
[
36277197,
-6919633
],
[
36277199,
-6920657
],
[
36277204,
-6921681
],
[
36277207,
-6922705
],
[
36277210,
-6923729
],
[
36277211,
-6924753
],
[
36277213,
-6925777
],
[
36277217,
-6926801
],
[
36277220,
-6927825
],
[
36277220,
-6928849
],
[
36277223,
-6929873
],
[
36277220,
-6930897
],
[
36277217,
-6931921
],
[
36277214,
-6932945
],
[
36277212,
-6933969
],
[
36277213,
-6934993
],
[
36277218,
-6936017
],
[
36277226,
-6937041
],
[
36277230,
-6938065
],
[
36277232,
-6939089
],
[
36277236,
-6940113
],
[
36277243,
-6941137
],
[
36277247,
-6942161
],
[
36277251,
-6943185
],
[
36277254,
-6944209
],
[
36277260,
-6945233
],
[
36277266,
-6946257
],
[
36277270,
-6947281
],
[
36277271,
-6948305
],
[
36277268,
-6949329
],
[
36277266,
-6950353
],
[
36277265,
-6951377
],
[
36277265,
-6952401
],
[
36277269,
-6953425
],
[
36277269,
-6954449
],
[
36277265,
-6955473
],
[
36277257,
-6956497
],
[
36277253,
-6957521
],
[
36277256,
-6958545
],
[
36277252,
-6959569
],
[
36277242,
-6960593
],
[
36277231,
-6961617
],
[
36277219,
-6962641
],
[
36277207,
-6963665
],
[
36277198,
-6964689
],
[
36277192,
-6965713
],
[
36277184,
-6966737
],
[
36277180,
-6967761
],
[
36277178,
-6968785
],
[
36277178,
-6969809
],
[
36277179,
-6970833
],
[
36277177,
-6971857
],
[
36277179,
-6972881
],
[
36277185,
-6973905
],
[
36277191,
-6974929
],
[
36277199,
-6975953
],
[
36277211,
-6976977
],
[
36277220,
-6978001
],
[
36277226,
-6979025
],
[
36277228,
-6980049
],
[
36277228,
-6981073
],
[
36277225,
-6982097
],
[
36277220,
-6983121
],
[
36277218,
-6984145
],
[
36277219,
-6985169
],
[
36277222,
-6986193
],
[
36277225,
-6987217
],
[
36277226,
-6988241
],
[
36277226,
-6989265
],
[
36277226,
-6990289
],
[
36277222,
-6991313
],
[
36277221,
-6992337
],
[
36277222,
-6993361
],
[
36277221,
-6994385
],
[
36277217,
-6995409
],
[
36277218,
-6996433
],
[
36277218,
-6997457
],
[
36277220,
-6998481
],
[
36277220,
-6999505
],
[
36277216,
-7000529
],
[
36277213,
-7001553
],
[
36277211,
-7002577
],
[
36277210,
-7003601
],
[
36277210,
-7004625
],
[
36277212,
-7005649
],
[
36277215,
-7006673
],
[
36277223,
-7007697
],
[
36277228,
-7008721
],
[
36277230,
-7009745
],
[
36277233,
-7010769
],
[
36277233,
-7011793
],
[
36277233,
-7012817
],
[
36277236,
-7013841
],
[
36277238,
-7014865
],
[
36277237,
-7015889
],
[
36277241,
-7016913
],
[
36277243,
-7017937
],
[
36277248,
-7018961
],
[
36277255,
-7019985
],
[
36277266,
-7021009
],
[
36277277,
-7022033
],
[
36277293,
-7023057
],
[
36277300,
-7024081
],
[
36277304,
-7025105
],
[
36277308,
-7026129
],
[
36277308,
-7027153
],
[
36277302,
-7028177
],
[
36277300,
-7029201
],
[
36277302,
-7030225
],
[
36277308,
-7031249
],
[
36277313,
-7032273
],
[
36277319,
-7033297
],
[
36277318,
-7034321
],
[
36277313,
-7035345
],
[
36277311,
-7036369
],
[
36277306,
-7037393
],
[
36277303,
-7038417
],
[
36277305,
-7039441
],
[
36277313,
-7040465
],
[
36277316,
-7041489
],
[
36277316,
-7042513
],
[
36277316,
-7043537
],
[
36277320,
-7044561
],
[
36277326,
-7045585
],
[
36277328,
-7046609
],
[
36277334,
-7047633
],
[
36277337,
-7048657
],
[
36277343,
-7049681
],
[
36277351,
-7050705
],
[
36277356,
-7051729
],
[
36277360,
-7052753
],
[
36277365,
-7053777
],
[
36277371,
-7054801
],
[
36277377,
-7055825
],
[
36277382,
-7056849
],
[
36277384,
-7057873
],
[
36277387,
-7058897
],
[
36277389,
-7059921
],
[
36277391,
-7060945
],
[
36277392,
-7061969
],
[
36277392,
-7062993
],
[
36277391,
-7064017
],
[
36277391,
-7065041
],
[
36277390,
-7066065
],
[
36277390,
-7067089
],
[
36277391,
-7068113
],
[
36277392,
-7069137
],
[
36277396,
-7070161
],
[
36277399,
-7071185
],
[
36277398,
-7072209
],
[
36277397,
-7073233
],
[
36277398,
-7074257
],
[
36277397,
-7075281
],
[
36277397,
-7076305
],
[
36277398,
-7077329
],
[
36277402,
-7078353
],
[
36277404,
-7079377
],
[
36277406,
-7080401
],
[
36277410,
-7081425
],
[
36277418,
-7082449
],
[
36277424,
-7083473
],
[
36277428,
-7084497
],
[
36277431,
-7085521
],
[
36277433,
-7086545
],
[
36277434,
-7087569
],
[
36277436,
-7088593
],
[
36277434,
-7089617
],
[
36277433,
-7090641
],
[
36277431,
-7091665
],
[
36277430,
-7092689
],
[
36277429,
-7093713
],
[
36277426,
-7094737
],
[
36277420,
-7095761
],
[
36277416,
-7096785
],
[
36277412,
-7097809
],
[
36277409,
-7098833
],
[
36277407,
-7099857
],
[
36277406,
-7100881
],
[
36277404,
-7101905
],
[
36277401,
-7102929
],
[
36277399,
-7103953
],
[
36277398,
-7104977
],
[
36277396,
-7106001
],
[
36277393,
-7107025
],
[
36277392,
-7108049
],
[
36277391,
-7109073
],
[
36277389,
-7110097
],
[
36277388,
-7111121
],
[
36277387,
-7112145
],
[
36277388,
-7113169
],
[
36277389,
-7114193
],
[
36277390,
-7115217
],
[
36277391,
-7116241
],
[
36277392,
-7117265
],
[
36277392,
-7118289
],
[
36277392,
-7119313
],
[
36277391,
-7120337
],
[
36277389,
-7121361
],
[
36277387,
-7122385
],
[
36277384,
-7123409
],
[
36277383,
-7124433
],
[
36277383,
-7125457
],
[
36277382,
-7126481
],
[
36277381,
-7127505
],
[
36277380,
-7128529
],
[
36277378,
-7129553
],
[
36277377,
-7130577
],
[
36277375,
-7131601
],
[
36277373,
-7132625
],
[
36277372,
-7133649
],
[
36277371,
-7134673
],
[
36277369,
-7135697
],
[
36277368,
-7136721
],
[
36277366,
-7137745
],
[
36277365,
-7138769
],
[
36277363,
-7139793
],
[
36277361,
-7140817
],
[
36277359,
-7141841
],
[
36277356,
-7142865
],
[
36277354,
-7143889
],
[
36277352,
-7144913
],
[
36277350,
-7145937
],
[
36277347,
-7146961
],
[
36277345,
-7147985
]
]
}
]