{
  "$schema": "https://chinwag.sh/templates/linear-template.json",
  "schema_version": "CHWG-NATIVE-PM-BOARDS-01.v3",
  "team_name": "Chinwag Autonomous Engineering",
  "team_key": "CHWG",
  "cli_bootstrap_command": "chinwag board init --linear --team CHWG --live",
  "security_invariants": {
    "INV-BOARD-ZERO-LEAK-01": "Private workspace ACLs by default; 4-stage H_board redaction gate before any public roadmap export.",
    "INV-VELOCITY-TIMESTAMP-INTEGRITY-01": "Dual-clock t_claim anchor bound to Linear native createdAt timestamp, base_head_sha 0-dirty-LOC check, and diff-scope Tier Lock (INV-TIER-LOCK-01).",
    "INV-NO-FAKE-DONE-01": "200ms Proof-of-Green card snap-back if chinwag-ci surface-gate (Pillar 12) or ui-gate (Pillar 9: 1440x900 desktop & 390x844 mobile) fails."
  },
  "visibility_modes": {
    "private_default": {
      "default": true,
      "team_private": true,
      "cli_command": "chinwag board init --linear --team CHWG --live",
      "description": "100% private inside your Linear workspace and team ACLs by default."
    },
    "public_opt_in": {
      "default": false,
      "team_private": false,
      "cli_command": "chinwag board init --linear --team CHWG --public-board --live",
      "redaction_gate": "H_board (BoardRedactionReceiptV1 ✓ed25519)",
      "confidential_seats_blocked": ["@PATENT"],
      "description": "Explicit opt-in for public Linear roadmaps; enforces H_board 4-stage redaction before issue creation or attachment updates."
    }
  },
  "native_system_fields": [
    { "name": "Created", "linear_field": "createdAt", "read_only": true, "role": "Immutable creation timestamp anchoring t_claim." },
    { "name": "Updated", "linear_field": "updatedAt", "read_only": true, "role": "Immutable update timestamp tracking sub-issue progress." },
    { "name": "Completed", "linear_field": "completedAt", "read_only": true, "role": "Immutable completion timestamp when verified worktrees merge to main." },
    { "name": "Parent issue", "linear_field": "parent", "read_only": true, "role": "Binds #ID.1..#ID.4 surface sub-issues to the parent issue." },
    { "name": "Sub-issues progress", "linear_field": "children", "read_only": true, "role": "Tracks ☑️ 4/4 completion across Code, Docs/README, Website, and Mobile UI." }
  ],
  "surface_impact_gate": {
    "manifest_schema": "SurfaceImpactManifestV1",
    "ci_pillar": "Pillar 12 · chinwag-ci surface-gate + Pillar 9 · chinwag-ci ui-gate",
    "snap_back_latency_ms": 200,
    "snap_back_invariant": "INV-NO-FAKE-DONE-01",
    "required_surfaces": [
      { "id": "code_cli", "sub_issue_suffix": ".1", "scope": "crates/**, src/**" },
      { "id": "readme_docs", "sub_issue_suffix": ".2", "scope": "README.md, docs/**" },
      { "id": "marketing_telemetry", "sub_issue_suffix": ".3", "scope": "site/**, hosted-relay/**" },
      { "id": "ui_geometry_qa", "sub_issue_suffix": ".4", "scope": "1440x900 desktop & 390x844 mobile Playwright ui-gate" }
    ]
  },
  "workflow_states": [
    {
      "position": 1,
      "name": "01 · 🌱 OPEN BOUNTY (+500 CR)",
      "type": "triage",
      "color": "#20E3B2",
      "description": "External OSS contributor or unassigned spec; awards +500 Corporate OrgWallet Credits on merge."
    },
    {
      "position": 2,
      "name": "02 · 📐 SCOPED & BENCHMARKED",
      "type": "unstarted",
      "color": "#38BDF8",
      "description": "DORA complexity tier (S-XL), SurfaceImpactManifestV1, and disjoint --file-scope contract locked."
    },
    {
      "position": 3,
      "name": "03 · ⚡ IN FLIGHT — CLOCK LIVE",
      "type": "started",
      "color": "#FBBF24",
      "description": "chinwag task claim signed (TaskLeaseV1 ✓ed25519); wall-clock timer running; Sub-Issues fanned out across code, docs, website, and UI."
    },
    {
      "position": 4,
      "name": "04 · ⚖️ TRIBUNAL & COPY GATE",
      "type": "started",
      "color": "#FB923C",
      "description": "Undergoing 12-pillar chinwag-ci: H1, H2, H5, Pillar 9 (ui-gate 1440x900 & 390x844), Pillar 12 (surface-gate), and INV-DECLARATION-COPY-GATE-01. Snaps back in 200ms on any failure."
    },
    {
      "position": 5,
      "name": "05 · ✓ SHIPPED — Δ VERIFIED",
      "type": "completed",
      "color": "#20E3B2",
      "description": "Merged to main; ✓ed25519 Speed Receipt posted; DORA vs. Chinwag multiplier permanently locked."
    }
  ],
  "label_groups": [
    {
      "name": "Δ Speedup vs. DORA",
      "labels": [
        { "name": "⚡ 100x+ Faster vs. DORA", "color": "#20E3B2" },
        { "name": "🚀 50x–99x Faster vs. DORA", "color": "#38BDF8" },
        { "name": "🔥 10x–49x Faster vs. DORA", "color": "#A855F7" },
        { "name": "⏱️ Clock Running — In Flight", "color": "#FBBF24" },
        { "name": "📐 Baseline Locked — Queued", "color": "#64748B" }
      ]
    },
    {
      "name": "DORA Baseline",
      "labels": [
        { "name": "Tier S · 8.5h Eng / 1.1d Cal (<=100 LOC)", "color": "#64748B", "estimate_points": 9 },
        { "name": "Tier M · 27h Eng / 3.4d Cal (100–400 LOC)", "color": "#38BDF8", "estimate_points": 27 },
        { "name": "Tier L · 50h Eng / 6.2d Cal (400–1,200 LOC)", "color": "#A855F7", "estimate_points": 50 },
        { "name": "Tier XL · 112h Eng / 14.0d Cal (1,200+ LOC)", "color": "#FB923C", "estimate_points": 112 }
      ]
    },
    {
      "name": "Execution Mode",
      "labels": [
        { "name": "🔺 3-Seat Triad · Isolated JJ", "color": "#A855F7" },
        { "name": "🌐 Subagent Swarm · Cloud Fan-Out", "color": "#38BDF8" },
        { "name": "🤝 2-Seat Pair · Cross-Model", "color": "#EC4899" },
        { "name": "⚡ Principal Solo · Direct Lease", "color": "#64748B" },
        { "name": "🌱 Open Bounty · +500 Credits", "color": "#20E3B2" }
      ]
    },
    {
      "name": "Architecture Pillar",
      "labels": [
        { "name": "🔒 Kernel & PQ-HPKE Containment", "color": "#20E3B2" },
        { "name": "🤝 CRDT State & Triad Mesh", "color": "#A855F7" },
        { "name": "⚡ Cleanroom CI & Canary Runner", "color": "#38BDF8" },
        { "name": "🎨 Workbench UI & Copy Tribunal", "color": "#EC4899" },
        { "name": "📊 Edge Telemetry & Revenue Ops", "color": "#FB923C" },
        { "name": "🔌 Native Boards & OSS Templates", "color": "#FBBF24" }
      ]
    }
  ],
  "default_view_layout": "board",
  "views": [
    {
      "number": 1,
      "code": "01_KANBAN_EXECUTION_BOARD",
      "name": "01 · Kanban Execution Board",
      "layout": "board",
      "group_by": "workflow_state",
      "show_sub_issues": true
    },
    {
      "number": 2,
      "code": "02_VELOCITY_AND_DORA_LEDGER",
      "name": "02 · Velocity & DORA Ledger",
      "layout": "list",
      "group_by": "workflow_state"
    }
  ],
  "custom_views": [
    {
      "name": "01 · ⚡ Live Fleet Kanban",
      "layout": "board",
      "group_by": "state",
      "show_sub_issues_progress": true
    },
    {
      "name": "02 · ⏱️ Δ Velocity Benchmark (vs. DORA)",
      "layout": "list",
      "group_by": "label:DORA Baseline",
      "aggregation": "sum:estimate"
    },
    {
      "name": "03 · 📐 Gantt Roadmap & Epics",
      "layout": "timeline",
      "group_by": "project"
    },
    {
      "name": "04 · 🌱 Open Bounties (+500 Credits)",
      "layout": "board",
      "filter": { "labels": { "name": { "eq": "🌱 Open Bounty · +500 Credits" } } }
    }
  ],
  "insights_charts": [
    {
      "name": "Engineering Hours Saved per Sprint (SUM)",
      "chart_type": "STACKED_BAR",
      "x_axis": "Completed (Week)",
      "y_axis": "SUM(Net Hours Saved)",
      "group_by": "DORA Baseline"
    },
    {
      "name": "Throughput by Orthogonal Execution Mode",
      "chart_type": "COLUMN",
      "x_axis": "Execution Mode",
      "y_axis": "COUNT(Issues)",
      "group_by": "Δ Speedup vs. DORA"
    },
    {
      "name": "Δ Speedup vs. DORA Distribution",
      "chart_type": "DONUT",
      "group_by": "Δ Speedup vs. DORA",
      "y_axis": "SUM(Net Hours Saved)"
    }
  ],
  "parent_child_fanout": {
    "graphql_mutation": "issueCreate(input: { parentId: $parentId, teamId: $teamId, title: $subTitle, description: $leaseBlock })",
    "receipt_attachment": "attachmentCreate(input: { issueId: $issueId, title: $receiptSummary, url: $commitCompareUrl })"
  }
}
