// Charter.jsx — full draft charter v0.1
function Charter() {
  return (
    <div className="charter">
      <div className="charter-meta">
        <table className="charter-meta-table">
          <tbody>
            <tr><th>Status</th><td>Pre-formation. Not yet announced.</td></tr>
            <tr><th>Founding Members under discussion</th><td>Roger Hahn (PatentBench); CBlindspot team (DraftBench, ValueBench announced); third Founding Member <strong>TBA</strong>.</td></tr>
            <tr><th>Target announcement</th><td>INTA 2026, May 2026</td></tr>
            <tr><th>Document date</th><td>April 29, 2026</td></tr>
            <tr><th>Companion document</th><td>OIPC Open Questions, v0.1</td></tr>
          </tbody>
        </table>
      </div>

      <ChSec n="1" title="Purpose">
        <p>The Open IP Council exists to establish, govern, and steward open standards for evaluating AI tools used in intellectual property workflows. The Council's outputs are reproducible benchmarks, shared methodology conventions, and integrity standards that buyers, vendors, insurers, and academics can rely on as a credible reference for procurement, professional responsibility, and academic citation.</p>
        <p>The Council does not own any individual benchmark. It coordinates, accredits, and publishes joint reports. Each benchmark remains independently owned by its maintainer.</p>
        <p>The Council exists because the alternative is that every vendor markets its own internal benchmark and no buyer has a reliable basis for comparison. This pattern has played out badly in adjacent industries (security scanners, EDA tools, legal research) and is currently playing out in AI patent tools.</p>
      </ChSec>

      <ChSec n="2" title="Core Principles" lede="Five principles, intended to be durable across decades, not negotiated per release.">
        <ol className="ch-list">
          <li><strong>Open methodology, open results.</strong> Every accredited benchmark publishes versioned methodology, harness source, and result artifacts. Apache-2.0 default. Methodology disputes resolved through public processes, not closed committees.</li>
          <li><strong>Independent benchmark ownership.</strong> No benchmark is owned by the Council. Each is owned by its maintainer. The Council accredits and coordinates; it does not control.</li>
          <li><strong>Tracks A and B.</strong> Every accredited benchmark combines a hard ground-truth signal (Track A) with an expert panel signal (Track B). Composite scores publish both tracks separately alongside the merged composite.</li>
          <li><strong>Integrity floors over deductions.</strong> Where a workflow has bright-line legal or professional-responsibility violations (fabricated citations under Therasense, inequitable conduct, conflicts of interest), the benchmark imposes a hard floor on composite score, not a deduction. Catastrophic conduct is not averaged into a passing grade.</li>
          <li><strong>Vendor-neutral governance.</strong> No single vendor, law firm, or platform holds majority influence. Governance is structured to prevent capture by any one stakeholder class.</li>
        </ol>
      </ChSec>

      <ChSec n="3" title="Scope">
        <p>The Council's scope is AI tooling for intellectual property workflows.</p>
        <p><strong>In scope:</strong> patent prosecution, drafting, prior art search, claim construction, invalidity analysis, infringement analysis, valuation, trademark prosecution, copyright analysis, IP litigation analytics.</p>
        <p><strong>Out of scope:</strong> general legal AI not specific to IP, contract review, e-discovery, general practice management.</p>
        <p>The Council recognizes that the boundary between IP and general legal AI will blur over time. The scope review is annual.</p>
      </ChSec>

      <ChSec n="4" title="Stakeholder Classes" lede="The Council recognizes five stakeholder classes, intentionally distinct because their incentives diverge.">
        <table className="table-doc">
          <thead><tr><th style={{width:"22%"}}>Class</th><th style={{width:"42%"}}>Description</th><th>Examples</th></tr></thead>
          <tbody>
            <tr><td>Maintainers</td><td>Individuals or organizations operating an accredited benchmark</td><td>PatentBench (Hahn), DraftBench (CBlindspot), future maintainers</td></tr>
            <tr><td>Vendors</td><td>Commercial AI tools subject to benchmarking</td><td>DeepIP, Solve Intelligence, Patlytics, IP Author, Rowan, frontier LLMs</td></tr>
            <tr><td>Buyers</td><td>In-house IP departments and law firms procuring AI tools</td><td>Fortune 500 IP teams, AmLaw 100 IP groups</td></tr>
            <tr><td>Insurers and risk carriers</td><td>Underwriters of professional liability for IP attorneys</td><td>Aon Affinity, Marsh, AIG specialty lines</td></tr>
            <tr><td>Academic and standards</td><td>Law professors, academic institutions, professional bodies</td><td>Stanford CodeX, NYU IP, Berkeley CTSP, AIPLA, INTA</td></tr>
          </tbody>
        </table>
        <p className="ch-note">Each class is represented in governance with structural protections against any single class dominating. See Section 7.</p>
      </ChSec>

      <ChSec n="5" title="Membership Structure" note="Membership openness is unresolved and is the subject of Open Question 1 in the companion document. The structure below is the current draft proposal pending resolution.">
        <p>This draft proposes a tiered membership model.</p>
        <div className="ch-tiers">
          <div className="ch-tier">
            <div className="ch-tier-head">Tier 1 — Founding Members</div>
            <p>Closed list, fixed at formation. The maintainers who launch the Council with their benchmarks. Founding Members hold permanent seats on the Governance Board and have founding-status branding rights. Founding Member status cannot be conferred after the formation window closes.</p>
          </div>
          <div className="ch-tier">
            <div className="ch-tier-head">Tier 2 — Accredited Maintainers</div>
            <p>Operators of benchmarks that have passed the Council's accreditation review. Hold seats on the Methodology Council. Open to individuals, organizations, and academic institutions.</p>
          </div>
          <div className="ch-tier">
            <div className="ch-tier-head">Tier 3 — Stakeholder Members</div>
            <p>Vendors, buyers, insurers, and academic institutions who agree to the Council's principles, pay membership dues (if applicable), and participate in working groups. Open membership with light vetting.</p>
          </div>
          <div className="ch-tier">
            <div className="ch-tier-head">Tier 4 — Observer Members</div>
            <p>Any individual or organization that wants to receive announcements, attend public meetings, and submit comments. Free, no vetting beyond an anti-spam check.</p>
          </div>
        </div>
        <p>This model lets the Council remain open in spirit (Tier 4) while protecting governance from capture (Tiers 1 and 2 closed to qualified maintainers only) and giving stakeholders a meaningful voice (Tier 3).</p>
      </ChSec>

      <ChSec n="6" title="Benchmark Accreditation" lede="A benchmark becomes Council-accredited through a documented review process.">
        <ol className="ch-list">
          <li><strong>Application.</strong> Maintainer submits methodology, harness source, result schema, governance plan, and a statement of how the benchmark satisfies the five core principles.</li>
          <li><strong>Public comment.</strong> 60-day public comment period during which any stakeholder can file methodology objections.</li>
          <li><strong>Methodology Council review.</strong> Existing Accredited Maintainers review the application against published criteria. Decision is by 2/3 supermajority. Appeals go to the Governance Board.</li>
          <li><strong>Annual reaccreditation.</strong> Each accredited benchmark publishes an annual conformance report. Failure to publish is grounds for de-accreditation after a 90-day cure period.</li>
        </ol>
        <div className="ch-subhead">Accreditation criteria</div>
        <ul className="ch-bullets">
          <li>Open methodology, open harness, public reproducibility</li>
          <li>Dual-track scoring or documented justification for single-track design</li>
          <li>Track A integrity standard or hard-floor for legal violations where applicable</li>
          <li>Public test set, or documented hold-out protocol where confidentiality requires</li>
          <li>Vendor-neutral governance of the benchmark itself</li>
          <li>Reproducibility by third parties within a 5% scoring delta</li>
        </ul>
      </ChSec>

      <ChSec n="7" title="Governance Structure" lede="Three bodies, three different purposes.">
        <div className="ch-subhead">7.1 Governance Board</div>
        <p>The senior governing body. Sets strategic direction, ratifies methodology decisions, approves new accreditations, manages finances, hires the Executive Director if any.</p>
        <p>Composition: 9 seats, distributed to prevent stakeholder-class capture.</p>
        <table className="table-doc">
          <thead><tr><th style={{width:"12%"}}>Seats</th><th style={{width:"58%"}}>Constituency</th><th>Term</th></tr></thead>
          <tbody>
            <tr><td>3</td><td>Founding Members</td><td>Permanent</td></tr>
            <tr><td>2</td><td>Accredited Maintainers (elected by Methodology Council)</td><td>2 years, rotating</td></tr>
            <tr><td>1</td><td>Vendor representative</td><td>2 years, rotating</td></tr>
            <tr><td>1</td><td>Buyer representative</td><td>2 years, rotating</td></tr>
            <tr><td>1</td><td>Insurer or risk carrier representative</td><td>2 years, rotating</td></tr>
            <tr><td>1</td><td>Academic representative</td><td>2 years, rotating</td></tr>
          </tbody>
        </table>
        <p><strong>Cap:</strong> no single stakeholder class can hold more than 4 of 9 seats. Founding Members hold 3 seats permanently and cannot exceed that count.</p>
        <p><strong>Decision rule:</strong> simple majority for routine matters, 2/3 supermajority for accreditation, methodology principle changes, and amendments to this charter.</p>

        <div className="ch-subhead">7.2 Methodology Council</div>
        <p>The technical body. Reviews benchmark accreditation applications, resolves cross-benchmark methodology disputes, maintains the shared harness conventions and result schema standards.</p>
        <p>Composition: one representative per Accredited Maintainer. Founding Members hold seats by virtue of operating accredited benchmarks. New maintainers join as their benchmarks are accredited.</p>
        <p>Decision rule: simple majority for technical recommendations, 2/3 supermajority for accreditation decisions.</p>

        <div className="ch-subhead">7.3 Stakeholder Working Groups</div>
        <p>Open-membership working groups organized by topic. Initial proposed groups:</p>
        <ul className="ch-bullets">
          <li>Vendor Adapter Standards (vendor-led, drives interoperability)</li>
          <li>Buyer Procurement Integration (buyer-led, drives adoption in RFPs)</li>
          <li>Insurance and Risk (insurer-led, drives malpractice underwriting integration)</li>
          <li>Academic Methodology Review (academic-led, drives scholarly publication)</li>
        </ul>
        <p>Working groups produce non-binding recommendations to the Governance Board and Methodology Council. They are the primary mechanism for stakeholder voice without complicating governance.</p>
      </ChSec>

      <ChSec n="8" title="Integrity Standards" lede="The Council maintains a small set of integrity standards that apply to all accredited benchmarks regardless of workflow domain.">
        <div className="ch-subhead">8.1 The Therasense Standard</div>
        <p>Any accredited benchmark that evaluates AI tools producing content for filing with a patent or trademark office must include a fabrication-detection layer with a hard floor on composite score.</p>
        <p className="ch-citation"><strong>Doctrinal basis:</strong> <em>Therasense v. Becton Dickinson</em>, 649 F.3d 1276 (Fed. Cir. 2011) (en banc), establishing affirmative egregious misconduct, including citation of nonexistent prior art, as per se material under the inequitable conduct doctrine.</p>
        <p><strong>Operational requirement:</strong> any cited US patent or publication number must be verified against an authoritative source (USPTO PatentsView API, USPTO Patent Public Search, or jurisdictional equivalent). Citations that fail verification trigger a hard floor: composite score equals <code className="code">0.0</code> for that draft or output.</p>
        <p>This standard is not optional for in-scope benchmarks. It is a non-negotiable accreditation criterion.</p>

        <div className="ch-subhead">8.2 The Conflict Standard</div>
        <p>Maintainers of accredited benchmarks disclose all financial relationships with evaluated vendors, including consulting, equity, board service, and paid panel participation. Conflicts do not disqualify; nondisclosure does.</p>

        <div className="ch-subhead">8.3 The Reproducibility Standard</div>
        <p>Every published benchmark run must include sufficient artifacts (inputs, outputs, configuration, raw API responses) for any third party with reasonable resources to reproduce the run within a 5% scoring delta. The 5% threshold is a working figure and is open to revision by the Methodology Council.</p>
      </ChSec>

      <ChSec n="9" title="Founding Members" note="Founding member composition is unresolved and is the subject of Open Question 4 in the companion document.">
        <p>This draft proposes the following Founding Members at announcement:</p>
        <ul className="ch-bullets">
          <li><strong>Roger Hahn</strong> — PatentBench, patent prosecution benchmark, live in production</li>
          <li><strong>CBlindspot</strong> — DraftBench (pre-filing drafting) and ValueBench (announced, valuation)</li>
          <li><strong>Third Founding Member — TBA</strong>; preferably from law firm, corporate in-house, academia, or an existing standards body.</li>
        </ul>
        <p>The case for a third Founding Member at launch: two members can be framed as a partnership; three or more is a coalition. Coalition framing is meaningfully stronger for press, vendor pressure, and resistance to existing brand collisions in this space.</p>
        <div className="ch-subhead">Candidate categories</div>
        <ul className="ch-bullets">
          <li>Academic institution (Stanford CodeX, NYU IP, Berkeley CTSP)</li>
          <li>Existing standards body joining as a sponsor (AIPLA, INTA, IPO)</li>
          <li>Second open benchmark already in development (PriorArtBench maintainer if one emerges)</li>
          <li>Respected individual practitioner with an open-source benchmark project</li>
        </ul>
      </ChSec>

      <ChSec n="10" title="Roadmap">
        <table className="table-doc">
          <thead><tr><th style={{width:"22%"}}>Phase</th><th style={{width:"18%"}}>Window</th><th>Milestones</th></tr></thead>
          <tbody>
            <tr><td>Formation</td><td>May 2026</td><td>Council formation announcement; Founding Members named; Charter v1.0 published; first public meeting scheduled</td></tr>
            <tr><td>Initial accreditation</td><td>Jun–Sep 2026</td><td>Accreditation criteria finalized; first formal accreditations of PatentBench and DraftBench; Stakeholder Working Groups stood up; first members enrolled across Tiers 2–4</td></tr>
            <tr><td>First annual cycle</td><td>Oct–Dec 2026</td><td>First annual Council report; joint cross-benchmark publication; Insurance and Risk working group engages first carrier (target: Aon Affinity)</td></tr>
            <tr><td>Expansion</td><td>2027</td><td>Federation expanded to 4–5 accredited benchmarks; procurement integration with Mitratech or Onit; first academic partnership for ClaimConstructionBench or InvalidityBench</td></tr>
            <tr><td>Institutionalization</td><td>2028</td><td>Council moves to non-profit incorporation or sponsorship under existing institution (AIPLA, Linux Foundation, INTA); academic publication of methodology framework</td></tr>
          </tbody>
        </table>
      </ChSec>

      <div className="ch-colophon">
        This document is a discussion draft. Open questions are tracked in the companion document. Comments and revisions welcomed.
      </div>
    </div>
  );
}

function ChSec({ n, title, lede, note, children }) {
  return (
    <section className="ch-sec" id={"sec-" + n}>
      <div className="ch-sec-head">
        <span className="ch-sec-num">§ {n}</span>
        <h3 className="ch-sec-title">{title}</h3>
        <span className="ch-sec-anchor">#sec-{n}</span>
      </div>
      {note ? <div className="ch-callout"><strong>Note.</strong> {note}</div> : null}
      {lede ? <p className="ch-lede">{lede}</p> : null}
      {children}
    </section>
  );
}

window.Charter = Charter;
