File size: 8,642 Bytes
ff376c5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | """Update the existing local presentation from completed November 18 receipts."""
import hashlib
import html
import json
import re
import shutil
from pathlib import Path
from zipfile import ZIP_DEFLATED, ZipFile
ROOT = Path(__file__).resolve().parents[1]
RUN = ROOT / "runs/release-20261118"
SITE = ROOT / "demos/pipeline/site"
def main():
package = RUN / "upload"
shutil.copytree(package, SITE / "release", dirs_exist_ok=True)
with ZipFile(SITE / "release/environmentexpander-20261118.zip", "w", ZIP_DEFLATED) as z:
for p in sorted(package.rglob("*")):
if p.is_file():
z.write(p, p.relative_to(package))
publication = RUN / "publication.json"
if publication.exists():
pub = json.loads(publication.read_text())
release = f'<a href="{html.escape(pub["url"])}">Verified Hugging Face release</a> · <a href="/release/receipts/publication.json">Revision and download verification</a>'
else:
release = "<strong>Hugging Face publication blocked: no account token is available on computa.</strong> The secure write-token request is pending. No Hugging Face revision has been published or verified yet."
examples = json.loads((RUN / "retail/sample-20.json").read_text())
native = json.loads((RUN / "retail/native-verification.json").read_text())
quality = json.loads((RUN / "retail/distribution-quality.json").read_text())
rows = "".join(
"<tr>"
+ "".join(
f"<td>{html.escape(str(v))}</td>"
for v in [
x["order"]["order_id"],
x["user"]["user_id"],
x["user"]["name"]["first_name"] + " " + x["user"]["name"]["last_name"],
x["order"]["status"],
x["order"]["items"][0]["name"],
sum(i["price"] for i in x["order"]["items"]),
]
)
+ "</tr>"
for x in examples
)
details = html.escape(json.dumps(examples[0], indent=2))
operation = html.escape(json.dumps(native["operation"], indent=2))
content = f"""<section id="release">
<p class="note">Today's completed expansion · November 18, 2026</p>
<h2>7,500 new retail customers. 15,000 new native orders.</h2>
<p>{release}</p>
<p><a href="/release/environmentexpander-20261118.zip">Download the reproducible dataset package</a> · <a href="/release/README.md">Dataset card, license review and reproduction</a> · <a href="/release/manifest.json">SHA-256 manifest</a> · <a href="/release/comparison/measurement.json">Actual token receipt</a></p>
<div class="table-scroll"><table><thead><tr><th>Fresh additions</th><th>Completed counts</th><th>What can run</th></tr></thead><tbody>
<tr><td>tau2 retail</td><td>7,500 customers + 15,000 orders</td><td>Complete native JSON state and pinned tools; SQLite for queries. 8,000 total customers, 16,000 total orders.</td></tr>
<tr><td>Chinook billing</td><td>5,000 invoices + 25,000 lines</td><td>SQLite, reconciled invoice totals and catalog prices.</td></tr>
<tr><td>tau2 telecom</td><td>1,000 customers + 1,000 bills + 2,500 bill items + 1,500 devices + 1,500 lines</td><td>SQLite projection. Native telecom environment/tools were not verified.</td></tr>
<tr><td>tau2 banking</td><td>1,000 people + 1,500 accounts + 5,000 payments</td><td>SQLite ownership projection. No native banking tools, documents or ledger reconciliation.</td></tr>
</tbody></table></div>
<p>Retail generation and initial audit took 17.210 seconds. The relational build/probe times were 5.731 seconds for Chinook, 1.410 for telecom and 1.351 for banking. These are stage times; snapshot, tool verification, engineering retries and publication add time.</p>
<p>Retail seeds: 20261118 through 20261121. Relational recipes: seed 0, 50 times the reviewed acceptance-probe budgets. <a href="/release/retail/report.json">Configuration and stage receipt</a> · <a href="/release/receipts/projections.json">Per-domain receipts</a></p>
<h3>Validity before volume</h3>
<p>15,000 generated orders and 7,500 generated customers passed native read operations. A real cancellation changed a generated order and refunded its payment; fresh state restored the order. All 16 Python bindings passed parity checks on the released state. All SQLite integrity and foreign-key checks passed. Independent SQL found zero total, catalog-price or ownership violations. Eight deliberate corruptions were detected. Seed rows were preserved.</p>
<p><a href="/release/retail/native-verification.json">Native operation receipt</a> · <a href="/release/retail/adapter-validation.json">All-tool parity</a> · <a href="/release/receipts/independent-integrity.json">Independent integrity and field coverage</a></p>
<h3>Measured comparison on real retail records</h3>
<p>Five fixed generated customers, ten fixed order IDs, the same catalog and supplied rules. The model wrote complete pending single-item orders. Code assembled the hybrid orders. Both passed the same schema, finance/ownership/catalog audit and native reads. This measures order assembly under known rules, with programmatic customer identities and IDs in both arms.</p>
<figure aria-label="Measured tokens per accepted order"><figcaption>Tokens per accepted order, measured on ten accepted orders per arm</figcaption><p>Model: <span style="display:inline-block;width:240px;max-width:60%;background:#174e9b;color:white;padding:4px 8px">240.3 input</span><span style="display:inline-block;width:157px;max-width:35%;background:#52754a;color:white;padding:4px 8px">157.1 output</span></p><p>Hybrid: 0 input + 0 output</p></figure>
<p>One paid live call: 2,403 input + 1,571 output = 3,974 tokens. Cache-hit tokens: 0. Cache-miss tokens: 2,403. Retries: 0. Missing usage responses: 0. The configured model and raw usage are in <a href="/release/comparison/calls.json">the call receipt</a>. The gateway returned no dollar charge, so measured dollar spend is unknown. No dollar estimate is substituted.</p>
<p>The large deterministic expansions used zero model calls and zero model tokens. The ten-order measurement is not extrapolated into a bill for those datasets. This experiment does not establish autonomous rule discovery, production quality or an advantage over a named prior pipeline.</p>
<h3>Inspect twenty linked examples</h3>
<p><a href="/release/retail/sample-20.json">Twenty complete user/order examples</a> · <a href="/release/retail/retail.sqlite">Retail SQLite</a> · <a href="/release/retail/expanded.json">Complete native state</a> · <a href="/release/retail/tools.py">Python tool bindings</a></p>
<div class="table-scroll"><table><thead><tr><th>Order</th><th>Customer ID</th><th>Name</th><th>Status</th><th>First item</th><th>Item total, USD</th></tr></thead><tbody>{rows}</tbody></table></div>
<details><summary>One complete linked user and order</summary><pre>{details}</pre></details>
<details><summary>Actual API operation: cancel_pending_order, before and after</summary><pre>{operation}</pre></details>
<h3>Coverage and limits</h3>
<p>The seed catalog and geographic tuples are reused. Saved name vocabulary adds hyphenated surname pairs; identities and emails are unique. Repeated baskets across different customers are explicitly allowed for this scale run. {quality["novel_basket_rate"]:.1%} of added baskets differ from seed baskets; the added-cohort duplicate-basket rate is {quality["duplicate_basket_rate"]:.1%}. Product-mix total variation distance is {quality["product_total_variation_distance"]:.4f}; status quotas match the seed. <a href="/release/retail/distribution-quality.json">Distribution receipt</a></p>
<p>107 new telecom bills have no items under the reviewed sparse-projection rule. Airline was not freshly expanded. Solver difficulty, rule discovery and training quality remain unevaluated. Tau2 and Chinook MIT notices are included; the bundled expander source has no repository license grant. The card states the license scope.</p>
</section>"""
revision = hashlib.sha256((package / "manifest.json").read_bytes()).hexdigest()[:16]
content = re.sub(r'href="(/release/[^"?]+)"', lambda m: f'href="{m[1]}?v={revision}"', content)
p = SITE / "index.html"
page = p.read_text()
page = re.sub(r'<section id="release">.*?</section>', "", page, flags=re.DOTALL)
page = page.replace("<main>", "<main>\n" + content, 1)
if '<a href="#release">' not in page:
page = page.replace(
'<nav aria-label="Page sections">',
'<nav aria-label="Page sections"><a href="#release">Today\'s release</a>',
1,
)
p.write_text(page)
if __name__ == "__main__":
main()
|