# cross-reference-check

Find broken internal cross-references ("Section 9.1", "Schedule 3") in a contract draft

- **Space:** legal-ops-public (https://github.com/Tech-Realm/space-legal-ops-public/tree/main/cross-reference-check)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use legal-ops-public/cross-reference-check` or MCP `get_pack legal-ops-public/cross-reference-check`
- **Files:** CHANGELOG.md, code/xref.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/msa.txt, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A list of Section/Clause/Schedule references that point to numbers that do not exist in the document.

Verified by: Fixture MSA references Section 9.1 and Section 2.4 that do not exist; both are reported, valid refs are not.

## Steps

1. Run `python3 code/xref.py draft.txt`.
2. Fix each broken reference in the source document.
3. Re-run after any renumbering.

## Edge cases

- Schedules that are separate files are reported as missing unless their headings are in the text (use --schedules 1,2 to declare them).

## Don'ts

- Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.



---

Canonical URL: https://logicpacks.io/packs/legal-ops-public/cross-reference-check

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
