{
  "schemaVersion": 1,
  "project": "just-every/run-strap",
  "release": "0.1.0",
  "provenance": {
    "kind": "publisher-release",
    "repository": "https://github.com/just-every/run-strap",
    "revision": "81253395483df4e578fab5000e99d077613958ae",
    "tree": "5075839213982a2dd932c3f12658be8b037441ef",
    "publication": "local-release",
    "tag": "v0.1.0",
    "gates": {
      "verify": {
        "status": "PASS",
        "provider": "github",
        "repository": "just-every/run-strap",
        "commit": "81253395483df4e578fab5000e99d077613958ae",
        "workflowId": 385966268,
        "workflowFile": ".github/workflows/verify.yml",
        "workflowName": "Verify",
        "runId": 45981296257,
        "runUrl": "https://github.com/just-every/run-strap/actions/runs/45981296257",
        "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": "7992f70d60299b5897d8d6617bd2496c485977e4ae9049e293336338aa31be8f"
      }
    },
    "note": "Local tag and export; no push, deployment or visibility change."
  },
  "listing": {
    "id": "strap",
    "name": "Strap",
    "licence": "MIT",
    "repository": "https://github.com/just-every/run-strap",
    "category": "studio",
    "categoryLabel": "studio",
    "version": "0.1.0",
    "oneLiner": "Studio timetable, class credits, waitlist promotion, attendance and member balances.",
    "summary": "Studio timetable, class credits, waitlist promotion, attendance and member balances.",
    "maturity": "first-release-local",
    "replaces": [
      "Mindbody",
      "WellnessLiving",
      "Vagaro",
      "Momence",
      "Arketa",
      "PushPress"
    ],
    "clauses": [
      {
        "id": "AUTH-001",
        "title": "Native roles and private records",
        "text": "Native human owners manage access and approve publication and money drafts. Members see their own balances, packs and bookings and book or cancel only their own classes; instructors see assigned rosters and check attendance only for assigned classes. Every page, JSON command and download checks its own authority. **Acceptance evidence:** Sign in through invitations as an owner, two members and two instructors; read state, submit commands and request reminder downloads across roles; unauthorized work is refused without writes."
      },
      {
        "id": "AUTH-002",
        "title": "Immediate revocation and origin protection",
        "text": "Deactivating a member or instructor or revoking an agent credential rejects its next request. Browser mutations require the configured same origin; bearer credentials cannot impersonate human sessions. **Acceptance evidence:** Deactivate an invited member and revoke an agent key, then reuse their sessions or credentials; attempt cross-origin and malformed commands; require refusal and unchanged records."
      },
      {
        "id": "AGENT-001",
        "title": "Exact drafts and human approval",
        "text": "Agents can read studio context and prepare immutable class weeks, finite packs and balance-reminder drafts. A native human owner approves the exact draft once; changed source facts invalidate approval. Approval keeps the human identity and time. Reminder approval exports reviewed text. **Acceptance evidence:** Use an agent key to prepare a pack and reminder, refuse agent approval and the human endpoint with that key, approve as owner, download the text and refuse duplicate approval."
      },
      {
        "id": "DATA-001",
        "title": "Authoritative transactional studio records",
        "text": "D1 is authoritative for people, capacity, credits, recorded payments and approvals. State revision and transaction fences prevent concurrent requests from overspending a credit or seat; waiting consumes no credit. **Acceptance evidence:** Race public booking commands for one seat and one credit; inspect one confirmed booking, no negative credit balance and no duplicate committed effect."
      },
      {
        "id": "BOOK-001",
        "title": "Eligible credit bookings",
        "text": "A published future class has an assigned instructor and explicit capacity. A member books only with the current waiver acknowledged and an unexpired eligible finite credit; duplicate booking is refused and the seat and credit commit together. **Acceptance evidence:** Publish a reviewed future class, grant packs, book through the member API, attempt a duplicate and missing-waiver booking and inspect capacity and credit state."
      },
      {
        "id": "BOOK-002",
        "title": "Cancellation and eligible FIFO promotion",
        "text": "Before class start an owner or the booked member cancels once, returns one spent credit and promotes the first eligible waiting member in the same transaction. Ineligible waiters cannot spend another member's credits. Configurable late-cancel rules extend this under ATT-002, and front-desk staff and managers cancel, move and restore a member's booking on the member's behalf under SCHED-014. **Acceptance evidence:** Fill a one-seat class, add a waiter, refuse another member's cancellation, cancel the booked seat and inspect one refunded credit and the waiter's confirmed seat and single debit."
      },
      {
        "id": "PACK-001",
        "title": "Reviewed finite class packs",
        "text": "The owner or an agent prepares a member-specific finite pack with credits, amount and expiry. Human approval creates the pack, owed charge and retained approval once. Class credits remain distinct from money owed. Target USD presentation and processor collection extend this foundation. **Acceptance evidence:** Prepare a ten-credit pack, inspect no credits before approval, approve once and inspect ten credits, the exact owed cents and approval; repeat approval is refused."
      },
      {
        "id": "PAY-001",
        "title": "Once-only external receipt recording",
        "text": "Owners record externally received funds against a member with positive whole cents and a unique external reference. Reusing the reference cannot reduce the balance twice. Processor collection is also required by BILL clauses; receipts are one supported payment path. **Acceptance evidence:** Record a partial external receipt against an approved pack, repeat its reference and submit a negative amount; inspect one payment and the remaining balance."
      },
      {
        "id": "WAIVER-001",
        "title": "Exact current waiver acknowledgment",
        "text": "The owner publishes immutable waiver text versions. Members acknowledge the exact current version; publishing a new version requires renewed acknowledgment before booking. An acknowledgment is a version receipt; signed waiver execution is MEM-005. **Acceptance evidence:** Publish two waiver versions, reject booking without acknowledgment and acknowledgment of the obsolete version, acknowledge the latest and book successfully."
      },
      {
        "id": "IMPORT-001",
        "title": "Reviewed member CSV and reversible journal",
        "text": "The owner previews the documented four-column Mindbody-shaped UTF-8 CSV, reviews its fingerprint and applies those exact bytes. Imports create inactive members with no invented credits or charges, retain originals and a resumable journal, and undo untouched imports while preserving later edits. Real incumbent export coverage is MOVE-001 through MOVE-006. **Acceptance evidence:** Upload the documented CSV through import.preview, refuse altered bytes with the old fingerprint, apply and resume to completion, inspect originals, edit one member and undo; the edited member survives."
      },
      {
        "id": "ARCHIVE-001",
        "title": "Complete native archive and guarded restore",
        "text": "The owner exports and restores studio people, classes, packs, bookings, payments, approvals, waivers, import originals and journals using rer export/import. Damaged archives and populated destinations are refused. Sessions, sign-in links, agent keys, provider secrets and development outboxes stay installation-local. A later erasure journal fences an older archive; offline copies cannot discover later erasure unaided. **Acceptance evidence:** Populate a studio through HTTP, export with the public CLI, restore into an empty destination and re-export equal product parts; refuse corruption, a populated destination and a pre-erasure archive with a later journal. MEM-005 obligation before complete signed-document recovery ships: retain exact attributed documents, declarations, stable relationships and historical authority provenance while excluding tablet credentials, personal-copy capabilities, mail-review authority and dispatch authority. Restoring history never restores former guardian access or permits new copy delivery; the native human owner must freshly review and reconnect the current installation. Prove these exclusions using initialized copy records through the public archive and restore doors."
      },
      {
        "id": "ERASE-001",
        "title": "Unused identity erasure fence",
        "text": "The owner can erase an unused, uninvited, non-imported identity. Its identifying data is redacted and an identity fence prevents recreation, CSV reimport and resurrection through a restore supplied with the later journal. Used-member erasure is a further target under SEC-003. **Acceptance evidence:** Erase an unused person through person.erase, inspect absence of their email, refuse recreation and CSV reimport, and run the CLI older-backup/later-journal refusal."
      },
      {
        "id": "AUDIT-001",
        "title": "Retained draft approval records",
        "text": "Class, pack and reminder approvals retain the approved draft, human approver and time. These records travel with native studio archives rather than being discarded on restore. Full staff and automation auditing is SEC-002. **Acceptance evidence:** Approve a pack through HTTP, inspect its draft-linked approval, archive the populated studio and compare the restored approval records."
      },
      {
        "id": "PUBLIC-001",
        "title": "Run site and installed studio doors",
        "text": "The run-site homepage opens /run and serves owner guides at /docs. An installed studio has a separate Lobby at /, setup and sign-in doors and private /app routes. These existing owner-approved pages keep their design and behavior. **Acceptance evidence:** Build the run site, open its homepage, /run and /docs; open the installed Worker Lobby signed out and attempt /app before and after sign-in. Confirm the public and private routes remain separate."
      }
    ],
    "clauseCount": 14,
    "nonGoals": [
      "Card processing",
      "Recurring billing",
      "Payroll",
      "Marketplace",
      "Video classes"
    ],
    "externals": [
      {
        "name": "cloudflare",
        "reason": "Worker hosting",
        "required": true,
        "data": [
          "HTTP requests"
        ],
        "adapters": []
      }
    ],
    "extensionPoints": [],
    "slug": "strap",
    "homepage": "https://run-strap.com",
    "headline": null,
    "brand": {
      "mark": "assets/seeds/strap/mark.svg",
      "markLight": null,
      "colours": {
        "accent": "#6E1041",
        "ink": "#1D1A2A",
        "paper": "#F5F8FB"
      }
    },
    "shots": [],
    "look": {
      "home": "sha256:9f1ea12c6de163b300aed5d93d4bc15b6f7040be59477e824dfe9ff227032cc3",
      "app": "sha256:babdd5a609a0997a33deb511e2a4f527f8eb41fc2f65dc26afbd64ba62600b7c",
      "shotsAt": null
    },
    "landing": null,
    "hasReadme": true,
    "hasBaseline": false,
    "manifestFile": "seed.json",
    "spine": {
      "id": "class",
      "record": "Published studio class occurrence"
    },
    "composition": {
      "base": "base",
      "family": "studio",
      "edition": "strap",
      "modules": [
        "delivery-producer",
        "job-queue",
        "release",
        "deploy-kit",
        "container",
        "demo-host",
        "demo",
        "integrations",
        "mail",
        "ai",
        "portability",
        "d1-transport",
        "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/strap/seed.json",
      "sha256": "18dc2029bf7a37ce83493c524677ed5208a30b89e7ba54f350d5e46492157a28"
    },
    {
      "path": "documents/CONTRACT.md",
      "target": "agents/seeds/strap/CONTRACT.md",
      "sha256": "5bf2a98663551c36f5d40c8b5f6d9047862cd2cf172a83129e23ead54b737498"
    },
    {
      "path": "documents/AGENTS.md",
      "target": "agents/seeds/strap/AGENTS.md",
      "sha256": "e246b8cdc7ccd059821a5ed3cf604278322b9c05347f06fdb1c4a44fb0f724f6"
    },
    {
      "path": "documents/LICENSE",
      "target": "agents/seeds/strap/LICENSE",
      "sha256": "2f5076ef027045b9e0e72df8aa61ca8551e54b1877d531656d6e7985b2c32324"
    },
    {
      "path": "documents/RELEASE.json",
      "target": "agents/seeds/strap/RELEASE.json",
      "sha256": "5a13529482cb8aa36e4cb104f58074943d6bd4e3e7180b7596cc3866c6df33ec"
    },
    {
      "path": "documents/README.md",
      "target": "agents/seeds/strap/README.md",
      "sha256": "d091a54bc841ed36d77771579a1fb8e655755580f388da84b09c04905b8ed6ec"
    },
    {
      "path": "documents/OPERATIONS.md",
      "target": "agents/seeds/strap/OPERATIONS.md",
      "sha256": "8d24afc656316312e6a97661d44cd6464af1d4f61724d9b50c38da8745ea043a"
    },
    {
      "path": "documents/ACCEPTANCE.md",
      "target": "agents/seeds/strap/ACCEPTANCE.md",
      "sha256": "8c88735a9097486bccdd797835bb823df3d6179703a85a583f8ad0c69dcf6f2c"
    },
    {
      "path": "assets/seeds/strap/mark.svg",
      "target": "assets/seeds/strap/mark.svg",
      "sha256": "203fb688db7853887877f2964e83e4fd53d8fe81142d5b63136de57e33ccad9b"
    }
  ]
}
