import sys, os
sys.path.insert(0, os.path.dirname(__file__))
from crlfpatch import patch

old = '|seal_shortform_e2e|source_ladder_e2e'
new = '|seal_shortform_e2e|serving_in_brain_e2e|source_ladder_e2e'

patch('.config/nextest.toml', [
(old, new),
('''# this is recorded here. Added to both <HEAVY> strings.
[[profile.default.overrides]]''',
'''# this is recorded here. Added to both <HEAVY> strings.
#
# W9 (todlando 2026-09-25, releases#305): serving_in_brain_e2e is NEW and HEAVY AT
# BIRTH, classed in the lane that ships it: it spawns a real `spt daemon run`
# broker+brain tree, cycles the brain with `spt daemon refresh`, and runs a ~5 ms
# HTTP prober across the refresh. Added to both <HEAVY> strings.
[[profile.default.overrides]]'''),
])
patch('.github/workflows/golden.yml', [(old, new)])
