Spaces:
Running
Running
dboa9 commited on
Commit ·
8e342fc
1
Parent(s): bca09d4
updates
Browse files
.github/copilot-instructions.md
CHANGED
|
@@ -20,11 +20,17 @@ See: `memory-bank/ARCHITECTURE.md` (synced to this repo)
|
|
| 20 |
- Before claiming complete: run `ls -lh` on output PDFs + check `missing_evidence_summary.json`
|
| 21 |
- Every claim requires CLI proof (`ls`, `cat`, `grep`) — no assumptions, no "most likely"
|
| 22 |
|
| 23 |
-
## Exhibit & DB Reference (Court Format)
|
| 24 |
-
-
|
| 25 |
-
-
|
| 26 |
-
-
|
| 27 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
## Protected Files (Never overwrite without explicit permission in capitals)
|
| 30 |
- `enhanced_bundler_wrapper.patched.py`
|
|
|
|
| 20 |
- Before claiming complete: run `ls -lh` on output PDFs + check `missing_evidence_summary.json`
|
| 21 |
- Every claim requires CLI proof (`ls`, `cat`, `grep`) — no assumptions, no "most likely"
|
| 22 |
|
| 23 |
+
## Exhibit & DB Reference (Court Format — MANDATORY FOR ALL LEGAL DOCS)
|
| 24 |
+
- Required format: **Exhibit [Bundle letter][Number] (DB-[N]) — [Filename]**
|
| 25 |
+
- Example: Exhibit G7 (DB-125) — 16_12_25_Lamberth_Email_Complaint_Response_Rent_account_UFN40981138.pdf
|
| 26 |
+
- Exhibit number = bundle letter + sequential (e.g. A15, G7) — set by bundler only, never overwritten
|
| 27 |
+
- DB reference = DB-[N] (e.g. DB-125) — set by `lib/db_registry.py` only, never used as exhibit number
|
| 28 |
+
- Filename MUST be included — DB number alone is not adequate for any doc receiving amendments/edits/insertions
|
| 29 |
+
- NEVER use bare "DB-[●]" or "Exhibit DB-[Number]" as the main identifier
|
| 30 |
+
- NEVER leave "DB-[●]" unresolved in final text — resolve before filing
|
| 31 |
+
- Resolve using: `legal_emails/Phase8/DB_Evidence_List.txt` (DB → filename) + bundle output (DB → Exhibit letter+number)
|
| 32 |
+
- Full instruction: `prompts/legal_exhibit_instruction.txt` (synced to this repo)
|
| 33 |
+
- Engine endpoint: GET https://deebee7-moltbot-hybrid-engine.hf.space/prompts/legal-exhibit-instruction
|
| 34 |
|
| 35 |
## Protected Files (Never overwrite without explicit permission in capitals)
|
| 36 |
- `enhanced_bundler_wrapper.patched.py`
|
memory-bank/EXHIBIT_VERIFICATION_STATUS.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Exhibit Verification Status
|
| 2 |
+
|
| 3 |
+
**Purpose:** Tracks whether exhibit referencing, DB sync, TOC, pagination, metadata, bundle exhibit numbers, and filenames are wired and verified across all systems.
|
| 4 |
+
|
| 5 |
+
## Verified Components
|
| 6 |
+
|
| 7 |
+
| Component | Status | Last verified | Notes |
|
| 8 |
+
|-----------|--------|---------------|-------|
|
| 9 |
+
| DB Registry seeding from `DB_Evidence_List.txt` | OK | 2026-02-13 | `lib/db_registry.py` seeds from authoritative list |
|
| 10 |
+
| Exhibit format: `Exhibit [Letter][Number] (DB-[N]) — [Filename]` | OK | 2026-02-13 | `.cursorrules`, copilot-instructions, engine endpoint all carry this |
|
| 11 |
+
| TOC generation with bundle exhibit numbers | OK | 2026-02-13 | `generate_bundles_final_corrected.py` — tuple and dict row handling |
|
| 12 |
+
| Page stamp with bundle exhibit | OK | 2026-02-13 | `bundle_ex` in page stamp loops |
|
| 13 |
+
| Pagination (physical page = printed page) | MONITOR | 2026-02-09 | Use `tools/pagination_mismatch_analyzer.py` after each bundle run |
|
| 14 |
+
| Metadata on every page (court name, case no, parties) | OK | 2026-02-13 | Verified in recent bundles |
|
| 15 |
+
| Filename protection (no rename under evidence/) | OK | 2026-02-13 | `.cursorrules` enforces; no rename calls in runtime chain |
|
| 16 |
+
| Engine endpoint `GET /prompts/legal-exhibit-instruction` | OK | 2026-02-14 | Returns legal exhibit instruction for LLM clients |
|
| 17 |
+
| Copilot instructions — full exhibit rule | PENDING | — | sync_agent_docs.sh needs update (brief rule only) |
|
| 18 |
+
|
| 19 |
+
## How to Verify After a Bundle Run
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
# 1. Page verifier
|
| 23 |
+
cd /home/mrdbo/projects/courtBundleGenerator3
|
| 24 |
+
python3 pdf_page_verifier_enhanced.py /home/mrdbo/court_data/2nd_CourtBundleOutput
|
| 25 |
+
|
| 26 |
+
# 2. Pagination mismatch analyzer
|
| 27 |
+
python3 tools/pagination_mismatch_analyzer.py /home/mrdbo/court_data/2nd_CourtBundleOutput
|
| 28 |
+
|
| 29 |
+
# 3. Check exhibit numbers in TOC
|
| 30 |
+
python3 -c "
|
| 31 |
+
import json, pathlib
|
| 32 |
+
toc = pathlib.Path('/home/mrdbo/court_data/2nd_CourtBundleOutput').glob('*toc*.json')
|
| 33 |
+
for f in toc:
|
| 34 |
+
data = json.loads(f.read_text())
|
| 35 |
+
print(f.name, len(data), 'entries')
|
| 36 |
+
"
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Source Files
|
| 40 |
+
|
| 41 |
+
- `prompts/legal_exhibit_instruction.txt` — canonical exhibit instruction (synced from P2)
|
| 42 |
+
- `PROMPTS/EXHIBIT_REFERENCING_FOR_LEGAL_DOCS.md` — detailed referencing guide
|
| 43 |
+
- `PROMPTS/LEGAL_WRITING_EXHIBIT_INSTRUCTION.md` — short version for system prompts
|
| 44 |
+
- `legal_emails/Phase8/DB_Evidence_List.txt` — DB number to filename mapping
|
prompts/full_evidence_reference.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Full evidence reference — Exhibit [Letter][Number] (DB-[N]) — [Filename]
|
| 2 |
-
# Generated: 2026-02-15 19:
|
| 3 |
# AUTHORITATIVE: Bundle letters are from actual bundle output, not placeholders.
|
| 4 |
|
| 5 |
Exhibit A1 (DB-1) — 2024_05_23_Summary_Ombudsman_Investigation_Report-merged.pdf
|
|
|
|
| 1 |
# Full evidence reference — Exhibit [Letter][Number] (DB-[N]) — [Filename]
|
| 2 |
+
# Generated: 2026-02-15 19:57:29
|
| 3 |
# AUTHORITATIVE: Bundle letters are from actual bundle output, not placeholders.
|
| 4 |
|
| 5 |
Exhibit A1 (DB-1) — 2024_05_23_Summary_Ombudsman_Investigation_Report-merged.pdf
|