# Spacetime Discreteness Aiwiki — Schema

## Deep-loop sweep JSON output

Each sweep agent returns an array of paper objects with this exact frontmatter:

```json
[
  {
    "paper_id": "arxiv:2412.01234" | "doi:10.1088/1361-6382/..." | "doi:10.1103/PhysRevD..." | ...,
    "title": "...",
    "authors": ["First Last", ...],
    "date": "YYYY-MM",
    "venue": "arxiv:gr-qc 2024-12" | "Phys. Rev. D 109 (2024) 044012" | "Class. Quantum Grav. 41 (2024) 015003" | ...,
    "summary": "<3-sentence summary; focus on what closure mechanism the claim engages>",
    "candidate_bill": "Bill_1" | ... | "Bill_13" | null,
    "candidate_meta_cost": "M1" | ... | "M6" | null,
    "verdict": "known_bill" | "needs_gate" | "out_of_scope" | "needs_gate_declaration" | "rebuttal_paper",
    "confidence": 0.0..1.0,
    "watchlist_tier": "monthly" | "quarterly" | "triggered" | null,
    "program": "LQG" | "Spinfoam" | "CDT" | "CausalSet" | "AsymptoticSafety" | "GFT" | "Holographic" | "EmergentGravity" | "EFT-derived" | "other:<name>",
    "discreteness_observable": "area_eigenvalue" | "volume_eigenvalue" | "dimensional_flow" | "non_locality_signature" | "graviton_anomalous_dim" | "primordial_GW_signature" | "matter_coupling_modification" | "none_specified" | "other:<name>",
    "claimed_distinguishability_from_continuum": true | false | "weak" | "asymptotic_only",
    "observational_constraint_addressed": ["Lorentz_invariance" | "IceCube_threshold" | "Fermi_GRB_dispersion" | "HESS_AGN" | "graviton_dispersion" | "cosmological_constant" | "neutron_interferometry" | ...],
    "matter_coupling_demonstrated": true | false | "kinematic_only",
    "semiclassical_limit_recovered": true | false | "only_in_specific_sector",
    "background_independence_preserved": true | false | "fixed_background_only",
    "experiment_or_observation_pathway": null | "<short: e.g., 'CTA AGN spectrum 2027'>",
    "claimed_advantage_over_continuum_EFT": null | "<short claim>",
    "rebuttal_papers": [{"paper_id": "...", "summary": "..."}, ...],
    "notes": "..."
  },
  ...
]
```

## Bill classifier rule format

`scripts/bill_classifier.py` rules are tuples of (regex, bill, confidence-modifier):

```python
RULES = [
    # (pattern, bill, weight)
    (r"\b(LQG|loop\s+quantum\s+gravity)\b.{0,200}\b(area|volume)\s+(?:operator|eigenvalue|spectrum)", "Bill_1", 0.95),
    (r"\bspinfoam\b.{0,200}\b(amplitude|EPRL|FK)", "Bill_2", 0.95),
    (r"\b(CDT|causal\s+dynamical\s+triangulation)\b.{0,200}\b(dimensional\s+flow|spectral\s+dimension)", "Bill_3", 0.95),
    (r"\b(causal\s+set|causet)\b.{0,200}\b(sprinkling|non[- ]locality)", "Bill_4", 0.95),
    (r"\b(asymptotic\s+safety|UV\s+fixed\s+point)\b.{0,200}\b(graviton|Newton|Reuter)", "Bill_5", 0.95),
    (r"\b(GFT|group\s+field\s+theory)\b.{0,200}\b(condensate|cosmology|primordial)", "Bill_6", 0.95),
    # ...
]
```

Two-pattern AND-form rules used for sub-bill resolution:

```python
RULES_AND = [
    # ((p1, p2), bill, weight)
    ((r"\barea\s+(?:operator|spectrum)\b", r"\b(physical\s+Hilbert|inner\s+product|matter)\b"), "Bill_8", 1.0),
    ((r"\bdiscrete\s+spacetime\b", r"\b(observable|prediction|distinguish)\b"), "Bill_11", 0.95),
    ((r"\bcausal\s+set\b", r"\b(swerve|non[- ]locality|Sorkin\s+integral)\b"), "Bill_4", 1.0),
]
```

## Wiki paper file YAML frontmatter (`wiki/papers/<source>:<date>/<paper_id>.md`)

```yaml
---
paper_id: arxiv:2412.01234
title: "Loop Quantum Gravity in the Physical Hilbert Space: Area Spectrum with Matter Coupling"
authors:
  - First Last
date: 2024-12
venue: arxiv:gr-qc 2024-12
summary: |
  Three-sentence summary tied to the closure mechanism.
bill: Bill_8
meta_cost: null
verdict: known_bill
confidence: 0.92
watchlist_tier: quarterly
program: LQG
discreteness_observable: area_eigenvalue
claimed_distinguishability_from_continuum: weak
observational_constraint_addressed:
  - Lorentz_invariance
matter_coupling_demonstrated: kinematic_only
semiclassical_limit_recovered: only_in_specific_sector
background_independence_preserved: true
experiment_or_observation_pathway: null
claimed_advantage_over_continuum_EFT: "Discrete area gap predicts modified GR dispersion at $E > 10^{20}$ eV"
rebuttal_papers:
  - paper_id: arxiv:2503.05678
    summary: "Shows the dispersion modification is below current IceCube-Gen2 sensitivity."
schema_version: "1.0"
---

(body of the paper note: extended discussion, why this paper triggers Bill_8
specifically, what cousin papers are in the watch-list, etc.)
```

## Bill file format (`wiki/bills/bill_NN_<name>.md`)

```yaml
---
bill_number: 11
bill_name: "★ Observation-distinguishable discreteness signature"
type: bill
empty_space_candidate: true
---

# Bill 11 — ★ Observation-distinguishable discreteness signature

## What gets paid

(prose explanation of the closure mechanism)

## Triggers

| Paper | Date | Notes |
| --- | --- | --- |
| [[arxiv:2412.01234]] | 2024-12 | ... |

## Cousin precedents

(historical anchor papers that established this closure mechanism)

## Re-poll cadence

monthly | quarterly | triggered

## Rebuttal literature

| Paper | Date | What it closes |
| --- | --- | --- |
| ... | | |
```

## Schema versioning

- `schema_version: 1.0` — current draft, will lock when batch 1 returns + verification sweep completes
- Future versions: bump on breaking change, document in `wiki/concepts/schema_changelog.md`
