# Bark Publisher Licence (`BPL-1.0`)

> **Version:** 1.0 (Effective 2026-12-02)
> **Canonical URL:** [`https://tty.pt/bark/bpl`](https://tty.pt/bark/bpl)
> **Portuguese Version (Prevailing Legal Text):** [Licença de Publisher Bark (`BPL-1.0`)](pt/bpl-1.0.md)
> **Entitlement Schedules:** [BPL Schedules (`v1.0`)](bpl-schedules.md)
> **Moral Foundation:** [Bark Ethical Use Covenant (`v1.0`)](../ethical-use-covenant.md)
> **Legal Notices:** `legal@tty.pt`

---

## 1. Parties, Scope & Prevailing Language

1.1 **Licensor:** **Paulo André Azevedo Quirino**, operating independently under **`tty.pt`**, Portugal ("**Licensor**" or "**`tty.pt`**").

1.2 **Publisher:** The vetted natural or legal person who applies through the Bark Publisher Portal (`https://tty.pt/bark/portal`), accepts this Licence and the Bark Ethical Use Covenant (`v1.0`), and receives explicit operator authorization ("**Publisher**").

1.3 **Exclusively Managed by `tty.pt`:** This Bark Publisher Licence (`BPL-1.0`) governs strictly the legal relationship between `tty.pt` and the Publisher regarding the Bark SDK, Bark Runtime, packaging tools, and hosted lease/package authority. No third party is authorized to grant, modify, or sublicense `BPL-1.0` rights on behalf of `tty.pt`.

1.4 **Prevailing Language:** This Licence is published in European Portuguese (`PT-PT`) and English (`EN`). In the event of any conflict or ambiguity in legal interpretation under Portuguese law, the **Portuguese (`PT-PT`) text prevails**; this English text is the official international commercial text.

---

## 2. Definitions

- **"Bark SDK"** means the proprietary C headers (`<bark/*.h>`), build fragments (`bark.mk`), command-line packaging and publishing tools (`bark-pack`, `bark-brand`, `bark-publish`, `bark-ci`, `bark-init`), browser shell (`bark-boot.js`), partner backend library (`bark-partner.mjs`), and linkable runtime objects distributed by `tty.pt` to authorized Publishers.
- **"Bark Runtime"** means the proprietary loader, encrypted slice decryption/execution substrate, and cryptographic lease/ticket verification components bundled into or executed alongside a Publisher Application.
- **"Bark Platform Services"** means `tty.pt`'s hosted publisher portal, SDK download endpoints, encrypted package distribution endpoints, partner token verification/minting endpoints, and cryptographic lease authority.
- **"Publisher Application"** means the software application authored, owned, or lawfully controlled by the Publisher (including the Publisher's own C/source code, UI, assets, brand, backend, and databases) compiled with the Bark SDK and registered under an authorized `app_id`.
- **"End User"** means a natural or legal person who obtains or runs a Publisher Application from the Publisher.
- **"Ethical Use Covenant"** means the Bark Ethical Use Covenant (`v1.0`) published at `https://tty.pt/bark/covenant`, incorporated herein by reference.
- **"Schedule"** means an applicable BPL Entitlement Schedule (`BPL-Commercial`, `BPL-Grant`, or `BPL-Friend-Discount`) specifying commercial terms, quotas, or complimentary grant terms for a Publisher or `app_id`.

---

## 3. Vetting & Grant of Publisher Licence

3.1 **Human Vetting Prerequisite:** No rights under this Licence take effect until the Publisher has (a) truthfully described their project and intended use, (b) explicitly accepted this `BPL-1.0` and the Ethical Use Covenant, and (c) received explicit operator authorization from `tty.pt`. Pending accounts have zero rights or privileges.

3.2 **Limited, Revocable Grant:** Subject to strict compliance with this Licence, the Ethical Use Covenant, and the applicable Schedule, `tty.pt` grants the Publisher a **non-exclusive, non-transferable, non-sublicensable, revocable, worldwide licence** to:
  (a) install and use the Bark SDK internally (including on the Publisher's own developer workstations and private CI/CD runners) solely to compile, package, sign, and test authorized Publisher Applications;
  (b) link and bundle the Bark Runtime in object/binary/WebAssembly form into authorized Publisher Applications registered under approved `app_id`s;
  (c) distribute the bundled Bark Runtime to End Users **solely as an inseparable runtime component of an authorized Publisher Application**, and grant End Users the limited right to execute that bundled Bark Runtime strictly as necessary to run the Publisher Application; and
  (d) connect authorized Publisher Applications and Publisher backends to the Bark Platform Services within the quotas of the applicable Schedule.

3.3 **No Source Disclosure & Restrictions:** Except as expressly permitted in Section 3.2 or by non-waivable law (Section 3.4), the Publisher shall **not**:
  (a) redistribute, resell, publish, mirror, or provide third-party access to the Bark SDK, SDK tarballs, or standalone Bark Runtime binaries;
  (b) reverse-engineer, decompile, disassemble, deobfuscate, or attempt to extract source code, cryptographic keys, obfuscation passes, or lease protocols from the Bark SDK or Bark Runtime;
  (c) circumvent, disable, forge, replay, or tamper with Bark cryptographic leases, tickets, quotas, or revocation controls;
  (d) share scoped CI/partner tokens across unauthorized applications or third parties; or
  (e) use the Bark SDK to build a competing software protection, DRM, or lease-packaging service.

3.4 **Mandatory EU & Portuguese Law Carve-Out:** Nothing in Section 3.3 restricts the narrow, non-waivable statutory rights granted to a lawful software user under Directive 2009/24/EC and Portuguese **Decree-Law No. 252/94** (Articles 6 and 7) — specifically: making an essential backup copy where necessary for lawful use, observing/studying/testing the functioning of the program while performing licensed acts, and decompilation strictly limited to achieving interoperability with an independently created program **only** if the required interface information is not already published and has not been made available by `tty.pt` within a reasonable period after a written request to `legal@tty.pt`.

---

## 4. Publisher Ownership & Zero Lock-In

4.1 **100% Ownership of Publisher Application:** `tty.pt` claims **zero ownership, zero copyright, zero revenue share (unless expressly agreed in a separate written contract), and zero control** over the Publisher Application, its source code, the Publisher's Ed25519 signing private key (`pub.sk`), brand, trademarks, backend infrastructure, databases, or customer relationships.

4.2 **Zero Source Upload:** The Publisher's application source code and signing private key (`pub.sk`) remain strictly on the Publisher's own repositories and infrastructure. Only signed, encrypted release packages and public metadata are transmitted to Bark Platform Services.

4.3 **No Dependency Lock-In:** Nothing in this Licence restricts the Publisher from building, porting, or hosting the Publisher Application on open-source `tty-pt` libraries (under their respective open-source licences) or any other technology stack at any time.

---

## 5. Third-Party End-User Licensing (Design A Rules)

5.1 **Full Freedom Over Your Own EULA & Commercial Terms:** The Publisher retains complete freedom to license the Publisher Application to End Users under the Publisher's own End-User Licence Agreement (EULA), Terms of Service, SaaS agreement, pricing, SLA, support policy, RGPD/GDPR documentation, and governing law — **provided** the Publisher respects the four guardrails in Section 5.2.

5.2 **Four Mandatory Guardrails:**
  1. **No Sublicensing of Bark as Publisher's Own:** The Publisher may authorize End Users to execute the bundled Bark Runtime solely as part of the Publisher Application, but may never grant End Users rights to extract, copy, modify, or independently license the Bark Runtime or Bark SDK.
  2. **Mandatory Bark Runtime Pass-Through Notice:** Every distribution of a Publisher Application to End Users must include (verbatim inside the Publisher's EULA/Terms of Service, or clearly incorporated by reference and shipped alongside the application) the [**Bark Runtime Pass-Through Notice**](bark-runtime-notice.md) (`BARK-RUNTIME-NOTICE.txt` / `BARK-RUNTIME-NOTICE-PT.txt`), establishing: (i) `tty.pt`'s ownership of the bundled Bark Runtime, (ii) the prohibition on reverse-engineering/tampering with Bark leases (with EU statutory carve-out), (iii) the End User's obligation to abide by the Bark Ethical Use Covenant moral floor, and (iv) zero warranty and zero direct liability from `tty.pt` to the Publisher's End Users.
  3. **No Strong Copyleft Contamination:** The Publisher may license their own application code as proprietary, source-available, or permissive open-source (such as BSD-2-Clause, MIT, or Apache-2.0), but may **not** distribute a Bark-linked binary under a strong copyleft licence (such as GPL or AGPL) in any manner that purports to require disclosure, relicensing, or free redistribution of the proprietary Bark Runtime or Bark SDK.
  4. **Covenant Alignment:** The Publisher Application, its marketing, and its end-user terms must remain compatible with the Ethical Use Covenant.

5.3 **Optional Ready-Made BUL Publisher Template:** Publishers who prefer not to draft a custom end-user licence may optionally adopt the [**BUL-1.0 Publisher Template**](bul-publisher-template.md) with the Publisher named as Licensor. Adopting the unmodified template automatically satisfies Section 5.2(2).

---

## 6. Ethical Use Covenant & Moral Custody

6.1 **Express Scope-of-Licence Condition:** Full adherence to the [Bark Ethical Use Covenant (`v1.0`)](../ethical-use-covenant.md) — including the five explicitly excluded use categories (gambling/predatory finance, pornography/sexual exploitation, psychological addiction/manipulation, malware/fraud/surveillance abuse/weapons, and attacks on faith/human dignity) — is a fundamental, continuing condition of this Licence.

6.2 **Truthful Disclosure:** The Publisher warrants that all project descriptions and intended-use disclosures submitted during vetting are truthful and complete, and agrees to notify `legal@tty.pt` before materially pivoting an authorized `app_id` into a new domain.

---

## 7. Fees, Quotas, Taxes & Fair Resources

7.1 **Schedules Control Commercial Terms:** Subscription fees, complimentary grants, permanent discounts, application/package size quotas, and fair-share rate limits are specified in the applicable [BPL Schedule](bpl-schedules.md) or written grant notice.

7.2 **Taxes:** Unless stated otherwise, commercial fees are exclusive of applicable Portuguese IVA (VAT) or other statutory taxes, which will be invoiced transparently in accordance with Portuguese tax law.

7.3 **Fair-Share Platform Protection:** `tty.pt` reserves the right to enforce documented per-publisher quotas (`max_storage_mib` total hosted disk space across packages and versions, `max_apps`, `max_pkg_mib`, and reasonable request rate limits) so that no single Publisher degrades shared platform stability or reserved community infrastructure (including the public site and `NeverDark`).

---

## 8. Term, Two-Tier Revocation & Pro-Rata Refunds

8.1 **Revocable Licence:** This Licence continues for the period defined in the applicable Schedule (or indefinitely without fixed term for `BPL-Grant`) unless terminated by either party.

8.2 **Publisher Termination:** The Publisher may stop using Bark and cancel a subscription at any time with written notice to `legal@tty.pt` or via the portal, effective at the end of the current paid period (or immediately for `0 €` grants).

8.3 **Two-Tier Revocation by `tty.pt`:**
  - **Tier 1 — Immediate Suspension or Revocation (Zero Notice):** `tty.pt` may immediately suspend or revoke a Publisher account or specific `app_id` without prior notice for grave or willful breaches, including: any violation of the Ethical Use Covenant's excluded uses, malware/fraud/illegal acts, circumvention or prohibited reverse-engineering of Bark protections, credential abuse, non-payment after grace period, or material misrepresentation during vetting.
  - **Tier 2 — Written Notice + 30-Day Migration Window:** Where an honest Publisher's product evolves into an area that `tty.pt` cannot in good conscience continue to support (non-grave conscience divergence or scope drift), or where `tty.pt` discontinues a Bark service tier, `tty.pt` will provide written notice and a **30-day transition window** during which existing lease services remain operational so the Publisher can migrate cleanly off Bark.

8.4 **Surgical Per-App Revocation:** Where a Publisher operates multiple independent applications, `tty.pt` may suspend or revoke a single non-compliant `app_id` without automatically revoking unrelated compliant applications.

8.5 **Effect of Termination:** Upon effective termination or revocation, the Publisher's right to download the Bark SDK, publish new packages, mint tokens, and issue/renew Bark leases ceases. The Publisher's 100% ownership of their application code, brand, keys, and End-User contracts remains completely unaffected.

8.6 **Zero Unjust Enrichment (Explicit Pro-Rata Refund):** In accordance with Article 473.º of the Portuguese Civil Code, whenever `tty.pt` revokes or terminates a **paid, prepaid** Publisher subscription prior to the end of its billing period (other than for fraud, willful grave breach under Tier 1, or payment chargebacks), `tty.pt` shall refund the unused portion of the prepaid fee within 30 days using the exact formula:

```text
refund = prepaid_amount × (remaining_days / period_days)
```

Complimentary `0 €` grants (`BPL-Grant`) incur zero fees and zero refund obligation by either party.

---

## 9. Privacy, Cryptographic Leases & RGPD Transparency

9.1 **Data Minimization:** Bark Platform Services process strictly the minimum technical data needed to operate publisher accounts and cryptographic leases: publisher account identifier, registered `app_id`s, Ed25519 public keys, cryptographic token hashes, lease expiry/entitlement metadata, and operational security/abuse logs.

9.2 **What `tty.pt` Never Collects:** `tty.pt` never collects Publisher source code, signing private keys (`pub.sk`), End-User application documents/prompts/audio/databases, advertising identifiers, or cross-site behavioural profiles.

9.3 **Independent Data Controllers:** With respect to personal data under Regulation (EU) 2016/679 (RGPD/GDPR), `tty.pt` acts as an independent data controller strictly for Publisher account administration and platform security; the Publisher acts as an independent data controller for all personal data of its own End Users.

---

## 10. Disclaimer of Warranty, Liability Separation & Cap

10.1 **As-Is Platform:** Unless expressly agreed in a separate signed Service Level Agreement (SLA), the Bark SDK, Bark Runtime, and Bark Platform Services are provided **"AS IS"** and **"AS AVAILABLE"**, without warranties of any kind, whether express, implied, or statutory (including merchantability, fitness for a particular purpose, or uninterrupted availability).

10.2 **Independent Businesses & Zero End-User Liability:** Nothing in this Licence creates a partnership, joint venture, agency, franchise, or employment relationship. The Publisher is solely responsible for its End Users (contracts, billing, taxes, support, regulatory compliance, and RGPD). `tty.pt` has no liability toward any third-party Publisher's End Users.

10.3 **Publisher Indemnification:** The Publisher shall indemnify and hold harmless `tty.pt` against third-party claims, damages, or regulatory penalties brought by the Publisher's End Users or third parties arising out of (a) the Publisher Application's own defects, content, or legal/RGPD non-compliance, (b) the Publisher's breach of Section 5.2 (including failure to include the Bark Runtime Pass-Through Notice), or (c) breach of the Ethical Use Covenant.

10.4 **Limitation of Liability (Portuguese Law Compliant):** To the maximum extent permitted by Portuguese law, `tty.pt` shall not be liable for indirect, incidental, consequential, or lost-profit damages, and `tty.pt`'s total aggregate contractual liability arising out of this Licence shall not exceed the total fees actually paid by the Publisher to `tty.pt` under this Licence during the **twelve (12) months** preceding the event giving rise to liability (or **EUR 50.00** for complimentary `0 €` grants).

10.5 **Non-Waivable Statutory Liability (Art. 809.º Código Civil):** Nothing in this Licence excludes or limits liability for willful misconduct (*dolo*), gross negligence (*culpa grave*), death or personal injury caused by negligence, or any other liability that cannot lawfully be excluded under Portuguese law.

---

## 11. Corporate Succession, Updates & Governing Law

11.1 **Succession (`Unipessoal Lda.`):** Licensor (**Paulo André Azevedo Quirino / `tty.pt`**) may assign this Licence and all associated rights and obligations to a wholly-owned Portuguese successor company (such as a *Sociedade Unipessoal por Quotas*) upon written notice to the Publisher. All active subscriptions, complimentary grants (`BPL-Grant`), and permanent friend discounts (`BPL-Friend-Discount`) remain fully binding on the successor company on identical terms. The Publisher may not assign this Licence without `tty.pt`'s prior written consent.

11.2 **Versioning & Updates:** New versions of `BPL` may be published at `https://tty.pt/bark/bpl` with a new version number (`BPL-1.1`, `BPL-2.0`, etc.). Material changes take effect for existing Publishers only upon renewal or after at least 30 days' written notice; if a Publisher declines a material change, they may terminate and receive a pro-rata refund of any unused prepaid period.

11.3 **Severability:** If any provision of this Licence is held invalid or unenforceable by a competent court, the remaining provisions remain in full force and effect, and the invalid provision shall be construed as closely as possible to its original lawful intent.

11.4 **Governing Law & Jurisdiction:** This Licence is governed by and construed in accordance with the laws of **Portugal**. Any dispute arising out of or in connection with this Licence shall be submitted to the **competent courts of Portugal**.

11.5 **Legal Notices:** All formal notices to `tty.pt` must be sent to **`legal@tty.pt`**.

---

# Bark Publisher Licence — Entitlement Schedules (`v1.0`)

> **Version:** 1.0 (Effective 2026-12-02)
> **Base Licence:** [Bark Publisher Licence (`BPL-1.0`)](bpl-1.0.md)
> **Portuguese Version (Prevailing Legal Text):** [Anexos da Licença de Publisher Bark (`v1.0`)](pt/bpl-anexos.md)
> **Legal Notices:** `legal@tty.pt`

These Entitlement Schedules supplement and form part of the **Bark Publisher Licence (`BPL-1.0`)**. Each authorized Publisher account (and, where specified, each individual `app_id`) operates under one or more of the Schedules below. In the event of conflict between a Schedule and the base `BPL-1.0` text, the Schedule prevails strictly on commercial, fee, and quota terms, while the Ethical Use Covenant, Design A guardrails, and legal safeguards of `BPL-1.0` always remain in force.

---

## Schedule 1: `BPL-Commercial` (Vetted Paid Publisher Subscription)

1. **Eligibility:** Vetted independent developers, studios, and companies authorized by `tty.pt` at `/bark/portal` to distribute commercial or proprietary applications via Bark.
2. **Pricing Principle:** Subscription tiers (`indie`, `pro`, or `custom`) are billed at the transparent rates published or confirmed in writing by `tty.pt`, structured to remain honestly and noticeably less expensive than bloated competing cloud/DRM stacks, with **0% sales commission** on Publisher revenue.
3. **Quotas:** Each plan specifies explicit total hosted disk-space limits (`max_storage_mib`, covering all hosted applications, platforms, and versions), application count (`max_apps`), single-package size (`max_pkg_mib`), and fair-share lease throughput quotas shown in `/bark/portal`.
4. **Support Boundary:** Includes access to the Bark SDK, documentation, and reasonable platform availability for hosted Bark Platform Services. Does **not** include custom application development, N1/N2 support for Publisher End Users, or SLA guarantees unless agreed in a separate written contract.
5. **Pro-Rata Refunds:** Prepaid periods are protected by the explicit pro-rata refund formula in `BPL-1.0` Section 8.6.

---

## Schedule 2: `BPL-Grant` (Complimentary `0 €` Named Publisher Grant)

1. **Grant Scope:** A complimentary, personal, non-transferable **`0 €` Publisher licence** granted in writing by `tty.pt` to a named Publisher (or their directly controlled company), either for one or more explicitly named `app_id`(s) or, when expressly granted at account level, for **that Publisher's own authorized applications**. It applies strictly to the named Publisher's own applications — it is not transferable to third parties and may not be used to resell or white-label Bark as a DRM service — and each new application (`app_id`) remains subject to standard `BPL-1.0` operator vetting and approval.
2. **Term & Revocability:** Granted **without a fixed expiry date** (indefinite duration) and at **`0 €` platform fee** and **`0%` revenue share**, remaining a **revocable platform licence** strictly subject to:
   - the [Bark Ethical Use Covenant (`v1.0`)](../ethical-use-covenant.md),
   - `BPL-1.0` Design A guardrails (including the mandatory [Bark Runtime Pass-Through Notice](bark-runtime-notice.md)), and
   - **explicit disk-space and shared-resource quotas on `tty.pt`:** primary `tty.pt` server resources (CPU, RAM, and disk) are reserved first for the free public community site and `NeverDark`. A `BPL-Grant` covers lightweight lease attestation and hosted package storage within the account's total disk-space quota (`max_storage_mib`) shown in `/bark/portal` — which may cover an unlimited number of the Publisher's own applications (`max_apps=0`) and versions within that disk-space budget (while the Publisher hosts its own heavy application APIs, databases, and realtime traffic on its own infrastructure). If the Publisher outgrows the complimentary shared disk quota, the `0 €` Bark SDK licence remains free and only the excess storage or server capacity moves to dedicated at-cost capacity or a commercial storage tier.
3. **No Custom Coding / Maintenance Obligation:** A `BPL-Grant` confers zero obligation on `tty.pt` to provide custom application coding, feature development, porting, or N1/N2 maintenance for the Publisher Application (any occasional porting help is purely voluntary and at `tty.pt`'s discretion).
4. **Zero Unjust Enrichment:** Because the grant fee is `0 €`, termination or revocation creates zero fee or refund obligation for either party, and never affects the Publisher's 100% ownership of their application code, keys, or customers.
5. **Binding on Successor Company:** Any active `BPL-Grant` remains honored under identical terms if `tty.pt` assigns its business to a successor Portuguese company under `BPL-1.0` Section 11.1.
6. **Strict Scope & Independent Product Freedom:** Even where a `BPL-Grant` covers a named Publisher's own authorized applications at account level, **any non-compete explicitly agreed for a specifically named `app_id` applies strictly and exclusively to that named application**, and no `BPL-Grant` ever blocks or restricts `tty.pt` (or any successor company) from developing, publishing, or commercializing its own independent software products, frontends, or services in any other domain.

---

## Schedule 3: `BPL-Friend-Discount` (Permanent Friend Discount Rider)

1. **Scope:** An optional written rider attached to a named Publisher's account granting a **permanent discount** off standard `BPL-Commercial` subscription fees for additional commercial applications launched independently by that Publisher beyond any `BPL-Grant` application.
2. **Conditions:**
   - Each new application remains subject to standard `BPL-1.0` operator vetting, the Ethical Use Covenant, fair-share resource quotas, and Design A guardrails.
   - The Publisher retains **100% of its application sales revenue (`0%` commission)** and assumes 100% responsibility for its own development, pricing, end-user contracts, support, and RGPD compliance.
   - Non-transferable and personal to the named Publisher (or their directly controlled company); remains honored by any `tty.pt` successor company under `BPL-1.0` Section 11.1.
