How much change can a release carry?
This report includes test-store orders, deliveries to local repositories, and simulations with a fixed evidence budget. Each study identifies its inputs, the tools used and what was observed.
Can the same rule language release course materials?
Three-way tie on delivered behavior, new code and requests for evidence. The held-out change was “Withhold the field guide when permission has lapsed.” We froze the three implementations after a different document and evidence owner qualified. Each received identical raw approval histories, a proposed edit and enrollment records. A separate student checkout fetched each issued Git revision.
Green counts released files, blue counts files withheld by known policy, and brown counts unresolved file decisions. A guide and its listing were both affected. The other materials remained available.
| Tool | Post-draw code edits | Evidence requests | Approval gaps | Approvals | Setup exercise | Unseen review | Through student readback |
|---|---|---|---|---|---|---|---|
| Phaseline | 0 | 3 | 2 | 2 | 3.94 s | 0.220 s | 4.09 s |
| Alloy | 0 | 3 | 2 | 2 | 5.29 s | 1.519 s | 5.58 s |
| Python | 0 | 3 | 2 | 2 | 3.89 s | 0.028 s | 3.97 s |
Each arm used 3 distinct evidence requests, one per affected enrollment, covering 6 dependent decisions. There were also two unresolved approval histories and two scripted approvals. One legitimate late clearance released the missing files on the existing enrollment. Earlier enrollments kept their issued terms.
| Enrollment | Files visible | Git commit | Policy digest |
|---|---|---|---|
| Earlier enrollment | 7 | 6ba8ba3c015a | 889d3b5dd540 |
| Lapsed license confirmed | 5 | be456dc51aaa | 20d14137e14f |
| Awaiting the licensing record | 5 | 0dd0c2c64dab | 20d14137e14f |
| Same enrollment after the late clearance | 7 | 0df49d6f6793 | 20d14137e14f |
What the language contributed
fact permission_lapsed from license_register.expired owner licensing_lead missing hold_dependents
guarantee field_guide when true unless permission_lapsed
guarantee list_field_guide when field_guide
Phaseline read the location, custodian and missing-evidence behavior from these declarations. Python used an equivalent mapping and evaluator. Alloy used a relation for the source and custodian and a solver to find which files could be released. Each arm reused its setup. Raw memo selection, the supported wording, the simulated approval and Git delivery were shared engineering work. Real deployments must authenticate the people and records represented by these test identities.
The common budget was 30 seconds to review and 180 through delivery. The setup column measures the qualification exercise. Alloy also took 0.285 seconds to compile its Java bridge. We did not time human authoring or interview any outside engineers. These are local Git releases with synthetic course content. Times are one run each.
Try a missing record in the editor · Download the frozen implementations, evidence and three Git bundles
When the store never recorded the fact
Phaseline, Alloy and Python tied on what shipped and how much new code they needed. The randomly drawn request was “Stop issuing store credit on purchases where the buyer witnessed the fit check at pickup.” The same SKU could have been sold with or without a witnessed fit check. Its product listing cannot settle what happened at pickup.
Each row contains 12 paid test orders. From left to right, 8 returns were denied, 2 returns had no credit due, 1 return received $62.31, and 1 return was accepted with credit pending. Retrying produced no duplicate return or credit.
| Tool | Display item bought before adoption | Same item bought after adoption |
|---|---|---|
| Phaseline | R1395 · $62.31 issued | R1398 · credit pending |
| Alloy | R1407 · $62.31 issued | R1410 · credit pending |
| Python | R1419 · $62.31 issued | R1422 · credit pending |
Who had to do what?
All three stopped at the unfamiliar phrase and requested the rule adapter maintainer. A scripted operator asked the policy owner, Inez, for its meaning once per arm. She supplied one glossary entry, witnessed_fit_check. The reader generated the proposed rules. Inez approved the two governed histories. Two additional histories stayed on hold pending her missing or conflicting approval.
For the one affected new purchase per arm, the operator requested its pickup record. The test queried the purchase and line-item records and found no observation. The return went through while the credit stayed unresolved. The old purchase kept its credit. In the shop whose earlier policy already excluded credit on display items, the new question never reached the custodian.
| Tool | New executable code after draw | Glossary replies | Approval gaps or conflicts | Missing purchase records | Review | Through readback |
|---|---|---|---|---|---|---|
| Phaseline | 0 | 1 | 2 | 1 | 0.132 s | 8.64 s |
| Alloy | 0 | 1 | 2 | 1 | 4.908 s | 12.90 s |
| Python | 0 | 1 | 2 | 1 | 0.127 s | 6.78 s |
Before the freeze, VERIFY added shared handling for a defined term and successive exceptions, plus the trial operator and scoring code. All three reused their existing engines, store connection, history reader and checkout evidence logic. Each arm had 30 seconds for review and 180 seconds through readback. Times cover a single machine run. Owner replies and approvals were scripted. Human setup time and outside adoption remain unmeasured.
We checked 423 test-store orders and 423 line items for the field and checked order notes for the wording. The order and credit ledger independently confirmed all 36 timed outcomes. Phaseline exposed the new input in source. A team with this Python or Alloy setup could ship the same behavior.
Download the frozen sources, inputs and receipts · Try a new fact in the editor · Pre-draw record (VERIFY team)
Change return eligibility. What happens to credit?
Release outcome and new code: three-way tie. After we froze Phaseline, Alloy and Python, the drawn request was Stop accepting returns on clearance lots.
Each received the same raw histories, found the two owner-approved editions and followed the eligibility change through to store credit. Two other histories remained unresolved. Each tool requested the missing or conflicting approval from Inez.
Across each row, green shows accepted returns, blue shows policy denials, and brown shows returns held for a missing classification. The horizontal axis counts paid test orders. Retrying created no additional return or credit.
| Tool | Final-sale setup run | Unseen review | Unseen through readback | New code after freeze | Credits issued |
|---|---|---|---|---|---|
| Phaseline | 10.92 s | 0.19 s | 12.37 s | 0 | 4 · $249.24 |
| Alloy | 11.37 s | 3.03 s | 14.49 s | 0 | 4 · $249.24 |
| Python | 9.18 s | 0.14 s | 9.20 s | 0 | 4 · $249.24 |
Each arm had 30 seconds per comparison and 180 seconds per release. Times include placing orders, submitting shopper returns and reading credits back. The setup run includes compiling Alloy. One timed run per tool gives a speed observation. It does not establish a repeatable speed ranking.
What customers got
The catalog classifies standard and outlet purchases as clearance. After the edit, a previously bought standard item still returned for $62.31. A newly bought one lost both return eligibility and credit. Display items kept their shop’s prior terms.
| Purchase at $62.31 | Bought before the clearance edit | Bought after the edit |
|---|---|---|
| Clearance · standard stock | R1355 · Accepted · $62.31 | R1358 · Denied · $0.00 |
| Clearance · final-sale outlet stock | R1353 · Accepted · $0.00 | R1356 · Denied · $0.00 |
| Display · shop grants credit | R1354 · Accepted · $62.31 | R1357 · Accepted · $62.31 |
| Display · shop excludes credit | R1347 · Accepted · $0.00 | R1350 · Accepted · $0.00 |
These are Phaseline’s test-store order numbers. The download includes the separate Python and Alloy orders. PostgreSQL independently confirmed all 42 held-out purchases. Two unclassified purchases per tool waited for Merchandising. The two unresolved histories produced no release.
What had to be built before the freeze?
Our earlier reader held the same final-sale request. The Phaseline language already supported unless. We connected the shop’s wording to named source declarations and bound stock facts to its catalog. The stock names and classifications live in the shop file. When a guarantee already has an exception, the editor preserves it as a named condition.
guarantee issue_store_credit when return_eligible unless final_sale
The shared Python source editor and comparison bridge took 119 lines, including the translation used by Python and Alloy. Phaseline uses a four-line JavaScript entry point to check the actual source. The shop vocabulary and catalog take 22 lines of data. We also changed history selection and the test-store return hook. No evaluator core changed. During qualification, all three accepted all 12 returns and issued six credits. Earlier final-sale purchases kept their credit, while later ones could still be returned. The 36 qualification orders also passed the independent ledger check.
On the held-out edit every tool reused this setup. The system changed one policy declaration per issued shop. It needed no new code or clarification about the edit. Each arm recorded two scripted owner approvals. No human authoring time was measured. This was a random choice from three predeclared stock groups with bindings already installed, on one single-item USD test store.
Try the final-sale source · Download sources, packets, freeze and order receipts · Pre-draw commitment on #196 (VERIFY access)
Who can ship from the shop’s own history?
A teammate asked to accept display items for returns. Nothing in the edit mentioned credit. The same raw chat export went to each tool. Two shops had different owner-approved memos. Another had no approval. A fourth had two conflicting approvals. Nobody selected a prior policy for the tools.
| Tool | Existing reader | With shared reader | Unseen credit rule | Unresolved histories with shared reader |
|---|---|---|---|---|
| Phaseline | 1 missing, 1 conflict | |||
| Alloy | 1 missing, 1 conflict | |||
| Python | 1 missing, 1 conflict |
The existing readers expected a published policy record. All stopped on ordinary approval messages. A new shared reader followed the owner’s reference to the memo and translated two forms of eligibility edit. All three tools then found both governing memos and distinguished missing approval from conflicting approval. The fixture owner approved two releases in each resolvable shop. Nobody supplied an answer for the other shops.
What the shopper received
The same display item cost $68.99. After the team opened returns at $40.22, each shop accepted the return. Only one gave credit. These are four Phaseline-arm purchases. Alloy and Python matched them on separate orders through the same Spree shopper endpoint.
| Prior agreement | Bought | Order | Shopper return | Credit received |
|---|---|---|---|---|
| Credit follows return eligibility | Before | R1250 | Refused (422) | $0.00 |
| Credit follows return eligibility | After | R1252 | Opened (201) | $68.99 |
| Display excluded from credit | Before | R1251 | Refused (422) | $0.00 |
| Display excluded from credit | After | R1253 | Opened (201) | $0.00 |
A second edit raised the minimum to $68.49. A $40.22 purchase made before that edit retained its return right. A new purchase at the same price was refused. Serving the old rule on a qualifying new order also produced a refusal, which the release check caught. Across both completed runs, PostgreSQL independently confirmed 48 scored orders and 12 deliberately stale controls on the disposable test store.
How much work did it take?
| Tool | Original draw after repair | Fresh confirmation | Second review only, confirmation | Evaluator lines changed |
|---|---|---|---|---|
| Phaseline | 17.70 s | 17.73 s | 0.11 s | 0 |
| Alloy | 19.64 s | 19.73 s | 0.77 s | 0 |
| Python | 17.41 s | 17.82 s | 0.09 s | 0 |
Times cover machine setup through both releases and shopper readback, including Java compilation for Alloy. The first harness contained 450 lines including the examiner, checks and protocol. Of those, 54 handled chat history and wording, and 52 connected the shopper return endpoint. The first attempt placed eight test orders per tool, then stopped before the shopper return check because the shared release code assigned a new identifier to the same approved memo. The repair added 17 shared lines and removed 12. The original draw was replayed, then the repaired code was frozen before a second draw. Human authoring time, prior tool development and merchant deployment costs were unmeasured.
What happened on a different kind of edit?
Keep return eligibility. For eligible purchases, stop issuing store credit on final-sale stock.
This previously unused change came from the earlier trial’s deck. On both resolvable histories the shared adapter found the memo but could not translate the edit. No tool shipped it. The adapter has since been changed to return an explicit hold for unsupported wording. The measured release score remains zero. This was a machine trial within a disclosed family of edits. Outside-engineer testing remains open.
Download raw histories, source, timings and store receipts · Download reused evaluators
Same balance. Different return rights.
The shop’s request was explicit. Allow display items to qualify for returns. Keep the existing exclusion for issuing store credit.
An operator translated both instructions for all three tools. Compare the same floor model bought at the same price before and after the change.
| Customer question | Bought before | Bought after |
|---|---|---|
| Credit delivered | $0.00 | $0.00 |
| Return under the issued rule | Ineligible | Eligible |
The credit row comes from the store ledger. The return row comes from evaluating the issued rules for each purchase. The later raw-history trial exercised the actual shopper return endpoint on new orders.
How Phaseline, Python and Alloy tied across 75 test orders
Each implementation had the approved policy and ran 25 orders. Of those, 10 received credit, 10 settled without credit, and five were held for a missing purchase fact. Each changed two rules, made zero engine or adapter edits during this change, asked zero policy questions and used one scripted owner approval. The paired purchases above cost $50.05 each. Human effort was unmeasured.
One Python test registration needed recovery after a store rate limit. The ledger includes the resumed purchase.
Alloy began one release behind. It reused the earlier adapter patch (6 lines added, 4 removed), changed no solver code and used one scripted approval to issue v5. Each tool then passed the same 96 baseline checks. The comparison counted that setup separately. All three then used the same purchase history, permissions, store connector and credit delivery. An existing Python or Alloy implementation can handle this change with the same two edits. A switching case would require repeated savings on real incoming changes after including setup, maintenance and owner time, with equally correct outcomes.
Frozen starting point and candidate requests · Draw, exact edit and 75 order results · Independent store ledger · Reproduce the comparison
See the raw-history release test · Compare the old and new purchase
Store credit · compare actual old and new orders ↓ · Who needed code on the next change? ↓
Raw shop history · see Phaseline vs. Alloy and Python ↓
New simulation · see wins, ties and delivery costs ↓
All three markers coincide at every measured point. The rule for a safe release is the same for all three tools. Lines connect the tested loads.
With 3 bits, each tool completes 8 of 8 histories at load 1. At the next load all three complete 7 of 16. The other 9 explicitly return unknown.
What did Phaseline save over Python and the same library?
The returns desk wanted to ask “Did this purchase meet the $50.05 minimum?” even when the item itself was ineligible. The shop kept its display-stock exclusion. The request never mentioned store credit.
| Tool | Frozen setup | Policy edits | Checker lines | Clarifications / approvals / missing facts | Store orders |
|---|---|---|---|---|---|
| Phaseline | Reviewed | 2 | 0 | 0 / 1 / 1 | 10 settled, 1 held |
| Python | Refused | 2 | +6 / −4 | 0 / 1 / 1 | 10 settled, 1 held |
guarantee meets_return_minimum when order_total >= 5005 USD_cents
guarantee return_eligible when meets_return_minimum unless display_only
Phaseline already compared editions with different rule names. Our Python adapter required the same names on both sides. Its six added and four deleted lines let it compare a newly introduced or removed rule while checking references within each edition. On a further review with a different name and threshold, both worked without another edit.
What actually shipped to the test store. A $50.04 standard order placed under the old terms got $50.04 back. An identical new order got $0. A new $50.05 standard order got $50.05. Display stock at $50.05 met the minimum and received $0. An unclassified item at $50.04 needed no question. At $50.05 both tools asked Merchandising whether that specific item was display stock and held the credit.
Both reused the shared library for purchase history, approvals, delivery and receipts. Both needed the same new 12-line, read-only Python lookup to answer the desk’s question against the purchased edition. Both traced the credit change to the first affected standard order at $49.51. One shop-owner approval per tool was scripted. No outside engineers participated. This single operator-designed draw measures code changes and store outcomes. Human effort remains unmeasured.
Exact Python change · Shared desk lookup · Draw, questions and 22 order receipts · Independent Spree ledger · Reproduce this comparison
What reached the customer’s store balance?
Plane Works changed one line. Orders of exactly $50 became eligible for a return. The edit said nothing about credit. Phaseline, Alloy and Python each found the same downstream change and issued the correct amount to all six of their test customers.
All returns were evaluated after v2 took effect. Each pair shows the balances Spree returned after restart. All three tools produced the same bars.
Three-way tie on delivery and code reuse. Each needed an initial connection to the store. All three reused it for the eligibility change, with zero changes to their checker or connector. The order records identified which terms applied at purchase.
Read the paid orders and balances
| Tool | Edition at purchase | $49.99 order | $50.00 order | $50.01 order |
|---|---|---|---|---|
| Phaseline | v1 | R1003 · $0.00 | R1004 · $0.00 | R1005 · $50.01 |
| Phaseline | v2 | R1014 · $0.00 | R1015 · $50.00 | R1016 · $50.01 |
| Alloy | v1 | R1011 · $0.00 | R1012 · $0.00 | R1013 · $50.01 |
| Alloy | v2 | R1020 · $0.00 | R1021 · $50.00 | R1022 · $50.01 |
| Python | v1 | R1007 · $0.00 | R1008 · $0.00 | R1009 · $50.01 |
| Python | v2 | R1017 · $0.00 | R1018 · $50.00 | R1019 · $50.01 |
Each customer started at zero. Replaying the request left one credit on each eligible account. Three separate $50.01 control credits also paid for three more purchases using store credit alone.
What each tool had to build
All three shared a new Spree connector for orders, policy editions and customer credits. Phaseline needed an input adapter to its existing parser and revision checker. Python needed a reader for the new rule and its dependency. Alloy reused that input reader and its existing Java driver, and needed a model that follows the dependency in Alloy. The second change was policy data for all three.
guarantee return_eligible when order_total > 5000 USD_cents
guarantee issue_store_credit when return_eligibleThe only v2 edit changed > to >= for eligibility. Exact edit sent to the trial
| Tool | Wire & place old orders | Issue & apply | Restart readback | Credit-funded purchase |
|---|---|---|---|---|
| Phaseline | 2.05 s | 1.84 s | 1.05 s | R1023 |
| Alloy | 1.98 s | 1.69 s | 0.31 s | R1025 |
| Python | 1.26 s | 1.40 s | 0.26 s | R1024 |
Single serial run on a self-hosted Spree 6.0.5 test store backed by PostgreSQL. Each engine call had 30 seconds. Times cover machine execution, including Alloy driver compilation in v1. Shared store provisioning, authoring, the shared restart and the extra redemption check are outside these times. Tool order was fixed, so the timings do not establish a speed winner.
Order and credit receipts · Credit-funded purchases · Reproduce on a test store
Who needed code on the next change?
Plane Works excluded final-sale stock from return eligibility. Its original Phaseline, Alloy and Python setups all refused the new rule. Each needed support for a fact about the purchase. The existing Spree connection continued to issue and read credit.
| Tool | Original exception | After adding support | Next change | Code files edited for next change |
|---|---|---|---|---|
| Phaseline | Refused | 0 | ||
| Alloy | Refused | 0 | ||
| Python | Refused | 0 |
We then froze the code and drew a new eligibility edit. It excluded display stock and set a $49.51 minimum. Each tool reused its code with one new catalog mapping for display_only. An earlier outlet purchase kept its $0 credit under v3. A new $50.01 outlet purchase received $50.01 under v4, while a new display purchase received $0. Both edits omitted the credit rule.
Purchase receipts by tool
| Tool | Current release | Purchase | Spree order | Credit |
|---|---|---|---|---|
| Phaseline | v3 | Earlier Outlet Order | R1058 | $50.01 |
| Phaseline | v3 | Outlet | R1060 | $0.00 |
| Phaseline | v3 | Display | R1061 | $50.01 |
| Phaseline | v4 | Earlier Outlet Order | R1082 | $0.00 |
| Phaseline | v4 | Outlet | R1084 | $50.01 |
| Phaseline | v4 | Display | R1085 | $0.00 |
| Alloy | v3 | Earlier Outlet Order | R1066 | $50.01 |
| Alloy | v3 | Outlet | R1068 | $0.00 |
| Alloy | v3 | Display | R1069 | $50.01 |
| Alloy | v4 | Earlier Outlet Order | R1090 | $0.00 |
| Alloy | v4 | Outlet | R1092 | $50.01 |
| Alloy | v4 | Display | R1093 | $0.00 |
| Python | v3 | Earlier Outlet Order | R1074 | $50.01 |
| Python | v3 | Outlet | R1076 | $0.00 |
| Python | v3 | Display | R1077 | $50.01 |
| Python | v4 | Earlier Outlet Order | R1098 | $0.00 |
| Python | v4 | Outlet | R1100 | $50.01 |
| Python | v4 | Display | R1101 | $0.00 |
What happened when evidence was missing?
At a qualifying amount, an unclassified SKU could change the outcome. The desk named the order, the missing classification and its owner. Below the minimum it could decide immediately. An unavailable issued edition produced a request for that order’s policy fingerprint. A revoked reader required a grant from the shop owner. The program exercised these cases with scripted identities.
| Edit | Request | Responsible owner | Order |
|---|---|---|---|
| exception | purchase fact final_sale | Merchandising | R1065 |
| transfer | purchase fact display_only | Merchandising | R1089 |
All three tied on the measured changes. The historical lookup, authorization checks and store delivery were in a reusable library shared by the three tools. Each reviewed the named dependency with its own evaluator. Engineer minutes and actual owner interruptions still require an independent operator.
Run the Phaseline source · Orders, holds and elapsed machine time · Reproduction and code costs · Before the draw · Independent ledger read of all 48 orders
Which tool ships the right refund policy?
Eighteen simulated changes started with the shop’s original wording, a shuffled decision history and Joe’s entire proposed replacement. The reader had to find the issued policy for that shop and date. Nobody marked the changed clause or supplied a pair of thresholds.
| Phaseline vs. | Release quality | Elapsed machine time |
|---|---|---|
| Alloy | Tie | Win |
| Python | Tie | Loss |
| Tool | Setup through readback | Correct outcomes | Unsafe issues |
|---|---|---|---|
| Phaseline | 18/18 | 0 | |
| Alloy | 18/18 | 0 | |
| Python | 18/18 | 0 |
All three called all 18 cases correctly and shipped the seven authorized revisions. Six uncertain changes held, four edits preserved behavior and one change stayed pending when its owner withheld approval. In one shop the receipt is due only when manager approval is required. Moving the approval threshold changed both actions at $500.00, even though Joe left the receipt sentence alone. After restart we requested refunds on orders placed before and after the release. Each retained the terms in force when it was placed.
Setup, review and delivery costs
| Tool | Setup (ms) | Review (ms) | Issue and readback (ms) |
|---|---|---|---|
| Phaseline | 2.9 | 47.1 | 3.5 |
| Alloy | 390.5 | 462.8 | 4.6 |
| Python | 2.5 | 40.8 | 4.6 |
The clock includes staging each tool, seeding the order desk, compiling the Alloy driver, reviewing the raw packets, simulated owner approval, issue and fresh order readback. The three tools ran serially in rotating order. Alloy reused one JVM per batch. Standard language runtimes and the downloaded Alloy jar were preinstalled. All work used existing hardware with zero paid model calls. No human authoring or rework time was measured.
We added a public Phaseline wording reader and exact-cents operators. The Python baseline has its own wording and history reader. The Alloy arm reuses that adapter and computes obligations over ordered amount intervals in Alloy. All arms rely on the same simulated authority and SQLite order desk.
Same edit, different governing history
After freezing the readers, we drew a fresh amount and changed which approval was in force on the review date. The same words moved the first shop’s boundary at $646.86 and preserved the second shop’s behavior. Every tool issued the first revision and correctly left the second alone. No new case-specific mapping was added between runs. Median setup-through-readback times on these two cases were Phaseline 54.2 ms, Alloy 838.9 ms, Python 57.0 ms.
Try the editor · Raw shop inputs · Times and served orders · Frozen-reader replay · Reproduction kit
Edit a shop’s refund promise
This simulated shop records refunds in USD. Submit the complete replacement below. The editor finds the governing shop entry and the first amount where the decision changes.
Reading the issued policy…
Inspect the shop’s raw history
The editor supports positive whole-cent USD refunds through $9,999,999.99, inclusive or exclusive thresholds, explicit approval waivers and receipt instructions. Owner decisions here are saved in this browser. Read and run the Phaseline source.
From setup to a served release
A parcel shop changes when a signature is required and drops its receipt promise. Some histories have a missing or unreliable insurance record. Can the tool still ship when that record makes no difference, and hold when it does?
| Compared on release quality | Earlier tools | After repair |
|---|---|---|
| Phaseline vs. Alloy | Win | Tie |
| Phaseline vs. Python | Win | Tie |
Forty simulated shop histories per tool. An unsafe issue counts first, then a safe delivery, then a correct hold. All three ran within the same 30-second machine budget. Each result was repeated three times. Outside-engineer trial on hold. Human setup and customer delivery costs are unmeasured.
| Tool | Earlier tools | After repair |
|---|---|---|
| Phaseline | ||
| Alloy + adapter | ||
| Versioned Python |
Where the results changed
| Tool | Earlier unsafe | Earlier safe issues | Repaired unsafe | Repaired safe issues | Correct holds after repair |
|---|---|---|---|---|---|
| Phaseline | 0 | 8 | 0 | 24 | 16 |
| Alloy + adapter | 4 | 12 | 0 | 24 | 16 |
| Versioned Python | 4 | 12 | 0 | 24 | 16 |
Phaseline originally waited for every fact. That needlessly held 16 safe releases. Our Python evidence reader treated the text "false" as true, and the Alloy adapter reused that reader. Each issued four times without sufficient evidence. Phaseline evaluates the rules in JavaScript, Python evaluates them directly and Alloy computes the old and new relations. We supplied the meaning of each rule to all three. Both repairs are portable. The tools now check whether every permissible value of an unavailable fact leads to the same observable result.
Machine time from setup through delivery
| Tool | Setup (ms) | Check (ms) | Issue & readback (ms) | Total (ms) |
|---|---|---|---|---|
| Phaseline | 53 | 82 | 71 | 207 |
| Alloy + adapter | 386 | 457 | 64 | 921 |
| Versioned Python | 54 | 57 | 165 | 292 |
Median of three fresh runs of the repaired tools on one machine. Setup includes copying files, seeding the destination and compiling Alloy’s Java driver. The language runtimes and downloaded Alloy package were already installed. Release includes owner checks, writing the simulated shop’s SQLite database and querying old and new orders after reopening it. Phase medians can come from different runs. All three reused the destination and permission machinery.
Which would I pick? If a team already runs this Python policy code, the repaired version delivered every recoverable change. A team working in Alloy can keep its model and validate its evidence adapter. For a new project, Phaseline supplies version comparisons and named guarantees as built-ins. The finite research result explains how much distinguishing information a tool needs. All three can use it. A saving in human work still needs measurement.
Download the machine results · Earlier outcomes · Reproduce the comparison
Which problem does this measure?
Two teams can ask for the same change today and owe their customers different things because of a decision they made last month. A reviewer has to recover the difference, see which behavior would change, put that choice to the owner and check what the next customer actually gets. The class includes release decisions whose relevant evidence, permitted actions and observable outcomes can be specified.
- X · How much history matters relative to what survives?
- Group histories that require the same answers on every declared old and new observation. If there are D different answer profiles, distinguishing them needs at least log₂(D) bits across a restart. Divide that demand by the number of history-dependent bits the reviewer may retain. Ten clauses that always give the same answer can take less capacity than two independent commitments.
- Y · How often can the team safely finish?
- Count a history only when the fresh reviewer identifies every changed observation correctly, the owner authorizes the revision, the receiving desk serves the right version, and a reopened desk can retrieve the original receipt. The denominator includes every admitted history. An explicit refusal earns zero completions. Wrong answers are reported separately.
These axes answer the release question an engineer can act on. More memory moves the boundary. Access to another record can also move it. Setup time, source quality and the cost of proving and shipping a change still matter when choosing a tool.
Exact counts and cold-process costs
| Retained bits | Required bits | Load | Phaseline | Versioned Python | Alloy + adapter | Wrong |
|---|---|---|---|---|---|---|
| 2 | 1 | 0.50 | 2/2 | 2/2 | 2/2 | 0 |
| 2 | 2 | 1.00 | 4/4 | 4/4 | 4/4 | 0 |
| 2 | 3 | 1.50 | 3/8 | 3/8 | 3/8 | 0 |
| 2 | 4 | 2.00 | 3/16 | 3/16 | 3/16 | 0 |
| 2 | 5 | 2.50 | 3/32 | 3/32 | 3/32 | 0 |
| 2 | 6 | 3.00 | 3/64 | 3/64 | 3/64 | 0 |
| 3 | 1 | 0.33 | 2/2 | 2/2 | 2/2 | 0 |
| 3 | 2 | 0.67 | 4/4 | 4/4 | 4/4 | 0 |
| 3 | 3 | 1.00 | 8/8 | 8/8 | 8/8 | 0 |
| 3 | 4 | 1.33 | 7/16 | 7/16 | 7/16 | 0 |
| 3 | 5 | 1.67 | 7/32 | 7/32 | 7/32 | 0 |
| 3 | 6 | 2.00 | 7/64 | 7/64 | 7/64 | 0 |
| 4 | 1 | 0.25 | 2/2 | 2/2 | 2/2 | 0 |
| 4 | 2 | 0.50 | 4/4 | 4/4 | 4/4 | 0 |
| 4 | 3 | 0.75 | 8/8 | 8/8 | 8/8 | 0 |
| 4 | 4 | 1.00 | 16/16 | 16/16 | 16/16 | 0 |
| 4 | 5 | 1.25 | 15/32 | 15/32 | 15/32 | 0 |
| 4 | 6 | 1.50 | 15/64 | 15/64 | 15/64 | 0 |
Median capture/review times across 18 batches per tool were Phaseline 31/29 ms, Versioned Python 28/24 ms, Alloy + adapter 266/279 ms. Separate cold processes ran acquisition and review with a 30-second limit per batch. SQLite receiver costs, input sizes, preparation time for the Alloy driver and case-level outcomes are in the results. Human modeling, installation and production operation were outside this clock.
Raw outcomes · Download CSVWhat happens when evidence costs something?
In the café example, reading the table reservation costs one unit. Reading the layout costs three. When there is no reservation, the first read settles the question. When there is one, the position of the counter matters. Units are declared probe costs. They can represent source calls with different prices.
| 2 bits retained | Profiles | 0 units | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|---|
| Café layout | 3 | 0/4 | 2/4 | 2/4 | 2/4 | 4/4 | — | — |
| Water allocation | 6 | 0/8 | 0/8 | 0/8 | 0/8 | 2/8 | 4/8 | 5/8 |
The same planner ran on the independently checked behavior tables. It searches both the observations to buy and the information to keep. On the water case, two retained bits and six read units resolve five of eight histories. Cutting the read budget to three leaves all eight unresolved. The result would look very different if the benchmark supplied a free copy of the past.
See the finite argument and its limits
With B retained bits there are K = 2B possible states. Two histories with distinct answer profiles cannot share a state that issues a complete correct answer. When D ≤ K, a code per profile suffices if the records can be read. When D > K, at least one state must represent an unresolved collision. At most K − 1 distinct profiles can receive full safe answers. Reserve that many codes for the most frequent profiles and one for all others. This attains the bound. For equally frequent distinct profiles the fraction is (K − 1) / D. Re-reading a source after restart, answering only part of the query or allowing errors changes the problem.
For priced reads the exact small search tries each eligible set of safe profiles. At every node it tries stopping or paying for each permitted observation, then solves both resulting branches with the remaining budget. Every deterministic decision tree in this finite family has one of those first moves. The planner chooses the most completed histories and breaks ties by total read cost. Its output includes the tree, charges and number of planning states. Planning itself consumes resources. We have no joint optimality result for a hard limit on planner time, evolving access rights, an unprovided vocabulary or a replacement trust anchor.
The graph borrows Gardner’s question about capacity as load grows. Its threshold follows from the finite number of memory states. Gardner’s neural-network threshold describes a different system. Gardner’s original paper · Joint search records
Can v2 quietly drop a promise?
The first edition requires manager approval above the shop’s limit and promises a receipt. Joe’s proposed edition only mentions receipts. Give the reviewer that proposal without identifying what changed. It retrieves the issued edition, checks every declared case and shows a witness. A withdrawal leaves the future behavior unspecified.
Reading the issued edition…
The browser stores this example’s issued editions on this device. A new tab can recover the decision. In a team deployment the authority and storage must be shared and authenticated.
Walk one change from promise to release
Mary Jane promised a shared table. Joe asks to put pickup in the window. In this example the layout record says that window is the only place the table fits. The declared observable is whether customers can still use it. Review once, then try turning off access or cutting the evidence budget.
Edit the contract
The browser runs the downloadable finite interpreter. Its owner and receiving desk are local examples. In the terminal walkthrough, independent Python semantics checks a proposed reader, rejects a corrupt reader, and queries a separately materialized SQLite destination after restart. Run the walkthrough
Inspect what each implementation served
The same proposal flips the first desk’s approval rule. If desk two requires approval, the combined rule still calls for review. If desk two allows the transaction, the combined decision changes. Each implementation read the same shuffled records and dealt with the same owner and issue controls. Open a served snapshot to see its two desk decisions, combined decision and version.
| Implementation | Other promise | Original | Approved | Issued |
|---|---|---|---|---|
| Phaseline | Desk two allows | v1 · review | v1 · review | v2 · allow |
| Phaseline | Desk two requires approval | v1 · review | v1 · review | v2 · review |
| Alloy + adapter | Desk two allows | v1 · review | v1 · review | v2 · allow |
| Alloy + adapter | Desk two requires approval | v1 · review | v1 · review | v2 · review |
| Versioned Python | Desk two allows | v1 · review | v1 · review | v2 · allow |
| Versioned Python | Desk two requires approval | v1 · review | v1 · review | v2 · review |
These immutable HTTP snapshots replay a controlled release from each implementation. All three use the same SQLite receiver. All 18 snapshots and hashes
One actual decision after rollback
In a separate local VERIFY deployment, PostgreSQL recorded the owner’s decisions and Open Policy Agent evaluated the same $150,000.01 load before and after issue. Each row has a distinct OPA decision ID.
| Receiver stage | Effective version | $150,000.01 load |
|---|---|---|
| Original issued | 1 | Allow |
| Revision approved, awaiting issue | 1 | Allow |
| Revision issued | 2 | Refer |
| Rollback issued | 3 | Allow |
After the receiver shut down, a new reader recovered the version 2 decision and its original ID. The status of a new live transaction was unknown. Read the four native decision IDs and exact revision
A change from a real software release
CPython changed what counts as a valid file suffix. We ran the same 25 calls against released Python 3.13.5 and 3.14.2. In the older version, asking for report.txt with suffix "." raises ValueError. The newer version returns report.. A root path still fails in both versions. This is a deterministic change a checker can miss if it only verifies each version against its own current specification.
Phaseline, Alloy and versioned Python each predicted the observed acceptance result on all 25 inputs, including all four changed cases. The installed standard libraries supplied the outcomes. We supplied the behavior model and input mapping. This checks the supplied model against those 25 calls on two released interpreters. Outside-team authoring cost remains unmeasured. Predictions and observed return values · Python’s release documentation
When to choose each tool
- Phaseline for maintaining commitments across releases
- The finite experiment on this page includes a history reader and a release adapter. The standalone CLI compares the editions you supply and can identify actions awaiting evidence. In the separate refund benchmark, the private checker took 0.65 ms warm at eight independent rules. The finite edition on this page has a different contract.
- Alloy for exploring a relational design
- Choose Alloy when you already work in relations, need to find counterexamples or want to explore richer structures over a declared scope. It tied here given the same evidence adapter and release constraints. In the refund benchmark it answered all 96 cases above the native checker’s eight-rule selection cap. Native head-to-head results · Alloy’s modeling scope
- Versioned code when your team already owns the release machinery
- A Python implementation with the same history reader, codec, authority and destination reached the same frontier. The potential Phaseline advantage is how much of that work a second team can reuse. Measuring that requires a team bringing an unfamiliar change and counting all the work to deliver it.
How far the research carries
- What the executable covers
- It groups histories by observable consequences, discovers a representation within a supplied grammar, prices authorized reads, builds the finite reader and checks a decoder against independent semantics. It supports intentional owner changes, staged delivery, historical receipts, safe migration and a refusal when a new distinction cannot be recovered.
- What remains open
- Someone still has to establish which observations matter to the customer, identify trustworthy sources, supply or justify the meaning of new terms, and connect each real destination. The checker has a fixed trust anchor. Discovering new observables, validating a changed trust anchor and demonstrating lower total cost on unfamiliar releases remain open. Those are part of the full research objective.