Stationary surgery clinics
Original Stationary Automated Surgery Clinic 43553 now uses its own typed placement and complete effect contract. Its world Use is independent of the vending object with the same numeric ID. The former generic terminal path rejected it, leaving both its healing and implant-access workflow unavailable.
Original contract
The 14.9.1 resource has type 51005, QL1, Use bit8 and no Carry bit. Its action3 criteria are Cash61 >299 AND stat410 ==0. The existing combat consumer supplies that zero/nonzero gate. No Treatment threshold, Treatment cooldown or selected character requirement is authored for this stationary item.
| OnUse function | Authored effect |
|---|---|
| 53002 | CurrentNano214 +1000 |
| 53002 | Health27 +1000 |
| 53044 | Five-minute / leave-playfield surgery message |
| 53057 | Enabled!, color2 |
| 53030 | Graphics13600 with original color arguments |
| 53002 | Cash61 -300 |
| 53051 | Cast program157490 |
The child, Stationary Surgery Clinic Effect 157490, has duration stat8=30000 centiseconds. Its complete OnUse is Modify53045(Treatment124,+100) and RestrictAction53067(mask16,duration0). The permission lasts with the timed program; its description explicitly requires removal on zoning. Its flags 0xD8002 exclude it from used NCU and ordinary cancellation in the existing native active-program consumer, despite its authored NCU stat54=999. Raw action136's Level >5000 criterion is retained. Ordinary player casting remains closed; this work admits the clinic's item-induced application, without generalizing that action gate.
| Resource | Complete original payload SHA256 |
|---|---|
| 43553 | e72d6f5caa15be8609c9cd95bb6ca58dca182b6ac12bfd283c7e804145a003be |
| 157490 | f48913020b55dd5150bf9f36d2a6e330904f2244f62c3e49917740cd3cc03b03 |
tools/data/extract_clinics.py extracts all 155 placements from original statels
1000026 into server/gamedata/clinics.yaml. Every source row has type51005,
template43553 and an empty placement script, so no per-placement effect override
is omitted. The original index SHA256 is
46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71.
Raw placements, source ordinals and hashes are retained in
local/stationary-clinic/placements.json. Both complete template payloads are
freshly reparsed and compared field for field in source-audit.json.
Commit and lifecycle
An authenticated, living, ready user must be within five metres of the actual clinic in the same playfield. Independent equipment, trade, shop and bank state is preserved; these contexts add no new clinic requirement. The fee, capped restorations and installed/refreshed program commit in one SQLite transaction before success, resources or program delivery. Replayed Use sequences do not charge or extend access. A new affordable Use pays again and refreshes the same program, without stacking Treatment.
The server sends the committed cash balance explicitly. The first native run received health1001, nano1002 and Features22 but retained cash700 after the database committed400; an absolute Cash61 update corrects that delivery gap. Program action177 supplies the child because the native CastNano executor is an original no-op; its retained evidence is described in client effect handlers.
Surgery access combines the portable clinic's independent deadline with the active stationary program. Expiring either source preserves the other. Program expiry removes Treatment and permission through the existing active-nano transaction and action65. A failed removal retains both modifier and permission until removal commits on retry. Features224 publication preserves native base6 and any remaining surgery access.
Cross-playfield replacement filters this program before committing the new character. Changed active-program membership now commits with edited character records, so a failed or ignored removal cannot publish the destination. Other active programs and same-playfield edits remain intact. No new timer/schema is introduced and ordinary inventory actions do not checkpoint unchanged programs.
The child currently identifies the user as caster. The original server's exact item-induced caster identity, offline-time policy and death exceptions remain unverified. Remaining-time persistence follows the existing active-program policy; this implementation does not establish those historical policies.
Verification
The public Use regression fails before implementation. Focused Go checks cover both restorations, exact fee boundaries, duplicate/refresh requests, admission, all placement bindings, cold state, ordinary-cast/cancel rejection, lost replies, expiry and overlap with portable access. Abort/ignored/rewrite/COMMIT faults cover fees, resources and program installation; expiry and zoning also exercise failed/ignored removal and retry while retaining an unrelated program.
Two WASM clients use real original-clinic picking. The warm phase first receives an injected database failure, reconnects with unchanged700 cash / HP1 / nano2, then successfully pays300 and observes HP1001 / nano1002 / Features22. Native implant wear succeeds with raw Treatment0 and trickle9, while server Treatment is109. Page and fresh-server recovery retain the same implant and paid effect; cold native removal/rewear also succeeds.
A controlled cross-playfield checkpoint then removes the effect. After the new world's ready acknowledgement, a visible native attempt to remove the retained implant reports that technical supervision is required. This isolates effect retirement; it does not test the original shop-door approach. The fixture's level, skills, funds and implant are controlled conditions, not earned progress.
Accepted native evidence is under local/stationary-clinic/20261103-120007/:
25.54 seconds warm and 18.55 seconds cold, with no client exceptions. Earlier
fixture errors and the cash-publication baseline remain separately retained.
All 11 accepted traces are complete. Independent SQLite checks retain one
physical implant, the exact paid balances/resources and the expected program
membership before/after zoning; integrity and foreign-key checks pass.
The affected Go run passes 69 roots / 266 results. Final clinic checks pass
10 roots / 44 results, including independent equipment/trade/shop/bank state.
Focused race checks pass 11 roots / 45 results; finalized expiry and context
cases pass another 1/3 and 1/5 respectively. These runs overlap in coverage.
Vet, Node syntax and formatting checks pass. local/stationary-clinic/verification.json
records the source hashes, complete artifact checks and remaining policy gaps.