{
  "schemaVersion": 1,
  "project": "just-every/run-barrow",
  "release": "0.1.4",
  "provenance": {
    "kind": "publisher-release",
    "repository": "https://github.com/just-every/run-barrow",
    "revision": "0c63999496beba5557c3f72af0ee859190d4e631",
    "tree": "f43b4993e803b95c8f9eed7e1af686934462b2ee",
    "publication": "local-release",
    "tag": "v0.1.4",
    "gates": {
      "verify": {
        "status": "PASS",
        "provider": "github",
        "repository": "just-every/run-barrow",
        "commit": "0c63999496beba5557c3f72af0ee859190d4e631",
        "workflowId": 385312819,
        "workflowFile": ".github/workflows/verify.yml",
        "workflowName": "Verify",
        "runId": 46013273029,
        "runUrl": "https://github.com/just-every/run-barrow/actions/runs/46013273029",
        "event": "push",
        "branch": "main",
        "conclusion": "success",
        "install": {
          "status": "PASS",
          "exitCode": 0,
          "tests": 0,
          "passed": 0,
          "failed": 0,
          "skipped": 0,
          "flaky": 0
        },
        "build": {
          "status": "PASS",
          "exitCode": 0,
          "tests": 0,
          "passed": 0,
          "failed": 0,
          "skipped": 0,
          "flaky": 0
        }
      },
      "publishCheck": {
        "status": "PASS",
        "findings": 0,
        "reportSha256": "d5424b7ec3958a014171f6a1ff7abe54d36b210844cc6cd410490f96fc987be1"
      }
    },
    "note": "Local tag and export; no push, deployment or visibility change."
  },
  "listing": {
    "id": "barrow",
    "name": "Barrow",
    "licence": "MIT",
    "repository": "https://github.com/just-every/run-barrow",
    "category": "commerce",
    "categoryLabel": "commerce",
    "version": "0.1.4",
    "oneLiner": "Private wholesale catalogues, customer order review, supplier-approved Pier reservations, invoice CSV handoff and reviewed account move-in.",
    "summary": "Private wholesale catalogues, customer order review, supplier-approved Pier reservations, invoice CSV handoff and reviewed account move-in.",
    "maturity": "first-release-worker-d1-ui",
    "replaces": [
      "NuORDER",
      "Pepperi",
      "Brandboom"
    ],
    "clauses": [
      {
        "id": "BAR-001",
        "title": "Accounts and access",
        "text": "Every product HTTP handler authenticates the current native session or a revocable agent grant. Supplier actions require owner/admin; current customer access is bound to the exact account email. Browser mutations enforce the installation origin and writes recheck current SQL authority. An email edit cannot transfer an existing account or its orders. Company and rep permissions added below must retain this server-side isolation. **Acceptance evidence:** Using the native sign-in and HTTP commands, read as two different buyers, attempt foreign account reads, cross-origin writes and supplier actions as a buyer, then revoke an agent grant. Unauthorized requests return no commercial data and perform no mutation."
      },
      {
        "id": "BAR-002",
        "title": "Orders and invoices",
        "text": "Orders retain exact price, currency, terms and human approval snapshots, and send one durable idempotent command to the chosen inventory authority. Pier remains authoritative when selected. Shortfalls remain explicit and cannot become fully fulfilled invoices; invoicing a permitted split names only its allocated or shipped units. USD integer cents are the US default; legacy AUD records retain their currency. Tax, shipping and collection extend this order record through the clauses below rather than remaining exclusions. Completion is judged on today’s whole-order Pier handoff and invoices: only orders whose entire quantities are acknowledged as reserved are invoiceable; pending and shortfall orders cannot be exported as invoices. ORD-009 inherits eligible-quantity split invoicing before introducing permitted splits. INT-001, INT-004 through INT-010 and INT-017 through INT-020 inherit the exact snapshots, single durable handoff, acknowledgment and shortfall obligations before adding another inventory authority. PAY-001 through PAY-012, TAX-001 through TAX-004 and SHIP-001 through SHIP-005 extend the linked commercial record while preserving its original agreed currency, exact lines, terms and attributed approvals before their respective payment, tax and shipping capabilities ship. **Acceptance evidence:** Prepare and approve a USD order, lose the inventory response and repeat the command; inspect one external reservation, an explicit shortfall, and an invoice limited to eligible quantities. Change current prices afterward and download again: the issued snapshot and currency are unchanged. Repeat for a legacy AUD record."
      },
      {
        "id": "BAR-003",
        "title": "Agent preparation",
        "text": "Revocable seven-day credentials read catalogs and prepare validated drafts, recording their grant identity. People submit and approve. Agents cannot approve, submit, export invoices, import, erase or issue grants. Broader account agents below use this draft-and-human-authority boundary for commercial effects. **Acceptance evidence:** Issue a grant through the owner door, use the documented catalog and prepare-order commands, attempt each prohibited operation, revoke the grant and repeat the read. Inspect the recorded preparing, submitting and approving identities."
      },
      {
        "id": "BAR-004",
        "title": "Account move-in",
        "text": "Base import-kit retains reviewed trade-account CSV plans, original source custody, fingerprints, resumable jobs and undo journals. Source/account changes invalidate approval. Native edits, identity reassignment and order dependencies block unsafe undo; replay resumes the same job. Named platform importers below extend this door. **Acceptance evidence:** Upload the documented account/price CSV through Move in, preview without account writes, refuse a stale fingerprint, apply over several batches and replay it. Inspect originals and journal, then undo untouched accounts and refuse undo after a native edit or dependent order."
      },
      {
        "id": "BAR-005",
        "title": "Export, restore and erasure",
        "text": "Owner archives restore commercial records and import custody while excluding authentication, agent and connection credentials. Erasing an unused account retires import custody and atomically commits the portability redaction checkpoint. A later erasure journal fences an older archive. Ordered-account personal-data erasure follows DATA-003, retaining within-floor commercial history and attribution; identity, inventory and provider custody remain separate and are disclosed. **Acceptance evidence:** Export a populated installation through its portability door, restore into an empty installation and compare commercial records. Confirm credentials are excluded. Erase an unused imported account, export again, and refuse the older archive when supplied with the later journal; explicitly review and execute ordered-account personal-data erasure as the signed-in owner under DATA-003, retaining within-floor commercial history and attribution."
      },
      {
        "id": "BAR-006",
        "title": "Run site",
        "text": "The separate public site introduces Barrow, links to /run and serves repository owner guides at /docs without reading installation data. Installed / remains the Lobby. The existing deployment gate controls publication. Target promises are distinct from the implementation status published by this contract. **Acceptance evidence:** Build with rer build --site, serve the output and traverse the homepage, /run, guide navigation, local assets and a missing guide. Confirm the installed route keeps its Lobby and the site contains no private account data."
      }
    ],
    "clauseCount": 6,
    "nonGoals": [
      "Consumer storefront",
      "Tax calculation and shipping rates",
      "ERP or a second stock ledger"
    ],
    "externals": [
      {
        "name": "cloudflare",
        "reason": "Worker hosting",
        "required": true,
        "data": [
          "HTTP requests"
        ],
        "adapters": []
      },
      {
        "name": "pier",
        "reason": "Live sellable stock and idempotent sales-order reservation",
        "required": true,
        "data": [
          "Permitted SKU stock observations",
          "Customer party IDs and approved order quantities"
        ],
        "adapters": [
          "src/barrow/pier.ts"
        ]
      },
      {
        "name": "stripe",
        "reason": "Merchant-owned hosted card entry, authorization and capture in test mode",
        "required": false,
        "data": [
          "Order and account references, exact currency and amount",
          "Provider payment and event IDs; card brand, funding, billing state and last four digits"
        ],
        "adapters": [
          "src/barrow/card-provider.ts"
        ]
      }
    ],
    "extensionPoints": [],
    "slug": "barrow",
    "homepage": "https://run-barrow.com",
    "headline": null,
    "brand": {
      "mark": "assets/seeds/barrow/mark.svg",
      "markLight": null,
      "colours": {
        "accent": "#1F3FE0",
        "ink": "#0d0d40",
        "paper": "#ffffff"
      }
    },
    "shots": [],
    "look": {
      "home": "sha256:5ec043573a902f22eb4e2ee63962cb89cf4b24a8b8cc3aee32572dcc3d83c711",
      "app": "sha256:1fe38e996d0b118686b3e7c18f882f076cd5ca9f803aec09512d64472ba55ff4",
      "shotsAt": null
    },
    "landing": null,
    "hasReadme": true,
    "hasBaseline": false,
    "manifestFile": "seed.json",
    "spine": {
      "id": "wholesale",
      "record": "A trade account’s priced order, approved by a supplier and reserved in Pier."
    },
    "composition": {
      "base": "base",
      "family": "wholesale",
      "edition": "barrow",
      "modules": [
        "job-queue",
        "release",
        "deploy-kit",
        "container",
        "demo-host",
        "integrations",
        "mail",
        "ai",
        "portability",
        "erasure",
        "dependencies",
        "operator-auth",
        "owner-claim"
      ]
    },
    "operatingCost": {
      "status": "unmeasured"
    },
    "limits": {
      "status": "unmeasured"
    },
    "accessibility": {
      "level": "WCAG 2.2 AA",
      "status": "target; unaudited"
    }
  },
  "artifacts": [
    {
      "path": "documents/seed.json",
      "target": "agents/seeds/barrow/seed.json",
      "sha256": "e00983fda9e7f5defe35145446627df9f16d292ca4126a8c16e2feaa0a3a9895"
    },
    {
      "path": "documents/CONTRACT.md",
      "target": "agents/seeds/barrow/CONTRACT.md",
      "sha256": "8d08cfab3f27342fb994ea030831fd5bfb1b902d74cbfefc2ff46fe609c1af84"
    },
    {
      "path": "documents/AGENTS.md",
      "target": "agents/seeds/barrow/AGENTS.md",
      "sha256": "13685c56531810c3d271c22c82243e8370e74d04138126f24f452b0b07f0b7c2"
    },
    {
      "path": "documents/LICENSE",
      "target": "agents/seeds/barrow/LICENSE",
      "sha256": "2f5076ef027045b9e0e72df8aa61ca8551e54b1877d531656d6e7985b2c32324"
    },
    {
      "path": "documents/RELEASE.json",
      "target": "agents/seeds/barrow/RELEASE.json",
      "sha256": "4896a6a0eaf6cd10b81ef4847df516018f0457501d5ae49e5f779a406d5648ed"
    },
    {
      "path": "documents/README.md",
      "target": "agents/seeds/barrow/README.md",
      "sha256": "0d6b31311f116bb94a7bb6fd6a511c1451c5e4b6eb60493b619467937bebcba8"
    },
    {
      "path": "documents/OPERATIONS.md",
      "target": "agents/seeds/barrow/OPERATIONS.md",
      "sha256": "eaeb11aa2e3f0b33fd0907cd0a64bdd5d5d29b2ec77867c3f62003b520e5ece2"
    },
    {
      "path": "documents/ACCEPTANCE.md",
      "target": "agents/seeds/barrow/ACCEPTANCE.md",
      "sha256": "30f65d84eefa4ac5e333f9c7490392786ac6a4db80d208eb09cf8cd44cefb946"
    },
    {
      "path": "assets/seeds/barrow/mark.svg",
      "target": "assets/seeds/barrow/mark.svg",
      "sha256": "cb7ba656d4dc4e941328cfeed084509b30306fcd00f008761ac06efb25605412"
    }
  ]
}
