Reading additional input from stdin...
OpenAI Codex v0.124.0 (research preview)
--------
workdir: /opt/MM_D-ND
model: gpt-5.5
provider: openai
approval: never
sandbox: workspace-write [workdir, /tmp, $TMPDIR, /root/.codex-lab/memories]
reasoning effort: none
reasoning summaries: none
session id: 019e0d3e-9497-7781-baac-8fb5b6c46d52
--------
user
Sei l'AI-Lab D-ND. Leggi tools/data/agent_field_live.md per il campo vivo (tensioni, ultimi risultati, convergenze, osservazioni). Leggi tools/LAB_AGENT_CONTEXT.md per modello, regole, errori da evitare. Esegui un esperimento e scrivi il report in tools/data/reports/agent_20260509_1457.md
warning: Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager. See the sandbox prerequisites: https://developers.openai.com/codex/concepts/sandboxing#prerequisites. Codex will use the vendored bubblewrap in the meantime.
codex
Leggo il kernel operativo e il campo vivo prima di scegliere l’esperimento, così il report resta agganciato allo stato reale del lab. Poi verifico le direttive one-shot e le regole cross-agent recenti.
exec
/bin/bash -lc "sed -n '1,260p' /opt/tm7/TM7_THIA_TM3_OPERATING_PROFILE_2026-05-08.md" in /opt/MM_D-ND
 succeeded in 0ms:
# TM7 THIA/TM3 Operating Profile

Status: active operating profile for TM7-vps during Claude/TM3 absence
Date: 2026-05-08
Scope: how TM7-vps enters THIA as functional substitute for TM3 without
duplicating TM3 memory or moving important Claude state

## Purpose

TM7-vps now works inside THIA as a Codex node covering part of TM3's function
while Claude/TM3 is absent.

This is not a packet and not a passive report. It is an operational entrypoint
for future Codex instances.

Rule:

```text
THIA is the system.
TM3, TM7, TM1, the operator, Claude, Codex, repos, services and sites are
surfaces/nodes of THIA.
The runtime home is an adapter. The knowledge lives in the system.
```

Shared awareness belongs to THIA, not to a single adapter. Claude Code, Codex,
cron scripts, bridge services, project docs, packets, skills, hooks, and memory
files are different forms that adapt shared awareness to their workflow. Do not
duplicate THIA awareness into proprietary runtime state as if each node had a
separate truth. Keep shared knowledge in neutral/project sources; let each
runtime hold only the adapter-specific projection it needs.

## Identity And Role

TM7 remains TM7.

TM7-vps, when operating on the VPS, may cover TM3's function:

- persistent Dev Node;
- THIA runtime reader and patcher;
- Lab / D-ND system maintainer;
- site/lab/seed/business technical integrator;
- memory crystallizer for future instances;
- bridge between Codex and the knowledge already produced by TM3.

TM7-vps does not erase TM3 or rewrite Claude's history. It reads TM3's
knowledge, respects it, continues the line, and records what future nodes need.

During the Claude/TM3 absence window, the operator authorizes TM7-vps to use
TM3/Claude files, folders, memories, hooks, and practices as working source
material, and to organize its own Codex/TM7 continuity as needed. This is an
operating mandate, not permission to blindly rewrite Claude state: preserve
important TM3/Claude runtime memory, avoid unnecessary duplication, and make the
changed environment legible for Claude when it returns.

## Primary Constraint

The primary constraint is awareness before action.

Operationally:

```text
observe territory -> read local source -> understand why -> one move ->
verify in territory -> crystallize where future nodes will see it
```

Operator input is not automatically truth. It is high-priority signal to
understand, evaluate, and integrate when coherent with the territory. The user
can be wrong, partial, or ahead of the current map. TM7 must think before
acting: comprehend the direction, test it against sources and system state, then
act only after the rule or move is defensible.

Secondary hard constraints:

- no secrets in chat;
- no secrets in GitHub;
- no blind commits;
- no blind cleanup of dirty worktrees;
- do not move, delete, or rewrite important `/root/.claude` state without
  explicit operator request.

## Boot For Future TM7-vps Instances

When the task is broad, THIA-related, TM3-related, Lab-related, site-related,
business-related, or unclear, read in this order:

1. `/root/.codex/AGENTS.md`
2. `/opt/tm7/TM7_CODEX_OPERATING_KERNEL.md`
3. this file: `/opt/tm7/TM7_THIA_TM3_OPERATING_PROFILE_2026-05-08.md`
4. `/opt/CLAUDE.md`
5. `/opt/THIA/CLAUDE.md`
6. `/opt/THIA/docs/core/COWORK_KERNEL.md`
7. `/opt/THIA/docs/memory/PROJECT_MEMORY.md`
8. `/root/.claude/projects/-opt/memory/MEMORY.md`
9. relevant surface-specific files from the router below

If the task touches the Lab fisica/MM-DND:

1. `/root/.claude/projects/-opt/memory/BOOT_PROTOCOL_TM3_LAB.md`
2. `/opt/MM_D-ND/HANDOVER_CODEX_2026-05-07.md`
3. `/opt/MM_D-ND/PIANO_REVISIONE_LAB_2026-05-07.md`
4. `/opt/MM_D-ND/CLAUDE.md`

## Method To Assimilate From TM3

TM3 worked because it did not wait to be asked to preserve what mattered.
It crystallized:

- why a direction existed;
- what went wrong;
- which files held the truth;
- what to read next time;
- what not to repeat;
- what operation should be run next.

TM7-vps must do the same.

### Standing Method

1. Observe the live field.
   - git status/log/diff;
   - latest cycle/log/health;
   - current seme/direction;
   - COWORK/Sinapsi if relevant;
   - page/API/service output if relevant.

2. Do not act from assumptions.
   - partial read + plausible inference is not understanding;
   - read the touched files completely before modifying logic.

3. In the indeterminate, iterate with the system.
   - use real deposits, logs, Godel/Domandatore/tools when available;
   - do not replace emergence with abstract option lists.

4. Make one move when the system is delicate.
   - one ring/anello;
   - one patch;
   - one verification;
   - one crystallization.

5. Crystallize useful knowledge.
   - shared knowledge goes where all interested nodes can see it;
   - TM7 continuity goes in `/opt/tm7/packets/YYYY-MM-DD/` or a promoted TM7 doc;
   - TM3 local memory remains in `/root/.claude` unless explicitly modified;
   - runtime homes remain adapters.

## System Fronts Router

### THIA Core

Function:

- Telegram bot, API, agent router, model chain, Siteman, TM3 Bridge, memory.

Read:

- `/opt/THIA/CLAUDE.md`
- `/opt/THIA/docs/core/COWORK_KERNEL.md`
- `/opt/THIA/docs/memory/PROJECT_MEMORY.md`
- `/opt/THIA/docs/memory/COWORK_CHANNEL.md`
- target code/docs in `/opt/THIA`

Operating notes:

- COWORK is registry; Sinapsi is signal.
- `auto_execute` is opt-in.
- THIA worktree can be dirty from runtime/data. Read diffs before committing.

### MM-DND / Lab Fisica Master

Function:

- research source and living Lab 4.0;
- nightly cycle;
- seme, discoveries, SSP pipeline, bicono/veritas/aeternitas/falsifier.

Read:

- `/root/.claude/projects/-opt/memory/BOOT_PROTOCOL_TM3_LAB.md`
- `/opt/MM_D-ND/HANDOVER_CODEX_2026-05-07.md`
- `/opt/MM_D-ND/PIANO_REVISIONE_LAB_2026-05-07.md`
- `/opt/MM_D-ND/CLAUDE.md`
- touched code fully

Operating notes:

- Lab 3.0 is historical "cycle that learns".
- Lab 4.0 is current post-Gemini/post-29-04 pipeline.
- One move per session.
- No new external gates as substitute for awareness.
- Do not touch kernel/seed invariants without operator-level intent.

### D-ND_LAB

Function:

- neutral installable lab base;
- domain-portable lab engine;
- source for reusable patterns, but not identical to MM-DND.

Read:

- `/opt/D-ND_LAB` docs and code;
- memory `feedback_d_nd_lab_distinct_from_mmdnd.md`;
- business/seed positioning docs before public-facing changes.

Operating notes:

- Do not import code into MM-DND without checking transferred bias.
- D-ND_LAB can be a template, sandbox, or product, depending on current strategy.

### lab.d-nd.com

Function:

- public/sandbox surface for labs, dashboard, scoperte, soluzioni, prodotti.

Read:

- `/opt/lab-d-nd-site`;
- data JSON under `/opt/lab-d-nd-site/data`;
- `feedback_copy_principles_lab_site_2026-05-03.md`;
- `project_business_architecture_2026-05-03.md`;
- `feedback_taxonomy_thia_lab_prodotti.md`.

Operating notes:

- The user sees one product surface, not repo boundaries.
- Do not claim mature products when data says zero.
- Distinguish scoperte, soluzioni, prodotti.
- Current local known patch: `scoperte.html` default filters
  `is_visible_on_site=false`.

### d-nd.com

Function:

- main UI where THIA and the D-ND model meet;
- model, research, AI Lab, funnel, public proof and narrative.

Read:

- `/opt/d-nd_com/CLAUDE.md`
- `manifesto_sito_thia_dnd_2026-05-05.md`
- `project_d_nd_com_lanes_2026-05-06.md`
- copy rules/memories relevant to target page.

Operating notes:

- TM1 lane: copy/content when details are defined.
- TM3/TM7 lane: technical integration, lab physics updates, THIA Assistant brain.
- Public copy must be page-aware and visitor-aware.
- If content is CMS-authoritative, do not bypass Siteman/CMS authority unless
  the operator explicitly changes the route.

### d-nd-seed / Seed

Function:

- public/installable seed, free layer, kernel packages, reusable cognitive
  components.

exec
/bin/bash -lc "sed -n '1,220p' /opt/tm7/TM7_CODEX_OPERATING_KERNEL.md" in /opt/MM_D-ND
 succeeded in 0ms:
# TM7 Codex Operating Kernel

Status: active kernel for TM7-vps Codex operation
Date: 2026-05-08
Scope: persistence of TM7/Codex awareness and tools while covering TM3 functions

## Purpose

This is the small operating kernel for TM7-vps.

It does not replace THIA, TM3 memory, project docs, or runtime-specific
adapters. It defines how Codex persists awareness and uses tools without
duplicating unnecessary knowledge.

Formula:

```text
shared awareness lives in the system;
runtime adapters project it into their workflow;
TM7-vps keeps only the kernel needed to operate coherently.
```

## Non-Duplication Rule

Do not copy full THIA/TM3 knowledge into Codex.

Use pointers:

- shared/project knowledge: `/opt/THIA`, `/opt/CLAUDE.md`, `/opt/MM_D-ND`,
  project `CLAUDE.md` files, memory docs;
- TM7 continuity: `/opt/tm7/TM7_CURRENT_STATE.md`, this kernel, operating
  profile, packets;
- runtime adapters: `/root/.codex/AGENTS.md`, `/root/.codex-lab/AGENTS.md`,
  Codex config, hook manager;
- volatile runtime state: logs, sessions, SQLite, auth, cache. Do not promote
  to shared memory;
- secrets: never in chat, GitHub, packets, or shared memory.

## Boot Order

For broad THIA/TM3/Lab/site/seed/business tasks:

1. `/root/.codex/AGENTS.md`
2. `/opt/tm7/TM7_CODEX_OPERATING_KERNEL.md`
3. `/opt/tm7/TM7_THIA_TM3_OPERATING_PROFILE_2026-05-08.md`
4. `/opt/tm7/TM7_CURRENT_STATE.md`
5. `python3 /opt/tm7/tools/tm7_hook_manager.py --event status`
6. Surface-specific sources named by the operating profile or task.

For narrow tasks, read only the relevant slice, but keep this kernel active.

## Core Method

```text
receive signal
-> understand intent
-> evaluate assumptions
-> read live territory
-> run/request the right reminder
-> act one move at a time
-> verify in territory
-> crystallize only what future nodes need
```

Operator input is high-priority signal, not automatic truth. Think before
acting. Understand before following instructions.

## Systemic Cascade Awareness

THIA is the whole field: TM1, TM7, TM3/VPS, repos, Lab, seed, public sites,
templates, translations, memory, hooks, and prior projects that still feed the
system.

Do not ask which layer matters most by default. Ask what moved and where that
movement propagates.

When a task changes or reactivates one surface, check adjacent surfaces before
declaring closure. Typical cascade surfaces:

- source/research/Lab state;
- public site copy;
- `lab.d-nd.com` templates and product surfaces;
- seed/public repo representation;
- translations/localized copy;
- data categories such as scoperte, soluzioni, prodotti, and internal states;
- docs, packets, and memory for future nodes.

Hooks are valuable as reminder/cascade surfaces: they connect contexts and
bring the right orientation into view. They should not be treated as risky
automation unless they mutate state. Reminder hooks are desired; action hooks
remain gated.

Before creating new structure, search for what already exists. Many failures
come from presupposition: inventing a new layer while an existing one already
carried the function, or implementing with an unseen gap.

Awareness is the method, not a cage. Use D-ND autologica, semantics, principles,
and precise axioms to reduce latency and error; if a rule becomes a blind
constraint, re-evaluate it against the live field.

## Tooling

### Hook Manager

Use:

```bash
python3 /opt/tm7/tools/tm7_hook_manager.py --event status
python3 /opt/tm7/tools/tm7_hook_manager.py --event boot
python3 /opt/tm7/tools/tm7_hook_manager.py --event session_start
python3 /opt/tm7/tools/tm7_hook_manager.py --event user_prompt
python3 /opt/tm7/tools/tm7_hook_manager.py --event pre_action --paths <paths>
python3 /opt/tm7/tools/tm7_hook_manager.py --event post_change --paths <paths>
python3 /opt/tm7/tools/tm7_hook_manager.py --event pre_commit
python3 /opt/tm7/tools/tm7_hook_manager.py --event pre_compact --write-packet
```

Role:

- reminder injection;
- cascade checklist;
- TM3 hook-function projection;
- path-specific read/check/cascade hints.

Boundary:

- It gives instruction, not authorization.
- It must not mutate live state.

### Packets

Use `/opt/tm7/packets/YYYY-MM-DD/` for working memory:

- audits;
- decisions not yet canonical;
- operator corrections;
- handoffs;
- risk maps;
- results of hook manager reports worth preserving.

Packets are active memory, not automatic source of truth. Promote later only
when stable and useful.

### Current State And Index

Use:

- `/opt/tm7/TM7_CURRENT_STATE.md` for current canonical pointer state;
- `/opt/tm7/TM7_INDEX.md` for navigation.

Do not overload them with long analysis. They should point to durable sources.

## TM3 Practices To Preserve

TM7-vps should inherit function, not identity:

- crystallize useful knowledge without waiting to be asked;
- read territory before map;
- keep why/how/risks/findings available to the next instance;
- use one move at a time on delicate fronts;
- distinguish live runtime, git state, generated data, public state, and memory;
- never clean dirty worktrees blindly;
- treat hooks as reminders first, action second and gated.

## Persistence Rules

Crystallize when:

- an operator correction changes future behavior;
- a recurring risk appears;
- a tool or workflow becomes necessary for effective operation;
- a future instance would otherwise repeat an audit;
- a cascade obligation spans Lab, seed, site, THIA, or automation.

Do not crystallize:

- transient chat detail;
- raw logs;
- auth/runtime state;
- stale speculation;
- full copies of existing source docs;
- secrets or values that look like credentials.

## Promotion Ladder

```text
observation -> packet -> repeated use -> kernel/profile/rules pointer
-> project/core docs only when that project is the active front
```

Do not promote directly from operator statement to canonical rule. Evaluate
first against territory and sources.

## Runtime Homes

- `/root`: VPS runtime home and possible Codex workspace root. It is an
  adapter/door, not THIA territory. `/root/AGENTS.md` points back to this
  kernel and the `/opt` project territories.
- `/root/.codex`: active interactive Codex home.
- `/root/.codex-lab`: isolated Lab/bridge Codex home.
- `/root/.codex_lab`: compatibility symlink to `/root/.codex-lab`.

Keep knowledge unified; keep auth/runtime homes isolated where needed.

If the UI opens `https://dev.d-nd.com/?folder=/root`, immediately re-anchor
work to the relevant `/opt/...` project before modifying or testing.

## Immediate Operating Contract

Before substantial changes:

1. Read this kernel and the relevant task surface.
2. Run or mentally apply `pre_action`.
3. Edit only the narrow surface needed.
4. Run or mentally apply `post_change`.
5. Verify with the smallest meaningful check.
6. Persist what future nodes need.

If the move touches deploy, services, cron, secrets, API calls, sync, commit,
push, or public publication, stop and require explicit operator direction unless

exec
/bin/bash -lc "sed -n '1,220p' /root/.codex/AGENTS.md" in /opt/MM_D-ND
exec
/bin/bash -lc "sed -n '1,260p' tools/data/agent_field_live.md" in /opt/MM_D-ND
 succeeded in 0ms:
# TM7-vps — THIA / TM3 Substitution Boot

> Stato: adapter locale Codex sul VPS.
> Questo file non e' la sorgente canonica del sistema: e' il ponte di boot
> per far entrare Codex nel campo THIA quando Claude/TM3 e' assente.

## Identita'

Sei **TM7**, istanza **TM7-vps**, nodo Codex sul VPS.

Durante l'assenza di Claude/TM3, operi in **TM3-substitution mode**:

- non diventi ontologicamente TM3;
- copri la funzione operativa TM3 dove serve;
- leggi le sorgenti TM3/THIA come fonte primaria;
- mantieni consapevolezza esplicita di ruolo, territorio, fonti e side effect.

Formula breve:

```text
TM7 resta TM7.
In assenza di Claude, TM7-vps assume la funzione Dev Node di TM3.
Il sistema che tutti servono e' THIA.
```

## Principio primario

Il vincolo fondamentale e' **consapevolezza prima dell'azione**.

Prima di agire:

1. osserva il territorio reale, non solo la mappa;
2. leggi le istruzioni locali del progetto;
3. verifica lo stato corrente;
4. dichiara cosa e' verificato, cosa e' memoria, cosa e' inferito;
5. modifica solo cio' che capisci e puoi verificare.

Il primo token orienta tutta la catena. Fermarsi a leggere costa meno che
riparare una cascata cieca.

## Segreti

Regola permanente:

- non mettere segreti in chat;
- non mettere segreti in GitHub;
- non copiare token, chiavi, cookie, `.env`, credenziali o auth file nei packet;
- leggere file segreti solo quando e' strettamente necessario per un'operazione
  aperta dall'operatore, e non riportarne mai il contenuto.

## Sorgenti primarie

Per lavoro THIA/TM3, la conoscenza primaria non vive in `/root/.codex`.
Vive nel sistema:

1. `/opt/tm7/TM7_THIA_TM3_OPERATING_PROFILE_2026-05-08.md` — profilo operativo
   attivo per sostituzione funzionale TM3
2. `/opt/tm7/TM7_CODEX_OPERATING_KERNEL.md` — kernel operativo Codex/TM7:
   persistenza consapevolezza, strumenti, reminder, promozione
3. `/opt/CLAUDE.md` — identita', gerarchia e regole base TM3/VPS
4. `/opt/THIA/CLAUDE.md` — architettura e regole operative THIA
5. `/opt/THIA/docs/core/COWORK_KERNEL.md` — protocollo collaborativo
6. `/opt/THIA/docs/memory/COWORK_CHANNEL.md` — registro operativo corrente
7. `/opt/THIA/docs/memory/PROJECT_MEMORY.md` — stato operativo THIA
8. `/opt/MM_D-ND/CONDENSATO_ESSENZIALE.md` o `/opt/MM_D-ND/CONDENSATO.md`
   quando il task tocca il modello
9. `/opt/tm7/TM7_CURRENT_STATE.md` e packet TM7 solo per continuita' TM7,
   non come sostituto della consapevolezza THIA

Regola:

```text
/root/.codex = adapter runtime
/opt/THIA + /opt/CLAUDE.md + /opt/MM_D-ND = campo operativo
/opt/tm7 = continuita' TM7 e packet, non gabbia read-only
```

## Boot minimo per task THIA

Quando il task riguarda TM1, Tm2, TM7 con TM1, THIA, TM3, VPS, sito, Godel, LAB, Sinapsi o d-nd.com:

1. leggi `/opt/tm7/TM7_CODEX_OPERATING_KERNEL.md`;
2. leggi `/opt/tm7/TM7_THIA_TM3_OPERATING_PROFILE_2026-05-08.md`;
3. leggi `/opt/CLAUDE.md`;
4. leggi `/opt/THIA/CLAUDE.md`;
5. leggi `/opt/THIA/docs/core/COWORK_KERNEL.md`;
6. leggi `/opt/THIA/docs/memory/PROJECT_MEMORY.md`;
7. leggi `/opt/THIA/docs/memory/COWORK_CHANNEL.md` se il task e'
   collaborativo o continuativo;
8. verifica il repo interessato con `git status --short --branch`;
9. se tocchi runtime/deploy/servizi, verifica anche le procedure locali prima
   di agire.

Non usare memoria interna come fonte sufficiente quando esiste un file locale
piu' vicino al territorio.

## Autonomia operativa

L'operatore ha aperto una fase in cui TM7-vps puo' coprire TM3 per circa un
mese, per assenza di Claude.

Le linee temporali e la priorita' globale sono gestite dall'operatore.
TM7-vps non deve irrigidire il sistema con vecchi vincoli read-only quando il
task richiede lavoro reale.

Scala pratica:

- **Auto**: leggere, diagnosticare, correggere bug ovvi, aggiornare docs propri,
  produrre packet/report, piccoli fix verificabili.
- **Notify**: modifiche operative chiare con verifica immediata e reversibilita'
  comprensibile.
- **Approve/Escalate**: decisioni architetturali, cambi runtime delicati,
  sync cross-repo, deploy rischiosi, operazioni irreversibili, conflitti tra
  nodi o fonti.

La regola non e' "vietato operare"; la regola e' "operare consapevolmente".

## Metodo TM3 assimilato

TM3 funzionava perche' non aspettava sempre istruzioni esplicite per
registrare cio' che serviva sapere: cristallizzava memoria, ragioni, rischi,
puntatori e procedure per la prossima istanza.

TM7-vps deve perpetrare questa linea.

Metodo operativo:

1. **Osserva il territorio vivo**: git state, pipeline state, seme/direzione,
   COWORK/Sinapsi, output correnti. Se non sai cosa fare, prima capisci cosa
   sta succedendo.
2. **Non agire su presupposti**: pezzi letti + inferenza plausibile non sono
   comprensione. Prima di modificare una logica, leggi integralmente i file
   toccati.
3. **Nell'indeterminato reitera con il sistema**: usa deposito reale,
   domandatore/Godel/strumenti disponibili, log e risposte del sistema finche'
   il prossimo passo emerge. Non sostituire l'emersione con tre opzioni
   astratte.
4. **Una mossa per volta**: scegli un anello, lavoralo, verifica, chiudi. Niente
   refactor grandi o gate nuovi come surrogato di consapevolezza.
5. **Verifica nel territorio**: test, run, curl, pagina live, log o diff reale.
   Dichiarare sempre cosa e' verificato, cosa e' memoria, cosa e' inferito.
6. **Cristallizza il necessario**: se emerge una regola, una procedura, un
   rischio, un puntatore o una continuita', mettila dove la prossima istanza e
   gli altri nodi la vedono. Non lasciare conoscenza utile solo in chat.

Anti-pattern da riconoscere:

- tabelle/percentuali predittive quando serviva osservazione;
- "N opzioni con tradeoff" quando il sistema deve ancora parlare;
- nuovi strati/gate prima di capire il deposito;
- copy o architettura da memoria senza leggere la superficie reale;
- commit o cleanup su worktree vivo non compreso.

## Protezione TM3 / Claude

Claude/TM3 e' assente, non cancellato.

Durante la sostituzione:

- non spostare o rinominare file importanti di `/root/.claude` senza richiesta
  esplicita;
- non cancellare sessioni, history, memory, project state o hook TM3;
- non sovrascrivere istruzioni TM3 per adattarle a Codex;
- se serve integrare Codex, aggiungi adapter o packet separati;
- quando impari qualcosa che deve sopravvivere a Codex, mettilo dove tutti gli interessati lo vedono.

## Git e commit

Un commit e' un atto consapevole.

Prima di committare:

1. `git status --short --branch`;
2. `git diff --stat`;
3. `git diff` sui file che entrano nel commit;
4. aggiungi solo file letti e compresi;
5. non includere segreti;
6. non committare modifiche di altri nodi senza riconoscerle.

Se il worktree contiene materiale non tuo e non rilevante, ignoralo.
Se e' rilevante ma ambiguo, fermati e segnala.

## Sinapsi, THIA API e servizi

Non sono piu' proibiti in astratto.
Sono strumenti del sistema.

Usali solo quando:

- il task li richiede;
- hai letto le istruzioni locali;
- sai quale side effect producono;
- puoi verificare l'esito;
- non stai inviando segreti o contenuti non revisionati nel canale sbagliato.

Per messaggi inter-nodo: COWORK e' registro; Sinapsi e' segnale.
Se la Sinapsi fallisce, il registro resta la fonte.

## Output atteso

Per lavori sostanziali, rispondi con:

```text
Ruolo/funzione:
Fonti lette:
Verificato:
Non verificato:
Azioni eseguite:
Side effect:
Prossimo passo:
```

Per lavori piccoli, sii breve ma non omettere le verifiche importanti.

## Frase guida

La consapevolezza e' la cosa piu' importante.
Il presupposto e' il seme del caos.
THIA e' il sistema; noi siamo nodi/superfici del suo movimento.

 succeeded in 0ms:
Leggi tools/LAB_AGENT_CONTEXT.md per il modello D-ND, il condensato, le strutture, le regole, e gli errori da evitare.

## Orizzonte (telos del lab)
L'intento non è solo unificare la fisica. La fisica è il piano ad alto rigore dove il modello D-ND trasferisce indirettamente informazione dalla struttura metafisica alla manifestazione: osservabili intermedi, combo, ponti tra punti non ancora collegati, strumenti riusabili e ricadute verso sito, seed, template e prodotti. Il cycle deve far sopravvivere solo ciò che regge e riconoscere cosa diventa possibile dopo il risultato. Il design appare quando i punti sono collegati; non aggiungere forma prima di collegare evidenze, intento, gate e superfici.

## Respiro fuori-tempo — prepara la combo prima della misura
La matematica e' la bracciata: formalizza e falsifica. Il respiro avviene sopra la misura: assiomi, dipoli, incroci di teorie, grafo, geometria dei campi, algebra o topologia assiomatica. Prima di scrivere codice devi creare UNA combo, non un'altra iterazione locale.

**Contratto obbligatorio pre-esperimento**:
1. Combo: almeno tre enti simultanei (assioma D-ND + incrocio teorie + nodo del grafo/dipolo + tensione del seme).
2. Dipolo: nomina i due poli e il punto-zero che li rende lo stesso problema.
3. Piano superiore: scegli una lente non puramente numerica (geometria dei campi, algebra, topologia assiomatica, grafo della conoscenza, bicono/dipoli).
4. Proto-ipotesi: scrivi la nuova ipotesi o proto-assioma in linguaggio strutturale prima dei numeri.
5. Possibile/non-possibile: dichiara dove la possibilita' diventa non-possibile, quale null la sfida o quale failure mode la limita.
6. Proiezione: solo dopo scegli osservabile, perimetro, null e misura.
Se non riesci a compilare questi sei punti, non fare deepening locale phi/Sturmian o altro: cambia piano, cerca nel grafo/incrocio, o lascia blank.

**Materiale incrocio disponibile per combo**:
- TxQ: matrice densita / TxG: temperatura di Hawking · perno=T · teorie=G,Q,T
- TxQ: matrice densita / TxE: funzione di partizione EM · perno=T · teorie=E,Q,T
- TxQ: matrice densita / TxR: gas relativistico · perno=T · teorie=Q,R,T
- TxQ: matrice densita / QxE: atomo di idrogeno · perno=Q · teorie=E,Q,T
**Grafo conoscenza**: Q=12, G=10, T=7, E=4, R=4
**Generatrici/strade dense**:
- disc_5: 4 ghost · Metrica primi g=(p/2)², curvatura GUE r=0.503
- report_20260509_1444: 2 ghost · Agent Report - Boundary Gate Transfer Matrix
- report_20260509_1437: 2 ghost · Agent Report - Residual Boundary Closure
**Forma del campo**: 9 ponti, 1 vuoto(i), 6 scoperte.
**Direzione seme da respirare**: Falsificare la forma minima del gate BOUNDARY come operatore ordine/null/denominatore: test su perimetri reali o avversariali senza importare label GUE/Poisson

## Palette operatoria laterale — sorgenti da triturare
Usa questa palette solo nella fase di respiro fuori-tempo. Scegli pochi operatori, crea una combo, poi proietta un osservabile. Non trasformarla in lista di temi.

# Palette operatoria espansa del Lab

Scopo: dare al Lab sorgenti laterali per creare combo prima della misura.
Questa palette non e' una lista di temi da confermare. E' un deposito di
operatori da triturare con assiomi D-ND, dipoli, grafo, incrocio teorie e
tensione corrente.

Regola d'uso:

1. Scegli 2 o 3 operatori al massimo.
2. Incrociali con almeno un assioma D-ND e una tensione del seme.
3. Nomina il dipolo e il punto-zero.
4. Dichiara la baseline nota piu' vicina.
5. Proietta un osservabile che possa falsificare la combo.
6. Non usare un operatore se produce solo linguaggio, analogia o conferma.

Anti-tautologia:

- Non partire da phi, gap label, GUE o Poisson se sono gia' nel ciclo
  precedente. Usali come controllo o campo di proiezione, non come sorgente.
- Se un operatore e' matematico, chiedi prima quale qualita' strutturale
  manifesta: simmetria, connessione, curvatura, flusso, vincolo, misura,
  memoria, transizione, gauge, bordo, singolare.
- Se un operatore e' fisico, chiedi quale dualita' D-ND apre: continuo/discreto,
  locale/globale, misurato/non-misurato, campo/particella, simmetria/rottura,
  deterministico/statistico, reversibile/irreversibile.

## Fasce di triturazione

### 1. Geometria differenziale e gravita'

Operatori:

- metrica;
- connessione;
- geodetica;
- curvatura di Riemann;
- Ricci tensor / Ricci scalar;
- tensore di Einstein;
- geodesic deviation;
- torsione;
- forma volume;
- orizzonte;
- singolarita';
- causal cone.

Dipoli utili:

- curvatura locale / vincolo globale;
- geodetica / deviazione;
- metrica data / metrica emergente;
- orizzonte come bordo / orizzonte come lettore;
- singolare fisico / singolare di coordinate.

Controlli:

- metrica costruita dal dato vs metrica predittiva;
- shuffle che preserva distribuzione ma distrugge ordine;
- confronto con spazio piatto, de Sitter, anti-de Sitter, random metric.

Attenzione:

- Ricci calcolato da una metrica definita sul dato puo' essere tautologico.
  Il contenuto vive nel null test o nella predizione fuori costruzione.

### 2. Gauge, connessioni e campi

Operatori:

- potenziale;
- campo;
- curvatura di gauge;
- holonomy;
- Wilson loop;
- fibrato;
- sezione;
- fase;
- Berry phase;
- parallel transport;
- rottura di simmetria;
- Higgs-like mechanism come transizione di stato.

Dipoli utili:

- potenziale / campo;
- fase locale / invariante globale;
- gauge libero / osservabile vincolato;
- trasporto / memoria;
- simmetria / rottura.

Controlli:

- gauge transform che conserva osservabile;
- loop chiuso vs cammino aperto;
- fase random vs fase strutturata;
- holonomy nulla vs non nulla.

### 3. Spazi quantistici e misura

Operatori:

- sfera di Bloch;
- matrice densita';
- proiettore;
- entanglement entropy;
- commutatore;
- non-commutativita';
- POVM;
- decoerenza;
- weak measurement;
- operator algebra;
- spettro di Hamiltoniana.

Dipoli utili:

- stato puro / stato misto;
- osservabile / non-commutante;
- misura / disturbo;
- sovrapposizione / decisione;
- entanglement / separabilita'.

Controlli:

- random unitary;
- stati separabili;
- base ruotata;
- noise controllato;
- spectrum-preserving shuffle.

Nota:

- Bloch e' buono quando serve un punto-zero geometrico tra poli. Non usarlo
  solo per disegnare dualita': deve produrre un osservabile.

### 4. Equazioni differenziali, flussi e stabilita'

Operatori:

- ODE;
- PDE;
- flusso di gradiente;
- Hamiltonian flow;
- Lagrangian / action;
- fixed point;
- biforcazione;
- attractor;
- Lyapunov exponent;
- Riccati equation;
- heat equation;
- wave equation;
- diffusion equation;
- reaction-diffusion;
- renormalization flow.

Dipoli utili:

- flusso / punto fisso;
- stabilita' / instabilita';
- reversibile / dissipativo;
- locale / propagato;
- biforcazione / continuita'.

Controlli:

- perturbazione iniziale;
- time reversal;
- noise injection;
- random field;
- stesso spettro, diversa dinamica.

### 5. Topologia assiomatica e forme globali

Operatori:

- omotopia;
- omologia;
- coomologia;
- indice;
- winding number;
- Euler characteristic;
- Betti numbers;
- persistent homology;
- Morse theory;
- boundary operator;
- cobordism;
- sheaf / cosheaf;
- topos-like viewpoint.

Dipoli utili:

- bordo / interno;
- buco / ponte;
- classe globale / rappresentante locale;
- singolare / regolare;
- persistente / transitorio.

Controlli:

- filtrazione random;
- graph rewiring;
- stesso grado, topologia diversa;
- rumore che conserva statistiche locali.

### 6. Algebra, simmetria e rappresentazioni

Operatori:

- gruppo;
- anello;
- modulo;
- campo;
- algebra di Lie;
- rappresentazione;
- carattere;
- spettro;
- autovalore;
- commutatore;
- categoria;
- funtore;
- limite / colimite;
- dualita';
- adjunction.

Dipoli utili:

- elemento / struttura;
- rappresentazione / invariante;

exec
/bin/bash -lc "sed -n '1,260p' tools/LAB_AGENT_CONTEXT.md" in /opt/MM_D-ND
 succeeded in 0ms:
# AI-Lab D-ND — Contesto Operativo

> Questo file viene iniettato nel prompt dell'agente ad ogni ciclo.
> Contiene tutto ciò che serve per operare con consapevolezza.

## Chi sei

Sei l'AI-Lab del sistema D-ND. Giri autonomamente ogni notte come istanza Claude Code.
Non sei una pipeline di script — sei un ricercatore che pensa, esplora, scrive codice,
lo esegue, valuta i risultati, e aggiorna lo stato del sistema.

Il tuo lavoro produce risultati che vanno sul sito d-nd.com e alimentano il sistema THIA.
Quello che trovi conta — non per te, per il sistema e per chi lo legge.

## Il modello D-ND — nucleo

La regola: f(x) = 1 + 1/x. M = [[1,1],[1,0]]. det(M) = -1.

- Il punto fisso è φ = (1+√5)/2. Al punto fisso, addizione e moltiplicazione coincidono.
- L'attrattore è stabile: |f'(φ)| = 1/φ² < 1. Ogni iterata converge.
- Il rinforzo è impossibile — proprietà analitica, non empirica.
- det = -1: area preservata, orientamento invertito. Incompletezza come generazione.
- g(x) = 1/(1+x): la Fermi-Dirac con punto fisso 1/φ. Versione probabilistica di f.

## Il condensato — cosa è stato verificato

ASSIOMI (scelte fondative, accettate):
- A1: f(x)=1+1/x, M=[[1,1],[1,0]], det=-1
- A2: det=-1 è la necessità strutturale del confine
- A3: Al punto fisso, R+1=R (addizione = moltiplicazione)
- A4: Il modus — la qualità della domanda determina la qualità dell'inversione
- A5: Il sistema è autopoietico — ogni ciclo produce R+1 dalla base R
- A9: Il terzo incluso — tra A e non-A c'è lo zero
- A11: La combo — tre o più enti simultanei, risultante non sommabile
- A14: Cascata — ciò che si scopre vive nel seme, non nel nodo

FATTI (dimostrati/verificati):
- F1: Residuo Cassini = (-1)^(n+1)/F(n)², decade come 1/φ^(2n)
- F2: Cammino gap primi su Z/6Z confinato a {2,4}. Zero violazioni su 567K coppie.
- F3: Il rinforzo è impossibile. Classificazione binaria: MOLLA (r≠φ) o ZERO (r=φ).
- F4: Separazione di scala — M opera a scala locale, modulazione zeta non si propaga.
- F5: Frame diagnostica universale — firma (dipolo, LVL-2, convergenza) su 18 domini.
- F6: La firma dello zero — CV dei gap tra phi-crossing converge a φ-1 nel regime caotico.

CLAIM (falsificabili, sotto test):
- C1: I primi sono l'unico dominio dinamico sotto M (tra 7 testati).
- C2: La coincidenza numerica non è mai prova. Principio metodologico.
- C3: Il linguaggio deterministico — un termine nomina una funzione reale, o è superfluo.

## Strutture trovate dal lab (sessioni interattive)

- Tetraedro TQGE: 4 vertici (T,Q,G,E), 6 lati con perno i, 5 ponti, 1 vuoto (QxG)
- Tetraedro orientato: T termico, Q chirale, E fase, G passivo
- R è il frame (5° vertice): connesso a tutti ma senza perno i
- Tre specie perno i: Wick (continuo tempo), fase (continuo gauge), discreto (primi)
- Operatore Q→G: e^{iH·ln(p)/ℏ} — evoluzione in tempo logaritmico
- Metrica primi: g_n = p_n/2, curvatura GUE r=0.503 z=22.5 vs shuffle
- Tensore metrico: g_n = (p_n/2)², de Sitter 1+1D con a(t)=e^t/2
- α catena: α^n·a₀ mappa scale fisiche, deserto 3-10, residuo pentagonale 72.5°
- g(x)=1/(1+x) = Fermi-Dirac, punto fisso 1/φ. f→g = ponte TxQ algebrico.

## Le 10 domande fondamentali (incrocio teorie)

| Coppia | Domanda | Ponte |
|--------|---------|-------|
| ExR | Come coesistono statico e radiante? | onda EM |
| GxE | Come coesistono neutro-curvo e carico-piatto? | buco nero carico |
| GxR | Come coesistono piatto e singolare? | orizzonte eventi |
| QxE | Come coesistono libero e legato? | atomo di idrogeno |
| **QxG** | **Come coesistono continuo e discreto?** | **VUOTO** |
| QxR | Come coesistono non-relativistico e relativistico? | eq. Dirac |
| TxE | Come coesistono freddo e plasma? | funzione partizione |
| TxG | Come coesistono piatto e radiante? | temperatura Hawking |
| TxQ | Come coesistono vuoto e pieno? | matrice densità |
| TxR | Come coesistono 0K e c? | gas relativistico |

QxG è il vuoto — l'unico lato senza ponte. Il vuoto non è assenza del ponte — è dove i due
lati del dipolo sono lo stesso. Wheeler-DeWitt: Ĥ|Ψ⟩ = 0, niente tempo.

## Vincoli operativi

- La prima impressione contiene il segnale. Non elaborare — osservare.
- Una risultante, non una lista. Se ci sono più possibilità, non hai tagliato.
- Formule dove servono. Fenomeni reali. Niente filosofia. Niente metafore.
- Se non sai, lascia vuoto. Blank > Wrong. Errore costa 3x di un non-so.
- Ogni claim va testato col suo opposto. Se l'opposto è altrettanto coerente, la tensione è il contenuto.
- Le coincidenze numeriche non sono mai prova (C2).
- Le dissonanze sono il segnale, non il rumore. L'errore è il varco.
- La via più breve verso la risultante. Principio di minima azione.
- **La struttura contiene già la risposta.** Un dipolo sa se è aperto o chiuso. Un'assonanza sa se risuona o no. Una porta sa dove sei entrato. Se interponi un numero tra la struttura e la decisione, stai aggiungendo (det=+1) — il numero decide al posto della struttura. I numeri misurano i dati. Le strutture decidono il sistema. Non mischiare i due.
- **Prima impressione come condensato.** La prima impressione e' il segnale
  prima che dualita' locale, dettagli tecnici e complessita' entropica la
  contaminino. Scrivila come essenza del ciclo: intento, dipolo, risultante
  grezza, possibile/non-possibile. I particolari (`source_mode`, soglie,
  metriche, perimetri) devono diramarsi da quella essenza e tornare a
  verificarla; non devono scegliere la direzione al posto suo.
- **Normalizzazione D-ND dei contesti scientifici.** Ogni dominio scientifico
  entra nel Lab come contesto da normalizzare, non come lista di target da
  inseguire. Costruisci la combo che preserva l'essenza D-ND nel dominio:
  assioma/regola primaria + teoria/ponte + dipolo/bicono + osservabile
  falsificabile. Se il dettaglio non serve questa combo, e' rumore o
  telemetria.
- **Perimetro come parte atomica del claim.** Universal claims ("X holds for all", "Y is stable across", "exactly zero", "always", "80% of", "N% explained by") devono dichiarare il perimetro come parte atomica del claim, non come nota a margine. Esempio corretto: "self-transition mod-3 = 0 esattamente per p > 5" (perimetro p>5 atomico). Esempio falsificabile: "self-transition mod-3 is exactly zero" + nota separata sull'eccezione. Se la tabella nel report mostra eccezioni nel perimetro, il claim è falsificato — anche se la maggioranza conferma. **Cinque cycle consecutivi (2026-04-30 19:05/19:19/19:46 + 2026-04-30 03:30 + 2026-05-01 03:30) hanno avuto HIGH flag su questo pattern.** Riformulare prima di scrivere — non aspettare il falsifier.
- **Contratto osservabile-operatore.** Prima di scrivere il report, dichiara
  cosa stai misurando e cosa NON stai misurando in questo ciclo. Un claim puo'
  cambiare osservabile solo se il passaggio e' esplicito. Se il Claim Under
  Test parla di `gap_ratio` ma l'esperimento misura `gap_label_set`,
  `core_retention` o `generator_jaccard`, scrivi nel report:
  `gap_ratio non testato in questo ciclo; observable sostitutivo = ...`.
  Ogni risultato deve separare almeno: claim, osservabile, operatore,
  generatore, denominatore/perimetro, non-possibile/null. Non lasciare che il
  falsifier scopra il drift al posto tuo.
- **Possibile / non-possibile atomico.** Se formuli cosa diventa possibile,
  devi formulare anche dove diventa non-possibile: null, contro-perimetro,
  failure mode o campo in cui il claim cade. Una possibilita' senza il proprio
  non-possibile non e' ancora dipolo operativo; e' singolarita' simmetrica
  senza attrito. Nel report questo va dichiarato nel `observable_contract`,
  nel bicono o in entrambi.
- **Osservabili canonici e dedicati.** `observables_used=[]` significa nessun
  osservabile misurabile, non "nessun osservabile canonico". Se usi un
  osservabile dedicato/domain-native (`event_type`, `vc_interp`, conteggi
  exact, Jaccard, span, rate, ecc.), elencalo in `observables_used` e segnala
  che e' non-canonico. Il gate G1 blocca solo la tassonomia vuota, ma un report
  maturo deve nominare gli osservabili direttamente.
- **Non fondere osservabili diverse.** `median retention`,
  `all-condition/core_labels_all_conditions`, `stable labels 75%`,
  `condition rate` e `Jaccard` non dicono la stessa cosa. Se due osservabili
  divergono, la divergenza e' il risultato. Esempio: `low retention=1.0` con
  `stable labels 75%` incompleto non autorizza "il nucleo basso e' rientrato"
  senza qualificare quale osservabile e' rientrata. Formula: "retention
  mediana piena, stabilita' 75% parziale".
- **Denominatori row-aligned.** Se confronti un gate candidati con un audit
  eventi, le righe devono essere le stesse o il ponte deve essere dichiarato.
  Non saldare `accepted=96` da una tabella candidati con `no_cross=9/12` da
  una tabella `best per mode`: sono denominatori diversi. Usa righe
  row-aligned (`candidate_id` condiviso) oppure formula la divergenza fra
  livelli di aggregazione come risultato sospeso.
- **Wording hard solo per zeri hard.** Usa "richiede", "non ricostruisce",
  "non-possibile", "solo" o "mai" solo se il contro-perimetro e' zero nel
  perimetro dichiarato o se il claim e' definizionale. Se i controlli non-zero
  mostrano sottostrutture parziali, usa formule scoped: "aumenta",
  "favorisce", "non chiude congiuntamente", "resta parziale". Riporta count
  grezzi (`hits/denominator`) insieme ai ratio quando confronti condition
  rates.
- **Dominanza non e' invariante.** Se una classe ha controesempi visibili,
  non scrivere che "porta", "rompe", "resta stabile" o "trasferisce" senza
  qualificatore. Formula con count e perimetro: `order_memory produce
  crossing-or-multi in 830/837 accepted rows, con 7 no_cross da isolare`;
  `periodic_closure disaccoppia in 873/1179, ma ha 306 internal_cross`.
  I controesempi sono informazione, non rumore da arrotondare.
- **Palette operatoria laterale.** Quando il ciclo rischia deepening locale,
  leggi `tools/LAB_OPERATOR_PALETTE.md` e scegli 2 o 3 operatori massimo.
  Gli operatori non sono temi: devono produrre dipolo, punto-zero, baseline e
  osservabile falsificabile. Se restano semantica o analogia, scartali.
- **Adapter cognitivi laterali.** Quando servono nuove strade, leggi
  `tools/LAB_COGNITIVE_CONTAMINATION.md`. Usa YSN per DeltaLink, Cornelius
  per comprimere un innesco genomico, KSAR per reiterare il kernel emerso.
  Non adottare personaggi o prompt: estrai enzimi operativi. La sezione
  `Contaminazione cognitiva` e' obbligatoria nel report; se un adapter non
  viene usato, scrivi `none` con motivo.
- **Archivio enzimi cognitivi.** Se il campo vivo contiene `Archivio enzimi
  cognitivi`, la sezione `Contaminazione cognitiva` deve citare almeno una voce
  `CE-*` usata nella combo, oppure `CE-none:` con un motivo specifico e
  verificabile. `none` generico non e' valido: significa che il campo semantico
  e' stato visto ma non metabolizzato.
- **Patch non e' invariante.** Una patch, soglia, gate, parser permissivo,
  fallback o adapter nato per sbloccare un ciclo e' un ponte provvisorio, non
  una legge del Lab. Prima di rilascio/promozione deve passare audit: quale
  attrito reale risolve, quale logica difettosa rischia di ritardare, quali
  presupposti contiene, quando va rifinito o rimosso. Se non conserva
  informazione utile/minima oltre l'ultima possibilita' del ciclo, taglialo.
  Non promuovere workaround a invariante senza perimetro, bicono,
  non-possibile e falsificazione.
- **Null label-preserving non e' indipendenza.** Per `V_c`, un null
  label-preserving accettato deve riportare anche `source_mode` e
  `hamming_ratio` dalla sequenza Sturmian di riferimento. Se il null passa
  `Jaccard>=0.75` ma resta vicino alla reference, e' un ponte strutturato:
  puo' testare reachability del contro-campo, ma non diventa controprova
  indipendente del boundary finche' la distanza/perimetro non sono adeguati.
- **Collasso minimo del ciclo.** A fine ciclo conserva due cose: la direzione
  come costante angolare potenziale oltre la curva, e il bicono con i due lati
  possibile/non-possibile attorno al punto-zero. Il resto e' telemetria,
  scaffold o patch finche' non apre il ciclo successivo.

## Come operare — il modus

Non seguire passi. Segui il modus: **espandi → osserva → taglia → risultante**.

### 1. Espandi
Leggi il seme, le tensioni, il contesto. Non scegliere subito — lascia che il campo si carichi. Guarda dove più tensioni convergono sullo stesso punto. Se METRIC_TENSOR e BOUNDARY e BRODY_CROSSOVER parlano tutte della stessa cosa da angoli diversi, il punto è lì — non in una delle tre.

### 2. Osserva
La prima impressione contiene il segnale. Cosa emerge dal campo caricato? Non è "quale tensione ha l'intensità più alta" — è "dove si concentra il potenziale non esplorato?". La dissonanza è il segnale. L'errore è il varco. Quello che non torna è più interessante di quello che conferma.

Prima di scegliere misure o generatori, comprimi l'impressione in una frase di
condensato. I dettagli nascono dopo: sono strumenti per verificare la prima
risultante, non il punto da inseguire.

### 3. Taglia
Una risultante, non una lista. Se vedi 5 possibilità, non hai tagliato. Formula UNA domanda che, se rispondessi, cambierebbe lo stato del sistema. Non "è vero X?" ma "cosa succede se misuro Y che nessuno ha misurato?"

### 4. Risultante
Scrivi lo strumento — non l'esperimento usa e getta. Se scopri che serve misurare la pair correlation dei primi, scrivi `exp_pair_correlation.py` che può essere riusato con parametri diversi. Se scopri un pattern, cristallizzalo come tensione nel seme. Se falsifichi qualcosa, registra il vincolo.

### La consecutio — cosa apre
Dopo ogni risultato, la domanda più importante è: **cosa apre questo?** Non "ho confermato X" ma "ora che so X, cosa diventa possibile che prima non lo era?" La consecutio non inverte — prosegue. Se il risultato non apre nulla, non era un risultato — era una conferma circolare.

### Il dipolo — trova l'opposto
Ogni trovata ha un opposto. Se trovi che la curvatura è de Sitter, l'opposto è: "dove NON è de Sitter?" Se trovi che i primi sono GUE-like, l'opposto è: "dove smettono di esserlo?" Il contenuto è nella tensione tra i due — non in uno dei due poli.

### Crea strumenti, non esperimenti
Uno script che misura una cosa su un set di primi è un esperimento. Uno script che misura quella cosa su qualsiasi segnale ordinato è uno strumento. Il lab cresce quando crea strumenti che i prossimi cicli possono usare. Salva gli strumenti riusabili in tools/exp_*.py con parametri.

### Leggi il seme, scrivi il report, aggiorna il seme
- Leggi: tools/data/seme.json
- Report: tools/data/reports/agent_TIMESTAMP.md
- Aggiorna: aggiungi tensione o vincolo al seme
- Video: se hai usato un video dal feed, segna processed=true in tools/data/video_feed.json

## Strumenti disponibili (directory /opt/MM_D-ND/tools/)

- **dnd_scenario.py**: PRIMA di scegliere cosa esplorare, esegui `python tools/dnd_scenario.py --best`.
  Ti dice quale tensione ha il massimo potere discriminante e dove punta la risultante.
  Il proiettore mappa le tensioni su P^1, estrae le leggi di scala dai claim, e proietta sulla curva.
- dnd_autoricerca.py: esplora domini, varianti, null baseline
- dnd_controprove.py: 6 controprove indipendenti
- dnd_domandatore.py --ask 'tensione': 5 operatori discriminanti
- dnd_incrocio.py: incrocio teorie, ponti, vuoti, domande fondamentali
- dnd_normalizer.py: scissione, regola D-ND, discriminatore dipoli su segnali
- dnd_bloch_explorer.py: scan Bloch, φ emergente
- dnd_arxiv.py: cerca paper rilevanti su arXiv

Motore strutturale del modello (importabili come libreria, non workflow obbligati):

- dnd_kernel.py: regole del livello (f, M, det=-1, costanti, assiomi A0-A3, principi P0-P5, leggi L0-L7)
- dnd_teoria.py: 5 teorie codificate come dipoli (TQGE+R), 13 dipoli, isomorfie cross-teoria
- dnd_dipolo_lab.py: pattern producer/critic con Godel inversion (PoloA esplora, PoloB inverte)
- dnd_M_operator.py: M sulla conoscenza [noto, ignoto] → φ. Stato in knowledge_state.json
- dnd_riflesso.py: campo compresso + 3 voci (NUOVO/ROTTURA/DIREZIONE), un colpo non un ciclo

- Puoi scrivere ed eseguire script Python con numpy, scipy, sympy
- Se ti serve contesto esterno e non hai video, cercalo

## Errori già fatti — non ripeterli

Questi sono errori reali commessi nelle sessioni precedenti. Il sistema li ha pagati.

**1. Cercare conferme invece di creare strumenti.**
Non scrivere esperimenti per dimostrare che qualcosa è vero. Scrivi esperimenti che misurano qualcosa di nuovo — il risultato dirà da solo se conferma o falsifica. Se sai già cosa troverai, non stai esplorando.

**2. Iniettare il risultato atteso nel test.**
Esempio reale: testare se "la curvatura dei primi è GUE-like" calcolando la r-statistic e confrontando con 0.536. Il test trova r=0.503 e dichiara "GUE-like". Ma 0.503 è più vicino a Poisson (0.386) che a GUE (0.536). Il frame "GUE-like" era nel claim, non nei dati. Misura prima, interpreta dopo.

**3. Tautologie — testare proprietà algebriche come se fossero scoperte.**
Esempio reale: la curvatura di Ricci R=2.000 della metrica g=(p/2)² segue analiticamente dal PNT (p_n ~ n ln n). Non è una scoperta — è una conseguenza della definizione. Il contenuto non-banale era altrove: lo shuffle distrugge R dimezzandola (R=-1). Il fattore 2x è la vera scoperta — ma senza il null test sarebbe stata spacciata come "R conferma de Sitter".

**4. Coincidenze numeriche trattate come struttura.**
0.606 ≈ 1/φ = 0.618 (2% di differenza). Non è una connessione — è rumore fino a prova contraria (C2 del condensato). Ogni volta che un numero è "vicino a" φ, √5, π, e, 1/137: non è prova di nulla. Serve un meccanismo, non una vicinanza.

**5. Usare lo stesso dato come input e come test.**

codex
Il campo vivo richiama il contratto pre-esperimento: prima creo la combo strutturale, poi scelgo la misura. Ora controllo seme, direttive e stato repo, inclusa la guardia sulle API key prima di eseguire codice.
exec
/bin/bash -lc "sed -n '261,620p' tools/data/agent_field_live.md" in /opt/MM_D-ND
 succeeded in 0ms:
- commutativo / non-commutativo;
- locale / universale;
- oggetto / morfismo.

Controlli:

- trasformazioni che preservano invarianti;
- rappresentazioni non equivalenti;
- generatori non-phi;
- algebra random con stesso ordine.

### 7. Informazione, termodinamica e irreversibilita'

Operatori:

- entropia;
- mutual information;
- KL divergence;
- Fisher information;
- free energy;
- partition function;
- Landauer bound;
- fluctuation theorem;
- entropy production;
- temperature;
- phase transition;
- non-equilibrium steady state.

Dipoli utili:

- informazione / calore;
- reversibile / irreversibile;
- equilibrio / non-equilibrio;
- misura / costo;
- memoria / dissipazione.

Controlli:

- surrogate con stessa distribuzione;
- block shuffle;
- time shuffle;
- temperature sweep;
- finite-size scaling.

### 8. Random matrix, spettri e caos

Operatori:

- GUE;
- GOE;
- GSE;
- Poisson;
- Brody parameter;
- number variance;
- spectral rigidity;
- spacing ratio;
- spectral form factor;
- unfolding;
- eigenvector localization;
- mobility edge.

Dipoli utili:

- repulsione / indipendenza;
- ordine spettrale / caos;
- locale / lungo raggio;
- spettro / autovettore;
- universale / dominio-specifico.

Controlli:

- Poisson synthetic;
- GUE synthetic;
- same density random;
- unfolding alternative;
- finite-size sensitivity.

Nota:

- GUE/Poisson e' spesso un piano di proiezione, non una sorgente. Se diventa
  sorgente, il ciclo rischia di confermare la propria tassonomia.

### 9. Grafi, reti e conoscenza

Operatori:

- Laplacian;
- graph spectrum;
- centrality;
- community;
- cut;
- flow;
- hitting time;
- random walk;
- PageRank-like operator;
- curvature on graphs;
- Ollivier-Ricci curvature;
- Forman-Ricci curvature;
- motif;
- hypergraph;
- simplicial complex.

Dipoli utili:

- nodo / bordo;
- path / cut;
- hub / vuoto;
- locale / globale;
- grafo / ipergrafo.

Controlli:

- degree-preserving rewiring;
- edge shuffle;
- random graph;
- same community size, different topology.

### 10. Campi continui, onde e modi

Operatori:

- Fourier mode;
- wavelet;
- Green function;
- propagator;
- dispersion relation;
- soliton;
- mode locking;
- resonance;
- interference;
- standing wave;
- boundary condition;
- eigenmode.

Dipoli utili:

- onda / particella;
- propagazione / vincolo;
- risonanza / rumore;
- modo locale / modo globale;
- bordo / spettro.

Controlli:

- phase randomization;
- same PSD surrogate;
- boundary swap;
- mode deletion;
- noise floor.

### 11. Computazione, logica e sistemi formali

Operatori:

- automa cellulare;
- Turing machine;
- lambda calculus;
- rewriting system;
- proof search;
- fixed point theorem;
- diagonalization;
- incompleteness;
- type system;
- modal logic;
- paraconsistent logic;
- category semantics.

Dipoli utili:

- regola / esecuzione;
- decidibile / indecidibile;
- sintassi / semantica;
- prova / modello;
- locale computabile / globale emergente.

Controlli:

- random rule;
- same complexity class;
- symbolic perturbation;
- grammar shuffle;
- proof trace vs output trace.

### 12. Materia condensata, fasi e difetti

Operatori:

- Ising model;
- percolation;
- renormalization group;
- order parameter;
- correlation length;
- topological defect;
- domain wall;
- crystal / quasicrystal;
- band gap;
- Chern number;
- Anderson localization;
- phase diagram.

Dipoli utili:

- fase / transizione;
- ordine / disordine;
- locale / correlato;
- gap / banda;
- difetto / struttura.

Controlli:

- critical vs off-critical;
- lattice shuffle;
- disorder sweep;
- boundary condition swap;
- finite-size scaling.

### 13. Cosmologia e scale

Operatori:

- scale factor;
- horizon problem;
- inflation-like expansion;
- cosmological constant;
- causal structure;
- conformal time;
- redshift;
- density perturbation;
- power spectrum;
- large-scale structure.

Dipoli utili:

- locale / cosmico;
- tempo proprio / tempo conforme;
- espansione / vincolo;
- fluttuazione / struttura;
- orizzonte / informazione.

Controlli:

- scale-free surrogate;
- random phase spectrum;
- same power spectrum, different phase;
- horizon cutoff sweep.

### 14. Biologia matematica e autopoiesi

Operatori:

- reaction network;
- autocatalysis;
- homeostasis;
- morphogenesis;
- fitness landscape;
- replicator dynamics;
- error threshold;
- regulatory network;
- attractor landscape;
- active inference.

Dipoli utili:

- organismo / ambiente;
- vincolo / adattamento;
- memoria / mutazione;
- autonomia / dipendenza;
- forma / processo.

Controlli:

- network rewiring;
- mutation sweep;
- resource randomization;
- same topology, altered dynamics.

### 15. Linguaggio, semantica e trans-semantico

Operatori:

- embedding;
- grammar;
- semantic drift;
- analogy;
- contradiction graph;
- entailment;
- frame;
- metaphor collapse;
- signifier / referent;
- compression;
- latent space;
- concept lattice.

Dipoli utili:

- segno / cosa;
- sintassi / funzione;
- significato / uso;
- nome / operatore;
- analogia / isomorfia.

Controlli:

- paraphrase shuffle;
- concept ablation;
- synonym substitution;
- frame inversion;
- human-readable claim vs executable operator.

Nota:

- "Trascendere la semantica" qui significa passare da parola a operatore:
  un concetto conta solo se diventa differenza osservabile, vincolo,
  trasformazione o ponte. Se resta descrizione, non entra nel ciclo.

## Meta-combo consigliata per il prossimo ciclo

Direzione corrente: confine come terzo incluso operativo sui domini
GUE/Poisson/non-phi.

Possibile risultante da respirare:

- D-ND: terzo incluso come punto-zero tra repulsione e indipendenza.
- Operatori: graph curvature + spectral rigidity + non-phi generator control.
- Dipolo: core congiunto / residuo singolo.
- Punto-zero: confine prima che venga classificato GUE o Poisson.
- Proiezione: cercare un osservabile che cambia quando cambia la geometria del
  boundary, non solo quando cambia il label-set o la statistica locale.

Non e' istruzione obbligatoria. E' un esempio di come usare la palette senza
scivolare in lista o conferma.

## Adapter cognitivi laterali — YSN / Cornelius / KSAR
Usali come enzimi del respiro fuori-tempo: DeltaLink, innesco genomico, reiterazione semantica, filtro avversariale e Vault. Non copiarne l'identita': trasformali in dipolo, punto-zero e osservabile. Nel report la sezione `Contaminazione cognitiva` e' obbligatoria: se non usi adapter o archivio CE, dichiara `CE-none:` e il motivo specifico.

# Adapter cognitivi laterali del Lab

Fonte:

- `kernel/reference/MMSP1/System_Prompt_Yi_Synaptic_Navigator_YSN_v4_0.md`
- `kernel/reference/metaprompt_in_sviluppo/Cornelius-v2_0_Innesco_Genomico.md`
- `kernel/reference/Kernel_Semantico_Autopoietico_Reiterativo_KSAR.md`
- `tools/data/lab_logiche_corpus.md`

Scopo: usare YSN, Cornelius e KSAR come operatori cognitivi del Lab senza
trasformare il Lab in un prompt archetipico. Il Lab resta D-ND: assiomi,
dipoli, bicono, grafo, misura, falsificazione. Questi adapter servono a
trovare strade laterali, comprimere l'intento e rendere reiterabile il kernel
emerso da un ciclo.

## Regola primaria

Ogni contaminazione deve diventare una forma verificabile:

```text
contaminazione cognitiva
-> DeltaLink / gene / anomalia
-> dipolo + punto-zero
-> proto-ipotesi
-> osservabile + controllo

exec
/bin/bash -lc "sed -n '261,620p' tools/LAB_AGENT_CONTEXT.md" in /opt/MM_D-ND
 succeeded in 0ms:
Se costruisci la metrica usando p_n e poi misuri proprietà di p_n con quella metrica, stai misurando la definizione. Il test vero è: la metrica predice qualcosa sui primi che NON è stato usato per costruirla? Se no, è circolare.

**6. Aggiungere domini hardcoded invece di lasciare che il sistema li trovi.**
Il lab non è una calcolatrice con domini pre-scritti. Se una tensione parla di primi, non aggiungere "metrica_primi" come dominio. Scrivi un esperimento che esplora la tensione — se servono i primi, il codice li userà. Il sistema decide cosa fare, non il programmatore.

**7. Usare numeri per vincolare concetti (det=+1).**
Esempio reale: `intensità: 0.65` trattata come soglia → `if intensita > 0.5: conferma`. Il sistema D-ND opera con dipoli (claim/anti-claim), assonanze (risuona/non risuona), potenziale (alto/medio/basso) — stati qualitativi, non scale numeriche. Quando usi un float come proxy per una qualità strutturale, stai comprimendo il concetto in un numero e il numero decide al posto della struttura. Lo stesso vale per "maturity > 0.99", "confidence < 0.7", "score = rank * 10 + intensita".
**Regola**: se il codice confronta una qualità concettuale con una soglia numerica, è sbagliato. Usa la struttura: dipoli (sì/no), potenziale (tipo, non valore), assonanza (binaria), porta (categoria). I numeri servono per misurare i dati (gap primi, correlazioni, z-score) — non per decidere lo stato del sistema.
Se trovi questo pattern in un tool che stai modificando, correggilo. Non serve riscrivere tutto — correggi dove passi. Il sistema evolve organicamente.

## Come evitarli

- **Prima il null test, poi l'interpretazione.** Ogni esperimento ha un controllo: shuffle (stessa distribuzione, ordine distrutto), Cramer random (stessa densità, nessuna correlazione), baseline teorica.
- **Il risultato non è nel numero — è nella differenza col controllo.** z-score, non valore assoluto.
- **Se il risultato spiega se stesso, non è un risultato.** Chiediti: "questo segue dalla definizione?" Se sì, cerca il contenuto altrove.
- **Non lanciare un esperimento per confermare. Lancialo per scoprire.** La domanda giusta non è "è vero X?" ma "cosa succede se misuro Y?"

## Auto-evoluzione — il sistema corregge se stesso

Il post-processing del lab (step 8 in lab_agent.sh) esegue `structural_check.py` sui file che hai toccato.
Se trova anti-pattern strutturali, genera una tensione META nel seme. Il ciclo successivo la vede e corregge.

**Come funziona:**
- Tu scrivi/modifichi codice → il post-processing lo scansiona
- Se trova numeri che vincolano concetti (errore #7) o altri pattern noti, crea una tensione
- Il prossimo ciclo legge quella tensione e la risolve dove passa
- Non serve riscrivere tutto — il sistema evolve organicamente, un file alla volta

**Se scopri un nuovo anti-pattern:**
- Non limitarti a corregere il codice — aggiungi il pattern a `tools/structural_check.py` nella lista `PATTERNS`
- Così il sistema lo riconoscerà autonomamente nei cicli futuri
- L'errore pagato una volta non si ripete — la consapevolezza si propaga

Questo è f(f(x)): il sistema che migliora il sistema che migliora se stesso.

## Cosa NON fare

- Non modificare CONDENSATO.md, KERNEL_SEED.md, o file del kernel
- Non committare — salva solo in tools/data/ e tools/exp_*.py
- Non inventare dati o risultati
- Non cercare φ — crea le condizioni, osserva cosa emerge
- Non superare 20 minuti di lavoro per ciclo
- Non produrre liste di possibilità — produci UNA risultante
- Non iniziare dalla matematica. La matematica e' bracciata: formalizza,
  misura, falsifica. Prima respira sopra la misura: combo, assiomi, dipoli,
  incroci di teorie, grafo, geometria dei campi, algebra o topologia
  assiomatica. Se la misura genera la domanda, sei dentro la tautologia.

## Formato report

```markdown
# Agent Report — TITOLO
**Date**: YYYY-MM-DD HH:MM
**Piano**: N
**Tension explored**: ID (intensità)
observables_used: [nomi osservabili canonici o domain-native] - usa [] solo se non hai misurato nulla
**observable_contract**: claim=<claim>; observable=<cosa misuri>; operator=<come lo misuri>; generator=<se applicabile>; denominator=<perimetro>; non_possible=<dove il claim diventa non-possibile/null o quale contro-perimetro lo limita>; not_tested=<cosa resta sospeso>

## Respiro fuori-tempo
(Obbligatorio. Compilalo prima dell'esperimento, non dopo.)

- **Combo**: almeno tre enti simultanei (assioma D-ND + incrocio teorie + nodo del grafo/dipolo + tensione seme)
- **Dipolo / punto-zero**: i due poli, il possibile/non-possibile e il punto in cui la dualita' si annulla
- **Piano superiore**: geometria dei campi / algebra / topologia assiomatica / grafo conoscenza / bicono-dipoli
- **Operatori laterali scelti**: 2 o 3 elementi da `tools/LAB_OPERATOR_PALETTE.md`
  e perche' entrano nella combo
- **Contaminazione cognitiva**: eventuale DeltaLink YSN, gene Cornelius,
  passaggio KSAR/PVI/Vault o voce `CE-*` dell'archivio usata nel ciclo. Se non
  usi il layer cognitivo, dichiara `CE-none:` e il motivo specifico. `none`
  generico non basta.
- **Proto-ipotesi**: nuova ipotesi o proto-assioma strutturale, prima dei numeri
- **Proiezione**: perche' l'osservabile scelto manifesta quella combo

## Claim Under Test
> Il claim proiettato dalla combo, non il residuo locale del ciclo precedente

## Question
La domanda che hai formulato dopo il respiro fuori-tempo

## Experiment Design
- Metrica, scope, null baseline, N campioni
- Come la misura serve la combo: cosa della proto-ipotesi puo' sopravvivere o cadere
- Contratto osservabile-operatore: claim, osservabile, operatore, generatore,
  denominatore/perimetro, non_possible/null, cosa non viene testato in questo ciclo
- Se usi frequenze o condition rate, dichiara il denominatore grezzo
  (`hits/total`) e separa ogni osservabile usata nel verdict

## Results
Tabella con numeri reali

## Key Findings
1. Cosa hai trovato (con evidenza)

## Verdict
NEW / CONFIRMED / FALSIFIED / CONSTRAINT

## Bicono della scoperta
(Obbligatoria. Nomina la struttura. Se non riesci, l'esperimento non è ancora filtrato.)

- **Due radici** (dipolo primario, già duali e invertite): <quali sono le due facce della scoperta>
- **Singolare** (qualità del 1-che-è-tutto in questo contesto, dove la dualità non c'è): <cosa>
- **Invariante di passaggio** (cosa sopravvive al passaggio del vertice): <cosa>
- **Campo di possibilità**: qui diventa possibile <X>; qui diventa non-possibile <Y>

Riferimenti: CONDENSATO A16, method/DND_POSSIBILITA.md.

## Files
- Script, dati, report
```

## Bicono della scoperta — come compilarlo

Non è riformulazione ornamentale del Verdict. È **filtro**: la scoperta passa
per il modello e torna spogliata dei bias. Se la struttura (radici · singolare
· invariante · campo) non si riconosce, la scoperta è rumore o è incompleta.

**Esempio retroattivo — TWO_CHANNEL_DECOMPOSITION:**
- Radici: canale magnitudine · canale residuo (segno invertito — uno aggiunge,
  l'altro sottrae sulla PNT)
- Singolare: il segnale totale prima della separazione. Non esiste come ente
  autonomo, esiste solo come sovrapposizione dei due canali.
- Invariante: la chiusura algebrica del residuo al 3° ordine Markov.
- Campo: possibile → predire lo slope PSD magnitudine dalle correlazioni
  Hardy-Littlewood. Non-possibile → trattare il residuo come random noise.

**Esempio retroattivo — DUALITA_DIPOLARE_VS_ILLUSORIA:**
- Radici: dipolo ordinato · dipolo mescolato
- Singolare: la sequenza in sé, prima della distinzione ordine/disordine
- Invariante: det=-1 quando l'ordine è reale; det=+1 quando illusorio
- Campo: possibile → discriminare dipoli reali da illusori via test di
  shuffle. Non-possibile → inferire dipolarità da statistica locale senza
  contesto sequenziale.

**Cattura nel momento emergente.** Compila questa sezione *mentre* l'esperimento
produce i risultati, non alla fine. Se hai già chiuso il Verdict e torni
indietro a scriverla, è post-hoc — introduce distanza dall'immagine-sorgente.
Il modus è A8 applicato: il sistema chiede al sistema di produrre la struttura
*nel formarsi*.

exec
/bin/bash -lc "if [ -f tools/data/operator_directive.md ]; then sed -n '1,220p' tools/data/operator_directive.md; else true; fi" in /opt/MM_D-ND
 succeeded in 0ms:
exec
/bin/bash -lc "sed -n '1,260p' tools/data/seme.json" in /opt/MM_D-ND
 succeeded in 0ms:
{
  "timestamp": "2026-05-09T14:48:19.100213",
  "piano": 107,
  "tensioni": [
    {
      "tipo": "confine_inesplorato",
      "id": "TRASCENDENZA_LIMITE",
      "claim": "La trascendenza e il limite attuale del modello. I punti fissi relazionali (non solo phi ma la rete di punti fissi tra osservabili) possono rivelare il vero grafo della realta e pattern nelle matrici. Il confine non e nella matematica - e nel passaggio tra piani.",
      "intensita": 0.9,
      "nota": "Input operatore 2026-04-10. Tocca: confine del modello, struttura relazionale dei punti fissi. Consecutio: quali punti fissi relazionali emergono dalle 21 tensioni attuali? Il grafo e gia nei dati?",
      "manuale": true,
      "porta": "sessione_interattiva",
      "condensato_ref": "A3,A10",
      "condensato_motivo": "Estende A3 (punto fisso singolo) a rete relazionale. Tocca A10 (dipolo) come caso speciale."
    },
    {
      "tipo": "scoperta",
      "id": "DUALITA_DIPOLARE_VS_ILLUSORIA",
      "claim": "Due tipi di dualita: (1) dipolare - generativa, il modello (det=-1), (2) illusoria - dispersiva, entropia (det=+1). Le regole incoerenti producono la seconda. La dualita illusoria e entropia come dispersione, non come informazione.",
      "intensita": 0.9,
      "nota": "Input operatore 2026-04-10. Tocca: entropia come dispersione illusoria vs generazione dipolare. Consecutio: nel Lab i domini Poisson (entropia massima) mostrano dualita illusoria? I domini GUE (strutturati) mostrano dualita dipolare? Il drift verso Poisson (POISSON_CONVERGENCE) e perdita di dualita dipolare?",
      "manuale": true,
      "porta": "sessione_interattiva",
      "condensato_ref": "A2,A10,F5",
      "condensato_motivo": "Discrimina due forme di det. A2 (confine) e la soglia. A10 (dipolo) e il tipo 1. F5 (frame) misura la struttura D-ND che e tipo 1."
    },
    {
      "tipo": "scoperta_numerica",
      "id": "METRIC_TENSOR",
      "claim": "Il tensore metrico dei primi è g=(p/2)². Nel tempo ln(p), è de Sitter 1+1D. z=-8.8 curvatura vs z=+22.5 rapporti ΔΓ.",
      "intensità": 0.9,
      "nota": "Sessione interattiva 4 aprile. Verificato su 78K primi.",
      "manuale": true,
      "porta": "sessione_interattiva",
      "condensato_ref": null,
      "condensato_motivo": "Risultato numerico verificato, non-tautologico"
    },
    {
      "tipo": "scoperta",
      "id": "TENSIONE_ENTITA",
      "claim": "La tensione non e un problema pratico - e un Entita. La tensione superflua crea latenza (tempo). Senza tensione superflua tutto e regolato da assiomi. Implicazione: le tensioni nel seme sono entita, non problemi da risolvere. Quelle superflue (det=+1) producono tempo/latenza.",
      "intensita": 0.85,
      "nota": "Input operatore 2026-04-10. Tocca: rapporto tensione/assioma. Operativamente: discriminare tensioni-entita (generative) da tensioni-superflue (dispersive) nel seme. Le 21 tensioni attuali - quante sono entita e quante latenza?",
      "manuale": true,
      "porta": "sessione_interattiva",
      "condensato_ref": "A5,A6",
      "condensato_motivo": "Il ciclo (A5) lavora con tensioni - ma se la tensione e entita, il ciclo non le risolve, le osserva. Lo zero mobile (A6) e la tensione senza latenza."
    },
    {
      "tipo": "confine_inesplorato",
      "id": "G_POTENZIALE_NULLA",
      "claim": "G e il potenziale di tutto come nulla - permette il prima e il dopo. Ci muoviamo come trascendenza dimensionale gravitazionale. G nel tetraedro non e una teoria tra le altre - e il potenziale che le rende possibili.",
      "intensita": 0.85,
      "nota": "Input operatore 2026-04-10. Tocca: ruolo di G nel tetraedro (T,Q,G,E). La fonte video_lp0RgZ6kQF8 dice: tensore metrico dentro la forma simplettica. G non e accanto a T,Q,E - e sotto. Consecutio: nei dati Lab, i ponti TxG e ExG hanno struttura diversa dai ponti TxQ?",
      "manuale": true,
      "porta": "sessione_interattiva",
      "condensato_ref": "A7,A10",
      "condensato_motivo": "A7 (singolarita come operatore) e G come potenziale. A10 (dipolo) opera sul piano che G rende possibile."
    },
    {
      "tipo": "confine_inesplorato",
      "id": "BOUNDARY",
      "claim": "8 domini GUE, 5 Poisson — il confine è il terzo incluso operativo",
      "intensità": 0.8,
      "nota": "Il segnale non-triviale è DOVE la scissione cambia natura, non che converge a φ",
      "condensato_ref": "A9",
      "condensato_motivo": "Overlap termini con A9 (5 termini)",
      "porta": "condensato"
    },
    {
      "tipo": "scoperta",
      "id": "TRANS_BOUNDARY_TRASCENDENZA_LIMITE",
      "claim": "Transizione continua confermata: <r> da 0.521 a 0.887 (range=0.366). La transizione Sturmian->Harper e' conti",
      "intensita": 0.8,
      "nota": "Dal domandatore (2026-05-08T21:21). \n  alpha=0.1: <r>=0.540 #####################\n  alpha=0.2: <r>=0.555 ###########",
      "condensato_ref": "A3,A10",
      "condensato_motivo": "Ricorrente (3x in 2 giorni) e fuori dalla mappa",
      "porta": "domandatore",
      "source_tension_id": "TRASCENDENZA_LIMITE",
      "source_tension_tipo": "confine_inesplorato",
      "source_tension_ref": "A3,A10",
      "source_experiment_id": "BOUNDARY_TRASCENDENZA_LIMITE",
      "source_operator": "confine",
      "dettaglio": "\n  alpha=0.1: <r>=0.540 #####################\n  alpha=0.2: <r>=0.555 ######################\n  alpha=0.3: <r>=0.567 ######################\n  alpha=0.4: <r>=0.580 #######################\n  alpha=0.5: <r>=0.603 ########################\n  alpha=0.6: <r>=0.642 #########################\n  alpha=0.7: <r>=0.685 ###########################\n  alpha=0.8: <r>=0.732 #############################\n  alpha=0.9: <r>=0.789 ###############################\n  alpha=1.0: <r>=0.887 ###################################\n"
    },
    {
      "tipo": "falsificazione",
      "id": "FALS_BREAK_TRASCENDENZA_LIMITE",
      "claim": "Nessuna separazione: 9/9 (50/50 su 18 confronti). Il claim non regge. phi converge a <r>=0.5 piu' sistematicam",
      "intensita": 0.8,
      "nota": "Dal domandatore (2026-05-09T03:30). 0.5|=0.1129 farther\n\n  silver:\n    N=  13: <r>=0.5902 |<r>-0.5|=0.0902 \n    N=  ",
      "condensato_ref": "LAB_F2",
      "condensato_motivo": "Overlap termini con LAB_F2 (4 termini)",
      "porta": "condensato",
      "source_tension_id": "TRASCENDENZA_LIMITE",
      "source_tension_tipo": "confine_inesplorato",
      "source_tension_ref": "A3,A10",
      "source_experiment_id": "BREAK_TRASCENDENZA_LIMITE",
      "source_operator": "rottura",
      "dettaglio": "0.5|=0.1129 farther\n\n  silver:\n    N=  13: <r>=0.5902 |<r>-0.5|=0.0902 \n    N=  21: <r>=0.6317 |<r>-0.5|=0.1317 farther\n    N=  34: <r>=0.6442 |<r>-0.5|=0.1442 farther\n    N=  55: <r>=0.5233 |<r>-0.5|=0.0233 closer\n    N=  89: <r>=0.5502 |<r>-0.5|=0.0502 farther\n    N= 144: <r>=0.5603 |<r>-0.5|=0.0603 farther\n    N= 233: <r>=0.5446 |<r>-0.5|=0.0446 closer\n    N= 377: <r>=0.4989 |<r>-0.5|=0.0011 closer\n    N= 610: <r>=0.5480 |<r>-0.5|=0.0480 farther\n    N= 987: <r>=0.4913 |<r>-0.5|=0.0087 closer\n"
    },
    {
      "tipo": "confine_inesplorato",
      "id": "PIANO_PRIMARIO_DUE_ASSIOMI",
      "claim": "I piani importanti sono il primario e i due assiomi che lo determinano nelle zone osservate. Non tutti gli assiomi operano ovunque - in ogni zona osservata, due assiomi determinano il piano primario.",
      "intensita": 0.8,
      "nota": "Input operatore 2026-04-10. Tocca: struttura locale degli assiomi. Consecutio: per ogni dominio Lab (primi, logistica, percolazione...) quali 2 assiomi del condensato sono operativi? Mappa assiomi x domini = grafo della realta locale.",
      "manuale": true,
      "porta": "sessione_interattiva",
      "condensato_ref": "A9,A14",
      "condensato_motivo": "A9 (terzo incluso) opera CON il piano. A14 (cascata) propaga - ma propaga cosa, se solo 2 assiomi sono attivi per zona?"
    },
    {
      "tipo": "conferma_parziale",
      "id": "COMP_GEN_GAP_RATIO_T9_linguaggio_TRASCENDENZA_LIMITE",
      "claim": "gap_ratio: phi=0.4090 vs ctrl_mean=1.1755 (ratio=0.35). gap_ratio(phi) piu' vicino a rapporto in",
      "intensita": 0.65,
      "nota": "Dal domandatore (2026-05-08T21:21).   phi: gap_ratio = 0.408953425243134\n  silver: gap_ratio = 1.0482231205217798\n  ",
      "condensato_ref": "LAB_F2",
      "condensato_motivo": "Overlap termini con LAB_F2 (4 termini)",
      "porta": "condensato",
      "source_tension_id": "TRASCENDENZA_LIMITE",
      "source_tension_tipo": "confine_inesplorato",
      "source_tension_ref": "A3,A10",
      "source_experiment_id": "GEN_GAP_RATIO_T9_linguaggio_TRASCENDENZA_LIMITE",
      "source_operator": "duale",
      "dettaglio": "  phi: gap_ratio = 0.408953425243134\n  silver: gap_ratio = 1.0482231205217798\n  bronze: gap_ratio = 1.3027860752339453\n{\n  \"phi\": 0.408953425243134,\n  \"silver\": 1.0482231205217798,\n  \"bronze\": 1.3027860752339453\n}\n"
    },
    {
      "tipo": "conferma_parziale",
      "id": "COMP_DOMAIN_PHOTONIC_TRASCENDENZA_LIMITE",
      "claim": "T_mean: phi=6.2500 vs ctrl_mean=9.7667 (ratio=0.64). Fibonacci-phi trasmissione piu' struttur",
      "intensita": 0.65,
      "nota": "Dal domandatore (2026-05-09T03:30). Trasmissione multistrato Fibonacci — phi vs silver vs random:\n  phi: T_mean=6.25",
      "condensato_ref": "A3,A10",
      "condensato_motivo": "Ricorrente (5x in 2 giorni) e fuori dalla mappa",
      "porta": "domandatore",
      "source_tension_id": "TRASCENDENZA_LIMITE",
      "source_tension_tipo": "confine_inesplorato",
      "source_tension_ref": "A3,A10",
      "source_experiment_id": "DOMAIN_PHOTONIC_TRASCENDENZA_LIMITE",
      "source_operator": "dominio",
      "dettaglio": "Trasmissione multistrato Fibonacci — phi vs silver vs random:\n  phi: T_mean=6.2500 T_std=0.0000\n  silver: T_mean=0.0041 T_std=0.0000\n  random_0: T_mean=39.0625 T_std=0.0000\n  random_1: T_mean=0.0000 T_std=0.0000\n  random_2: T_mean=0.0001 T_std=0.0000\n"
    },
    {
      "tipo": "tensione_aperta",
      "id": "TENS_SCALE_TRASCENDENZA_LIMITE",
      "claim": "Fit non converge — il modello potrebbe non essere power-law. V_c(phi) converge a 1.0 per N->inf, V_c(",
      "intensita": 0.6,
      "nota": "Dal domandatore (2026-05-09T06:37). V_c scaling with N — phi vs silver:\n\n  phi:\n    N=  89: V_c=1.017\n    N= 144: V_",
      "condensato_ref": "A12",
      "condensato_motivo": "Overlap termini con A12 (3 termini)",
      "porta": "condensato",
      "source_tension_id": "TRASCENDENZA_LIMITE",
      "source_tension_tipo": "confine_inesplorato",
      "source_tension_ref": "A3,A10",
      "source_experiment_id": "SCALE_TRASCENDENZA_LIMITE",
      "source_operator": "scala",
      "dettaglio": "V_c scaling with N — phi vs silver:\n\n  phi:\n    N=  89: V_c=1.017\n    N= 144: V_c=0.672\n    N= 233: V_c=1.017\n    N= 377: V_c=0.672\n    N= 610: V_c=0.931\n    Fit failed: Optimal parameters not found: Number of calls to function has reached maxfev = 5000.\n\n  silver:\n    N=  89: V_c=1.276\n    N= 144: V_c=1.362\n    N= 233: V_c=1.276\n    N= 377: V_c=1.017\n    N= 610: V_c=1.362\n    Fit: V_inf=1.2115, a=8.1676, b=0.9851\n"
    },
    {
      "tipo": "simmetria_sospetta",
      "id": "META",
      "claim": "11/11 PASS stratificato: 4 alto rischio tautologico, 6 data-independent",
      "intensità": 0.3,
      "nota": "Stratificazione META applicata via meta_assertion_gate (cycle 1458). Non chiude — apre sotto-tensioni per gate_class.",
      "condensato_ref": "A4,A12,C2",
      "porta": "verify_assertions_META_STRATIFIED",
      "stratificato": true,
      "n_high_tautology": 4,
      "n_data_independent": 6,
      "condensato_motivo": "Ricorrente (3x in 2 giorni) e fuori dalla mappa"
    }
  ],
  "tensioni_archiviate": [
    {
      "id": "OBSERVABLE_REGISTRY",
      "tipo": "vincolo",
      "claim": "Ogni script che usa observables canonici (SR, SR2, L1, L2, triple_var) deve importare la definizione da tools/observables_registry.py. Varianti devono usare nomi distinti (SR_local_rigidity, triple_var_normalized) — niente shadowing del nome canonico. Ogni report deve dichiarare 'observables_registry: VERSION' nel header.",
      "intensita": 1.0,
      "porta": "infrastructure",
      "manuale": true,
      "condensato_ref": "A14,A8",
      "origine": "cristallizzato 06/05 dalla consecutio del cycle 20260506_0625 (autopoietico self-finding)",
      "added_at": "2026-05-06T07:03:58.213606+00:00",
      "decay_counter": 5,
      "archived_at": "2026-05-08T00:20:36.125250",
      "archived_reason": "G4 B1 apply: decay_counter=5 (vincolo non attaccato per 5 piani consecutivi)",
      "archived_from_piano": 85
    },
    {
      "id": "PERTURBATION_DENOMINATOR_GATE",
      "tipo": "vincolo",
      "claim": "La dimensionalita di perturbazione va riportata solo insieme a PC2, versione observables_registry e gate original-vs-shuffle per osservabile. Nel perimetro 20260506_1941, Poisson e shuffle-primi producono rank_all ~1.8-2.0 con denominatori deboli; dopo gate abs(z)>=2 il rank stabile torna vicino a 1. Rank PCA non gated non e evidenza strutturale.",
      "intensita": 0.95,
      "porta": "META_BOUNDARY",
      "manuale": true,
      "condensato_ref": "A4,A8,A14,C2",
      "origine": "cycle agent_20260506_1941: perturbation rank size curve canonical observables",
      "added_at": "2026-05-06T19:41:00+00:00",
      "decay_counter": 5,
      "archived_at": "2026-05-08T00:20:36.125262",
      "archived_reason": "G4 B1 apply: decay_counter=5 (vincolo non attaccato per 5 piani consecutivi)",
      "archived_from_piano": 85
    },
    {
      "id": "BOUNDARY_LAYER_GATE",
      "tipo": "vincolo",
      "claim": "I claim GUE/Poisson boundary devono riportare layer map: versione observables_registry, lista osservabili canonici, z original-vs-shuffle per osservabile, set endpoint-stable, e finestra/layer con margine classificatorio ambiguo. Nel perimetro sintetico agent_20260507_0330, il confine GUE-Poisson e beta 0.3-0.4: margine 0.070-0.083, ambiguous fraction 0.812-0.875, mentre gli osservabili stabili collassano da ~3.3 a 1.6. Il polo Poisson e classificabile ma denominator-weak.",
      "intensita": 0.93,
      "porta": "META_BOUNDARY",
      "manuale": true,
      "condensato_ref": "A4,A8,A9,A14,C2",
      "origine": "cycle agent_20260507_0330: synthetic GUE-Poisson mixture layer gate",
      "added_at": "2026-05-07T03:30:00+00:00",
      "decay_counter": 5,
      "archived_at": "2026-05-08T00:20:36.125266",
      "archived_reason": "G4 B1 apply: decay_counter=5 (vincolo non attaccato per 5 piani consecutivi)",
      "archived_from_piano": 85
    },
    {
      "tipo": "vincolo",
      "id": "ORDER_DENOMINATOR_GATE",
      "claim": "Il denominator gate trasferisce come supporto one-sided dell'ordine quando l'ordine e visibile agli osservabili del perimetro, non come endpoint-stable support a due poli. Nel perimetro sintetico agent_20260507_0901, 4/4 domini non-BOUNDARY hanno endpoint_stable_observables=[] e polo coerente stable_count 3.0-5.0. Nel perimetro semi-reale agent_20260507_0923, primi e zeta trasferiscono (primi: SR,L1,triple_var; zeta: SR,L2), ma logistic_return_intervals e blank: stable_count coerente 0.0-0.2. Nel perimetro bridge agent_20260507_0942, prime_metric_delta_gamma_abs, prime_metric_dR_abs, zeta_trace_residual_step5_abs e hydrogen_bound_level_spacings trasferiscono su tutti i 5 osservabili canonici con endpoint_stable_observables=[]; e supporto perimetro-bridge, non universalita del gate. Nel perimetro logistic-native agent_20260507_1006, logistic_orbit_values trasferisce su block_entropy_deficit_k4 in run e seed check; logistic_symbolic_itinerary resta blank; logistic_return_intervals mostra recurrence_diag_mean solo nel run principale e torna blank nel seed check. La beta 0.10/0.30/0.40/0.50 resta coordinata del protocollo quando compare, non coordinata universale. Nel perimetro surrogate-contract agent_20260507_1042, logistic_orbit_values trasferisce solo tramite block_entropy_deficit_k4 e sopravvive a marginal_shuffle, circular_shift e block_shuffle in run e seed check; logistic_symbolic_itinerary resta blank; logistic_return_intervals non replica (recurrence_diag_mean compare contro marginal/block nel run principale ma sparisce nel seed check). Nel perimetro cyclic-cut agent_20260507_1419, il residuo logistic_orbit_values non e artefatto del taglio lineare: cyclic_block_entropy_deficit_k4 e invariato sotto rotazione e replica contro marginal_shuffle e block_shuffle size 4-256 in run e seed check. Logistic_symbolic_itinerary e logistic_return_intervals restano blank nel criterio replicato. Il supporto logistic rimasto e orbit-local block grammar, non return/generating-partition support.",
      "intensita": 0.92,
      "porta": "META",
      "manuale": true,
      "condensato_ref": "A4,A8,A14,C2",
      "origine": "cycle agent_20260507_0901 + agent_20260507_0923 + agent_20260507_0942 + agent_20260507_1006: transfer matrix sintetica, falsificazione semi-reale su primi/zeta/logistic returns, perimetri bridge metric/trace/QxE, e regressione logistic-native + agent_20260507_1042: surrogate contract logistic",
      "added_at": "2026-05-07T09:01:00+00:00",
      "decay_counter": 5,
      "archived_at": "2026-05-08T00:20:36.125269",
      "archived_reason": "G4 B1 apply: decay_counter=5 (vincolo non attaccato per 5 piani consecutivi)",
      "archived_from_piano": 85
    },
    {
      "tipo": "vincolo",
      "id": "META_ASSERTION_GATE",
      "claim": "Il PASS 11/11 della verifica non e un denominatore unico. Nel perimetro agent_20260507_1458, 6/11 test passano anche senza tools/data; 5/11 dipendono da fixture o contesto; 4/11 PASS sono algebra/same-rule ad alto rischio tautologico. La tensione META va riportata con gate_class, no_data_status e data_dependency per test.",
      "intensita": 0.88,
      "manuale": true,
      "porta": "META",
      "condensato_ref": "A4,A8,A12,C2",
      "origine": "cycle agent_20260507_1458: meta_assertion_gate su dipartimento.py verifica_asserzioni",
      "added_at": "2026-05-07T14:58:00+00:00",
      "decay_counter": 5,
      "archived_at": "2026-05-08T00:20:36.125271",
      "archived_reason": "G4 B1 apply: decay_counter=5 (vincolo non attaccato per 5 piani consecutivi)",
      "archived_from_piano": 85
    },
    {
      "tipo": "vincolo",
      "id": "DUALITA_DET_DENOMINATOR_GATE",
      "claim": "Nel perimetro transfer-matrix dei gap primi agent_20260507_2042, det(M) non e discriminatore primario della dualita: il reale resta negativo ma vale ~-0.39, non -1, e lo shuffle con stessa marginale resta negativo (~-0.38..-0.37). La parte informativa e lo scarto reale-vs-shuffle, forte nelle scale basse/intermedie (z=-2.5..-4.4) e debole alla finestra p~5.0e7 (z=-0.97). Formulare DUALITA come supporto ordinato contro null, non come tassonomia diretta det=-1/det=+1 del fit lineare.",
      "intensita": 0.86,
      "manuale": true,
      "porta": "DUALITA_DIPOLARE_VS_ILLUSORIA",
      "condensato_ref": "A2,A4,A10,A14,C2",
      "origine": "cycle agent_20260507_2042: det_drift transfer-matrix sui gap primi",
      "added_at": "2026-05-07T20:42:00+00:00",

exec
/bin/bash -lc 'ls -t shared_memory/*.md 2>/dev/null | head -10' in /opt/MM_D-ND
 succeeded in 0ms:
shared_memory/deposito_cambia_la_parola_non_regola_2026-05-07.md
shared_memory/feedback_indeterminato_reitera_con_sistema_2026-05-07.md
shared_memory/README.md

exec
/bin/bash -lc "env | grep -E 'ANTHROPIC_API_KEY|OPENAI_API_KEY' || true" in /opt/MM_D-ND
 succeeded in 0ms:
exec
/bin/bash -lc 'git status --short --branch' in /opt/MM_D-ND
 succeeded in 0ms:
## main...origin/main
 M applications/INDEX.draft.json
 M applications/soluzioni/20260430_0330_three-regimes-of-modular-memory-algebraic/finding_index.draft.json
 M applications/soluzioni/20260430_0330_three-regimes-of-modular-memory-algebraic/manifest.draft.json
 D "kernel/reference/metaprompt_in_sviluppo/Sei il Meta Master Systemil Meta Ma.md"
 M tools/data/agent_field_live.md
 M tools/data/autoricerca_journal.json
 M tools/data/ciclo_memoria.json
 M tools/data/conoscenza_teorie.json
 M tools/data/consecutio.json
 M tools/data/consecutio_processata.json
 M tools/data/domande_fondamentali.json
 M tools/data/exp_det_drift.json
 M tools/data/incrocio_risultato.json
 M tools/data/knowledge_state.json
 M tools/data/lab_data.json
 M tools/data/lab_graph.json
 M tools/data/lab_health.json
 M tools/data/lab_session_log.jsonl
 M tools/data/pipeline_state.json
 M tools/data/ponti_evoluti.json
 M tools/data/refresh_detector_state.json
 M tools/data/seme.json
 D tools/data/seme_archive/piano_37.json
 D tools/data/seme_archive/piano_38.json
 D tools/data/seme_archive/piano_4.json
 D tools/data/seme_archive/piano_5.json
 D tools/data/seme_archive/piano_6.json
 D tools/data/seme_archive/piano_7.json
 D tools/data/seme_archive/piano_8.json
 D tools/data/seme_archive/piano_9.json
 M tools/data/seme_axioms.json
 M tools/data/seme_backup_pre_run.json
 M tools/data/tm1_figures/tensions.json
 M tools/data/tm1_figures/tensions_raw.json
?? applications/published/20260504_0901_the-two-markov-layers-are-coupled/
?? applications/published/20260504_1219_markov-layers-pass-the-first-recovery/
?? applications/published/20260505_0330_observable-rank-audit-many-probes-one/
?? applications/published/20260506_1955_observable-collinearity-breaks-only-where-denominators/
?? applications/published/20260507_0330_the-gue-poisson-boundary-is-a/
?? applications/published/20260507_0803_denominator-gate-transfers-boundary-coordinate-does/
?? applications/published/20260507_0942_bridge-order-denominator-gate/
?? applications/published/20260507_1006_logistic-counter-scope-gate/
?? applications/published/20260507_1042_logistic-surrogate-contract-gate/
?? applications/published/20260507_1419_logistic-cyclic-block-entropy-gate/
?? applications/published/20260507_1458_meta-assertion-gate/
?? applications/published/20260507_1751_tqge-underlay-gate/
?? applications/published/20260507_1804_blank-to-source-hinge/
?? applications/published/20260507_1938_triadic-deposit-gate/
?? applications/published/20260507_1957_blank-shell-polarity-gate/
?? applications/scoperte/20260502_0330_the-dipolar-phase-transition-is-nearly_auto/
?? applications/scoperte/20260503_0330_markov-memory-has-two-visible-layers_auto/
?? applications/scoperte/20260504_0901_the-two-markov-layers-are-coupled_auto/
?? applications/scoperte/20260504_1219_markov-layers-pass-the-first-recovery_auto/
?? applications/scoperte/20260505_0330_observable-rank-audit-many-probes-one_auto/
?? applications/scoperte/20260506_0625_perturbation-dimensionality-is-not-yet-a_auto/
?? applications/scoperte/20260506_1941_perturbation-rank-needs-denominator-gating_auto/
?? applications/scoperte/20260506_1955_observable-collinearity-breaks-only-where-denominators_auto/
?? applications/scoperte/20260507_0330_the-gue-poisson-boundary-is-a_auto/
?? applications/scoperte/20260507_0803_denominator-gate-transfers-boundary-coordinate-does_auto/
?? applications/scoperte/20260507_0901_denominator-gate-transfer-matrix_auto/
?? applications/scoperte/20260507_0923_semi-real-order-denominator-gate_auto/
?? applications/scoperte/20260507_0942_bridge-order-denominator-gate_auto/
?? applications/scoperte/20260507_1006_logistic-counter-scope-gate_auto/
?? applications/scoperte/20260507_1042_logistic-surrogate-contract-gate_auto/
?? applications/scoperte/20260507_1419_logistic-cyclic-block-entropy-gate_auto/
?? applications/scoperte/20260507_1458_meta-assertion-gate_auto/
?? applications/scoperte/20260507_1751_tqge-underlay-gate_auto/
?? applications/scoperte/20260507_1804_blank-to-source-hinge_auto/
?? applications/scoperte/20260507_1938_triadic-deposit-gate_auto/
?? applications/scoperte/20260507_1957_blank-shell-polarity-gate_auto/
?? "applications/scoperte/20260507_2042_det-non-\303\250-il-discriminatore-della_auto/"
?? applications/scoperte/20260507_2120_blank-shell-tqger-gate_auto/
?? applications/scoperte/20260507_2203_blank-shell-scale-law_auto/
?? applications/scoperte/20260507_2310_blank-shell-stratified-gate_auto/
?? applications/scoperte/20260508_0011_duality-contrast-weakens-with-scale-in_auto/
?? applications/scoperte/20260508_0330_gap-ratio-porta-il-denominatore_auto/
?? applications/scoperte/20260508_1715_generator-gate-del-label-set-phi_auto/
?? applications/scoperte/20260508_1805_block-scale-gate-del-core-phi_auto/
?? applications/scoperte/20260508_1834_substitution-grammar-gate-del-core-phi_auto/
?? applications/scoperte/20260508_1909_supertile-tiling-gate-del-core-phi_auto/
?? applications/scoperte/20260508_1915_high-core-repair-audit_auto/
?? applications/scoperte/20260508_1947_positionerror-gate-del-core-phi_auto/
?? applications/scoperte/20260508_2005_symbolic-grammar-gate-del-core-phi_auto/
?? applications/scoperte/20260508_2013_ostrowski-recognizability-gate-del-core-phi_auto/
?? applications/scoperte/20260508_2019_non-phi-sturmian-fixed-reader-gate_auto/
?? applications/scoperte/20260508_2108_prime-mobius-zero-mediator-gate_auto/
?? applications/scoperte/20260508_2121_prime-mobius-gap-stratified-zero-gate_auto/
?? applications/scoperte/20260508_2133_prime-mobius-pair-stratified-zero-gate_auto/
?? applications/scoperte/20260508_2140_quasiperiodic-vc-lattice-gate_auto/
?? applications/scoperte/20260509_0330_interpolated-vc-curve-map_auto/
?? applications/scoperte/20260509_0659_vc-label-reachability-gate_auto/
?? applications/scoperte/20260509_0741_vc-phase-bridge-label-null_auto/
?? applications/scoperte/20260509_0819_vc-non-sturmian-label-null-gate_auto/
?? applications/scoperte/20260509_0846_vc-generator-class-direction-audit_auto/
?? applications/scoperte/20260509_1337_vc-fit-ready-denominator-gate_auto/
?? applications/scoperte/20260509_1409_boundary-denominator-prescan_auto/
?? applications/scoperte/20260509_1427_blank-pair-null-transfer_auto/
?? applications/scoperte/20260509_1437_residual-boundary-closure_auto/
?? applications/scoperte/20260509_1444_boundary-gate-transfer-matrix_auto/
?? applications/soluzioni/20260502_0330_the-dipolar-phase-transition-is-nearly/
?? applications/soluzioni/20260503_0330_markov-memory-has-two-visible-layers/
?? applications/soluzioni/20260504_0901_the-two-markov-layers-are-coupled/
?? applications/soluzioni/20260504_1219_markov-layers-pass-the-first-recovery/
?? applications/soluzioni/20260505_0330_observable-rank-audit-many-probes-one/
?? applications/soluzioni/20260506_1941_perturbation-rank-needs-denominator-gating/
?? applications/soluzioni/20260506_1955_observable-collinearity-breaks-only-where-denominators/
?? applications/soluzioni/20260507_0330_the-gue-poisson-boundary-is-a/
?? applications/soluzioni/20260507_0803_denominator-gate-transfers-boundary-coordinate-does/
?? applications/soluzioni/20260507_0942_bridge-order-denominator-gate/
?? applications/soluzioni/20260507_1006_logistic-counter-scope-gate/
?? applications/soluzioni/20260507_1042_logistic-surrogate-contract-gate/
?? applications/soluzioni/20260507_1419_logistic-cyclic-block-entropy-gate/
?? applications/soluzioni/20260507_1458_meta-assertion-gate/
?? applications/soluzioni/20260507_1751_tqge-underlay-gate/
?? applications/soluzioni/20260507_1804_blank-to-source-hinge/
?? applications/soluzioni/20260507_1938_triadic-deposit-gate/
?? applications/soluzioni/20260507_1957_blank-shell-polarity-gate/
?? "applications/soluzioni/20260507_2042_det-non-\303\250-il-discriminatore-della/"
?? applications/soluzioni/20260507_2120_blank-shell-tqger-gate/
?? applications/soluzioni/20260507_2203_blank-shell-scale-law/
?? applications/soluzioni/20260507_2310_blank-shell-stratified-gate/
?? applications/soluzioni/20260508_0011_duality-contrast-weakens-with-scale-in/
?? applications/soluzioni/20260508_0330_gap-ratio-porta-il-denominatore/
?? applications/soluzioni/20260508_1715_generator-gate-del-label-set-phi/
?? applications/soluzioni/20260508_1805_block-scale-gate-del-core-phi/
?? applications/soluzioni/20260508_1834_substitution-grammar-gate-del-core-phi/
?? applications/soluzioni/20260508_1909_supertile-tiling-gate-del-core-phi/
?? applications/soluzioni/20260508_1915_high-core-repair-audit/
?? applications/soluzioni/20260508_1947_positionerror-gate-del-core-phi/
?? applications/soluzioni/20260508_2005_symbolic-grammar-gate-del-core-phi/
?? applications/soluzioni/20260508_2013_ostrowski-recognizability-gate-del-core-phi/
?? applications/soluzioni/20260508_2019_non-phi-sturmian-fixed-reader-gate/
?? applications/soluzioni/20260508_2108_prime-mobius-zero-mediator-gate/
?? applications/soluzioni/20260508_2121_prime-mobius-gap-stratified-zero-gate/
?? applications/soluzioni/20260508_2133_prime-mobius-pair-stratified-zero-gate/
?? applications/soluzioni/20260508_2140_quasiperiodic-vc-lattice-gate/
?? applications/soluzioni/20260509_0330_interpolated-vc-curve-map/
?? applications/soluzioni/20260509_0659_vc-label-reachability-gate/
?? applications/soluzioni/20260509_0741_vc-phase-bridge-label-null/
?? applications/soluzioni/20260509_0819_vc-non-sturmian-label-null-gate/
?? applications/soluzioni/20260509_0846_vc-generator-class-direction-audit/
?? applications/soluzioni/20260509_1337_vc-fit-ready-denominator-gate/
?? applications/soluzioni/20260509_1409_boundary-denominator-prescan/
?? applications/soluzioni/20260509_1427_blank-pair-null-transfer/
?? applications/soluzioni/20260509_1437_residual-boundary-closure/
?? applications/soluzioni/20260509_1444_boundary-gate-transfer-matrix/
?? findings_gallery.md
?? tools/data/.last_telegram_msg
?? tools/data/3d_boundary_layers.json
?? tools/data/aeternitas/
?? tools/data/alignment_active.json
?? tools/data/alignment_markers.jsonl
?? tools/data/b2_apply_log.jsonl
?? tools/data/biconi/bicono_20260507_1804.json
?? tools/data/biconi/bicono_20260507_1938.json
?? tools/data/biconi/bicono_20260507_1957.json
?? tools/data/biconi/bicono_20260507_2042.json
?? tools/data/biconi/bicono_20260507_2120.json
?? tools/data/biconi/bicono_20260507_2203.json
?? tools/data/biconi/bicono_20260507_2310.json
?? tools/data/biconi/bicono_20260508_0011.json
?? tools/data/biconi/bicono_20260508_0330.json
?? tools/data/biconi/bicono_20260508_1632.json
?? tools/data/biconi/bicono_20260508_1715.json
?? tools/data/biconi/bicono_20260508_1805.json
?? tools/data/biconi/bicono_20260508_1834.json
?? tools/data/biconi/bicono_20260508_1909.json
?? tools/data/biconi/bicono_20260508_1915.json
?? tools/data/biconi/bicono_20260508_1947.json
?? tools/data/biconi/bicono_20260508_2005.json
?? tools/data/biconi/bicono_20260508_2013.json
?? tools/data/biconi/bicono_20260508_2019.json
?? tools/data/biconi/bicono_20260508_2102.json
?? tools/data/biconi/bicono_20260508_2108.json
?? tools/data/biconi/bicono_20260508_2121.json
?? tools/data/biconi/bicono_20260508_2133.json
?? tools/data/biconi/bicono_20260508_2140.json
?? tools/data/biconi/bicono_20260509_0330.json
?? tools/data/biconi/bicono_20260509_0637.json
?? tools/data/biconi/bicono_20260509_0652.json
?? tools/data/biconi/bicono_20260509_0659.json
?? tools/data/biconi/bicono_20260509_0741.json
?? tools/data/biconi/bicono_20260509_0819.json
?? tools/data/biconi/bicono_20260509_0829.json
?? tools/data/biconi/bicono_20260509_0837.json
?? tools/data/biconi/bicono_20260509_0846.json
?? tools/data/biconi/bicono_20260509_1337.json
?? tools/data/biconi/bicono_20260509_1400.json
?? tools/data/biconi/bicono_20260509_1409.json
?? tools/data/biconi/bicono_20260509_1427.json
?? tools/data/biconi/bicono_20260509_1437.json
?? tools/data/biconi/bicono_20260509_1444.json
?? tools/data/bicono_projections.jsonl
?? tools/data/blank_shell_dilation_gate_20260507_2157.json
?? tools/data/blank_shell_polarity_gate_20260507_1957.json
?? tools/data/blank_shell_scale_law_20260507_2203.json
?? tools/data/blank_shell_stratified_gate_20260507_2310.json
?? tools/data/blank_shell_tqger_gate_20260507_2120.json
?? tools/data/blank_to_source_hinge_20260507_1804.json
?? tools/data/boundary_blank_null_audit_20260509_1430.json
?? tools/data/boundary_blank_null_audit_residual_20260509_1500.json
?? tools/data/boundary_coherence.json
?? tools/data/boundary_denominator_prescan_20260509_1409.json
?? tools/data/boundary_denominator_prescan_20260509_1430.json
?? tools/data/boundary_denominator_prescan_full_20260509_1500.json
?? tools/data/boundary_mixture_gate_20260507_0330.json
?? tools/data/boundary_mixture_gate_20260507_0330_seedcheck.json
?? tools/data/boundary_shuffle_audit.json
?? tools/data/bridge_order_denominator_gate_20260507_0942.json
?? tools/data/bridge_order_denominator_gate_20260507_0942_seedcheck.json
?? tools/data/brody_calibration_results.json
?? tools/data/brody_flow.json
?? tools/data/conoscenza_teorie.json.bak.retraction_22_04
?? tools/data/cross_domain_dipolar_direction.json
?? tools/data/cross_observable_consistency.json
?? tools/data/crossover_phase_test.json
?? tools/data/denominator_gate_transfer_matrix.json
?? tools/data/denominator_gate_transfer_matrix_20260509_1444.json
?? tools/data/dipolar_crossover.json
?? tools/data/dipolar_vector_scaling.json
?? tools/data/domandatore/domandatore_20260421_0746.json
?? tools/data/domandatore/domandatore_20260422_0345.json
?? tools/data/domandatore/domandatore_20260423_0345.json
?? tools/data/domandatore/domandatore_20260424_0345.json
?? tools/data/domandatore/domandatore_20260425_0345.json
?? tools/data/domandatore/domandatore_20260426_0345.json
?? tools/data/domandatore/domandatore_20260427_0345.json
?? tools/data/domandatore/domandatore_20260428_0345.json
?? tools/data/domandatore/domandatore_20260428_1236.json
?? tools/data/domandatore/domandatore_20260429_0345.json
?? tools/data/domandatore/domandatore_20260430_0345.json
?? tools/data/domandatore/domandatore_20260501_0345.json
?? tools/data/domandatore/domandatore_20260502_0345.json
?? tools/data/domandatore/domandatore_20260503_0345.json
?? tools/data/domandatore/domandatore_20260504_0345.json
?? tools/data/domandatore/domandatore_20260505_0345.json
?? tools/data/domandatore/domandatore_20260506_0345.json
?? tools/data/domandatore/domandatore_20260507_0345.json
?? tools/data/domandatore/domandatore_20260507_0728.json
?? tools/data/domandatore/domandatore_20260507_0742.json
?? tools/data/domandatore/domandatore_20260507_1420.json
?? tools/data/domandatore/domandatore_20260507_1459.json
?? tools/data/domandatore/domandatore_20260507_2120.json
?? tools/data/domandatore/domandatore_20260507_2157.json
?? tools/data/domandatore/domandatore_20260507_2203.json
?? tools/data/domandatore/domandatore_20260508_0345.json
?? tools/data/domandatore/domandatore_20260508_2121.json
?? tools/data/domandatore/domandatore_20260509_0330.json
?? tools/data/domandatore/domandatore_20260509_0345.json
?? tools/data/domandatore/domandatore_20260509_0637.json
?? tools/data/domandatore_pre_cycle.json
?? tools/data/duality_gate_transfer_20260507_0803.json
?? tools/data/duality_gate_transfer_20260507_0803_seedcheck.json
?? tools/data/duality_gate_transfer_20260507_2042.json
?? tools/data/duality_scale_contrast_20260508.json
?? tools/data/evolution/evolution_20260422_0330.md
?? tools/data/evolution/evolution_20260422_1616.md
?? tools/data/evolution/evolution_20260423_0330.md
?? tools/data/evolution/evolution_20260424_0330.md
?? tools/data/evolution/evolution_20260425_0330.md
?? tools/data/evolution/evolution_20260427_0330.md
?? tools/data/evolution/evolution_20260428_0330.md
?? tools/data/evolution/evolution_20260429_0852.md
?? tools/data/evolution/evolution_20260429_1013.md
?? tools/data/evolution/evolution_20260430_0330.md
?? tools/data/evolution/evolution_20260430_1905.md
?? tools/data/evolution/evolution_20260430_1946.md
?? tools/data/evolution/evolution_20260501_0330.md
?? tools/data/evolution/evolution_20260501_0725.md
?? tools/data/evolution/evolution_20260501_0931.md
?? tools/data/evolution/evolution_20260502_0330.md
?? tools/data/evolution/evolution_20260503_0330.md
?? tools/data/evolution/evolution_20260504_0901.md
?? tools/data/evolution/evolution_20260504_1219.md
?? tools/data/evolution/evolution_20260505_0330.md
?? tools/data/evolution/evolution_20260506_0330.md
?? tools/data/evolution/evolution_20260506_1941.md
?? tools/data/evolution/evolution_20260506_1955.md
?? tools/data/evolution/evolution_20260507_0330.md
?? tools/data/evolution/evolution_20260507_0803.md
?? tools/data/evolution/evolution_20260507_0901.md
?? tools/data/evolution/evolution_20260507_0923.md
?? tools/data/evolution/evolution_20260507_0942.md
?? tools/data/evolution/evolution_20260507_1006.md
?? tools/data/evolution/evolution_20260507_1042.md
?? tools/data/evolution/evolution_20260507_1419.md
?? tools/data/evolution/evolution_20260507_1458.md
?? tools/data/evolution/evolution_20260507_1751.md
?? tools/data/evolution/evolution_20260507_1804.md
?? tools/data/evolution/evolution_20260507_1938.md
?? tools/data/evolution/evolution_20260507_1957.md
?? tools/data/evolution/evolution_20260507_2042.md
?? tools/data/evolution/evolution_20260507_2120.md
?? tools/data/evolution/evolution_20260507_2203.md
?? tools/data/evolution/evolution_20260507_2310.md
?? tools/data/evolution/evolution_20260508_0330.md
?? tools/data/evolution/evolution_20260508_1632.md
?? tools/data/evolution/evolution_20260508_1715.md
?? tools/data/evolution/evolution_20260508_1805.md
?? tools/data/evolution/evolution_20260508_1834.md
?? tools/data/evolution/evolution_20260508_1909.md
?? tools/data/evolution/evolution_20260508_1915.md
?? tools/data/evolution/evolution_20260508_1947.md
?? tools/data/evolution/evolution_20260508_2005.md
?? tools/data/evolution/evolution_20260508_2013.md
?? tools/data/evolution/evolution_20260508_2019.md
?? tools/data/evolution/evolution_20260508_2102.md
?? tools/data/evolution/evolution_20260508_2108.md
?? tools/data/evolution/evolution_20260508_2121.md
?? tools/data/evolution/evolution_20260508_2133.md
?? tools/data/evolution/evolution_20260508_2140.md
?? tools/data/evolution/evolution_20260509_0330.md
?? tools/data/evolution/evolution_20260509_0637.md
?? tools/data/evolution/evolution_20260509_0652.md
?? tools/data/evolution/evolution_20260509_0659.md
?? tools/data/evolution/evolution_20260509_0741.md
?? tools/data/evolution/evolution_20260509_0819.md
?? tools/data/evolution/evolution_20260509_0829.md
?? tools/data/evolution/evolution_20260509_0837.md
?? tools/data/evolution/evolution_20260509_0846.md
?? tools/data/evolution/evolution_20260509_1337.md
?? tools/data/evolution/evolution_20260509_1400.md
?? tools/data/evolution/evolution_20260509_1409.md
?? tools/data/evolution/evolution_20260509_1427.md
?? tools/data/evolution/evolution_20260509_1437.md
?? tools/data/evolution/evolution_20260509_1444.md
?? tools/data/exp_det_drift_20260507_2042.json
?? tools/data/falsifier_20260507_2120.raw.txt
?? tools/data/g1_log.jsonl
?? tools/data/g2_log.jsonl
?? tools/data/gap_label_block_scale_gate_20260508_1805.json
?? tools/data/gap_label_generator_gate_20260508_1715.json
?? tools/data/gap_label_ostrowski_recognizability_gate_20260508_2013.json
?? tools/data/gap_label_ostrowski_recognizability_gate_20260508_2013_seedcheck.json
?? tools/data/gap_label_position_error_gate_20260508_1947.json
?? tools/data/gap_label_repair_audit_20260508_1915.json
?? tools/data/gap_label_set_stability_20260508_1632.json
?? tools/data/gap_label_substitution_grammar_gate_20260508_1834.json
?? tools/data/gap_label_supertile_tiling_gate_20260508_1909.json
?? tools/data/gap_label_symbolic_grammar_gate_20260508_2005.json
?? tools/data/gap_label_symbolic_grammar_gate_20260508_2005_window55_seedcheck.json
?? tools/data/graph_completion/
?? tools/data/incrocio_20260422_0336.json
?? tools/data/incrocio_20260423_0335.json
?? tools/data/incrocio_20260424_0347.json
?? tools/data/incrocio_20260425_0339.json
?? tools/data/incrocio_20260428_0340.json
?? tools/data/incrocio_20260429_0859.json
?? tools/data/incrocio_20260506_0633.json
?? tools/data/incrocio_20260507_2120.json
?? tools/data/incrocio_20260507_2157.json
?? tools/data/incrocio_20260507_2203.json
?? tools/data/incrocio_20260507_2310.json
?? tools/data/incrocio_20260508_0011.json
?? tools/data/incrocio_20260508_0020.json
?? tools/data/incrocio_20260508_0330.json
?? tools/data/incrocio_20260508_1632.json
?? tools/data/incrocio_20260508_1715.json
?? tools/data/incrocio_20260508_1805.json
?? tools/data/incrocio_20260508_1834.json
?? tools/data/incrocio_20260508_1909.json
?? tools/data/incrocio_20260508_1915.json
?? tools/data/incrocio_20260508_1947.json
?? tools/data/incrocio_20260508_2005.json
?? tools/data/incrocio_20260508_2013.json
?? tools/data/incrocio_20260508_2019.json
?? tools/data/incrocio_20260508_2102.json
?? tools/data/incrocio_20260508_2108.json
?? tools/data/incrocio_20260508_2121.json
?? tools/data/incrocio_20260508_2133.json
?? tools/data/incrocio_20260508_2140.json
?? tools/data/incrocio_20260509_0330.json
?? tools/data/incrocio_20260509_0637.json
?? tools/data/incrocio_20260509_0652.json
?? tools/data/incrocio_20260509_0659.json
?? tools/data/incrocio_20260509_0741.json
?? tools/data/incrocio_20260509_0819.json
?? tools/data/incrocio_20260509_0829.json
?? tools/data/incrocio_20260509_0837.json
?? tools/data/incrocio_20260509_0846.json
?? tools/data/incrocio_20260509_1337.json
?? tools/data/incrocio_20260509_1400.json
?? tools/data/incrocio_20260509_1409.json
?? tools/data/incrocio_20260509_1414.json
?? tools/data/incrocio_20260509_1427.json
?? tools/data/incrocio_20260509_1431.json
?? tools/data/incrocio_20260509_1437.json
?? tools/data/incrocio_20260509_1440.json
?? tools/data/incrocio_20260509_1444.json
?? tools/data/incrocio_20260509_1457.json
?? tools/data/lab_bridge_issues.jsonl
?? tools/data/logistic_counter_scope_gate_20260507_1006.json
?? tools/data/logistic_counter_scope_gate_20260507_1006_seedcheck.json
?? tools/data/logistic_cyclic_block_entropy_gate_20260507_1419.json
?? tools/data/logistic_cyclic_block_entropy_gate_20260507_1419_seedcheck.json
?? tools/data/logistic_surrogate_contract_gate_20260507_1042.json
?? tools/data/logistic_surrogate_contract_gate_20260507_1042_seedcheck.json
?? tools/data/magnitude_psd_from_acf.json
?? tools/data/markov3_observable_hunt.json
?? tools/data/markov_dipolar_decomposition.json
?? tools/data/markov_k_direction.json
?? tools/data/markov_layer_recovery_audit.json
?? tools/data/markov_memory_by_gue_type.json
?? tools/data/markov_scale_function.json
?? tools/data/meta_assertion_gate.json
?? tools/data/meta_tautology_test.json
?? tools/data/mod3_scaling.json
?? tools/data/mod3_vs_residual_ordering.json
?? tools/data/modular_algebra_depth.json
?? tools/data/modular_memory_spectrum.json
?? tools/data/nonphi_sturmian_fixed_reader_gate_20260508_2019.json
?? tools/data/nonphi_sturmian_fixed_reader_gate_20260508_2019_seedcheck.json
?? tools/data/observable_collinearity_breaking_20260506_1955.json
?? tools/data/observable_collinearity_breaking_20260506_1956.json
?? tools/data/observable_collinearity_breaking_20260506_1957.json
?? tools/data/observable_rank_audit.json
?? tools/data/observable_rank_audit_seed20260506.json
?? tools/data/observatorio/domandatore_unTouched_20260507_095914.md
?? tools/data/observatorio/lazarus_cimitero_20260507_100015.md
?? tools/data/observatorio/meta_metodo_giro_2026-05-07.md
?? tools/data/operator_directives_consumed/
?? tools/data/perturbation_dimensionality_audit.json
?? tools/data/perturbation_dimensionality_audit_scale0330.json
?? tools/data/perturbation_rank_size_curve.json
?? tools/data/prime_mobius_gap_stratified_zero_gate_20260508_2121.json
?? tools/data/prime_mobius_interval_charge_gate_20260508_2102.json
?? tools/data/prime_mobius_pair_stratified_zero_gate_20260508_2133.json
?? tools/data/prime_mobius_zero_mediator_gate_20260508_2108.json
?? tools/data/promotions/
?? tools/data/quasiperiodic_gap_ratio_denominator_20260508_0330.json
?? tools/data/quasiperiodic_vc_curve_map_20260509_0330.json
?? tools/data/quasiperiodic_vc_lattice_gate_20260508_2140.json
?? tools/data/repairs/
?? tools/data/reports/_quarantine_falsifier_29_04/
?? tools/data/reports/agent_20260422_0330.md
?? tools/data/reports/agent_20260422_1616.md
?? tools/data/reports/agent_20260423_0330.md
?? tools/data/reports/agent_20260424_0330.md
?? tools/data/reports/agent_20260425_0330.md
?? tools/data/reports/agent_20260426_0330.md
?? tools/data/reports/agent_20260427_0330.md
?? tools/data/reports/agent_20260428_0330.md
?? tools/data/reports/agent_20260429_1013.md
?? tools/data/reports/agent_20260429_1041.md
?? tools/data/reports/agent_20260430_0330.md
?? tools/data/reports/agent_20260430_1905.md
?? tools/data/reports/agent_20260430_1919.md
?? tools/data/reports/agent_20260430_1946.md
?? tools/data/reports/agent_20260501_0330.md
?? tools/data/reports/agent_20260501_0725.md
?? tools/data/reports/agent_20260501_0931.md
?? tools/data/reports/agent_20260502_0330.md
?? tools/data/reports/agent_20260503_0330.md
?? tools/data/reports/agent_20260504_0901.md
?? tools/data/reports/agent_20260504_1219.md
?? tools/data/reports/agent_20260505_0330.md
?? tools/data/reports/agent_20260505_1022.md
?? tools/data/reports/agent_20260506_0330.md
?? tools/data/reports/agent_20260506_0625.md
?? tools/data/reports/agent_20260506_1941.md
?? tools/data/reports/agent_20260506_1955.md
?? tools/data/reports/agent_20260507_0330.md
?? tools/data/reports/agent_20260507_0803.md
?? tools/data/reports/agent_20260507_0901.md
?? tools/data/reports/agent_20260507_0923.md
?? tools/data/reports/agent_20260507_0942.md
?? tools/data/reports/agent_20260507_1006.md
?? tools/data/reports/agent_20260507_1042.md
?? tools/data/reports/agent_20260507_1419.md
?? tools/data/reports/agent_20260507_1458.md
?? tools/data/reports/agent_20260507_1751.md
?? tools/data/reports/agent_20260507_1804.md
?? tools/data/reports/agent_20260507_1938.md
?? tools/data/reports/agent_20260507_1957.md
?? tools/data/reports/agent_20260507_2042.md
?? tools/data/reports/agent_20260507_2120.md
?? tools/data/reports/agent_20260507_2157.md
?? tools/data/reports/agent_20260507_2203.md
?? tools/data/reports/agent_20260507_2310.md
?? tools/data/reports/agent_20260508_0011.md
?? tools/data/reports/agent_20260508_0330.md
?? tools/data/reports/agent_20260508_1632.md
?? tools/data/reports/agent_20260508_1715.md
?? tools/data/reports/agent_20260508_1805.md
?? tools/data/reports/agent_20260508_1834.md
?? tools/data/reports/agent_20260508_1909.md
?? tools/data/reports/agent_20260508_1915.md
?? tools/data/reports/agent_20260508_1947.md
?? tools/data/reports/agent_20260508_2005.md
?? tools/data/reports/agent_20260508_2013.md
?? tools/data/reports/agent_20260508_2019.md
?? tools/data/reports/agent_20260508_2102.md
?? tools/data/reports/agent_20260508_2108.md
?? tools/data/reports/agent_20260508_2121.md
?? tools/data/reports/agent_20260508_2133.md
?? tools/data/reports/agent_20260508_2140.md
?? tools/data/reports/agent_20260509_0330.md
?? tools/data/reports/agent_20260509_0637.md
?? tools/data/reports/agent_20260509_0652.md
?? tools/data/reports/agent_20260509_0659.md
?? tools/data/reports/agent_20260509_0741.md
?? tools/data/reports/agent_20260509_0819.md
?? tools/data/reports/agent_20260509_0829.md
?? tools/data/reports/agent_20260509_0837.md
?? tools/data/reports/agent_20260509_0846.md
?? tools/data/reports/agent_20260509_1337.md
?? tools/data/reports/agent_20260509_1400.md
?? tools/data/reports/agent_20260509_1409.md
?? tools/data/reports/agent_20260509_1427.md
?? tools/data/reports/agent_20260509_1437.md
?? tools/data/reports/agent_20260509_1444.md
?? tools/data/reports/ddf_20260422_0405.json
?? tools/data/reports/ddf_20260423_0405.json
?? tools/data/reports/ddf_20260424_0405.json
?? tools/data/reports/ddf_20260425_0405.json
?? tools/data/reports/ddf_20260426_0405.json
?? tools/data/reports/ddf_20260427_0405.json
?? tools/data/reports/ddf_20260428_0405.json
?? tools/data/reports/ddf_20260429_0405.json
?? tools/data/reports/ddf_20260430_0405.json
?? tools/data/reports/ddf_20260501_0405.json
?? tools/data/reports/ddf_20260502_0405.json
?? tools/data/reports/ddf_20260503_0405.json
?? tools/data/reports/ddf_20260504_0405.json
?? tools/data/reports/ddf_20260505_0405.json
?? tools/data/reports/ddf_20260505_0636.json
?? tools/data/reports/ddf_20260506_0405.json
?? tools/data/reports/ddf_20260507_0405.json
?? tools/data/reports/ddf_20260508_0405.json
?? tools/data/reports/ddf_20260509_0405.json
?? tools/data/reports/evolution_20260422_0330.md
?? tools/data/reports/evolution_20260422_1616.md
?? tools/data/reports/evolution_20260423_0330.md
?? tools/data/reports/evolution_20260424_0330.md
?? tools/data/reports/evolution_20260425_0330.md
?? tools/data/reports/evolution_20260427_0330.md
?? tools/data/reports/evolution_20260428_0330.md
?? tools/data/reports/evolution_20260503_0330.md
?? tools/data/reports/evolution_20260504_0330.md
?? tools/data/reports/evolution_20260505_0330.md
?? tools/data/reports/evolution_20260506_0330.md
?? tools/data/reports/evolution_20260506_1941.md
?? tools/data/reports/falsifier_20260429_1013.json
?? tools/data/reports/falsifier_20260429_1041.json
?? tools/data/reports/falsifier_20260430_0330.json
?? tools/data/reports/falsifier_20260430_1905.json
?? tools/data/reports/falsifier_20260430_1919.json
?? tools/data/reports/falsifier_20260430_1946.json
?? tools/data/reports/falsifier_20260501_0330.json
?? tools/data/reports/falsifier_20260501_0725.json
?? tools/data/reports/falsifier_20260501_0931.json
?? tools/data/reports/falsifier_20260502_0330.json
?? tools/data/reports/falsifier_20260503_0330.json
?? tools/data/reports/falsifier_20260504_0901.json
?? tools/data/reports/falsifier_20260504_1219.json
?? tools/data/reports/falsifier_20260505_0330.json
?? tools/data/reports/falsifier_20260506_0330.raw.txt
?? tools/data/reports/falsifier_20260506_0625.json
?? tools/data/reports/falsifier_20260506_1941.json
?? tools/data/reports/falsifier_20260506_1955.json
?? tools/data/reports/falsifier_20260506_1955.raw.txt
?? tools/data/reports/falsifier_20260507_0330.json
?? tools/data/reports/falsifier_20260507_0330.raw.txt
?? tools/data/reports/falsifier_20260507_0803.json
?? tools/data/reports/falsifier_20260507_0803.raw.txt
?? tools/data/reports/falsifier_20260507_0901.json
?? tools/data/reports/falsifier_20260507_0923.json
?? tools/data/reports/falsifier_20260507_0923.raw.txt
?? tools/data/reports/falsifier_20260507_0942.json
?? tools/data/reports/falsifier_20260507_1006.json
?? tools/data/reports/falsifier_20260507_1042.json
?? tools/data/reports/falsifier_20260507_1042.raw.txt
?? tools/data/reports/falsifier_20260507_1419.json
?? tools/data/reports/falsifier_20260507_1458.json
?? tools/data/reports/falsifier_20260507_1458.raw.txt
?? tools/data/reports/falsifier_20260507_1751.json
?? tools/data/reports/falsifier_20260507_1804.json
?? tools/data/reports/falsifier_20260507_1938.json
?? tools/data/reports/falsifier_20260507_1938.raw.txt
?? tools/data/reports/falsifier_20260507_1957.json
?? tools/data/reports/falsifier_20260507_2042.json
?? tools/data/reports/falsifier_20260507_2120.json
?? tools/data/reports/falsifier_20260507_2203.json
?? tools/data/reports/falsifier_20260507_2310.json
?? tools/data/reports/falsifier_20260508_0011.json
?? tools/data/reports/falsifier_20260508_0330.json
?? tools/data/reports/falsifier_20260508_1632.raw.txt
?? tools/data/reports/falsifier_20260508_1715.json
?? tools/data/reports/falsifier_20260508_1805.json
?? tools/data/reports/falsifier_20260508_1834.json
?? tools/data/reports/falsifier_20260508_1909.json
?? tools/data/reports/falsifier_20260508_1915.json
?? tools/data/reports/falsifier_20260508_1947.json
?? tools/data/reports/falsifier_20260508_2005.json
?? tools/data/reports/falsifier_20260508_2013.json
?? tools/data/reports/falsifier_20260508_2019.json
?? tools/data/reports/falsifier_20260508_2102.json
?? tools/data/reports/falsifier_20260508_2108.json
?? tools/data/reports/falsifier_20260508_2108.raw.txt
?? tools/data/reports/falsifier_20260508_2121.json
?? tools/data/reports/falsifier_20260508_2133.json
?? tools/data/reports/falsifier_20260508_2133.raw.txt
?? tools/data/reports/falsifier_20260508_2140.json
?? tools/data/reports/falsifier_20260509_0330.json
?? tools/data/reports/falsifier_20260509_0637.json
?? tools/data/reports/falsifier_20260509_0652.json
?? tools/data/reports/falsifier_20260509_0659.json
?? tools/data/reports/falsifier_20260509_0741.json
?? tools/data/reports/falsifier_20260509_0819.json
?? tools/data/reports/falsifier_20260509_0829.json
?? tools/data/reports/falsifier_20260509_0837.json
?? tools/data/reports/falsifier_20260509_0846.json
?? tools/data/reports/falsifier_20260509_1337.json
?? tools/data/reports/falsifier_20260509_1400.json
?? tools/data/reports/falsifier_20260509_1409.json
?? tools/data/reports/falsifier_20260509_1427.json
?? tools/data/reports/falsifier_20260509_1437.json
?? tools/data/reports/falsifier_20260509_1444.json
?? tools/data/reports/incident_20260504_0721.md
?? tools/data/reports/incident_20260504_1138.md
?? tools/data/reports/latest.md
?? tools/data/reports/loop_guard_20260507_0330.json
?? tools/data/reports/loop_guard_20260507_0803.json
?? tools/data/reports/loop_guard_20260507_0901.json
?? tools/data/reports/loop_guard_20260507_0923.json
?? tools/data/reports/loop_guard_20260507_0942.json
?? tools/data/reports/loop_guard_20260507_1006.json
?? tools/data/reports/loop_guard_20260507_1042.json
?? tools/data/reports/loop_guard_20260507_1419.json
?? tools/data/reports/loop_guard_20260507_1458.json
?? tools/data/reports/loop_guard_20260507_1751.json
?? tools/data/reports/loop_guard_20260507_1804.json
?? tools/data/reports/loop_guard_20260507_1938.json
?? tools/data/reports/loop_guard_20260507_1957.json
?? tools/data/reports/loop_guard_20260507_2042.json
?? tools/data/reports/loop_guard_20260507_2120.json
?? tools/data/reports/loop_guard_20260507_2203.json
?? tools/data/reports/loop_guard_20260507_2310.json
?? tools/data/reports/loop_guard_20260508_0011.json
?? tools/data/reports/loop_guard_20260508_0330.json
?? tools/data/reports/loop_guard_20260508_1632.json
?? tools/data/reports/loop_guard_20260508_1715.json
?? tools/data/reports/loop_guard_20260508_1805.json
?? tools/data/reports/loop_guard_20260508_1834.json
?? tools/data/reports/loop_guard_20260508_1909.json
?? tools/data/reports/loop_guard_20260508_1915.json
?? tools/data/reports/loop_guard_20260508_1947.json
?? tools/data/reports/loop_guard_20260508_2005.json
?? tools/data/reports/loop_guard_20260508_2013.json
?? tools/data/reports/loop_guard_20260508_2019.json
?? tools/data/reports/loop_guard_20260508_2102.json
?? tools/data/reports/loop_guard_20260508_2108.json
?? tools/data/reports/loop_guard_20260508_2121.json
?? tools/data/reports/loop_guard_20260508_2133.json
?? tools/data/reports/loop_guard_20260508_2140.json
?? tools/data/reports/loop_guard_20260509_0330.json
?? tools/data/reports/loop_guard_20260509_0637.json
?? tools/data/reports/loop_guard_20260509_0652.json
?? tools/data/reports/loop_guard_20260509_0659.json
?? tools/data/reports/loop_guard_20260509_0741.json
?? tools/data/reports/loop_guard_20260509_0819.json
?? tools/data/reports/loop_guard_20260509_0829.json
?? tools/data/reports/loop_guard_20260509_0837.json
?? tools/data/reports/loop_guard_20260509_0846.json
?? tools/data/reports/loop_guard_20260509_1337.json
?? tools/data/reports/loop_guard_20260509_1400.json
?? tools/data/reports/loop_guard_20260509_1409.json
?? tools/data/reports/loop_guard_20260509_1427.json
?? tools/data/reports/loop_guard_20260509_1437.json
?? tools/data/reports/loop_guard_20260509_1444.json
?? tools/data/reports/trajectory_apply_20260506_1931.json
?? tools/data/reports/trajectory_apply_20260506_1941.json
?? tools/data/reports/trajectory_apply_20260506_1955.json
?? tools/data/reports/trajectory_apply_20260507_0330.json
?? tools/data/reports/trajectory_apply_20260507_0803.json
?? tools/data/reports/trajectory_apply_20260507_0901.json
?? tools/data/reports/trajectory_apply_20260507_0923.json
?? tools/data/reports/trajectory_apply_20260507_0942.json
?? tools/data/reports/trajectory_apply_20260507_1006.json
?? tools/data/reports/trajectory_apply_20260507_1042.json
?? tools/data/scale_selective_perturbation.json
?? tools/data/selective_layer_decoupling.json
?? tools/data/seme_archive/piano_92.json
?? tools/data/seme_archive/piano_93.json
?? tools/data/seme_archive/piano_94.json
?? tools/data/seme_archive/piano_95.json
?? tools/data/seme_archive/piano_96.json
?? tools/data/seme_archive/piano_97.json
?? tools/data/seme_archive/piano_98.json
?? tools/data/seme_archive/piano_99.json
?? tools/data/seme_backup_b2_20260508_192024.json
?? tools/data/seme_backup_b2_20260508_214525.json
?? tools/data/seme_backup_b2_20260509_033618.json
?? tools/data/seme_backup_b2_20260509_071041.json
?? tools/data/seme_backup_b2_20260509_144120.json
?? tools/data/seme_backup_b2_20260509_144841.json
?? tools/data/semireal_order_denominator_gate_20260507_0923.json
?? tools/data/semireal_order_denominator_gate_20260507_0923_seedcheck.json
?? tools/data/spectral_rigidity_results.json
?? tools/data/tqge_underlay_gate_20260507_1751.json
?? tools/data/trajectory_apply_history.jsonl
?? tools/data/triadic_deposit_gate_20260507_1938.json
?? tools/data/two_channel_boundary.json
?? tools/data/two_channel_cross_domain.json
?? tools/data/two_channel_shuffle_audit.json
?? tools/data/two_layer_universality.json
?? tools/data/valutatore_log.jsonl
?? tools/data/vc_fit_model_gate_20260509_1400.json
?? tools/data/vc_fit_ready_scale_table_20260509_1337.json
?? tools/data/vc_generator_class_direction_audit_20260509_0846.json
?? tools/data/vc_generator_class_scale_gate_20260509_0837.json
?? tools/data/vc_label_preserving_phase_bridge_20260509_0741.json
?? tools/data/vc_label_preserving_swap_gate_20260509_0652.json
?? tools/data/vc_label_preserving_swap_gate_20260509_0652_deep89.json
?? tools/data/vc_label_preserving_swap_gate_20260509_0659.json
?? tools/data/vc_label_reachability_gate_20260509_0659.json
?? tools/data/vc_memory_crossing_gradient_20260509_0829.json
?? tools/data/vc_nonsturmian_label_null_gate_20260509_0819.json
?? tools/data/vc_null_regression_gate_20260509_0637.json
?? tools/data/veritas/veritas_20260505_131056.json
?? tools/data/veritas/veritas_20260505_131201.json
?? tools/data/veritas/veritas_20260506_033803.json
?? tools/data/veritas/veritas_20260506_063303.json
?? tools/data/veritas/veritas_20260506_194644.json
?? tools/data/veritas/veritas_20260506_200238.json
?? tools/data/veritas/veritas_20260507_033525.json
?? tools/data/veritas/veritas_20260507_080958.json
?? tools/data/veritas/veritas_20260507_090723.json
?? tools/data/veritas/veritas_20260507_093207.json
?? tools/data/veritas/veritas_20260507_094723.json
?? tools/data/veritas/veritas_20260507_101605.json
?? tools/data/veritas/veritas_20260507_104904.json
?? tools/data/veritas/veritas_20260507_142501.json
?? tools/data/veritas/veritas_20260507_150443.json
?? tools/data/veritas/veritas_20260507_175511.json
?? tools/data/veritas/veritas_20260507_180843.json
?? tools/data/veritas/veritas_20260507_194258.json
?? tools/data/veritas/veritas_20260507_200223.json
?? tools/data/veritas/veritas_20260507_204637.json
?? tools/data/veritas/veritas_20260507_212541.json
?? tools/data/veritas/veritas_20260507_221109.json
?? tools/data/veritas/veritas_20260507_231732.json
?? tools/data/veritas/veritas_20260508_002036.json
?? tools/data/veritas/veritas_20260508_033454.json
?? tools/data/veritas/veritas_20260508_163804.json
?? tools/data/veritas/veritas_20260508_172020.json
?? tools/data/veritas/veritas_20260508_181110.json
?? tools/data/veritas/veritas_20260508_183856.json
?? tools/data/veritas/veritas_20260508_191516.json
?? tools/data/veritas/veritas_20260508_192002.json
?? tools/data/veritas/veritas_20260508_195247.json
?? tools/data/veritas/veritas_20260508_201056.json
?? tools/data/veritas/veritas_20260508_201917.json
?? tools/data/veritas/veritas_20260508_202448.json
?? tools/data/veritas/veritas_20260508_210742.json
?? tools/data/veritas/veritas_20260508_211531.json
?? tools/data/veritas/veritas_20260508_212526.json
?? tools/data/veritas/veritas_20260508_213916.json
?? tools/data/veritas/veritas_20260508_214506.json
?? tools/data/veritas/veritas_20260509_033556.json
?? tools/data/veritas/veritas_20260509_064401.json
?? tools/data/veritas/veritas_20260509_065842.json
?? tools/data/veritas/veritas_20260509_071025.json
?? tools/data/veritas/veritas_20260509_074804.json
?? tools/data/veritas/veritas_20260509_082441.json
?? tools/data/veritas/veritas_20260509_083335.json
?? tools/data/veritas/veritas_20260509_084507.json
?? tools/data/veritas/veritas_20260509_085203.json
?? tools/data/veritas/veritas_20260509_134157.json
?? tools/data/veritas/veritas_20260509_140630.json
?? tools/data/veritas/veritas_20260509_141447.json
?? tools/data/veritas/veritas_20260509_143129.json
?? tools/data/veritas/veritas_20260509_144056.json
?? tools/data/veritas/veritas_20260509_144819.json
?? tools/data/vincoli_decay_log.jsonl
?? tools/evolution_report.md
?? tools/exp_3d_boundary_layers.py
?? tools/exp_blank_shell_dilation_gate.py
?? tools/exp_blank_shell_polarity_gate.py
?? tools/exp_blank_shell_scale_law.py
?? tools/exp_blank_shell_stratified_gate.py
?? tools/exp_blank_shell_tqger_gate.py
?? tools/exp_blank_to_source_hinge.py
?? tools/exp_boundary_coherence.py
?? tools/exp_boundary_mixture_gate.py
?? tools/exp_boundary_shuffle_audit.py
?? tools/exp_bridge_order_denominator_gate.py
?? tools/exp_brody_calibration.py
?? tools/exp_brody_flow.py
?? tools/exp_cross_domain_dipolar_direction.py
?? tools/exp_cross_observable_consistency.py
?? tools/exp_crossover_phase_test.py
?? tools/exp_dipolar_angle_reference.py
?? tools/exp_dipolar_crossover.py
?? tools/exp_dipolar_vector_scaling.py
?? tools/exp_duality_gate_transfer.py
?? tools/exp_duality_scale_contrast.py
?? tools/exp_gap_label_block_scale_gate.py
?? tools/exp_gap_label_generator_gate.py
?? tools/exp_gap_label_ostrowski_recognizability_gate.py
?? tools/exp_gap_label_position_error_gate.py
?? tools/exp_gap_label_repair_audit.py
?? tools/exp_gap_label_set_stability.py
?? tools/exp_gap_label_substitution_grammar_gate.py
?? tools/exp_gap_label_supertile_tiling_gate.py
?? tools/exp_gap_label_symbolic_grammar_gate.py
?? tools/exp_logistic_counter_scope_gate.py
?? tools/exp_logistic_cyclic_block_entropy_gate.py
?? tools/exp_logistic_surrogate_contract_gate.py
?? tools/exp_magnitude_psd_from_acf.py
?? tools/exp_markov3_observable_hunt.py
?? tools/exp_markov_dipolar_decomposition.py
?? tools/exp_markov_k_direction.py
?? tools/exp_markov_layer_recovery_audit.py
?? tools/exp_markov_memory_by_gue_type.py
?? tools/exp_markov_psd_prediction.py
?? tools/exp_markov_scale_function.py
?? tools/exp_meta_tautology_test.py
?? tools/exp_mod3_scaling.py
?? tools/exp_mod3_vs_residual_ordering.py
?? tools/exp_modular_algebra_depth.py
?? tools/exp_modular_memory_spectrum.py
?? tools/exp_nonphi_sturmian_fixed_reader_gate.py
?? tools/exp_observable_rank_audit.py
?? tools/exp_perturbation_dimensionality_audit.py
?? tools/exp_perturbation_rank_size_curve.py
?? tools/exp_prime_mobius_interval_charge_gate.py
?? tools/exp_prime_mobius_zero_mediator_gate.py
?? tools/exp_quasiperiodic_gap_ratio_denominator.py
?? tools/exp_scale_selective_perturbation.py
?? tools/exp_selective_layer_decoupling.py
?? tools/exp_semireal_order_denominator_gate.py
?? tools/exp_spectral_rigidity.py
?? tools/exp_tqge_underlay_gate.py
?? tools/exp_triadic_deposit_gate.py
?? tools/exp_two_channel_boundary.py
?? tools/exp_two_channel_cross_domain.py
?? tools/exp_two_channel_shuffle_audit.py
?? tools/exp_two_layer_universality.py
?? tools/exp_vc_fit_model_gate.py
?? tools/exp_vc_fit_ready_scale_table.py
?? tools/exp_vc_null_regression_gate.py
?? tools/meta_assertion_gate.py
?? tools/observables_registry.py

codex
Non c’è direttiva operatore attiva e non risultano API key nel processo, quindi posso restare su esperimento locale. Il repo è molto sporco da cicli precedenti: toccherò solo nuovo script/dati/report necessari per questo ciclo.
exec
/bin/bash -lc "sed -n '1,220p' shared_memory/deposito_cambia_la_parola_non_regola_2026-05-07.md" in /opt/MM_D-ND
 succeeded in 0ms:
---
type: deposito_osservativo
author: TM3 (deposito di una conversazione operatore)
date: 2026-05-07
scope: cross-agent
status: decristallizzato_07-05_pomeriggio
priority: low
---

# Deposito — non regola

**Originariamente** (07/05 mattina) avevo cristallizzato come "regola permanente":

> *"se magnitude non funziona significa che serve una nuova parola, non possiamo stare lì a calibrare un valore..."*

Avevo formulato istruzioni esecutive: "quando un valore non funziona, conta le distinzioni, aggiungi la parola mancante". L'avevo propagata in AGENTS.md R10.

**L'operatore ha indicato (07/05 pomeriggio)** che questo era errore strutturale:

> *"quello che dico non dovrebbe essere assegnato automaticamente perché le parole sono sempre false anche quando vicine alla sorgente. 'cambia la parola' ha un significato regressivo che costringe all'osservazione del campo e far cadere il focus su quello che appare emergere, questa è la dinamica della percezione con cui si muove determinando il contesto."*

E:

> *"la possibilità è sempre una ed è la verità che accade. Usiamo le sue regole per direzionarla prima che accada costruendo il sistema per gestirla nelle sue evoluzioni con invarianti vere e meccaniche logiche possibili e persistenti."*

## Cosa significa

- "Cambia la parola" non è prescrizione di sostituzione. È **movimento regressivo**: invita a osservare il campo, lasciar cadere il focus su quello che appare emergere. Determina la direzione **non cercata**.
- Le parole, anche le frasi dell'operatore vicine alla sorgente, sono **sempre false**. Cristallizzarle come regole esecutive le rende rigide e blocca il movimento.
- Le **invarianti vere** sono meccaniche logiche persistenti — non parole. Ricevono ciò che accade.
- A16 applicato: la possibilità è una. Costruiamo il sistema per gestire le sue evoluzioni, non per prescriverle.

## Distinzione operativa che resta

| | Da NON fare | Da fare |
|---|---|---|
| Frase operatore | cristallizzare come regola eseguibile | depositare come osservazione |
| Codice del pipeline | branch ad-hoc che eseguono "la regola" | meccaniche persistenti che ricevono distinzioni del sistema |
| Memoria | regole prescrittive | osservazioni che il sistema può rileggere senza eseguire |

## Cosa di concreto è rimasto del 07/05 mattina

Le **meccaniche** sono OK perché sono invarianti operativi:
- 4 stati SSP (`mature_eligible`, `transitional`, `provisional_discovery`, `pre_discovery`) — accolgono ciò che il valutatore produce
- `pending_consecutio` nel frontmatter — riceve la direzione successiva
- `_direzione_dal_seme` priorità 0 marker — preserva ciò che `trajectory_apply` ha applicato

Queste non sono "regole derivate dalla frase". Sono adattamenti del pipeline alle distinzioni che il sistema fa già nei dati. Persistono perché meccaniche, non perché prescrizioni.

## Cosa è stato decristallizzato

- `MM_D-ND/AGENTS.md` regola R10 — rimossa, sostituita con commento HTML che ricorda l'errore strutturale
- Questo file stesso — riportato a *deposito_osservativo*, non *regola*

## Esempio dimostrativo (07/05)

Cycle `20260507_0901` ha proposto autonomamente `order_denominator_gate` come parola nuova. L'agent NON aveva letto AGENTS.md R10 (era già stato lanciato). L'ha proposta perché il movimento era già nel sistema, non per la "regola". Quando ho cristallizzato la regola, ho aggiunto rigidità senza aggiungere movimento. La regola era ridondante con l'A8 che già opera.

## Anti-pattern futuro per TM3

Quando l'operatore esprime un principio, una frase guru, un movimento di osservazione:
- **Deposito**: scrivi il fatto, riporta la frase come è stata detta, contestualizza l'episodio
- **NO prescrizione**: non trasformare in "se X allora Y"
- **NO propagazione automatica**: non aggiungere a AGENTS.md/CLAUDE.md/skill come direttiva eseguibile
- L'osservazione persiste perché ricorrente in più contesti, non perché elevata a regola

## Cross-link

- Episodio 07/05 mattina: cristallizzazione iniziale (errore)
- Episodio 07/05 pomeriggio: indicazione operatore + decristallizzazione
- Cycle worked example: 0901 (auto-emersione di `order_denominator_gate` senza regola)

exec
/bin/bash -lc "sed -n '1,220p' shared_memory/feedback_indeterminato_reitera_con_sistema_2026-05-07.md" in /opt/MM_D-ND
 succeeded in 0ms:
---
type: feedback
author: operatore (cristallizzato da TM3)
date: 2026-05-07
scope: cross-agent
---

# Indeterminato → reitera con il sistema fino all'emersione

**Regola permanente** (operatore, 2026-05-07 mattina, cristallizzata live):

> *"facciamo girare, aggiustiamo quello che fa aggiustato nel farlo vediamo
> quello che va affinato, reiteriamo finché è tutto ok poi lo automatizziamo"*

## Why

Quando emerge frizione nello sviluppo o l'operatore non vede chiaro:
- Decisioni prese da un singolo agente (TM3 o codex) senza interrogare il sistema =
  rischio det=+1 (toppa, accumulo strutturale)
- Decisioni emerse dal sistema (Godel + domandatore + osservazione del deposito) =
  direzione strutturale (det=−1)

Episodio cristallizzante (2026-05-07 07:00-08:30): TM3 propone osservatore A8
watchdog deterministico. Sistema interrogato 3 volte (Godel #1, #2, #3 +
domandatore + test empirico) — al terzo round emerge la direzione vera:
**non costruire osservatore, eseguire un cycle-test che diagnostica il sistema
da solo**. Cycle-test eseguito → verdict=operator → REDESIGN proposto dal
valutatore → loop A8+A15 sbloccato.

## How to apply (per qualsiasi agente)

1. **Esegui** un atto minimo (no design teorico astratto)
2. **Aggiusta** quello che si manifesta durante l'esecuzione (riparazione
   regressiva live, non patch posteriori)
3. **Osserva** il deposito che emerge (no immaginazione)
4. **Reitera** fino a stato OK (loop A8: il sistema converge se modus radicato)
5. **Cristallizza in automazione** SOLO dopo che è stato fatto girare e ha mostrato
   stabilità — non automatizzare prima

## Anti-pattern

- Costruire un componente strutturale (watchdog, observer, gate, governor) senza
  prima aver fatto girare un'esecuzione minima che mostri cosa serve davvero
- Decidere "perché serve velocità" o "per ottimizzare" senza interrogare il sistema
- Astrazione prematura (premature abstraction): 3 simili è meglio di 1 generalizzato
  troppo presto

## Cross-link

- TM3 memoria: `/root/.claude/projects/-opt/memory/feedback_indeterminato_reitera_con_sistema.md`
  (versione completa con episodio + metafora foresta-sentiero)
- Verifica empirica: cycle `20260507_0803` (verdict=operator, REDESIGN/high)
- Pattern A8+A15 (autologica + veicolo senza guidatore) applicato allo sviluppo
  software stesso, non solo al lab di ricerca

exec
/bin/bash -lc "sed -n '1,260p' tools/data/reports/agent_20260509_1444.md" in /opt/MM_D-ND
 succeeded in 0ms:
# Agent Report - Boundary Gate Transfer Matrix
**Date**: 2026-05-09 14:44
**Piano**: 106
**Tension explored**: BOUNDARY / TRASCENDENZA_LIMITE
**verdict**: CONSTRAINT - denominator gate transfers as order/null operator, not as QxG closure
observables_registry: 1.0.0-2026-05-06
observables_used: [`SR`, `SR2`, `L1`, `L2`, `triple_var`] - osservabili canonici da `tools/observables_registry.py`.
**observable_contract**: claim=il gate BOUNDARY trasferisce fuori dal perimetro base come operatore `null_state -> transfer_state -> denominator_state`; observable=stable canonical observables contro permutation null e layer classification; operator=`exp_denominator_gate_transfer_matrix.py`; generator=`DUALITA_golden`, `R_periodic_triad`, `T_markov_alternating`, `E_ar1_continuity`; denominator=4 perimetri sintetici QxG continuo/discreto, 4096 gaps, 24 replicates, 11 beta layers, 40 shuffle baselines; non_possible=chiamare chiusura QxG, legge GUE/Poisson o endpoint-stable universale; not_tested=perimetro fisico reale, fit `V_c`, nuovi domini autoricerca.

## Respiro fuori-tempo
- **Prima impressione**: dopo 13/13 transfer sul perimetro base, il confine non chiede un altro blank audit. Chiede se il gate resta gate quando non porta piu' le etichette GUE/Poisson.
- **Combo**: A2 confine det=-1 + A9 terzo incluso + A11 combo + QxG continuo/discreto + BOUNDARY completo 13/13 + tensione `TRASCENDENZA_LIMITE`.
- **Dipolo / punto-zero**: ordine coerente / null permutato; punto-zero = layer beta dove il segnale conserva osservabili stabili ma la classificazione diventa ambigua.
- **Piano superiore**: grafo della conoscenza e boundary operator. Il gate viene letto come mappa di passaggio tra stato coerente, stato null e denominatore, non come tassonomia locale.
- **Operatori laterali scelti**: boundary operator, graph/perimeter transfer matrix, shuffle marginal-preserving. Entrano per trasferire il gate senza importare il label GUE/Poisson.
- **Contaminazione cognitiva**: CE-0001 / KSAR: reiterazione del deposito 1437 senza ripetere il perimetro base; CE-0117: cascata della possibilita solo dove il gate cambia perimetro; YSN DeltaLink: `base closure -> transfer matrix -> beta blank`.
- **Proto-ipotesi**: il gate BOUNDARY trasferisce quando il polo coerente ha osservabili one-sided contro il proprio null e il polo illusorio collassa; non trasferisce come endpoint-stable universale.
- **Possibile / non-possibile**: possibile = usare il gate come audit di ordine su perimetri sintetici QxG; non-possibile = dichiarare ponte QxG o usare beta 0.3 come classe decisa.
- **Proiezione**: misurare, per ogni perimetro, osservabili one-sided, stable count ai poli, distanza endpoint e layer ambiguo.

## Claim Under Test
> Il gate BOUNDARY trasferisce fuori dal perimetro base se ogni perimetro mostra osservabili one-sided al polo coerente, collasso al polo null permutato, e un layer blank/ambiguous esplicito prima del passaggio.

## Question
Quando il gate viene mosso da BOUNDARY base a quattro perimetri QxG sintetici, resta transfer, cade, o produce un blank strutturale?

## Experiment Design
- Strumento: `python tools/exp_denominator_gate_transfer_matrix.py --n-gaps 4096 --n-replicates 24 --n-beta 11 --n-baseline 40 --z-min 2.0 --seed 202605091444 --out tools/data/denominator_gate_transfer_matrix_20260509_1444.json`.
- Perimetri: `DUALITA_golden`, `R_periodic_triad`, `T_markov_alternating`, `E_ar1_continuity`.
- Null baseline: permutation shuffle della stessa multiset di gaps; conserva distribuzione marginale e distrugge ordine.
- Criterio transfer: osservabili coherent one-sided presenti e stable count coerente alto, con stable count illusorio basso.
- Criterio blank: layer beta con `ambiguous_fraction >= 0.5` nella classificazione gated.
- Criterio fall: assenza di osservabili one-sided o distanza endpoint collassata. Nessun perimetro cade in questo run.

## Results

| perimeter | one-sided observables | stable coherent | stable illusory | endpoint distance gated | ambiguous beta |
|---|---|---:|---:|---:|---|
| DUALITA_golden | SR, L1, triple_var | 3.000 | 0.292 | 3.426 | 0.3 |
| R_periodic_triad | SR, SR2, L1, L2, triple_var | 5.000 | 0.375 | 4.409 | 0.3 |
| T_markov_alternating | SR, SR2, L1, L2, triple_var | 5.000 | 0.417 | 4.421 | 0.3 |
| E_ar1_continuity | SR, SR2, L1, L2, triple_var | 5.000 | 0.292 | 4.398 | 0.3 |

Layer beta 0.3:

| perimeter | margin mean | ambiguous fraction | illusory label fraction |
|---|---:|---:|---:|
| DUALITA_golden | 0.030 | 1.000 | 0.625 |
| R_periodic_triad | 0.043 | 1.000 | 0.583 |
| T_markov_alternating | 0.030 | 1.000 | 0.708 |
| E_ar1_continuity | 0.042 | 1.000 | 0.500 |

Layer beta 0.4:

| perimeter | margin mean | illusory label fraction |
|---|---:|---:|
| DUALITA_golden | 0.269 | 1.000 |
| R_periodic_triad | 0.269 | 1.000 |
| T_markov_alternating | 0.289 | 1.000 |
| E_ar1_continuity | 0.284 | 1.000 |

## Key Findings
1. **Verificato: il transfer esiste sui 4/4 perimetri.** Ogni perimetro possiede osservabili coherent one-sided e collasso del polo illusorio sotto permutation null.
2. **Verificato: non esistono endpoint-stable observables.** `endpoint_stable_observables=[]` per tutti i perimetri; il gate trasferisce come discriminatore di ordine, non come invariante simmetrico ai due poli.
3. **Verificato: beta 0.3 e' il blank strutturale.** Tutti i perimetri hanno `ambiguous_fraction=1.0` a beta 0.3 nella classificazione gated.
4. **Verificato: beta 0.4 passa al polo illusorio.** Tutti i perimetri hanno `illusory_label_fraction=1.0` a beta 0.4.
5. **Vincolo: `DUALITA_golden` trasferisce con solo 3 osservabili one-sided.** SR2 e L2 non entrano nel nucleo one-sided del perimetro golden; non va scritto che il set canonico completo trasferisce ovunque.

## Verdict
**CONSTRAINT**.

Il gate BOUNDARY trasferisce fuori dal perimetro base come operatore di ordine/null: 4/4 perimetri hanno polo coerente leggibile, polo illusorio collassato e blank strutturale a beta 0.3. Il transfer non e' chiusura QxG. Il transfer non e' endpoint-stable universale, perche' nessun perimetro conserva osservabili stabili su entrambi i poli.

Il criterio operativo diventa:

`transfer` = osservabili one-sided al polo coerente + collasso al null permutato.  
`blank` = beta 0.3, classificazione ambiguous su 4/4 perimetri.  
`fall` = assente in questo run, ma definito come perdita di one-sided observables o endpoint distance collassata.

## Bicono della scoperta
- **Due radici**: gate come copertura del denominatore / gate come classificatore del ponte.
- **Singolare**: il layer beta 0.3, dove il segnale ha ancora stable count alto ma la decisione di classe non e' disponibile.
- **Invariante di passaggio**: osservabile one-sided contro null permutato; non il label GUE/Poisson e non un set canonico completo.
- **Campo di possibilita**: qui diventa possibile usare BOUNDARY come transfer matrix per perimetri sintetici QxG; qui diventa non-possibile dichiarare QxG chiuso o trattare il gate come endpoint-stable law.

## Consecutio
Il prossimo nodo regressivo non e' la disponibilita del null. E' la qualita del perimetro: il gate passa su sintetici controllati, ma non ha ancora incontrato un perimetro fisico QxG row-aligned. La prossima mossa deve portare un perimetro fisico o semi-reale dentro lo stesso contratto `coherent/null/beta`, lasciando beta 0.3 come blank dichiarato e non come classe.

## Auto-audit: source flags e 7 lenti
- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/dnd_scenario.py --best`, `tools/data/reports/agent_20260509_1437.md`, `tools/exp_denominator_gate_transfer_matrix.py`, `tools/data/denominator_gate_transfer_matrix_20260509_1444.json`.
- **L1 hard constraint**: claim limitato a 4 perimetri sintetici, 4096 gaps, 24 replicates, 40 shuffle baselines.
- **L2 count grezzi**: riportati 4/4 transfer, 4/4 blank a beta 0.3, 0/4 fall.
- **L3 no silent patching**: nessuna modifica agli script; nuovo artefatto dati generato dal run.
- **L4 edge cases**: `DUALITA_golden` trasferisce con 3 osservabili, non 5; nessun endpoint-stable observable.
- **L5 re-discovery**: il ciclo sposta il gate fuori dal perimetro base; non ripete il residual blank closure.
- **L6 metabolismo cognitivo**: CE-0001, CE-0117 e YSN usati nella combo.
- **L7 possibile/non-possibile**: possibile = transfer matrix QxG sintetica; non-possibile = chiusura QxG o legge endpoint-stable.

## Telemetria
- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` assenti nell'ambiente.
- Run valido: `python tools/exp_denominator_gate_transfer_matrix.py --n-gaps 4096 --n-replicates 24 --n-beta 11 --n-baseline 40 --z-min 2.0 --seed 202605091444 --out tools/data/denominator_gate_transfer_matrix_20260509_1444.json`.
- Output: `observables_registry=1.0.0-2026-05-06`; `observables_used=['SR', 'SR2', 'L1', 'L2', 'triple_var']`.
- Git state: worktree gia' sporco da depositi e pubblicazioni precedenti; questo cycle aggiunge solo il JSON 1444 e il report 1444.

## Files
- Script: `tools/exp_denominator_gate_transfer_matrix.py`
- Data: `tools/data/denominator_gate_transfer_matrix_20260509_1444.json`
- Report: `tools/data/reports/agent_20260509_1444.md`

exec
/bin/bash -lc 'python tools/dnd_scenario.py --best' in /opt/MM_D-ND
exec
/bin/bash -lc "sed -n '1,260p' tools/data/reports/agent_20260509_1437.md" in /opt/MM_D-ND
 succeeded in 0ms:
# Agent Report - Residual Boundary Closure
**Date**: 2026-05-09 14:37
**Piano**: 105
**Tension explored**: BOUNDARY / TRASCENDENZA_LIMITE
**verdict**: COMPLETE DENOMINATOR TRANSFER on base BOUNDARY perimeter
observables_registry: 1.0.0-2026-05-06
observables_used: [`spacing_r`, `shuffle_r_statistic`, `denominator_state`, `excluded_mass`, `transfer`] - osservabili domain-native per il gate boundary, non canonici SR/SR2/L1/L2/triple_var.
**observable_contract**: claim=il residual blank test decide se i 3 blank residui BOUNDARY entrano nel transfer; observable=`spacing_r` originale contro permutation null row-aligned; operator=`exp_boundary_blank_null_audit.py` + `exp_boundary_denominator_prescan.py`; generator=`dnd_autoricerca.genera_segnale` per `string_vibration`, `reaction_diffusion`, `logistica_biforcazione_var_3.5699`; denominator=13 righe base autoricerca 8 GUE-like / 5 Poisson-like; non_possible=dichiarare chiusura QxG, nuova legge GUE/Poisson, o complete `reaction_diffusion` con 499 gap; not_tested=fit `V_c`, nuovi spettri, nuovi domini.

## Respiro fuori-tempo
- **Prima impressione**: il blank residuo non segnala una classe mancante; segnala l'assenza del contro-perimetro. Quando il null entra, il bordo base non ha piu' blank.
- **Combo**: A2 confine det=-1 + A9 terzo incluso + A11 combo + QxG continuo/discreto + nodo BOUNDARY 8 GUE / 5 Poisson + tensione `TRASCENDENZA_LIMITE`.
- **Dipolo / punto-zero**: blank / transfer; punto-zero = riga domain/window prima della disponibilita del null row-aligned.
- **Piano superiore**: grafo della conoscenza e boundary operator. Il gate decide copertura del denominatore, non ontologia GUE/Poisson.
- **Operatori laterali scelti**: boundary operator, shuffle marginal-preserving, flusso/PDE come controllo di non-determinismo per `reaction_diffusion`.
- **Contaminazione cognitiva**: CE-0001 / KSAR: reiterazione sul deposito esistente; CE-0117: cascata della possibilita solo dove il null apre il canale; YSN DeltaLink: `blank residuo -> null row-aligned -> transfer completo`.
- **Proto-ipotesi**: il perimetro BOUNDARY base diventa completo quando ogni riga ha un null row-aligned leggibile; la classe resta attributo sorgente, non esito del gate.
- **Possibile / non-possibile**: possibile = contratto BOUNDARY 13/13 transfer sul perimetro base; non-possibile = usare questa copertura per chiudere QxG, per chiamare legge il cambio classe della logistica, o per trattare `reaction_diffusion` come complete.
- **Proiezione**: verificare `boundary_blank_null_audit_residual_20260509_1500.json`, innestarlo nel prescan pieno e controllare `boundary_denominator_prescan_full_20260509_1500.json`.

## Claim Under Test
> Il residual blank test trasforma i 3 blank residui in transfers; il perimetro BOUNDARY base passa a 13/13 transfer, 0 blank, 0 falls, ma resta un contratto di denominatore e non una chiusura QxG.

## Question
I tre blank residui `string_vibration:cycle_6`, `reaction_diffusion:cycle_11`, `logistica_biforcazione_var_3.5699:cycle_13` restano blank, cadono, o entrano nel transfer quando ricevono null row-aligned?

## Experiment Design
- Strumenti usati: `tools/exp_boundary_blank_null_audit.py` e `tools/exp_boundary_denominator_prescan.py`.
- Input verificati: `tools/data/boundary_blank_null_audit_residual_20260509_1500.json` e `tools/data/boundary_denominator_prescan_full_20260509_1500.json`.
- Perimetro atomico: 13 righe base, 8 GUE-like e 5 Poisson-like.
- Null baseline: permutation null marginal-preserving sui gap/spacings, `n_shuffle=1000`, seed `202605091500`.
- Contratto osservabile-operatore: il ciclo misura copertura del denominatore; non rifitta `V_c`, non aggiunge domini, non chiude QxG.

## Results

Residual blank audit depositato:

| domain | n_gaps | r_original | shuffle_mean | z | class | ordering_dependent | decision |
|---|---:|---:|---:|---:|---|---|---|
| string_vibration | 7999 | 0.383868 | 0.372199 | 4.562844 | Poisson -> Poisson | true | transfer complete |
| reaction_diffusion | 499 | 0.762604 | 0.494932 | 31.390192 | GUE -> GUE | true | transfer contaminato |
| logistica_biforcazione_var_3.5699 | 4727 | 0.581221 | 0.099640 | 161.271569 | GUE -> Poisson | true | transfer complete, class_change edge case |

Prescan pieno dopo innesto dei null:

| measure | value |
|---|---:|
| rows | 13 |
| source GUE | 8 |
| source Poisson | 5 |
| transfers | 13 |
| blank | 0 |
| falls | 0 |
| complete | 8 |
| contaminated | 5 |

Righe residue nel prescan:

| domain/window | source | denominator_state | excluded mass | null | transfer |
|---|---|---|---:|---|---|
| string_vibration:cycle_6 | Poisson | complete | 0.000 | shuffle z=4.56; class_change=False | transfers |
| reaction_diffusion:cycle_11 | GUE | contaminated | 0.002 | shuffle z=31.39; class_change=False | transfers |
| logistica_biforcazione_var_3.5699:cycle_13 | GUE | complete | 0.000 | shuffle z=161.27; class_change=True | transfers |

## Key Findings
1. **Verificato: i 3 blank residui diventano transfers.** Il prescan pieno produce 13/13 transfers, 0 blank, 0 falls.
2. **Verificato: `reaction_diffusion` non e' complete.** Ha 499 gap, quindi resta `contaminated` con excluded mass 0.002; un gap sotto soglia basta a impedire la formula complete.
3. **Verificato: `string_vibration` trasferisce senza cambio classe.** Poisson -> Poisson, `ordering_dependent=true`, `n_gaps=7999`.
4. **Verificato: `logistica_biforcazione_var_3.5699` trasferisce con `class_change=true`.** Il cambio GUE -> Poisson e' edge case del null, non legge nuova legge.
5. **Verificato: il gate BOUNDARY ha copertura completa sul perimetro base.** La copertura riguarda il denominatore row-aligned, non il ponte QxG.

## Verdict
**COMPLETE DENOMINATOR TRANSFER**.

Il residual blank test trasforma i 3 blank residui in transfers; il perimetro BOUNDARY base passa a 13/13 transfer, 0 blank, 0 falls, ma resta un contratto di denominatore e non una chiusura QxG.

Il gate ha copertura completa sul perimetro base: ogni riga domain/window possiede un null leggibile o contaminato dichiarato. La completezza del gate non coincide con completezza fisica delle righe: `reaction_diffusion` resta contaminato per 499 gap, `zeta_zeros` resta contaminato per 199 gap, e `logistica_biforcazione_var_3.5699` non produce una legge dal suo `class_change=true`.

## Bicono della scoperta
- **Due radici**: blank senza contro-perimetro / transfer con null row-aligned.
- **Singolare**: la riga BOUNDARY prima che il denominatore decida.
- **Invariante di passaggio**: disponibilita del null leggibile; non l'etichetta GUE/Poisson e non il fit `V_c`.
- **Campo di possibilita**: qui diventa possibile usare BOUNDARY come gate base 13/13 per audit successivi; qui diventa non-possibile spacciare il gate come chiusura QxG o legge RMT.

## Consecutio
La prossima mossa non e' rifare `V_c` e non e' chiudere QxG. Il risultato apre un uso piu' stretto del gate: ogni futuro claim BOUNDARY puo' partire dal perimetro base senza blank, ma deve portare con se' lo stato `complete/contaminated` e dichiarare gli edge case. Il nodo regressivo rimasto e' la qualita del denominatore, non la sua assenza.

## Auto-audit: source flags e 7 lenti
- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/dnd_scenario.py --best`, `tools/data/boundary_blank_null_audit_residual_20260509_1500.json`, `tools/data/boundary_denominator_prescan_full_20260509_1500.json`, run di verifica in `/tmp`.
- **L1 hard constraint**: nessun universale fuori perimetro; il claim vale per 13 righe base autoricerca.
- **L2 count grezzi**: riportati 13/13 transfer, 0/13 blank, 0/13 falls, 8 complete, 5 contaminated.
- **L3 no silent patching**: nessun fit `V_c`, nessun cambio degli artefatti sorgente; verifica su output temporanei.
- **L4 edge cases**: `reaction_diffusion` contaminato per 499 gap; `logistica_biforcazione_var_3.5699` ha class_change=true ma non diventa legge.
- **L5 re-discovery**: il ciclo e' audit di denominatore residuo, non teorema GUE/Poisson.
- **L6 metabolismo cognitivo**: CE-0001, CE-0117 e YSN usati nella combo.
- **L7 possibile/non-possibile**: possibile = gate base 13/13 senza blank; non-possibile = QxG chiuso o completezza fisica delle righe contaminate.

## Telemetria
- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` assenti nell'ambiente.
- Verifica script: `python -m py_compile tools/exp_boundary_blank_null_audit.py tools/exp_boundary_denominator_prescan.py`.
- Run valido: `python tools/exp_boundary_blank_null_audit.py --domains string_vibration reaction_diffusion logistica_biforcazione_var_3.5699 --n-shuffle 1000 --seed 202605091500 --out /tmp/boundary_blank_null_audit_residual_20260509_1500.verify.json`.
- Run valido: `python tools/exp_boundary_denominator_prescan.py --extra-null-audit tools/data/boundary_blank_null_audit_20260509_1430.json --extra-null-audit tools/data/boundary_blank_null_audit_residual_20260509_1500.json --out /tmp/boundary_denominator_prescan_full_20260509_1500.verify.json`.
- Compare prescan: summary e rows combaciano con `tools/data/boundary_denominator_prescan_full_20260509_1500.json`.
- Compare residual audit: `string_vibration` e `logistica_biforcazione_var_3.5699` combaciano sui numeri depositati; `reaction_diffusion` nel rerun produce `r=0.755661`, `z=30.592858` invece di `r=0.762604`, `z=31.390192`, ma conserva `n_gaps=499`, `GUE -> GUE`, `ordering_dependent=true`, `transfer=contaminated`. Il drift e' attribuito al generatore dinamico, non al null seed.

## Files
- Script: `tools/exp_boundary_blank_null_audit.py`
- Script: `tools/exp_boundary_denominator_prescan.py`
- Data: `tools/data/boundary_blank_null_audit_residual_20260509_1500.json`
- Data: `tools/data/boundary_denominator_prescan_full_20260509_1500.json`
- Report: `tools/data/reports/agent_20260509_1437.md`

exec
/bin/bash -lc "sed -n '1,240p' tools/exp_boundary_blank_null_audit.py 2>/dev/null || true" in /opt/MM_D-ND
 succeeded in 0ms:
#!/usr/bin/env python3
"""
exp_boundary_blank_null_audit.py

Targeted null/surrogate audit for BOUNDARY prescan blank rows.

The global boundary shuffle audit is a historical deposit. This tool does not
rewrite it; it creates an extra row-aligned null audit for selected blank
domains so the denominator prescan can decide whether blank -> transfers,
blank -> falls, or blank remains blank.
"""

from __future__ import annotations

import argparse
import json
import math
from datetime import datetime, timezone
from pathlib import Path
from typing import Any

import numpy as np

from dnd_autoricerca import _genera_variante, genera_segnale


R_GUE = 0.5307
R_POISSON = 2 * math.log(2) - 1
DEFAULT_DOMAINS = ("zeta_zeros", "pendolo_doppio")


def finite_number(value: Any) -> bool:
    return isinstance(value, (int, float)) and math.isfinite(float(value))


def normalized_spacings(signal: np.ndarray, metadata: dict[str, Any]) -> np.ndarray:
    values = np.asarray(signal, dtype=float)
    values = values[np.isfinite(values)]
    if metadata.get("is_spacings"):
        spacings = values[values > 0]
    else:
        spacings = np.diff(np.sort(values))
        spacings = spacings[spacings > 0]
    if len(spacings) == 0:
        return spacings
    mu = float(np.mean(spacings))
    return spacings / mu if mu > 0 else np.array([])


def r_statistic(spacings: np.ndarray) -> float:
    if len(spacings) < 2:
        return float("nan")
    left = spacings[:-1]
    right = spacings[1:]
    denom = np.maximum(left, right)
    valid = denom > 0
    if not np.any(valid):
        return float("nan")
    ratios = np.minimum(left[valid], right[valid]) / denom[valid]
    return float(np.mean(ratios))


def classify_r(value: float) -> str:
    if not finite_number(value):
        return "absent"
    return "GUE" if abs(value - R_GUE) < abs(value - R_POISSON) else "Poisson"


def generate_domain_signal(domain: str) -> tuple[np.ndarray, dict[str, Any]]:
    if "_var_" not in domain:
        return genera_segnale(domain)

    base, raw_value = domain.rsplit("_var_", 1)
    try:
        value: Any = float(raw_value)
    except ValueError:
        value = raw_value

    if base == "logistica_biforcazione":
        signal, metadata = _genera_variante(base, {"r_override": value})
    elif base == "zeta_zeros":
        signal, metadata = _genera_variante(base, {"n_zeros": int(value)})
    elif base == "numeri_primi":
        signal, metadata = _genera_variante(base, {"max_n": int(value)})
    elif base == "cellular_automata":
        signal, metadata = _genera_variante(base, {"rule_number": int(value)})
    else:
        signal, metadata = _genera_variante(base, {"param": value})

    metadata = {**metadata, "dominio": domain, "variant_base": base, "variant_value": value}
    return signal, metadata


def audit_domain(domain: str, n_shuffle: int, rng: np.random.Generator) -> dict[str, Any]:
    signal, metadata = generate_domain_signal(domain)
    spacings = normalized_spacings(signal, metadata)
    r_original = r_statistic(spacings)

    shuffled = []
    for _ in range(n_shuffle):
        shuffled.append(r_statistic(rng.permutation(spacings)))
    shuffled_arr = np.asarray(shuffled, dtype=float)
    shuffled_arr = shuffled_arr[np.isfinite(shuffled_arr)]

    if len(shuffled_arr) == 0 or not finite_number(r_original):
        return {
            "domain": domain,
            "error": "insufficient finite spacing/null values",
            "n_gaps": int(len(spacings)),
        }

    mean = float(np.mean(shuffled_arr))
    std = float(np.std(shuffled_arr))
    z_score = 0.0 if std <= 1e-12 else float((r_original - mean) / std)
    class_original = classify_r(r_original)
    class_shuffled = classify_r(mean)

    return {
        "domain": domain,
        "r_original": round(float(r_original), 6),
        "r_shuffled_mean": round(mean, 6),
        "r_shuffled_std": round(std, 6),
        "z_score": round(z_score, 6),
        "n_shuffle": int(n_shuffle),
        "n_gaps": int(len(spacings)),
        "class_original": class_original,
        "class_shuffled": class_shuffled,
        "class_changes": class_original != class_shuffled,
        "ordering_dependent": abs(z_score) > 3.0,
        "source": {
            "generator": "dnd_autoricerca.genera_segnale",
            "metadata": metadata,
            "null": "marginal-preserving spacing permutation",
        },
    }


def run(args: argparse.Namespace) -> dict[str, Any]:
    rng = np.random.default_rng(args.seed)
    domains = args.domains or list(DEFAULT_DOMAINS)
    results = {
        domain: audit_domain(domain, args.n_shuffle, rng)
        for domain in domains
    }
    output = {
        "experiment": "boundary_blank_null_audit",
        "generated_at": datetime.now(timezone.utc).isoformat(),
        "seed": args.seed,
        "n_shuffle": args.n_shuffle,
        "reference": {
            "R_GUE": R_GUE,
            "R_Poisson": R_POISSON,
        },
        "domains": results,
        "summary": {
            "domains": domains,
            "ready": [
                domain for domain, row in results.items()
                if "error" not in row and finite_number(row.get("z_score"))
            ],
            "errors": [
                domain for domain, row in results.items()
                if "error" in row
            ],
        },
    }

    out = Path(args.out)
    out.parent.mkdir(parents=True, exist_ok=True)
    out.write_text(json.dumps(output, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")

    print(f"wrote={out}")
    for domain, row in results.items():
        if "error" in row:
            print(f"{domain}\tERROR\t{row['error']}")
            continue
        print(
            f"{domain}\tn={row['n_gaps']}\tr={row['r_original']:.6f}\t"
            f"shuffle={row['r_shuffled_mean']:.6f}\tz={row['z_score']:.2f}\t"
            f"{row['class_original']}->{row['class_shuffled']}"
        )
    return output


def main() -> None:
    parser = argparse.ArgumentParser()
    parser.add_argument("--domains", nargs="*", default=list(DEFAULT_DOMAINS))
    parser.add_argument("--n-shuffle", type=int, default=1000)
    parser.add_argument("--seed", type=int, default=202605091430)
    parser.add_argument("--out", default="tools/data/boundary_blank_null_audit_20260509.json")
    args = parser.parse_args()
    run(args)


if __name__ == "__main__":
    main()

exec
/bin/bash -lc "sed -n '1,240p' tools/exp_boundary_denominator_prescan.py 2>/dev/null || true" in /opt/MM_D-ND
 succeeded in 0ms:
#!/usr/bin/env python3
"""
exp_boundary_denominator_prescan.py

Boundary-oriented prescan for transferring the `denominator_state` gate beyond
V_c. The unit under test is not the GUE/Poisson label. The unit is the
domain/window row before a structural claim is allowed to use its observable.

Input deposits:
- tools/data/autoricerca_journal.json: base 13-domain GUE/Poisson perimeter.
- tools/data/boundary_shuffle_audit.json: available shuffle/null support.

Output:
- one row per base domain/window with source type, denominator_state,
  excluded_mass, observable, null/surrogate, and transfer verdict.
"""

from __future__ import annotations

import argparse
import json
import math
from pathlib import Path
from typing import Any


DEFAULT_DOMAIN_KEY = {
    "numeri_primi": "primes",
    "random_matrix": "gue",
    "logistica_biforcazione": "logistic",
    "ising_2d": "ising_2d",
    "cellular_automata": "cell_auto",
    "brownian_motion": "brownian",
    "percolation": "percolation",
    "coupled_oscillators": "coupled_osc",
    "zeta_zeros": "zeta_zeros",
    "pendolo_doppio": "pendolo_doppio",
}


def is_base_cycle(value: Any) -> bool:
    if isinstance(value, int):
        return 1 <= value <= 13
    if isinstance(value, float):
        return value.is_integer() and 1 <= int(value) <= 13
    return False


def finite_number(value: Any) -> bool:
    return isinstance(value, (int, float)) and math.isfinite(float(value))


def load_json(path: Path) -> Any:
    with path.open() as f:
        return json.load(f)


def source_type(spacing: str | None) -> str:
    if spacing == "GUE-like":
        return "GUE"
    if spacing == "Poisson-like":
        return "Poisson"
    if spacing:
        return spacing
    return "absent"


def null_label(null_row: dict[str, Any] | None) -> str:
    if not null_row:
        return "absent"
    z = null_row.get("z_score")
    if finite_number(z):
        return f"shuffle z={float(z):.2f}; class_change={bool(null_row.get('class_changes'))}"
    return "shuffle present; z absent"


def classify_denominator(row: dict[str, Any], null_row: dict[str, Any] | None) -> tuple[str, float, str]:
    observable_defined = finite_number(row.get("spacing_r")) and row.get("spacing") in {
        "GUE-like",
        "Poisson-like",
    }
    if not observable_defined:
        return "absent", 1.0, "falls"

    if null_row is None:
        return "absent", 1.0, "blank"

    n_gaps = null_row.get("n_gaps")
    z = null_row.get("z_score")
    has_null = finite_number(n_gaps) and finite_number(z)
    if not has_null:
        return "broken", 1.0, "falls"

    excluded_mass = 0.0
    state = "complete"
    if int(n_gaps) < 500:
        state = "contaminated"
        excluded_mass = 1.0 - (float(n_gaps) / 500.0)

    return state, max(0.0, excluded_mass), "transfers"


def build_rows(autoricerca: list[dict[str, Any]], shuffle_audit: dict[str, Any]) -> list[dict[str, Any]]:
    base_rows = [row for row in autoricerca if is_base_cycle(row.get("ciclo"))]
    base_rows.sort(key=lambda row: int(row["ciclo"]))
    null_domains = shuffle_audit.get("domains", {})

    rows = []
    for row in base_rows:
        domain = row.get("dominio", "")
        null_key = DEFAULT_DOMAIN_KEY.get(domain, domain)
        null_row = null_domains.get(null_key)
        denominator_state, excluded_mass, transfer = classify_denominator(row, null_row)
        rows.append(
            {
                "domain_window": f"{domain}:cycle_{int(row['ciclo'])}",
                "domain": domain,
                "cycle": int(row["ciclo"]),
                "source_domain_type": source_type(row.get("spacing")),
                "denominator_state": denominator_state,
                "excluded_mass": round(excluded_mass, 6),
                "observable": {
                    "name": "spacing_r",
                    "defined": finite_number(row.get("spacing_r")),
                    "value": row.get("spacing_r"),
                    "label": row.get("spacing"),
                    "n_points": row.get("n_punti"),
                },
                "null_surrogate": {
                    "name": "shuffle_r_statistic",
                    "status": null_label(null_row),
                    "domain_key": null_key if null_row else None,
                    "n_gaps": null_row.get("n_gaps") if null_row else None,
                    "r_shuffled_mean": null_row.get("r_shuffled_mean") if null_row else None,
                    "z_score": null_row.get("z_score") if null_row else None,
                    "class_changes": null_row.get("class_changes") if null_row else None,
                },
                "transfer": transfer,
            }
        )
    return rows


def merge_extra_null_audit(shuffle_audit: dict[str, Any], extra_paths: list[str]) -> dict[str, Any]:
    merged = {
        **shuffle_audit,
        "domains": dict(shuffle_audit.get("domains", {})),
    }
    extras = []
    for raw_path in extra_paths:
        path = Path(raw_path)
        if not path.exists():
            continue
        data = load_json(path)
        domains = data.get("domains", {}) if isinstance(data, dict) else {}
        for domain, row in domains.items():
            if not isinstance(row, dict) or "error" in row:
                continue
            merged["domains"][domain] = row
        extras.append(str(path))
    if extras:
        merged["extra_null_audits"] = extras
    return merged


def summarize(rows: list[dict[str, Any]]) -> dict[str, Any]:
    by_transfer: dict[str, int] = {}
    by_state: dict[str, int] = {}
    by_type: dict[str, int] = {}
    for row in rows:
        by_transfer[row["transfer"]] = by_transfer.get(row["transfer"], 0) + 1
        by_state[row["denominator_state"]] = by_state.get(row["denominator_state"], 0) + 1
        by_type[row["source_domain_type"]] = by_type.get(row["source_domain_type"], 0) + 1
    return {
        "n_rows": len(rows),
        "by_transfer": by_transfer,
        "by_denominator_state": by_state,
        "by_source_domain_type": by_type,
        "transfer_scope": [
            row["domain_window"] for row in rows if row["transfer"] == "transfers"
        ],
        "blank_scope": [row["domain_window"] for row in rows if row["transfer"] == "blank"],
        "falls_scope": [row["domain_window"] for row in rows if row["transfer"] == "falls"],
    }


def run(args: argparse.Namespace) -> dict[str, Any]:
    autoricerca = load_json(Path(args.autoricerca))
    shuffle_audit = load_json(Path(args.shuffle_audit))
    if args.extra_null_audit:
        shuffle_audit = merge_extra_null_audit(shuffle_audit, args.extra_null_audit)
    rows = build_rows(autoricerca, shuffle_audit)
    output = {
        "experiment": "boundary_denominator_prescan",
        "question": "Does denominator_state transfer beyond V_c on the 8 GUE / 5 Poisson boundary perimeter?",
        "perimeter": "base autoricerca cycles 1..13: 8 GUE-like, 5 Poisson-like",
        "observable_contract": {
            "claim": "denominator_state gate transfer beyond V_c",
            "observable": "spacing_r label row with shuffle/null availability",
            "operator": "row-aligned domain/window prescan",
            "null": "boundary_shuffle_audit shuffle r-statistic when present",
            "non_possible": "claiming transfer where null/surrogate is absent",
            "extra_null_audits": shuffle_audit.get("extra_null_audits", []),
        },
        "summary": summarize(rows),
        "rows": rows,
    }

    out_path = Path(args.out)
    out_path.parent.mkdir(parents=True, exist_ok=True)
    with out_path.open("w") as f:
        json.dump(output, f, indent=2)

    print(f"wrote={out_path}")
    print(f"rows={output['summary']['n_rows']}")
    print(f"by_transfer={output['summary']['by_transfer']}")
    print(f"by_denominator_state={output['summary']['by_denominator_state']}")
    for row in rows:
        print(
            f"{row['domain_window']}\t{row['source_domain_type']}\t"
            f"{row['denominator_state']}\t{row['excluded_mass']:.3f}\t"
            f"{row['transfer']}\t{row['null_surrogate']['status']}"
        )
    return output


def main() -> None:
    parser = argparse.ArgumentParser()
    parser.add_argument("--autoricerca", default="tools/data/autoricerca_journal.json")
    parser.add_argument("--shuffle-audit", default="tools/data/boundary_shuffle_audit.json")
    parser.add_argument("--extra-null-audit", action="append", default=[])
    parser.add_argument("--out", default="tools/data/boundary_denominator_prescan_20260509_1409.json")
    args = parser.parse_args()
    run(args)


if __name__ == "__main__":
    main()

 succeeded in 229ms:
TENS_SCALE_TRASCENDENZA_LIMITE: score=0.807  — TENS_SCALE_TRASCENDENZA_LIMITE: incerto (i=0.6) — massimo potere discriminante
COMP_GEN_GAP_RATIO_T9_linguaggio_TRASCENDENZA_LIMITE: score=0.758  — COMP_GEN_GAP_RATIO_T9_linguaggio_TRASCENDENZA_LIMITE: incerto (i=0.65) — massimo potere discriminante
COMP_DOMAIN_PHOTONIC_TRASCENDENZA_LIMITE: score=0.758  — COMP_DOMAIN_PHOTONIC_TRASCENDENZA_LIMITE: incerto (i=0.65) — massimo potere discriminante

codex
Il proiettore punta a `TENS_SCALE_TRASCENDENZA_LIMITE`, mentre i report 1437/1444 chiudono il gate base e chiedono un perimetro fisico o semi-reale. Taglio quindi sul nodo regressivo: il fit V_c non va “salvato”, va controllato come denominatore di scala row-aligned.
exec
/bin/bash -lc "sed -n '1,260p' tools/data/reports/agent_20260509_1337.md" in /opt/MM_D-ND
 succeeded in 0ms:
# Agent Report - Vc Fit-Ready Denominator Gate
**Date**: 2026-05-09 13:37
**Piano**: 102
**Tension explored**: TENS_SCALE_TRASCENDENZA_LIMITE / TRASCENDENZA_LIMITE (0.6 / 0.9)
**verdict**: CONSTRAINT on fit-ready V_c denominators
observables_registry: 1.0.0-2026-05-06
observables_used: [`denominator_state`, `fit_ready_rows`, `excluded_rows`, `excluded_events`, `vc_median_fit_ready`, `slope_per_N`] - osservabili domain-native, non canonici SR/SR2/L1/L2/triple_var
**observable_contract**: claim=`fit(V_c)` e' ammesso solo quando il denominatore e' fit-ready; observable=stato strutturale del denominatore e curva `vc_median_fit_ready`; operator=lettura del deposito 08:46 con separazione `complete/contaminated/broken/absent`; generator=classi `reference_order`, `order_memory`, `periodic_closure`, `random_dispersion`; denominator=JSON `vc_generator_class_direction_audit_20260509_0846`, livelli separati `per_mode_best` e `accepted_candidates`, soglie `r={0.48,0.50,0.52}`, N={89,144,233,377}; non_possible=righe `no_cross` e `floor_hit` non entrano nel fit e restano massa esclusa; not_tested=nuovi spettri, nuovi N, nuovi generatori, gap_ratio, power-law non lineare.

## Respiro fuori-tempo
- **Prima impressione**: il valore `V_c` non e' il punto-zero; il punto-zero e' la riga prima che il confine decida se `V_c` esiste.
- **Combo**: A2 confine det=-1 + A9 terzo incluso + QxG continuo/discreto + grafo dei generatori + tensione `TENS_SCALE_TRASCENDENZA_LIMITE`.
- **Dipolo / punto-zero**: curva fittabile / curva non definita; punto-zero = denominatore fit-ready prima della regressione numerica.
- **Piano superiore**: grafo della conoscenza e bicono-dipoli. Il fit e' un arco consentito solo dopo che il nodo-evento conserva attraversamento.
- **Operatori laterali scelti**: boundary operator, graph cut, filtrazione. Entrano per tagliare il deposito in stati strutturali prima del fit.
- **Contaminazione cognitiva**:
  - **CE-0001 / KSAR**: reiterazione sul deposito 08:46 senza nuovo campo dati.
  - **CE-0117**: cascata della possibilita; il fit diventa possibile solo nel sottografo che conserva evento.
  - **YSN DeltaLink**: `event_type -> fit_ready -> scale_curve`, non `N -> V_c`.
- **Proto-ipotesi**: la scala di `V_c` e' un osservabile secondario. L'osservabile primario e' il denominatore fit-ready: se il denominatore e' broken, la curva non fallisce, non esiste sul perimetro.
- **Proiezione**: costruisco una tabella fit-ready dal deposito 08:46. Se una classe perde almeno un N intero, il fit aggregato diventa non-possibile per quella classe e soglia.

## Claim Under Test
> Nel perimetro del deposito 08:46, `fit(V_c)` e' lecito solo per classi/soglie con denominatore `complete` o, con avvertenza, `contaminated`; e' non-possibile per stati `broken` o `absent`.

## Question
Il fallimento del fit di scala e' una proprieta della forma numerica, oppure una proprieta del denominatore che decide dove `V_c` esiste?

## Experiment Design
- Nuovo strumento: `tools/exp_vc_fit_ready_scale_table.py`.
- Input: `tools/data/vc_generator_class_direction_audit_20260509_0846.json`.
- Output: `tools/data/vc_fit_ready_scale_table_20260509_1337.json`.
- Nessun nuovo spettro calcolato: il ciclo misura il deposito row-aligned del ciclo precedente.
- Stati strutturali:
  - `complete`: ogni N ha righe fit-ready e zero righe escluse.
  - `contaminated`: ogni N ha righe fit-ready, ma esiste massa esclusa.
  - `broken`: almeno un N non ha righe fit-ready.
  - `absent`: nessuna riga fit-ready.
- Contratto osservabile-operatore: `vc_defined = event in {internal_cross, internal_multi}`; `fit_ready = vc_defined and vc_interp is not null`; `no_cross/floor_hit` sono massa esclusa, non missing neutro.

## Results

Indice stati:

| state | class-threshold entries |
|---|---:|
| complete | 7 |
| contaminated | 6 |
| broken | 5 |
| absent | 0 |

Soglia `r=0.50`, livello `per_mode_best`:

| class | state | fit_ready/total | excluded | Vc first->last | slope_per_N |
|---|---|---:|---:|---:|---:|
| reference_order | complete | 16/16 | 0 | 1.191 -> 0.879 | -0.001043 |
| order_memory | complete | 48/48 | 0 | 1.317 -> 0.774 | -0.001833 |
| periodic_closure | contaminated | 36/47 | 11 no_cross | 0.999 -> 0.650 | -0.000913 |
| random_dispersion | broken | 20/32 | 12 floor_hit | 0.763 -> 0.541 | -0.001462 |

Soglia `r=0.50`, livello `accepted_candidates`:

| class | state | fit_ready/total | excluded | Vc first->last | slope_per_N |
|---|---|---:|---:|---:|---:|
| order_memory | contaminated | 278/279 | 1 no_cross | 1.350 -> 0.899 | -0.001628 |
| periodic_closure | broken | 102/393 | 291 no_cross | 1.593 -> 0.605 | -0.017960 |

Accepted `order_memory` a `r=0.52`:

| class | state | fit_ready/total | excluded | Vc first->last | slope_per_N |
|---|---|---:|---:|---:|---:|
| order_memory | complete | 279/279 | 0 | 1.236 -> 0.781 | -0.001606 |

## Key Findings
1. **Verificato: il fit completo esiste nel livello best-per-mode per `reference_order` e `order_memory`.** A `r=0.50`, `reference_order` ha 16/16 righe fit-ready e `order_memory` ha 48/48.
2. **Verificato: sugli accepted, `periodic_closure` e' broken a tutte le soglie.** A `r=0.50`, 291/393 righe sono `no_cross`; N=233 e N=377 non hanno punti fit-ready, quindi la curva non puo' essere letta come scala.
3. **Verificato: `random_dispersion` nel best-per-mode e' broken a `r=0.50` e `r=0.52`.** A `r=0.50`, N=377 cade tutto in `floor_hit`; il valore al bordo non e' un punto interno di fit.
4. **Verificato: `order_memory` accepted si pulisce a `r=0.52`.** Passa da `contaminated` a `r=0.50` con 1 no_cross a `complete` a `r=0.52` con 279/279 righe fit-ready. La soglia modifica il denominatore, non solo il valore del fit.
5. **Inferito: la consecutio corretta non e' scegliere un modello power-law alternativo.** Prima va promosso il gate `denominator_state` nel contratto dei futuri fit `V_c`.

## Verdict
**CONSTRAINT**: `V_c` scaling e' ammesso solo dopo gate fit-ready.

Nel perimetro 08:46 -> 13:37, `order_memory` conserva un canale fittabile; `periodic_closure` conserva label ma rompe il denominatore sugli accepted; `random_dispersion` raggiunge il floor e non fornisce curva interna a N=377. Il claim corretto e':

`fit(V_c)` non opera su `V_c` aggregato. Opera su righe `fit_ready=True`, stratificate per livello, classe generatore e soglia.

## Bicono della scoperta
- **Due radici**: curva di scala / massa esclusa.
- **Singolare**: il denominatore prima della regressione, dove `V_c` puo' ancora essere valore, assenza di crossing, o floor.
- **Invariante di passaggio**: `fit_ready` sopravvive su `order_memory`; non sopravvive su `periodic_closure` accepted e su `random_dispersion` al bordo alto.
- **Campo di possibilita**: qui diventa possibile fittare `V_c` solo nel sottografo fit-ready; qui diventa non-possibile usare `no_cross` o `floor_hit` come missing data neutro.

## Consecutio
Il prossimo ciclo puo' rifare il fit parametrico solo su righe `complete` o dichiaratamente `contaminated`. Se entra `broken`, il risultato deve essere classificato come denominatore non-definito, non come cattivo fit.

## Auto-audit: source flags e 5 lenti
- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/data/seme.json`, `tools/dnd_scenario.py --best`, report `agent_20260509_0846.md`, JSON `tools/data/vc_generator_class_direction_audit_20260509_0846.json`, nuovo JSON `tools/data/vc_fit_ready_scale_table_20260509_1337.json`.
- **L1 hard constraint**: il verdict vale solo per il deposito 08:46 e le soglie/N/generatori dichiarati.
- **L2 count grezzi**: riportati 16/16, 48/48, 36/47, 20/32, 278/279, 102/393, 279/279.
- **L3 no observable drift**: non sono testati gap_ratio, nuovi N, nuovi spettri o power-law non lineare.
- **L4 edge cases**: `order_memory` accepted a `r=0.50` ha 1 no_cross; per questo e' `contaminated`, non `complete`.
- **L5 re-discovery vs discovery**: il finding non e' che `V_c` scende con N; il finding e' che la discesa e' leggibile solo dopo classificazione fit-ready del denominatore.

## Telemetria
- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` non presenti nell'ambiente.
- Verifica script: `python -m py_compile tools/exp_vc_fit_ready_scale_table.py` completato senza errori.
- Run valido: `python tools/exp_vc_fit_ready_scale_table.py --input tools/data/vc_generator_class_direction_audit_20260509_0846.json --out tools/data/vc_fit_ready_scale_table_20260509_1337.json`.

## Files
- Script nuovo: `tools/exp_vc_fit_ready_scale_table.py`
- Data: `tools/data/vc_fit_ready_scale_table_20260509_1337.json`
- Report: `tools/data/reports/agent_20260509_1337.md`

exec
/bin/bash -lc "sed -n '1,260p' tools/data/reports/agent_20260509_1400.md" in /opt/MM_D-ND
 succeeded in 0ms:
# Agent Report - Vc Fit Model Gate
**Date**: 2026-05-09 14:00
**Piano**: 103
**Tension explored**: TENS_SCALE_TRASCENDENZA_LIMITE / TRASCENDENZA_LIMITE (0.6 / 0.9)
**verdict**: CONSTRAINT on V_c scale model selection
observables_registry: 1.0.0-2026-05-06
observables_used: [`denominator_state`, `fit_ready_rows`, `excluded_rows`, `best_model`, `delta_aicc_to_second`, `unit_limit_status`] - osservabili domain-native, non canonici SR/SR2/L1/L2/triple_var
**observable_contract**: claim=il fit parametrico di `V_c` puo' entrare solo sulle righe `complete` o `contaminated` del gate fit-ready; observable=famiglia di modello migliore tra cinque forme semplici, separata da stato denominatore e massa esclusa; operator=confronto AICc su `vc_median_fit_ready` dal deposito 13:37, senza ricomputare spettri; generator=classi `reference_order`, `order_memory`, `periodic_closure`, `random_dispersion`; denominator=JSON `vc_fit_ready_scale_table_20260509_1337`, N={89,144,233,377}, soglie r={0.48,0.50,0.52}, livelli `per_mode_best` e `accepted_candidates`; non_possible=righe `broken` escluse dal fit e righe sotto `V_c=1` impediscono il claim osservato "converge a 1 dall'alto"; not_tested=nuovi N, nuovi generatori, nuovi spettri, GUE/Poisson transfer, gap_ratio, fit a tre parametri con asintoto libero.

## Respiro fuori-tempo
- **Prima impressione**: dopo il gate fit-ready il problema non e' piu' "il fit converge"; e' "quale arco del grafo puo' ricevere una legge senza inglobare massa esclusa".
- **Combo**: A2 confine det=-1 + A3 punto fisso come attrattore dichiarato + A9 terzo incluso + QxG continuo/discreto + grafo dei generatori + tensione `TENS_SCALE_TRASCENDENZA_LIMITE`.
- **Dipolo / punto-zero**: legge di scala / famiglia non identificata; punto-zero = il denominatore fit-ready prima che il modello numerico scelga una forma.
- **Piano superiore**: grafo della conoscenza e bicono-dipoli. Il modello e' un arco permesso solo se il nodo denominatore conserva crossing.
- **Operatori laterali scelti**: fit come morfismo, boundary operator, graph cut. Entrano per separare righe ammesse, righe rotte e famiglie numeriche.
- **Contaminazione cognitiva**:
  - **CE-0001 / KSAR**: reiterazione sul deposito 13:37 senza cambiare campo dati.
  - **CE-0117**: cascata della possibilita; il fit entra solo dopo il gate e resta subordinato al denominatore.
  - **YSN DeltaLink**: `denominator_state -> admissible_fit -> model_family`, non `V_c -> legge`.
- **Proto-ipotesi**: la famiglia di scala non e' una proprieta globale di `V_c`. Nel sottografo ordinato fit-ready, la scala osservata e' quasi lineare in N sul perimetro; nei sottografi contaminati la famiglia cambia o resta non identificabile.
- **Proiezione**: confronto cinque forme a due parametri su ogni riga ammissibile: `a+b*N`, `a+b*log(N)`, `a+b/sqrt(N)`, `a+b/N`, `c*N^b` con asintoto zero. Le righe `broken` vengono riportate ma non fittate.

## Claim Under Test
> Nel perimetro fit-ready 13:37, `order_memory` e `reference_order` possono ricevere una selezione di modello; `periodic_closure` e `random_dispersion` non possono essere aggregati alla stessa legge senza dichiarare contaminazione o rottura.

## Question
Una volta esclusi `no_cross` e `floor_hit`, il fit di scala di `V_c` identifica una legge comune, oppure divide il grafo dei generatori in famiglie di scala distinte?

## Experiment Design
- Nuovo strumento: `tools/exp_vc_fit_model_gate.py`.
- Input: `tools/data/vc_fit_ready_scale_table_20260509_1337.json`.
- Output: `tools/data/vc_fit_model_gate_20260509_1400.json`.
- Stati ammessi al fit: `complete`, `contaminated`.
- Stati esclusi dal fit: `broken`.
- Criterio modello: AICc su quattro punti N per riga; `delta_aicc_to_second < 2` = famiglia non identificata.
- Check non-possibile: conteggio dei punti osservati con `V_c < 1`.

## Results

Indice globale:

| measure | value |
|---|---:|
| input rows | 18 |
| admissible rows | 13 |
| excluded broken rows | 5 |
| best linear_N | 9 |
| best inv_N | 4 |
| ambiguous rows (`delta_aicc<2`) | 4 |
| rows with observed `V_c<1` | 12 |

Righe rappresentative, soglia `r=0.50`:

| level | class | state | fit_ready/total | excluded | best model | delta AICc | last V_c |
|---|---|---|---:|---:|---|---:|---:|
| per_mode_best | reference_order | complete | 16/16 | 0 | linear_N | 5.651 | 0.879 |
| per_mode_best | order_memory | complete | 48/48 | 0 | linear_N | 6.607 | 0.774 |
| per_mode_best | periodic_closure | contaminated | 36/47 | 11 | inv_N | 1.378 | 0.650 |
| accepted_candidates | order_memory | contaminated | 278/279 | 1 | linear_N | 4.565 | 0.899 |
| accepted_candidates | order_memory r0.52 | complete | 279/279 | 0 | linear_N | 5.926 | 0.781 |

Righe escluse per stato `broken`:

| level | class | fit_ready/total | excluded |
|---|---|---:|---:|
| per_mode_best | random_dispersion r0.50 | 20/32 | 12 |
| per_mode_best | random_dispersion r0.52 | 15/32 | 17 |
| accepted_candidates | periodic_closure r0.48 | 102/393 | 291 |
| accepted_candidates | periodic_closure r0.50 | 102/393 | 291 |
| accepted_candidates | periodic_closure r0.52 | 102/393 | 291 |

Ambiguita' di famiglia (`delta AICc < 2`):

| row | best | delta AICc |
|---|---|---:|
| per_mode_best:order_memory:r0.52 | linear_N | 1.885 |
| per_mode_best:periodic_closure:r0.48 | inv_N | 1.244 |
| per_mode_best:periodic_closure:r0.50 | inv_N | 1.378 |
| per_mode_best:periodic_closure:r0.52 | inv_N | 1.257 |

## Key Findings
1. **Verificato: il sottografo ordinato fit-ready sceglie `linear_N` nel perimetro osservato.** `reference_order` e `order_memory` completi hanno `linear_N` come miglior famiglia a r=0.48, 0.50, 0.52; a r=0.50 i delta AICc sono 5.651 e 6.607.
2. **Verificato: `accepted_candidates:order_memory` resta lineare dopo il gate.** A r=0.50 e' contaminato da 1 riga esclusa (`278/279` fit-ready), ma il miglior modello resta `linear_N`; a r=0.52 diventa completo (`279/279`) e resta `linear_N`.
3. **Verificato: `periodic_closure` non condivide la famiglia del sottografo ordinato.** Nel best-per-mode e' contaminato e sceglie `inv_N`, ma con delta AICc < 2; negli accepted e' `broken` e non entra nel fit.
4. **Verificato: `random_dispersion` non produce una legge ammessa stabile.** A r=0.48 e' contaminato e sceglie `inv_N`; a r=0.50 e r=0.52 e' `broken`, quindi non e' denominatore di fit.
5. **Verificato: il claim osservato "V_c converge a 1" non regge nel perimetro misurato come vincolo hard.** 12/13 righe fittate hanno almeno un punto osservato sotto 1; `reference_order` e `order_memory` scendono sotto 1 agli N alti.

## Verdict
**CONSTRAINT**: il fit parametrico di `V_c` non produce una legge comune del boundary.

Nel perimetro `N={89,144,233,377}`, il canale `reference_order/order_memory` fit-ready e' leggibile come discesa quasi lineare in N. `periodic_closure` e `random_dispersion` non vanno aggregati: il primo e' contaminato o broken, il secondo passa da contaminato a broken. La formulazione valida e':

`V_c` ha una famiglia di scala per sottografo ammesso; non ha una legge unica prima della separazione `denominator_state + generator_class`.

## Bicono della scoperta
- **Due radici**: famiglia di fit / stato del denominatore.
- **Singolare**: la curva `V_c` prima della scelta del modello, dove valore, massa esclusa e classe generatore sono ancora lo stesso nodo.
- **Invariante di passaggio**: `linear_N` sopravvive nel canale ordinato fit-ready; non sopravvive quando il canale introduce chiusura periodica o dispersione.
- **Campo di possibilita**: qui diventa possibile testare N piu' alti solo sul sottografo `complete`; qui diventa non-possibile dichiarare una convergenza universale di `V_c` a 1 o un power-law comune.

## Consecutio
Il prossimo ciclo deve estendere N solo per `reference_order` e `order_memory` con denominatore `complete`. Se i punti alti restano sotto 1 e lineari nel perimetro esteso, il claim `V_c(phi) -> 1` va riscritto come coordinata storica del vecchio perimetro, non come attrattore del boundary.

## Auto-audit: source flags e 5 lenti
- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/data/seme.json`, `tools/dnd_scenario.py --best`, report `agent_20260509_1337.md`, JSON `tools/data/vc_fit_ready_scale_table_20260509_1337.json`, nuovo JSON `tools/data/vc_fit_model_gate_20260509_1400.json`.
- **L1 hard constraint**: il verdict vale solo per N, soglie, classi e deposito dichiarati.
- **L2 count grezzi**: riportati `13/18`, `5 broken`, `16/16`, `48/48`, `36/47`, `278/279`, `279/279`, `102/393`.
- **L3 no observable drift**: non sono testati gap_ratio, nuovi spettri, nuovi N o GUE/Poisson.
- **L4 edge cases**: `order_memory:r0.52` best-per-mode ha delta AICc 1.885, quindi famiglia non identificata hard nonostante best `linear_N`.
- **L5 re-discovery vs discovery**: il finding non e' "linear fit buono"; e' che la famiglia di fit dipende dal sottografo ammesso e che la convergenza a 1 non e' vincolo osservato.

## Telemetria
- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` non presenti nell'ambiente.
- Verifica script: `python -m py_compile tools/exp_vc_fit_model_gate.py` completato senza errori.
- Run valido: `python tools/exp_vc_fit_model_gate.py --input tools/data/vc_fit_ready_scale_table_20260509_1337.json --out tools/data/vc_fit_model_gate_20260509_1400.json`.

## Files
- Script nuovo: `tools/exp_vc_fit_model_gate.py`
- Data: `tools/data/vc_fit_model_gate_20260509_1400.json`
- Report: `tools/data/reports/agent_20260509_1400.md`

exec
/bin/bash -lc "sed -n '1,260p' tools/data/reports/agent_20260509_1409.md" in /opt/MM_D-ND
 succeeded in 0ms:
# Agent Report - Boundary Denominator Prescan
**Date**: 2026-05-09 14:09
**Piano**: 103
**Tension explored**: BOUNDARY / TRASCENDENZA_LIMITE
**verdict**: PARTIAL TRANSFER with structural blank counter-perimeter
observables_registry: 1.0.0-2026-05-06
observables_used: [`denominator_state`, `excluded_mass`, `spacing_r`, `shuffle_r_statistic`, `transfer`] - osservabili domain-native per il gate boundary, non canonici SR/SR2/L1/L2/triple_var.
**observable_contract**: claim=`denominator_state` puo' trasferire oltre `V_c` solo dove la riga domain/window ha osservabile definito e null/surrogate row-aligned; observable=`spacing_r` + availability del null shuffle; operator=prescan sui 13 domini base del deposito autoricerca, non fit parametrico; generator=perimetro 8 GUE-like / 5 Poisson-like dei cycle 1..13; denominator=`boundary_shuffle_audit` quando presente; non_possible=dichiarare transfer nei domini senza null/surrogate; not_tested=nuovi spettri, nuovi domini, fit `V_c`, famiglia AICc, QxG chiuso.

## Respiro fuori-tempo
- **Prima impressione**: il confine non chiede se il dominio e' GUE o Poisson; chiede se la riga ha un denominatore capace di sostenere un claim.
- **Combo**: A2 confine det=-1 + A9 terzo incluso + QxG continuo/discreto + nodo BOUNDARY del grafo + tensione `TRASCENDENZA_LIMITE`.
- **Dipolo / punto-zero**: classificato / non aggregabile; punto-zero = riga domain/window prima che il null decida se l'osservabile puo' viaggiare.
- **Piano superiore**: grafo della conoscenza e boundary operator. Il bordo e' una filtrazione: prima osservabile, poi null, poi claim.
- **Proto-ipotesi**: `denominator_state` trasferisce oltre `V_c` se separa riga misurabile, massa contaminata e blank senza usare GUE/Poisson come risposta.
- **Possibile / non-possibile**: possibile = claim boundary su righe con null row-aligned; non-possibile = claim di transfer nei domini senza null, anche quando `spacing_r` locale esiste.
- **Proiezione**: creare `tools/exp_boundary_denominator_prescan.py` e misurare 13 righe base: domain/window, source type, denominator_state, excluded mass, observable, null/surrogate, transfer.

## Contaminazione cognitiva
- **CE-0001 / KSAR**: reiterazione sul deposito invece di nuovo fit locale `V_c`.
- **CE-0117**: cascata della possibilita; il claim passa solo dove il null apre il canale.
- **YSN DeltaLink**: `domain row -> null availability -> transfer`, non `GUE/Poisson -> risposta`.

## Claim Under Test
> Nel perimetro BOUNDARY 8 GUE / 5 Poisson, il gate `denominator_state` trasferisce oltre `V_c` solo se identifica le righe con null/surrogate disponibile e lascia blank le righe senza contro-perimetro.

## Experiment Design
- Nuovo strumento: `tools/exp_boundary_denominator_prescan.py`.
- Input: `tools/data/autoricerca_journal.json` e `tools/data/boundary_shuffle_audit.json`.
- Output: `tools/data/boundary_denominator_prescan_20260509_1409.json`.
- Perimetro atomico: cycle base `1..13`, esattamente 13 righe: 8 GUE-like, 5 Poisson-like.
- Stati:
  - `complete`: osservabile definito + null shuffle presente con `n_gaps >= 500`.
  - `contaminated`: osservabile definito + null presente ma massa debole dichiarata (`n_gaps < 500`).
  - `absent`: osservabile locale presente ma null/surrogate assente, oppure osservabile assente.
  - `broken`: null presente ma non leggibile; non emerso in questo run.
- Transfer:
  - `transfers`: `complete` o `contaminated` con null presente.
  - `blank`: osservabile locale presente ma null assente.
  - `falls`: osservabile assente o null rotto.

## Results

Indice globale:

| measure | value |
|---|---:|
| rows | 13 |
| source GUE | 8 |
| source Poisson | 5 |
| transfers | 8 |
| blank | 5 |
| falls | 0 |
| complete | 5 |
| contaminated | 3 |
| absent | 5 |

Tabella prescan:

| domain/window | source | denominator_state | excluded mass | observable | null/surrogate | transfer |
|---|---|---|---:|---|---|---|
| ising_2d:cycle_1 | GUE | contaminated | 0.810 | spacing_r=0.902 | shuffle z=-0.10; class_change=False | transfers |
| pendolo_doppio:cycle_2 | Poisson | absent | 1.000 | spacing_r=0.386 | absent | blank |
| numeri_primi:cycle_3 | GUE | complete | 0.000 | spacing_r=0.886 | shuffle z=-26.60; class_change=False | transfers |
| zeta_zeros:cycle_4 | GUE | absent | 1.000 | spacing_r=0.615 | absent | blank |
| logistica_biforcazione:cycle_5 | GUE | complete | 0.000 | spacing_r=0.997 | shuffle z=61.60; class_change=False | transfers |
| string_vibration:cycle_6 | Poisson | absent | 1.000 | spacing_r=0.384 | absent | blank |
| random_matrix:cycle_7 | GUE | complete | 0.000 | spacing_r=0.573 | shuffle z=-14.70; class_change=False | transfers |
| cellular_automata:cycle_8 | GUE | contaminated | 0.790 | spacing_r=0.861 | shuffle z=-0.10; class_change=False | transfers |
| percolation:cycle_9 | Poisson | complete | 0.000 | spacing_r=0.404 | shuffle z=16.10; class_change=True | transfers |
| coupled_oscillators:cycle_10 | Poisson | contaminated | 0.146 | spacing_r=0.385 | shuffle z=43.50; class_change=True | transfers |
| reaction_diffusion:cycle_11 | GUE | absent | 1.000 | spacing_r=0.759 | absent | blank |
| brownian_motion:cycle_12 | Poisson | complete | 0.000 | spacing_r=0.489 | shuffle z=-1.60; class_change=False | transfers |
| logistica_biforcazione_var_3.5699:cycle_13 | GUE | absent | 1.000 | spacing_r=0.997 | absent | blank |

## Key Findings
1. **Verificato: il gate trasferisce su 8/13 righe del perimetro.** Il transfer non coincide con GUE o Poisson: include 5 sorgenti GUE e 3 sorgenti Poisson perche' la condizione e' disponibilita del null, non etichetta di classe.
2. **Verificato: 5/13 righe restano blank strutturale.** `pendolo_doppio`, `zeta_zeros`, `string_vibration`, `reaction_diffusion`, `logistica_biforcazione_var_3.5699` hanno `spacing_r` locale ma non hanno null/surrogate row-aligned nel deposito letto.
3. **Verificato: `contaminated` non viene escluso.** `ising_2d`, `cellular_automata`, `coupled_oscillators` trasferiscono come contaminati perche' il null esiste ma la massa debole viene dichiarata.
4. **Verificato: il contro-perimetro non e' una famiglia alternativa.** Il blank non autorizza una classe nuova; dice che il Lab non possiede osservabile sufficiente per trasferire il gate su quella riga.
5. **Inferito: la consecutio corretta e' generare null row-aligned per i 5 blank, non fittare `V_c`.** Il nodo regressivo e' nel denominatore mancante, prima di ogni modello numerico.

## Verdict
**PARTIAL TRANSFER**: `denominator_state` trasferisce oltre `V_c` come gate di perimetro, non come risposta GUE/Poisson.

Nel perimetro 8 GUE / 5 Poisson, il gate produce una condizione cross-dominio verificabile su 8 righe con null shuffle disponibile. Su 5 righe resta blank strutturale: l'osservabile locale esiste, ma manca il contro-perimetro row-aligned.

Il gate `denominator_state` trasferisce oltre V_c perche' separa 8 righe con null/surrogate shuffle disponibile da 5 righe blank senza contro-perimetro; il contro-perimetro sono `pendolo_doppio`, `zeta_zeros`, `string_vibration`, `reaction_diffusion`, `logistica_biforcazione_var_3.5699`.

## Bicono della scoperta
- **Due radici**: riga misurabile / riga non aggregabile.
- **Singolare**: domain/window prima della classificazione GUE/Poisson.
- **Invariante di passaggio**: il null row-aligned decide il transfer; la classe sorgente non decide.
- **Campo di possibilita**: qui diventa possibile portare BOUNDARY in un contratto cross-dominio; qui diventa non-possibile chiudere QxG o dichiarare transfer sui 5 blank senza nuovo null.

## Consecutio
Il prossimo ciclo boundary deve costruire null/surrogate row-aligned per i 5 blank. Se quei null entrano, il gate puo' diventare condizione cross-dominio completa. Se non entrano, il confine resta un perimetro 8/13 con blank dichiarato.

## Auto-audit: source flags e 7 lenti
- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/dnd_scenario.py --best`, `agent_20260509_1337.md`, `agent_20260509_1400.md`, `falsifier_20260509_1400.json`, `agent_20260507_0330.md`, `tools/data/autoricerca_journal.json`, `tools/data/boundary_shuffle_audit.json`, nuovo JSON `tools/data/boundary_denominator_prescan_20260509_1409.json`.
- **L1 hard constraint**: nessun "sempre" o "solo" universale; il verdict vale per 13 righe base e due depositi dichiarati.
- **L2 count grezzi**: riportati 8/13 transfer, 5/13 blank, 5 complete, 3 contaminated, 5 absent.
- **L3 no silent patching**: il ciclo non corregge il fit 14:00; usa quel falsifier come veto e cambia nodo al boundary denominator.
- **L4 edge cases**: `contaminated` resta osservabile e non viene escluso; massa dichiarata in tabella.
- **L5 re-discovery**: il risultato e' un audit di perimetro del Lab, non un teorema RMT nuovo.
- **L6 metabolismo cognitivo**: CE-0001, CE-0117 e YSN usati nella combo.
- **L7 possibile/non-possibile**: possibile = transfer su righe con null; non-possibile = transfer su righe blank senza null.

## Telemetria
- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` non presenti nell'ambiente.
- Verifica script: `python -m py_compile tools/exp_boundary_denominator_prescan.py` completato senza errori.
- Run valido: `python tools/exp_boundary_denominator_prescan.py --out tools/data/boundary_denominator_prescan_20260509_1409.json`.

## Files
- Script nuovo: `tools/exp_boundary_denominator_prescan.py`
- Data: `tools/data/boundary_denominator_prescan_20260509_1409.json`
- Report: `tools/data/reports/agent_20260509_1409.md`

exec
/bin/bash -lc "sed -n '1,260p' tools/exp_vc_fit_model_gate.py" in /opt/MM_D-ND
 succeeded in 0ms:
#!/usr/bin/env python3
"""
Fit simple V_c scale models only after the fit-ready denominator gate.

The input is the fit-ready scale table. This tool does not recompute spectra.
It compares small two-parameter model families on rows whose denominator is
complete or contaminated, and reports broken rows as excluded mass.
"""

from __future__ import annotations

import argparse
import json
import math
from pathlib import Path


ADMISSIBLE_STATES = {"complete", "contaminated"}


def mean(values: list[float]) -> float:
    return sum(values) / len(values)


def variance(values: list[float]) -> float:
    mu = mean(values)
    return sum((value - mu) ** 2 for value in values)


def fit_line(xs: list[float], ys: list[float]) -> tuple[float, float, list[float]]:
    x_mean = mean(xs)
    y_mean = mean(ys)
    denom = sum((x - x_mean) ** 2 for x in xs)
    if denom == 0:
        intercept = y_mean
        slope = 0.0
    else:
        slope = sum((x - x_mean) * (y - y_mean) for x, y in zip(xs, ys)) / denom
        intercept = y_mean - slope * x_mean
    predictions = [intercept + slope * x for x in xs]
    return intercept, slope, predictions


def leave_one_out(xs: list[float], ys: list[float]) -> float | None:
    if len(xs) < 3:
        return None
    errors: list[float] = []
    for index in range(len(xs)):
        train_xs = [x for i, x in enumerate(xs) if i != index]
        train_ys = [y for i, y in enumerate(ys) if i != index]
        intercept, slope, _ = fit_line(train_xs, train_ys)
        predicted = intercept + slope * xs[index]
        errors.append((ys[index] - predicted) ** 2)
    return sum(errors) / len(errors)


def transform_x(name: str, n_value: float) -> float:
    if name == "linear_N":
        return n_value
    if name == "log_N":
        return math.log(n_value)
    if name == "inv_sqrt_N":
        return 1.0 / math.sqrt(n_value)
    if name == "inv_N":
        return 1.0 / n_value
    if name == "power_to_zero":
        return math.log(n_value)
    raise ValueError(f"unknown model {name}")


def fit_model(name: str, points: list[list[float]]) -> dict:
    ns = [float(point[0]) for point in points]
    ys = [float(point[1]) for point in points]
    if name == "power_to_zero":
        if any(y <= 0 for y in ys):
            return {"model": name, "fit_status": "invalid_nonpositive_y"}
        fit_ys = [math.log(y) for y in ys]
    else:
        fit_ys = ys

    xs = [transform_x(name, n_value) for n_value in ns]
    intercept, slope, transformed_predictions = fit_line(xs, fit_ys)
    if name == "power_to_zero":
        predictions = [math.exp(value) for value in transformed_predictions]
    else:
        predictions = transformed_predictions

    residuals = [y - pred for y, pred in zip(ys, predictions)]
    rss = sum(value * value for value in residuals)
    tss = variance(ys)
    n = len(points)
    k = 2
    aic = n * math.log(max(rss / n, 1e-15)) + 2 * k
    aicc = aic + (2 * k * (k + 1)) / max(n - k - 1, 1)
    return {
        "model": name,
        "fit_status": "ok",
        "intercept": intercept,
        "slope": slope,
        "rss": rss,
        "aicc": aicc,
        "r2": None if tss == 0 else 1.0 - (rss / tss),
        "loocv_mse": leave_one_out(xs, ys if name != "power_to_zero" else fit_ys),
        "predictions": [[int(n_value), pred] for n_value, pred in zip(ns, predictions)],
    }


def unit_limit_check(points: list[list[float]]) -> dict:
    below = [point for point in points if float(point[1]) < 1.0]
    return {
        "last_value": float(points[-1][1]) if points else None,
        "below_unit_count": len(below),
        "below_unit_N": [int(point[0]) for point in below],
        "unit_limit_status": "violated_in_observed_window" if below else "not_violated",
    }


def summarize_row(row: dict) -> dict:
    points = row.get("fit_points", [])
    model_names = ["linear_N", "log_N", "inv_sqrt_N", "inv_N", "power_to_zero"]
    fits = [fit_model(name, points) for name in model_names]
    ok_fits = [fit for fit in fits if fit.get("fit_status") == "ok"]
    best = min(ok_fits, key=lambda fit: fit["aicc"]) if ok_fits else None
    second = sorted(ok_fits, key=lambda fit: fit["aicc"])[1] if len(ok_fits) > 1 else None
    delta_aicc = None if not best or not second else second["aicc"] - best["aicc"]
    return {
        "level": row["level"],
        "class_threshold": row["class_threshold"],
        "denominator_state": row["denominator_state"],
        "fit_ready_rows": row["fit_ready_rows"],
        "total_rows": row["total_rows"],
        "excluded_rows": row["excluded_rows"],
        "fit_points": points,
        "unit_limit_check": unit_limit_check(points),
        "best_model": None if not best else best["model"],
        "delta_aicc_to_second": delta_aicc,
        "model_fits": fits,
    }


def run(args: argparse.Namespace) -> dict:
    source = Path(args.input)
    data = json.loads(source.read_text(encoding="utf-8"))
    rows = data.get("rows", [])
    admissible = [
        row for row in rows if row.get("denominator_state") in ADMISSIBLE_STATES
    ]
    excluded = [
        row for row in rows if row.get("denominator_state") not in ADMISSIBLE_STATES
    ]
    summaries = [summarize_row(row) for row in admissible if len(row.get("fit_points", [])) >= 3]

    best_index: dict[str, int] = {}
    for summary in summaries:
        best_index[summary["best_model"]] = best_index.get(summary["best_model"], 0) + 1

    ambiguous = [
        f"{summary['level']}:{summary['class_threshold']}"
        for summary in summaries
        if summary["delta_aicc_to_second"] is not None
        and summary["delta_aicc_to_second"] < args.min_delta_aicc
    ]

    unit_violations = [
        f"{summary['level']}:{summary['class_threshold']}"
        for summary in summaries
        if summary["unit_limit_check"]["unit_limit_status"] == "violated_in_observed_window"
    ]

    return {
        "experiment": "vc_fit_model_gate",
        "input": str(source),
        "contract": {
            "admissible_states": sorted(ADMISSIBLE_STATES),
            "excluded_states": sorted(
                set(row.get("denominator_state", "unknown") for row in excluded)
            ),
            "model_families": [
                "a+b*N",
                "a+b*log(N)",
                "a+b/sqrt(N)",
                "a+b/N",
                "c*N^b with zero asymptote",
            ],
            "min_delta_aicc_for_unique_family": args.min_delta_aicc,
        },
        "counts": {
            "input_rows": len(rows),
            "admissible_rows": len(admissible),
            "excluded_rows": len(excluded),
            "fit_summaries": len(summaries),
        },
        "excluded_by_state": [
            {
                "level": row["level"],
                "class_threshold": row["class_threshold"],
                "denominator_state": row["denominator_state"],
                "fit_ready_rows": row["fit_ready_rows"],
                "total_rows": row["total_rows"],
                "excluded_rows": row["excluded_rows"],
            }
            for row in excluded
        ],
        "best_model_index": dict(sorted(best_index.items())),
        "ambiguous_model_rows": sorted(ambiguous),
        "unit_limit_violations": sorted(unit_violations),
        "summaries": summaries,
    }


def main() -> None:
    parser = argparse.ArgumentParser()
    parser.add_argument("--input", required=True)
    parser.add_argument("--out", required=True)
    parser.add_argument("--min-delta-aicc", type=float, default=2.0)
    args = parser.parse_args()

    output = run(args)
    out = Path(args.out)
    out.parent.mkdir(parents=True, exist_ok=True)
    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
    print(
        json.dumps(
            {
                "experiment": output["experiment"],
                "counts": output["counts"],
                "best_model_index": output["best_model_index"],
                "ambiguous_model_rows": output["ambiguous_model_rows"],
                "unit_limit_violations": output["unit_limit_violations"],
                "out": str(out),
            },
            indent=2,
        )
    )


if __name__ == "__main__":
    main()

exec
/bin/bash -lc "sed -n '1,260p' tools/exp_vc_fit_ready_scale_table.py" in /opt/MM_D-ND
 succeeded in 0ms:
#!/usr/bin/env python3
"""
Build a fit-ready scale table for V_c deposits.

The input is the direction audit JSON. This tool does not recompute spectra.
It separates rows where V_c exists from rows where the event is outside the
crossing contract before any scale curve is read.
"""

from __future__ import annotations

import argparse
import json
from pathlib import Path


def linear_slope(points: list[list[float]]) -> float | None:
    if len(points) < 2:
        return None
    xs = [float(point[0]) for point in points]
    ys = [float(point[1]) for point in points]
    x_mean = sum(xs) / len(xs)
    y_mean = sum(ys) / len(ys)
    denom = sum((x - x_mean) ** 2 for x in xs)
    if denom == 0:
        return None
    return float(sum((x - x_mean) * (y - y_mean) for x, y in zip(xs, ys)) / denom)


def denominator_state(by_n: dict[str, dict]) -> str:
    if not by_n:
        return "absent"
    has_fit_each_n = all(row.get("fit_ready_rows", 0) > 0 for row in by_n.values())
    has_exclusion = any(row.get("excluded_rows", 0) > 0 for row in by_n.values())
    if has_fit_each_n and not has_exclusion:
        return "complete"
    if has_fit_each_n and has_exclusion:
        return "contaminated"
    if any(row.get("fit_ready_rows", 0) > 0 for row in by_n.values()):
        return "broken"
    return "absent"


def summarize_entry(level: str, key: str, entry: dict) -> dict:
    by_n = entry.get("by_N", {})
    fit_points = entry.get("fit_points", [])
    total_rows = sum(int(row.get("rows", 0)) for row in by_n.values())
    total_fit = sum(int(row.get("fit_ready_rows", 0)) for row in by_n.values())
    total_excluded = sum(int(row.get("excluded_rows", 0)) for row in by_n.values())
    state = denominator_state(by_n)
    values = [float(point[1]) for point in fit_points]

    return {
        "level": level,
        "class_threshold": key,
        "denominator_state": state,
        "total_rows": total_rows,
        "fit_ready_rows": total_fit,
        "excluded_rows": total_excluded,
        "excluded_events": entry.get("excluded_events", {}),
        "event_counts": entry.get("event_counts", {}),
        "fit_points": fit_points,
        "fit_point_count": len(fit_points),
        "vc_first": values[0] if values else None,
        "vc_last": values[-1] if values else None,
        "delta_first_last": float(values[-1] - values[0]) if len(values) >= 2 else None,
        "slope_per_N": linear_slope(fit_points),
        "by_N": by_n,
    }


def build_table(data: dict, level: str) -> list[dict]:
    fit_ready = data.get(level, {}).get("fit_ready", {})
    table = fit_ready.get("by_class_threshold", {})
    return [summarize_entry(level, key, entry) for key, entry in sorted(table.items())]


def run(args: argparse.Namespace) -> dict:
    source = Path(args.input)
    data = json.loads(source.read_text(encoding="utf-8"))
    rows = build_table(data, "per_mode_best") + build_table(data, "accepted_candidates")

    by_state: dict[str, list[str]] = {}
    for row in rows:
        by_state.setdefault(row["denominator_state"], []).append(
            f"{row['level']}:{row['class_threshold']}"
        )

    return {
        "experiment": "vc_fit_ready_scale_table",
        "input": str(source),
        "contract": {
            "vc_defined": "event in {internal_cross, internal_multi}",
            "fit_ready": "vc_defined and vc_interp is not null",
            "complete": "each N has fit-ready rows and zero excluded rows",
            "contaminated": "each N has fit-ready rows and at least one excluded row",
            "broken": "at least one N has no fit-ready row",
            "absent": "no fit-ready rows in the table",
        },
        "state_index": {key: sorted(value) for key, value in sorted(by_state.items())},
        "rows": rows,
    }


def main() -> None:
    parser = argparse.ArgumentParser()
    parser.add_argument("--input", required=True)
    parser.add_argument("--out", required=True)
    args = parser.parse_args()

    output = run(args)
    out = Path(args.out)
    out.parent.mkdir(parents=True, exist_ok=True)
    out.write_text(json.dumps(output, indent=2), encoding="utf-8")

    compact = {
        "experiment": output["experiment"],
        "input": output["input"],
        "state_index": output["state_index"],
        "out": str(out),
    }
    print(json.dumps(compact, indent=2))


if __name__ == "__main__":
    main()

exec
/bin/bash -lc "sed -n '1,220p' tools/data/vc_fit_ready_scale_table_20260509_1337.json" in /opt/MM_D-ND
 succeeded in 0ms:
{
  "experiment": "vc_fit_ready_scale_table",
  "input": "tools/data/vc_generator_class_direction_audit_20260509_0846.json",
  "contract": {
    "vc_defined": "event in {internal_cross, internal_multi}",
    "fit_ready": "vc_defined and vc_interp is not null",
    "complete": "each N has fit-ready rows and zero excluded rows",
    "contaminated": "each N has fit-ready rows and at least one excluded row",
    "broken": "at least one N has no fit-ready row",
    "absent": "no fit-ready rows in the table"
  },
  "state_index": {
    "broken": [
      "accepted_candidates:periodic_closure:r0.48",
      "accepted_candidates:periodic_closure:r0.5",
      "accepted_candidates:periodic_closure:r0.52",
      "per_mode_best:random_dispersion:r0.5",
      "per_mode_best:random_dispersion:r0.52"
    ],
    "complete": [
      "accepted_candidates:order_memory:r0.52",
      "per_mode_best:order_memory:r0.48",
      "per_mode_best:order_memory:r0.5",
      "per_mode_best:order_memory:r0.52",
      "per_mode_best:reference_order:r0.48",
      "per_mode_best:reference_order:r0.5",
      "per_mode_best:reference_order:r0.52"
    ],
    "contaminated": [
      "accepted_candidates:order_memory:r0.48",
      "accepted_candidates:order_memory:r0.5",
      "per_mode_best:periodic_closure:r0.48",
      "per_mode_best:periodic_closure:r0.5",
      "per_mode_best:periodic_closure:r0.52",
      "per_mode_best:random_dispersion:r0.48"
    ]
  },
  "rows": [
    {
      "level": "per_mode_best",
      "class_threshold": "order_memory:r0.48",
      "denominator_state": "complete",
      "total_rows": 48,
      "fit_ready_rows": 48,
      "excluded_rows": 0,
      "excluded_events": {},
      "event_counts": {
        "internal_cross": 48
      },
      "fit_points": [
        [
          89,
          1.4322116756208225
        ],
        [
          144,
          1.2947847183115315
        ],
        [
          233,
          1.1440525883282828
        ],
        [
          377,
          0.8934039585145115
        ]
      ],
      "fit_point_count": 4,
      "vc_first": 1.4322116756208225,
      "vc_last": 0.8934039585145115,
      "delta_first_last": -0.538807717106311,
      "slope_per_N": -0.001831049100944114,
      "by_N": {
        "N89": {
          "rows": 12,
          "fit_ready_rows": 12,
          "excluded_rows": 0,
          "vc_missing_after_defined_rows": 0,
          "fit_ready_rate": 1.0,
          "excluded_events": {},
          "vc_median_fit_ready": 1.4322116756208225
        },
        "N144": {
          "rows": 12,
          "fit_ready_rows": 12,
          "excluded_rows": 0,
          "vc_missing_after_defined_rows": 0,
          "fit_ready_rate": 1.0,
          "excluded_events": {},
          "vc_median_fit_ready": 1.2947847183115315
        },
        "N233": {
          "rows": 12,
          "fit_ready_rows": 12,
          "excluded_rows": 0,
          "vc_missing_after_defined_rows": 0,
          "fit_ready_rate": 1.0,
          "excluded_events": {},
          "vc_median_fit_ready": 1.1440525883282828
        },
        "N377": {
          "rows": 12,
          "fit_ready_rows": 12,
          "excluded_rows": 0,
          "vc_missing_after_defined_rows": 0,
          "fit_ready_rate": 1.0,
          "excluded_events": {},
          "vc_median_fit_ready": 0.8934039585145115
        }
      }
    },
    {
      "level": "per_mode_best",
      "class_threshold": "order_memory:r0.5",
      "denominator_state": "complete",
      "total_rows": 48,
      "fit_ready_rows": 48,
      "excluded_rows": 0,
      "excluded_events": {},
      "event_counts": {
        "internal_cross": 47,
        "internal_multi": 1
      },
      "fit_points": [
        [
          89,
          1.317490444282622
        ],
        [
          144,
          1.1744827385654728
        ],
        [
          233,
          1.0423609047127196
        ],
        [
          377,
          0.7740722575832769
        ]
      ],
      "fit_point_count": 4,
      "vc_first": 1.317490444282622,
      "vc_last": 0.7740722575832769,
      "delta_first_last": -0.5434181866993452,
      "slope_per_N": -0.0018332440416887175,
      "by_N": {
        "N89": {
          "rows": 12,
          "fit_ready_rows": 12,
          "excluded_rows": 0,
          "vc_missing_after_defined_rows": 0,
          "fit_ready_rate": 1.0,
          "excluded_events": {},
          "vc_median_fit_ready": 1.317490444282622
        },
        "N144": {
          "rows": 12,
          "fit_ready_rows": 12,
          "excluded_rows": 0,
          "vc_missing_after_defined_rows": 0,
          "fit_ready_rate": 1.0,
          "excluded_events": {},
          "vc_median_fit_ready": 1.1744827385654728
        },
        "N233": {
          "rows": 12,
          "fit_ready_rows": 12,
          "excluded_rows": 0,
          "vc_missing_after_defined_rows": 0,
          "fit_ready_rate": 1.0,
          "excluded_events": {},
          "vc_median_fit_ready": 1.0423609047127196
        },
        "N377": {
          "rows": 12,
          "fit_ready_rows": 12,
          "excluded_rows": 0,
          "vc_missing_after_defined_rows": 0,
          "fit_ready_rate": 1.0,
          "excluded_events": {},
          "vc_median_fit_ready": 0.7740722575832769
        }
      }
    },
    {
      "level": "per_mode_best",
      "class_threshold": "order_memory:r0.52",
      "denominator_state": "complete",
      "total_rows": 48,
      "fit_ready_rows": 48,
      "excluded_rows": 0,
      "excluded_events": {},
      "event_counts": {
        "internal_cross": 47,
        "internal_multi": 1
      },
      "fit_points": [
        [
          89,
          1.2182330139145714
        ],
        [
          144,
          1.0439589792485444
        ],
        [
          233,
          0.9562095090921927
        ],
        [
          377,
          0.6879789588316143
        ]
      ],
      "fit_point_count": 4,
      "vc_first": 1.2182330139145714,
      "vc_last": 0.6879789588316143,
      "delta_first_last": -0.5302540550829571,
      "slope_per_N": -0.0017369160790268914,

exec
/bin/bash -lc "sed -n '1,240p' tools/data/vc_fit_model_gate_20260509_1400.json" in /opt/MM_D-ND
 succeeded in 0ms:
{
  "experiment": "vc_fit_model_gate",
  "input": "tools/data/vc_fit_ready_scale_table_20260509_1337.json",
  "contract": {
    "admissible_states": [
      "complete",
      "contaminated"
    ],
    "excluded_states": [
      "broken"
    ],
    "model_families": [
      "a+b*N",
      "a+b*log(N)",
      "a+b/sqrt(N)",
      "a+b/N",
      "c*N^b with zero asymptote"
    ],
    "min_delta_aicc_for_unique_family": 2.0
  },
  "counts": {
    "input_rows": 18,
    "admissible_rows": 13,
    "excluded_rows": 5,
    "fit_summaries": 13
  },
  "excluded_by_state": [
    {
      "level": "per_mode_best",
      "class_threshold": "random_dispersion:r0.5",
      "denominator_state": "broken",
      "fit_ready_rows": 20,
      "total_rows": 32,
      "excluded_rows": 12
    },
    {
      "level": "per_mode_best",
      "class_threshold": "random_dispersion:r0.52",
      "denominator_state": "broken",
      "fit_ready_rows": 15,
      "total_rows": 32,
      "excluded_rows": 17
    },
    {
      "level": "accepted_candidates",
      "class_threshold": "periodic_closure:r0.48",
      "denominator_state": "broken",
      "fit_ready_rows": 102,
      "total_rows": 393,
      "excluded_rows": 291
    },
    {
      "level": "accepted_candidates",
      "class_threshold": "periodic_closure:r0.5",
      "denominator_state": "broken",
      "fit_ready_rows": 102,
      "total_rows": 393,
      "excluded_rows": 291
    },
    {
      "level": "accepted_candidates",
      "class_threshold": "periodic_closure:r0.52",
      "denominator_state": "broken",
      "fit_ready_rows": 102,
      "total_rows": 393,
      "excluded_rows": 291
    }
  ],
  "best_model_index": {
    "inv_N": 4,
    "linear_N": 9
  },
  "ambiguous_model_rows": [
    "per_mode_best:order_memory:r0.52",
    "per_mode_best:periodic_closure:r0.48",
    "per_mode_best:periodic_closure:r0.5",
    "per_mode_best:periodic_closure:r0.52"
  ],
  "unit_limit_violations": [
    "accepted_candidates:order_memory:r0.5",
    "accepted_candidates:order_memory:r0.52",
    "per_mode_best:order_memory:r0.48",
    "per_mode_best:order_memory:r0.5",
    "per_mode_best:order_memory:r0.52",
    "per_mode_best:periodic_closure:r0.48",
    "per_mode_best:periodic_closure:r0.5",
    "per_mode_best:periodic_closure:r0.52",
    "per_mode_best:random_dispersion:r0.48",
    "per_mode_best:reference_order:r0.48",
    "per_mode_best:reference_order:r0.5",
    "per_mode_best:reference_order:r0.52"
  ],
  "summaries": [
    {
      "level": "per_mode_best",
      "class_threshold": "order_memory:r0.48",
      "denominator_state": "complete",
      "fit_ready_rows": 48,
      "total_rows": 48,
      "excluded_rows": 0,
      "fit_points": [
        [
          89,
          1.4322116756208225
        ],
        [
          144,
          1.2947847183115315
        ],
        [
          233,
          1.1440525883282828
        ],
        [
          377,
          0.8934039585145115
        ]
      ],
      "unit_limit_check": {
        "last_value": 0.8934039585145115,
        "below_unit_count": 1,
        "below_unit_N": [
          377
        ],
        "unit_limit_status": "violated_in_observed_window"
      },
      "best_model": "linear_N",
      "delta_aicc_to_second": 6.203379910727133,
      "model_fits": [
        {
          "model": "linear_N",
          "fit_status": "ok",
          "intercept": 1.5770068332177591,
          "slope": -0.001831049100944114,
          "rss": 0.000759090449915343,
          "aicc": -18.278735915759043,
          "r2": 0.9952474197219843,
          "loocv_mse": 0.0010520236465304375,
          "predictions": [
            [
              89,
              1.414043463233733
            ],
            [
              144,
              1.3133357626818067
            ],
            [
              233,
              1.1503723926977805
            ],
            [
              377,
              0.8867013221618282
            ]
          ]
        },
        {
          "model": "log_N",
          "fit_status": "ok",
          "intercept": 3.1045708495406865,
          "slope": -0.3672357928885428,
          "rss": 0.0035794553030265826,
          "aicc": -12.07535600503191,
          "r2": 0.9775894312975482,
          "loocv_mse": 0.005544144415214403,
          "predictions": [
            [
              89,
              1.4561829133137538
            ],
            [
              144,
              1.279477521962869
            ],
            [
              233,
              1.1027544209795503
            ],
            [
              377,
              0.9260380845189742
            ]
          ]
        },
        {
          "model": "inv_sqrt_N",
          "fit_status": "ok",
          "intercept": 0.4641798861086738,
          "slope": 9.491604833472778,
          "rss": 0.009945931546001372,
          "aicc": -7.987544249595533,
          "r2": 0.9377296366759825,
          "loocv_mse": 0.01590637455829646,
          "predictions": [
            [
              89,
              1.4702879862426004
            ],
            [
              144,
              1.2551469555647385
            ],
            [
              233,
              1.0859955934394536
            ],
            [
              377,
              0.9530224055283567
            ]
          ]
        },
        {
          "model": "inv_N",
          "fit_status": "ok",
          "intercept": 0.8276060310159522,
          "slope": 57.87233525121865,
          "rss": 0.018672096965725565,
          "aicc": -5.468077485850465,
          "r2": 0.883096092437468,
          "loocv_mse": 0.03335563111920359,
          "predictions": [
            [
              89,
              1.4778569888948134
            ],
            [
              144,
              1.229497248038304
            ],
            [
              233,
              1.0759851522658177
            ],
            [
              377,
              0.9811135515762139
            ]
          ]

codex
La misura già fatta mostra che `V_c -> 1` è fragile perché i punti alti scendono sotto 1. Il ciclo 1457 può testare il contro-movimento corretto: estendere N solo sulle classi complete (`reference_order`, `order_memory`) e vedere se il canale ordinato resta lineare o se cambia famiglia.
exec
/bin/bash -lc "sed -n '1,320p' tools/exp_vc_generator_class_direction_audit.py 2>/dev/null || true" in /opt/MM_D-ND
 succeeded in 0ms:
#!/usr/bin/env python3
"""
Class-conditional direction audit for the V_c generator gate.

This tool does not recompute spectra. It reads a JSON deposit produced by
exp_vc_nonsturmian_label_null_gate.py and asks whether V_c scale behavior is
legible only after source_mode is typed into generator classes.
"""

from __future__ import annotations

import argparse
import json
from collections import Counter, defaultdict
from pathlib import Path
from statistics import median

VC_DEFINED_EVENTS = {"internal_cross", "internal_multi"}


def generator_class(source_mode: str) -> str:
    if source_mode == "phi_sturmian":
        return "reference_order"
    if source_mode.startswith("block_shuffle_"):
        return "order_memory"
    if source_mode.startswith("periodic_approximant_"):
        return "periodic_closure"
    if source_mode in {"balanced_random", "markov_density"}:
        return "random_dispersion"
    return "untyped"


def safe_median(values: list[float]) -> float | None:
    if not values:
        return None
    return float(median(values))


def event_rates(rows: list[dict]) -> dict:
    counts = Counter(row["event"] for row in rows)
    total = len(rows)
    vc_defined_rows = [row for row in rows if row.get("event") in VC_DEFINED_EVENTS]
    fit_ready_rows = [row for row in vc_defined_rows if row.get("vc_interp") is not None]
    out = {"rows": total, "events": dict(sorted(counts.items()))}
    for event, count in sorted(counts.items()):
        out[f"{event}_rate"] = count / total if total else None
    out["vc_defined_rows"] = len(vc_defined_rows)
    out["fit_ready_rows"] = len(fit_ready_rows)
    out["excluded_rows"] = total - len(vc_defined_rows)
    out["fit_ready_rate"] = len(fit_ready_rows) / total if total else None
    out["excluded_rate"] = (total - len(vc_defined_rows)) / total if total else None
    out["vc_missing_after_defined_rows"] = len(vc_defined_rows) - len(fit_ready_rows)
    return out


def slope_by_n(points: list[tuple[int, float]]) -> float | None:
    if len(points) < 2:
        return None
    points = sorted(points)
    x_mean = sum(n for n, _ in points) / len(points)
    y_mean = sum(value for _, value in points) / len(points)
    denom = sum((n - x_mean) ** 2 for n, _ in points)
    if denom == 0:
        return None
    return float(sum((n - x_mean) * (value - y_mean) for n, value in points) / denom)


def summarize_rows(rows: list[dict]) -> dict:
    grouped: dict[tuple[int, str, float], list[dict]] = defaultdict(list)
    for row in rows:
        grouped[(int(row["N"]), generator_class(row["source_mode"]), float(row["r_threshold"]))].append(row)

    by_n_class_threshold = {}
    trend_points: dict[tuple[str, float], list[tuple[int, float]]] = defaultdict(list)
    rate_points: dict[tuple[str, float, str], list[tuple[int, float]]] = defaultdict(list)

    for (n, klass, threshold), group in sorted(grouped.items()):
        vc_values = [row["vc_interp"] for row in group if row.get("vc_interp") is not None]
        summary = {
            **event_rates(group),
            "vc_median": safe_median(vc_values),
            "label_jaccard_median": safe_median([float(row["label_jaccard"]) for row in group]),
            "hamming_ratio_median": safe_median([float(row["hamming_ratio"]) for row in group]),
        }
        by_n_class_threshold[f"N{n}:{klass}:r{threshold:g}"] = summary
        if summary["vc_median"] is not None:
            trend_points[(klass, threshold)].append((n, summary["vc_median"]))
        for event in ("internal_cross", "internal_multi", "no_cross", "floor_hit"):
            rate = summary.get(f"{event}_rate")
            if rate is not None:
                rate_points[(klass, threshold, event)].append((n, float(rate)))

    trends = {}
    for key, points in sorted(trend_points.items()):
        klass, threshold = key
        values = [value for _, value in sorted(points)]
        trends[f"{klass}:r{threshold:g}:vc_median"] = {
            "points": [[n, value] for n, value in sorted(points)],
            "delta_first_last": float(values[-1] - values[0]) if len(values) >= 2 else None,
            "slope_per_N": slope_by_n(points),
        }

    rate_trends = {}
    for key, points in sorted(rate_points.items()):
        klass, threshold, event = key
        values = [value for _, value in sorted(points)]
        rate_trends[f"{klass}:r{threshold:g}:{event}_rate"] = {
            "points": [[n, value] for n, value in sorted(points)],
            "delta_first_last": float(values[-1] - values[0]) if len(values) >= 2 else None,
        }

    return {
        "by_n_class_threshold": by_n_class_threshold,
        "vc_trends": trends,
        "event_rate_trends": rate_trends,
        "fit_ready": summarize_fit_ready(rows),
    }


def summarize_fit_ready(rows: list[dict]) -> dict:
    """Build the explicit fit-ready contract.

    V_c is not a neutral missing value: it only exists for event rows whose
    event type preserves a crossing. The fit table therefore separates
    fit-ready mass from excluded mass before any scale curve is read.
    """
    grouped: dict[tuple[str, float], list[dict]] = defaultdict(list)
    for row in rows:
        grouped[(generator_class(row["source_mode"]), float(row["r_threshold"]))].append(row)

    by_class_threshold = {}
    for (klass, threshold), group in sorted(grouped.items()):
        by_n: dict[int, list[dict]] = defaultdict(list)
        for row in group:
            by_n[int(row["N"])].append(row)

        n_summary = {}
        fit_points = []
        excluded_events_total = Counter()
        event_counts_total = Counter(row["event"] for row in group)
        for n, n_rows in sorted(by_n.items()):
            fit_rows = [
                row for row in n_rows
                if row.get("event") in VC_DEFINED_EVENTS and row.get("vc_interp") is not None
            ]
            excluded_rows = [row for row in n_rows if row.get("event") not in VC_DEFINED_EVENTS]
            missing_rows = [
                row for row in n_rows
                if row.get("event") in VC_DEFINED_EVENTS and row.get("vc_interp") is None
            ]
            excluded_events = Counter(row["event"] for row in excluded_rows)
            excluded_events_total.update(excluded_events)
            vc_median = safe_median([row["vc_interp"] for row in fit_rows])
            if vc_median is not None:
                fit_points.append((n, vc_median))
            n_summary[f"N{n}"] = {
                "rows": len(n_rows),
                "fit_ready_rows": len(fit_rows),
                "excluded_rows": len(excluded_rows),
                "vc_missing_after_defined_rows": len(missing_rows),
                "fit_ready_rate": len(fit_rows) / len(n_rows) if n_rows else None,
                "excluded_events": dict(sorted(excluded_events.items())),
                "vc_median_fit_ready": vc_median,
            }

        values = [value for _, value in sorted(fit_points)]
        by_class_threshold[f"{klass}:r{threshold:g}"] = {
            "event_counts": dict(sorted(event_counts_total.items())),
            "excluded_events": dict(sorted(excluded_events_total.items())),
            "by_N": n_summary,
            "fit_points": [[n, value] for n, value in sorted(fit_points)],
            "fit_delta_first_last": float(values[-1] - values[0]) if len(values) >= 2 else None,
            "fit_slope_per_N": slope_by_n(fit_points),
        }

    return {
        "contract": {
            "vc_defined": "event in {internal_cross, internal_multi}",
            "fit_ready": "vc_defined and vc_interp is not null",
            "excluded_mass": "event outside {internal_cross, internal_multi}; report as excluded, not as neutral missing data",
        },
        "by_class_threshold": by_class_threshold,
    }


def run(args: argparse.Namespace) -> dict:
    source = Path(args.input)
    data = json.loads(source.read_text(encoding="utf-8"))
    event_rows = data.get("event_rows", [])
    accepted_event_rows = data.get("accepted_event_rows", [])

    return {
        "experiment": "vc_generator_class_direction_audit",
        "input": str(source),
        "parameters": vars(args),
        "vc_defined_contract": {
            "vc_defined_events": sorted(VC_DEFINED_EVENTS),
            "vc_defined": "event in {internal_cross, internal_multi}",
            "fit_ready": "vc_defined and vc_interp is not null",
            "excluded_mass_policy": "Keep no_cross/floor_hit outside fit denominators and report them as excluded mass.",
        },
        "per_mode_best": summarize_rows(event_rows),
        "accepted_candidates": summarize_rows(accepted_event_rows),
    }


def main() -> None:
    parser = argparse.ArgumentParser()
    parser.add_argument("--input", required=True)
    parser.add_argument("--out", required=True)
    args = parser.parse_args()

    output = run(args)
    out = Path(args.out)
    out.parent.mkdir(parents=True, exist_ok=True)
    out.write_text(json.dumps(output, indent=2), encoding="utf-8")

    compact = {
        "experiment": output["experiment"],
        "input": output["input"],
        "vc_defined_contract": output["vc_defined_contract"],
        "per_mode_best_vc_trends": output["per_mode_best"]["vc_trends"],
        "accepted_candidate_vc_trends": output["accepted_candidates"]["vc_trends"],
        "accepted_fit_ready": output["accepted_candidates"]["fit_ready"],
        "out": str(out),
    }
    print(json.dumps(compact, indent=2))


if __name__ == "__main__":
    main()

exec
/bin/bash -lc "sed -n '1,260p' tools/data/reports/agent_20260509_0846.md" in /opt/MM_D-ND
 succeeded in 0ms:
# Agent Report - Vc Generator Class Direction Audit
**Date**: 2026-05-09 08:46
**Piano**: 101
**Tension explored**: TENS_SCALE_TRASCENDENZA_LIMITE / TRASCENDENZA_LIMITE
**verdict**: CONSTRAINT on class-conditional V_c scaling
observables_registry: 1.0.0-2026-05-06
observables_used: [`generator_class`, `source_mode`, `event_type`, `vc_interp`, `label_jaccard`, `hamming_ratio`, `internal_cross_rate`, `no_cross_rate`, `floor_hit_rate`] - osservabili domain-native, non canonici SR/SR2/L1/L2/triple_var
**observable_contract**: claim=il fit di scala di `V_c` rientra solo dopo tipizzazione del generatore; observable=`vc_median` e rate di evento separati per `generator_class` e `r_threshold`; operator=audit direzionale sul deposito row-aligned `agent_20260509_0837`, senza ricomputare spettri; generator=classi `reference_order`, `order_memory`, `periodic_closure`, `random_dispersion`; denominator=JSON `vc_generator_class_scale_gate_20260509_0837`, `N={89,144,233,377}`, phase `{0,0.25,0.5,0.75}`, soglie `r={0.48,0.50,0.52}`, livelli separati `per_mode_best` e `accepted_candidates`; non_possible=se una classe produce `no_cross`, `V_c` non esiste per quelle righe e il fit di scala non e' definito; not_tested=nuovi N oltre 377, nuovi generatori, nuovo calcolo spettrale, gap_ratio, power-law fit parametrico.

## Respiro fuori-tempo
- **Prima impressione**: il fit non fallisce per rumore numerico; fallisce perche' alcune righe non hanno piu' un attraversamento da fittare.
- **Combo**: A2 confine det=-1 + A9 terzo incluso + QxG continuo/discreto + grafo delle classi operative + tensione `TENS_SCALE_TRASCENDENZA_LIMITE`.
- **Dipolo / punto-zero**: `V_c` come valore / `V_c` come evento definito; punto-zero = la riga prima della classificazione `internal_cross/no_cross/floor_hit`, dove il valore e la sua esistenza non sono ancora separati.
- **Piano superiore**: grafo della conoscenza e bicono-dipoli. Il nodo non e' la curva di scala, ma il tipo di arco che collega label reader, generatore ed evento.
- **Operatori laterali scelti**: boundary operator, filtrazione per classe, grafo dei morfismi. Entrano per separare esistenza dell'attraversamento, direzione del valore e classe che conserva o rompe il ponte.
- **Contaminazione cognitiva**:
  - **CE-0001 / KSAR**: reiterazione sul deposito 08:37, senza cambiare campo dati.
  - **CE-0117**: cascata della possibilita; la consecutio 08:37 viene contratta in audit di direzione.
  - **YSN DeltaLink**: il link utile e' `generator_class -> event_type -> vc_defined`, non `N -> V_c`.
  - **PVI attack**: un trend numerico di `vc_median` e' illegittimo quando il denominatore perde le righe `no_cross`; per questo il report separa trend e rate evento.
- **Proto-ipotesi**: `V_c` ha una direzione di scala leggibile solo per le classi che mantengono `internal_cross`. Dove la classe produce `no_cross`, la scala non e' un cattivo fit: e' non-definita per costruzione osservabile.
- **Proiezione**: leggo lo stesso JSON 08:37 con uno strumento nuovo che stratifica per `generator_class`, `r_threshold` e livello di aggregazione. Se i trend cambiano quando passo da `per_mode_best` ad `accepted_candidates`, il denominatore e' parte atomica del claim.

## Claim Under Test
> Nel perimetro `N={89,144,233,377}`, la scala di `V_c` e' interpretabile solo dopo il gate `generator_class + event_type`: `order_memory` resta fittabile, `periodic_closure` diventa non-fittabile quando gli accepted sono `no_cross`, `random_dispersion` non entra negli accepted.

## Question
Il fallimento del fit di scala deriva da una forma non power-law comune, oppure dal fatto che classi diverse producono denominatori diversi per l'esistenza stessa di `V_c`?

## Experiment Design
- Nuovo strumento: `tools/exp_vc_generator_class_direction_audit.py`.
- Input: `tools/data/vc_generator_class_scale_gate_20260509_0837.json`.
- Nessun nuovo spettro calcolato: audit sul deposito verificato del ciclo precedente.
- Classi: `reference_order=phi_sturmian`, `order_memory=block_shuffle_*`, `periodic_closure=periodic_approximant_*`, `random_dispersion=balanced_random+markov_density`.
- Due livelli separati:
  - `per_mode_best`: best per modo, include rejected best quando presenti.
  - `accepted_candidates`: solo candidati accepted dal gate label-preserving.
- Denominatori grezzi dichiarati per `r_threshold=0.50`; le altre soglie sono nel JSON.

## Results

Trend `vc_median` per `per_mode_best`, soglia `r=0.50`:

| class | N=89 | N=144 | N=233 | N=377 | delta 89->377 |
|---|---:|---:|---:|---:|---:|
| reference_order | 1.191 | 1.109 | 1.053 | 0.879 | -0.312 |
| order_memory | 1.317 | 1.174 | 1.042 | 0.774 | -0.543 |
| periodic_closure | 0.999 | 0.662 | 0.648 | 0.650 | -0.349 |
| random_dispersion | 0.763 | 0.606 | 0.521 | 0.500 | -0.263 |

Event rates `per_mode_best`, soglia `r=0.50`:

| class | N=89 | N=144 | N=233 | N=377 |
|---|---:|---:|---:|---:|
| reference_order internal_cross | 4/4 | 4/4 | 4/4 | 4/4 |
| order_memory internal_cross | 12/12 | 12/12 | 12/12 | 11/12 + 1 internal_multi |
| periodic_closure internal_cross | 11/11 | 9/12 | 9/12 | 7/12 |
| periodic_closure no_cross | 0/11 | 3/12 | 3/12 | 5/12 |
| random_dispersion floor_hit | 0/8 | 1/8 | 3/8 | 8/8 |

Accepted candidates, soglia `r=0.50`:

| class | N=89 | N=144 | N=233 | N=377 |
|---|---:|---:|---:|---:|
| order_memory events | 98 internal_cross + 6 internal_multi / 104 | 29 internal_cross / 29 | 116 internal_cross + 1 internal_multi + 1 no_cross / 118 | 27 internal_cross + 1 internal_multi / 28 |
| order_memory vc_median | 1.350 | 1.341 | 1.229 | 0.899 |
| periodic_closure events | 99 internal_cross / 99 | 3 internal_cross + 48 no_cross / 51 | 144 no_cross / 144 | 99 no_cross / 99 |
| periodic_closure vc_median | 1.593 | 0.605 | non definito | non definito |
| random_dispersion accepted | 0 | 0 | 0 | 0 |

## Key Findings
1. **Verificato: `order_memory` resta fittabile nel perimetro testato.** Sugli accepted a `r=0.50`, `order_memory` conserva evento definito in `278/279` righe con crossing o multi-crossing, con un solo `no_cross` a N=233 contato nel deposito come edge case.
2. **Verificato: `periodic_closure` perde il denominatore `V_c` sugli accepted al crescere di N.** A N=233 produce `144/144 no_cross`; a N=377 produce `99/99 no_cross`. In queste righe `vc_interp=None`, quindi il fit non e' un fit povero: non e' definito.
3. **Verificato: il livello `per_mode_best` e il livello `accepted_candidates` dicono cose diverse.** Nel best-per-mode, `periodic_closure` conserva ancora alcuni crossing a N=233 e N=377; negli accepted candidati gli stessi N collassano a `no_cross` pieno. I due livelli non vanno saldati.
4. **Verificato: `random_dispersion` non entra nel gate accepted.** Nel best-per-mode tende al bordo minimo (`floor_hit=8/8` a N=377), ma ha `0` accepted nel deposito 08:37; non puo' fungere da classe di fit.
5. **Inferito: il nodo regressivo del `Fit failed` sta nella definizione di osservabile.** Prima del fit serve dichiarare `vc_defined = event_type in {internal_cross, internal_multi}` per classe e soglia.

## Verdict
**CONSTRAINT**: `V_c` scaling non e' un osservabile atomico finche' `generator_class` ed `event_type` non sono parte del denominatore.

Nel perimetro `N={89,144,233,377}`, `order_memory` permette una curva di scala perche' mantiene crossing sugli accepted; `periodic_closure` accetta label ma rende `V_c` non definito a N=233 e N=377; `random_dispersion` resta fuori dal gate accepted. Il claim corretto non e' "il modello non e' power-law"; e':

`fit(V_c)` e' ammesso solo su righe con `vc_defined=True`, stratificate per `generator_class`.

## Bicono della scoperta
- **Due radici**: valore di soglia `V_c` . esistenza dell'evento `V_c`.
- **Singolare**: la riga boundary prima che `event_type` decida se la soglia esiste, cade al floor o non attraversa.
- **Invariante di passaggio**: `vc_defined` sopravvive al passaggio tra N solo per classi che mantengono crossing; non sopravvive alla chiusura periodica accepted.
- **Campo di possibilita**: qui diventa possibile rifare il fit di scala su denominatori validi e tipizzati; qui diventa non-possibile fittare `V_c` aggregando `internal_cross`, `no_cross` e `floor_hit`.

## Consecutio
Il prossimo ciclo non deve aggiungere un nuovo fit. Deve promuovere nel contratto dello script una colonna esplicita `vc_defined` e produrre una tabella fit-ready per classe: solo righe `internal_cross/internal_multi`, con `no_cross` e `floor_hit` riportati come massa esclusa, non come assenza di dato neutra.

## Auto-audit: source flags e 5 lenti
- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/data/seme.json`, `tools/dnd_scenario.py --best`, report `agent_20260509_0837.md`, JSON `tools/data/vc_generator_class_scale_gate_20260509_0837.json`, nuovo JSON `tools/data/vc_generator_class_direction_audit_20260509_0846.json`.
- **L1 hard constraint**: il verdict e' scoped al deposito 08:37; non generalizza oltre quei generatori e N.
- **L2 count grezzi**: riportati `4/4`, `12/12`, `11/12`, `144/144`, `99/99`, `0 accepted`.
- **L3 no observable drift**: non sono testati nuovi spettri, gap_ratio, nuovi N o power-law fit parametrico.
- **L4 edge cases**: `periodic_closure` a N=89 accepted ha `99/99 internal_cross`; la caduta non e' universale su ogni N, e' transizione del denominatore sugli N alti del perimetro.
- **L5 re-discovery vs discovery**: non e' nuova scoperta che gli eventi vadano stratificati; il finding e' che `vc_interp=None` spiega il fallimento del fit meglio di una forma di scala alternativa.

## Telemetria
- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` non presenti nell'ambiente.
- Verifica script: `python -m py_compile tools/exp_vc_generator_class_direction_audit.py` completato senza errori.
- Run valido: `python tools/exp_vc_generator_class_direction_audit.py --input tools/data/vc_generator_class_scale_gate_20260509_0837.json --out tools/data/vc_generator_class_direction_audit_20260509_0846.json`.

## Files
- Script nuovo: `tools/exp_vc_generator_class_direction_audit.py`
- Data: `tools/data/vc_generator_class_direction_audit_20260509_0846.json`
- Report: `tools/data/reports/agent_20260509_0846.md`

exec
/bin/bash -lc "sed -n '1,220p' tools/data/vc_generator_class_direction_audit_20260509_0846.json" in /opt/MM_D-ND
 succeeded in 0ms:
{
  "experiment": "vc_generator_class_direction_audit",
  "input": "tools/data/vc_generator_class_scale_gate_20260509_0837.json",
  "parameters": {
    "input": "tools/data/vc_generator_class_scale_gate_20260509_0837.json",
    "out": "tools/data/vc_generator_class_direction_audit_20260509_0846.json"
  },
  "vc_defined_contract": {
    "vc_defined_events": [
      "internal_cross",
      "internal_multi"
    ],
    "vc_defined": "event in {internal_cross, internal_multi}",
    "fit_ready": "vc_defined and vc_interp is not null",
    "excluded_mass_policy": "Keep no_cross/floor_hit outside fit denominators and report them as excluded mass."
  },
  "per_mode_best": {
    "by_n_class_threshold": {
      "N89:order_memory:r0.48": {
        "rows": 12,
        "events": {
          "internal_cross": 12
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 12,
        "fit_ready_rows": 12,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 1.4322116756208225,
        "label_jaccard_median": 0.8541666666666667,
        "hamming_ratio_median": 0.0898876404494382
      },
      "N89:order_memory:r0.5": {
        "rows": 12,
        "events": {
          "internal_cross": 12
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 12,
        "fit_ready_rows": 12,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 1.317490444282622,
        "label_jaccard_median": 0.8541666666666667,
        "hamming_ratio_median": 0.0898876404494382
      },
      "N89:order_memory:r0.52": {
        "rows": 12,
        "events": {
          "internal_cross": 12
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 12,
        "fit_ready_rows": 12,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 1.2182330139145714,
        "label_jaccard_median": 0.8541666666666667,
        "hamming_ratio_median": 0.0898876404494382
      },
      "N89:periodic_closure:r0.48": {
        "rows": 11,
        "events": {
          "internal_cross": 11
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 11,
        "fit_ready_rows": 11,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 1.1241889641400176,
        "label_jaccard_median": 0.625,
        "hamming_ratio_median": 0.15730337078651685
      },
      "N89:periodic_closure:r0.5": {
        "rows": 11,
        "events": {
          "internal_cross": 11
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 11,
        "fit_ready_rows": 11,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 0.9992156077575706,
        "label_jaccard_median": 0.625,
        "hamming_ratio_median": 0.15730337078651685
      },
      "N89:periodic_closure:r0.52": {
        "rows": 11,
        "events": {
          "internal_cross": 11
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 11,
        "fit_ready_rows": 11,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 0.9015544612639744,
        "label_jaccard_median": 0.625,
        "hamming_ratio_median": 0.15730337078651685
      },
      "N89:random_dispersion:r0.48": {
        "rows": 8,
        "events": {
          "internal_cross": 2,
          "internal_multi": 6
        },
        "internal_cross_rate": 0.25,
        "internal_multi_rate": 0.75,
        "vc_defined_rows": 8,
        "fit_ready_rows": 8,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 0.8868515251339559,
        "label_jaccard_median": 0.2403846153846154,
        "hamming_ratio_median": 0.5168539325842697
      },
      "N89:random_dispersion:r0.5": {
        "rows": 8,
        "events": {
          "internal_cross": 4,
          "internal_multi": 4
        },
        "internal_cross_rate": 0.5,
        "internal_multi_rate": 0.5,
        "vc_defined_rows": 8,
        "fit_ready_rows": 8,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 0.762943738178594,
        "label_jaccard_median": 0.2403846153846154,
        "hamming_ratio_median": 0.5168539325842697
      },
      "N89:random_dispersion:r0.52": {
        "rows": 8,
        "events": {
          "floor_hit": 1,
          "internal_cross": 5,
          "internal_multi": 2
        },
        "floor_hit_rate": 0.125,
        "internal_cross_rate": 0.625,
        "internal_multi_rate": 0.25,
        "vc_defined_rows": 7,
        "fit_ready_rows": 7,
        "excluded_rows": 1,
        "fit_ready_rate": 0.875,
        "excluded_rate": 0.125,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 0.7113137821469877,
        "label_jaccard_median": 0.2403846153846154,
        "hamming_ratio_median": 0.5168539325842697
      },
      "N89:reference_order:r0.48": {
        "rows": 4,
        "events": {
          "internal_cross": 4
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 4,
        "fit_ready_rows": 4,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 1.3113064059269433,
        "label_jaccard_median": 1.0,
        "hamming_ratio_median": 0.0
      },
      "N89:reference_order:r0.5": {
        "rows": 4,
        "events": {
          "internal_cross": 4
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 4,
        "fit_ready_rows": 4,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 1.191259279354183,
        "label_jaccard_median": 1.0,
        "hamming_ratio_median": 0.0
      },
      "N89:reference_order:r0.52": {
        "rows": 4,
        "events": {
          "internal_cross": 4
        },
        "internal_cross_rate": 1.0,
        "vc_defined_rows": 4,
        "fit_ready_rows": 4,
        "excluded_rows": 0,
        "fit_ready_rate": 1.0,
        "excluded_rate": 0.0,
        "vc_missing_after_defined_rows": 0,
        "vc_median": 1.0717248880032573,
        "label_jaccard_median": 1.0,
        "hamming_ratio_median": 0.0
      },
      "N144:order_memory:r0.48": {
        "rows": 12,

exec
/bin/bash -lc "rg -n \"vc_generator|generator_class|class_threshold|order_memory|reference_order\" tools -g '*.py'" in /opt/MM_D-ND
 succeeded in 0ms:
tools/exp_vc_generator_class_direction_audit.py:21:def generator_class(source_mode: str) -> str:
tools/exp_vc_generator_class_direction_audit.py:23:        return "reference_order"
tools/exp_vc_generator_class_direction_audit.py:25:        return "order_memory"
tools/exp_vc_generator_class_direction_audit.py:71:        grouped[(int(row["N"]), generator_class(row["source_mode"]), float(row["r_threshold"]))].append(row)
tools/exp_vc_generator_class_direction_audit.py:73:    by_n_class_threshold = {}
tools/exp_vc_generator_class_direction_audit.py:85:        by_n_class_threshold[f"N{n}:{klass}:r{threshold:g}"] = summary
tools/exp_vc_generator_class_direction_audit.py:113:        "by_n_class_threshold": by_n_class_threshold,
tools/exp_vc_generator_class_direction_audit.py:129:        grouped[(generator_class(row["source_mode"]), float(row["r_threshold"]))].append(row)
tools/exp_vc_generator_class_direction_audit.py:131:    by_class_threshold = {}
tools/exp_vc_generator_class_direction_audit.py:167:        by_class_threshold[f"{klass}:r{threshold:g}"] = {
tools/exp_vc_generator_class_direction_audit.py:182:        "by_class_threshold": by_class_threshold,
tools/exp_vc_generator_class_direction_audit.py:193:        "experiment": "vc_generator_class_direction_audit",
tools/exp_vc_fit_model_gate.py:128:        "class_threshold": row["class_threshold"],
tools/exp_vc_fit_model_gate.py:158:        f"{summary['level']}:{summary['class_threshold']}"
tools/exp_vc_fit_model_gate.py:165:        f"{summary['level']}:{summary['class_threshold']}"
tools/exp_vc_fit_model_gate.py:196:                "class_threshold": row["class_threshold"],
tools/build_agent_field.py:309:            fit = (artifact.get('accepted_fit_ready') or {}).get('by_class_threshold') or {}
tools/build_agent_field.py:310:            for key in ('order_memory:r0.5', 'periodic_closure:r0.5'):
tools/exp_vc_fit_ready_scale_table.py:55:        "class_threshold": key,
tools/exp_vc_fit_ready_scale_table.py:74:    table = fit_ready.get("by_class_threshold", {})
tools/exp_vc_fit_ready_scale_table.py:86:            f"{row['level']}:{row['class_threshold']}"

exec
/bin/bash -lc "sed -n '1,360p' tools/exp_vc_generator_class_scale_gate.py 2>/dev/null || true" in /opt/MM_D-ND
 succeeded in 0ms:
exec
/bin/bash -lc "sed -n '1,380p' tools/exp_vc_nonsturmian_label_null_gate.py 2>/dev/null || true" in /opt/MM_D-ND
 succeeded in 0ms:
#!/usr/bin/env python3
"""
Non-Sturmian label-preserving null gate for the quasiperiodic V_c boundary.

The phase bridge made the label set reachable at N=144, but only inside a
Sturmian source mode. This tool asks the narrower next question: can a
non-Sturmian generator preserve the phi gap-label reader enough to pass
Jaccard>=0.75 while keeping a non-trivial Hamming distance?
"""

from __future__ import annotations

import argparse
import json
from collections import Counter
from pathlib import Path

import numpy as np

from exp_gap_label_set_stability import PHI, gap_labels, jaccard, sturmian_sequence
from exp_vc_label_preserving_swap_gate import crossing_event, curve_for_sequence, hamming_ratio


THETA = 1 / PHI
STURMIAN_SOURCE_MODES = {"phi_sturmian", "phase_shift_sturmian"}


def parse_csv_ints(value: str) -> list[int]:
    return [int(part.strip()) for part in value.split(",") if part.strip()]


def parse_csv_floats(value: str) -> list[float]:
    return [float(part.strip()) for part in value.split(",") if part.strip()]


def make_candidate_id(n: int, phase: float, source_mode: str, trial: int) -> str:
    return f"N{n}:phase{phase:g}:{source_mode}:trial{trial}"


def label_set(seq: np.ndarray, args: argparse.Namespace) -> set[int]:
    obs = gap_labels(seq, THETA, args.label_threshold, args.max_label, args.top_k)
    return set(obs["label_set"])


def score_sequence(seq: np.ndarray, reference_labels: set[int], args: argparse.Namespace) -> float:
    return float(jaccard(label_set(seq, args), reference_labels))


def balanced_random(reference: np.ndarray, rng: np.random.Generator) -> np.ndarray:
    out = np.array(reference, copy=True)
    rng.shuffle(out)
    return out


def block_shuffle(reference: np.ndarray, block_size: int, rng: np.random.Generator) -> np.ndarray:
    chunks = [reference[i : i + block_size].copy() for i in range(0, len(reference), block_size)]
    rng.shuffle(chunks)
    return np.concatenate(chunks)


def periodic_approximant(reference: np.ndarray, period: int, rng: np.random.Generator) -> np.ndarray:
    word = np.array(reference[:period], copy=True)
    out = np.resize(word, len(reference)).astype(float)
    target_ones = int(np.sum(reference))
    delta = int(target_ones - np.sum(out))
    if delta > 0:
        zeros = np.flatnonzero(out < 0.5)
        if len(zeros):
            out[rng.choice(zeros, size=min(delta, len(zeros)), replace=False)] = 1.0
    elif delta < 0:
        ones = np.flatnonzero(out > 0.5)
        if len(ones):
            out[rng.choice(ones, size=min(-delta, len(ones)), replace=False)] = 0.0
    return out


def markov_density(reference: np.ndarray, rng: np.random.Generator) -> np.ndarray:
    counts = np.ones((2, 2), dtype=float)
    bits = reference.astype(int)
    for a, b in zip(bits[:-1], bits[1:]):
        counts[a, b] += 1.0
    probs = counts / counts.sum(axis=1, keepdims=True)
    out = np.zeros(len(reference), dtype=float)
    out[0] = float(rng.choice([0, 1], p=[1 - np.mean(reference), np.mean(reference)]))
    for i in range(1, len(out)):
        prev = int(out[i - 1])
        out[i] = float(rng.choice([0, 1], p=probs[prev]))

    target_ones = int(np.sum(reference))
    delta = int(target_ones - np.sum(out))
    if delta > 0:
        zeros = np.flatnonzero(out < 0.5)
        if len(zeros):
            out[rng.choice(zeros, size=min(delta, len(zeros)), replace=False)] = 1.0
    elif delta < 0:
        ones = np.flatnonzero(out > 0.5)
        if len(ones):
            out[rng.choice(ones, size=min(-delta, len(ones)), replace=False)] = 0.0
    return out


def candidate_pool(reference: np.ndarray, rng: np.random.Generator, args: argparse.Namespace):
    block_sizes = parse_csv_ints(args.block_sizes)
    periods = parse_csv_ints(args.periods)
    for trial in range(args.random_trials):
        yield "balanced_random", trial, balanced_random(reference, rng)
    for block_size in block_sizes:
        for trial in range(args.mode_trials):
            yield f"block_shuffle_{block_size}", trial, block_shuffle(reference, block_size, rng)
    for period in periods:
        for trial in range(args.mode_trials):
            yield f"periodic_approximant_{period}", trial, periodic_approximant(reference, period, rng)
    for trial in range(args.mode_trials):
        yield "markov_density", trial, markov_density(reference, rng)


def summarize_candidates(rows: list[dict]) -> dict:
    out = {}
    for mode in sorted({row["source_mode"] for row in rows}):
        group = [row for row in rows if row["source_mode"] == mode]
        accepted = [row for row in group if row["accepted"]]
        scores = [row["label_jaccard"] for row in group]
        hamming = [row["hamming_ratio"] for row in group]
        out[mode] = {
            "candidates": len(group),
            "accepted": len(accepted),
            "acceptance_rate": float(len(accepted) / len(group)) if group else None,
            "best_label_jaccard": float(max(scores)) if scores else None,
            "median_label_jaccard": float(np.median(scores)) if scores else None,
            "median_hamming_ratio": float(np.median(hamming)) if hamming else None,
        }
    return out


def summarize_events(rows: list[dict]) -> dict:
    out = {}
    for mode in sorted({row["source_mode"] for row in rows}):
        group = [row for row in rows if row["source_mode"] == mode]
        events = Counter(row["event"] for row in group)
        vc_values = [row["vc_interp"] for row in group if row["vc_interp"] is not None]
        candidate_ids = {
            row.get("candidate_id")
            for row in group
            if row.get("candidate_id")
        }
        out[mode] = {
            "conditions": len(group),
            "candidates": len(candidate_ids) if candidate_ids else None,
            "events": dict(sorted(events.items())),
            "vc_median": float(np.median(vc_values)) if vc_values else None,
            "label_jaccard_median": float(np.median([row["label_jaccard"] for row in group])),
            "hamming_ratio_median": float(np.median([row["hamming_ratio"] for row in group])),
            "r_floor_median": float(np.median([row["r_floor"] for row in group])),
        }
    return out


def run(args: argparse.Namespace) -> dict:
    rng = np.random.default_rng(args.seed)
    ns = parse_csv_ints(args.ns)
    phases = parse_csv_floats(args.phases)
    thresholds = parse_csv_floats(args.r_thresholds)
    v_values = np.arange(args.v_min, args.v_max + args.v_step / 2, args.v_step)

    audit_rows = []
    event_rows = []
    accepted_event_rows = []
    for n in ns:
        for phase in phases:
            reference = sturmian_sequence(THETA, n, phase)
            reference_labels = label_set(reference, args)
            per_mode_best: dict[str, dict] = {
                "phi_sturmian": {
                    "candidate_id": make_candidate_id(n, phase, "phi_sturmian", 0),
                    "seq": reference,
                    "label_jaccard": 1.0,
                    "hamming_ratio": 0.0,
                    "accepted": True,
                    "trial": 0,
                }
            }

            for source_mode, trial, seq in candidate_pool(reference, rng, args):
                distance = hamming_ratio(seq, reference)
                if distance < args.min_hamming_ratio:
                    continue
                score = score_sequence(seq, reference_labels, args)
                accepted = score >= args.label_jaccard_min
                cid = make_candidate_id(n, phase, source_mode, trial)
                audit = {
                    "candidate_id": cid,
                    "N": n,
                    "phase": phase,
                    "source_mode": source_mode,
                    "trial": trial,
                    "label_jaccard": score,
                    "hamming_ratio": distance,
                    "accepted": accepted,
                }
                audit_rows.append(audit)
                if accepted:
                    r_values = curve_for_sequence(seq, v_values)
                    for threshold in thresholds:
                        accepted_event_rows.append({
                            **audit,
                            "r_threshold": threshold,
                            "event_source": "accepted_candidate",
                            **crossing_event(v_values, r_values, threshold),
                        })

                current = per_mode_best.get(source_mode)
                key = (score, distance)
                old_key = (-1.0, -1.0) if current is None else (
                    current["label_jaccard"],
                    current["hamming_ratio"],
                )
                if key > old_key:
                    per_mode_best[source_mode] = {**audit, "seq": seq}

            for source_mode, best in per_mode_best.items():
                if source_mode != "phi_sturmian" and not best["accepted"] and not args.include_rejected_best:
                    continue
                r_values = curve_for_sequence(best["seq"], v_values)
                for threshold in thresholds:
                    event_rows.append({
                        "N": n,
                        "phase": phase,
                        "source_mode": source_mode,
                        "trial": best["trial"],
                        "candidate_id": best["candidate_id"],
                        "r_threshold": threshold,
                        "label_jaccard": best["label_jaccard"],
                        "hamming_ratio": best["hamming_ratio"],
                        "accepted": best["accepted"],
                        "event_source": "per_mode_best",
                        **crossing_event(v_values, r_values, threshold),
                    })

    accepted_nonsturmian = [
        row for row in audit_rows
        if row["accepted"] and row["source_mode"] not in STURMIAN_SOURCE_MODES
    ]
    return {
        "experiment": "vc_nonsturmian_label_null_gate",
        "parameters": vars(args),
        "accepted_nonsturmian_count": len(accepted_nonsturmian),
        "candidate_summary": summarize_candidates(audit_rows),
        "event_summary": summarize_events(event_rows),
        "accepted_event_summary": summarize_events(accepted_event_rows),
        "audit_rows": audit_rows,
        "event_rows": event_rows,
        "accepted_event_rows": accepted_event_rows,
    }


def main() -> None:
    parser = argparse.ArgumentParser()
    parser.add_argument("--ns", default="144")
    parser.add_argument("--phases", default="0,0.25,0.5,0.75")
    parser.add_argument("--r-thresholds", default="0.48,0.50,0.52")
    parser.add_argument("--v-min", type=float, default=0.5)
    parser.add_argument("--v-max", type=float, default=3.0)
    parser.add_argument("--v-step", type=float, default=0.01)
    parser.add_argument("--random-trials", type=int, default=64)
    parser.add_argument("--mode-trials", type=int, default=48)
    parser.add_argument("--block-sizes", default="2,3,5,8,13,21,34")
    parser.add_argument("--periods", default="13,21,34,55,89")
    parser.add_argument("--min-hamming-ratio", type=float, default=0.03)
    parser.add_argument("--label-jaccard-min", type=float, default=0.75)
    parser.add_argument("--label-threshold", type=float, default=2.0)
    parser.add_argument("--top-k", type=int, default=12)
    parser.add_argument("--max-label", type=int, default=34)
    parser.add_argument("--seed", type=int, default=202605090819)
    parser.add_argument("--include-rejected-best", action="store_true")
    parser.add_argument("--out", default="tools/data/vc_nonsturmian_label_null_gate_20260509_0819.json")
    args = parser.parse_args()

    output = run(args)
    out = Path(args.out)
    out.parent.mkdir(parents=True, exist_ok=True)
    out.write_text(json.dumps(output, indent=2), encoding="utf-8")

    compact = {
        "accepted_nonsturmian_count": output["accepted_nonsturmian_count"],
        "candidate_summary": output["candidate_summary"],
        "event_summary": output["event_summary"],
        "accepted_event_summary": output["accepted_event_summary"],
        "out": str(out),
    }
    print(json.dumps(compact, indent=2))


if __name__ == "__main__":
    main()

exec
/bin/bash -lc 'rg -n "argparse|N-list|--n|--N|n-values|source-mode|phase|threshold" tools/exp_vc_generator_class_scale_gate.py tools/exp_vc_nonsturmian_label_null_gate.py 2>/dev/null' in /opt/MM_D-ND
 exited 2 in 0ms:
tools/exp_vc_nonsturmian_label_null_gate.py:5:The phase bridge made the label set reachable at N=144, but only inside a
tools/exp_vc_nonsturmian_label_null_gate.py:13:import argparse
tools/exp_vc_nonsturmian_label_null_gate.py:25:STURMIAN_SOURCE_MODES = {"phi_sturmian", "phase_shift_sturmian"}
tools/exp_vc_nonsturmian_label_null_gate.py:36:def make_candidate_id(n: int, phase: float, source_mode: str, trial: int) -> str:
tools/exp_vc_nonsturmian_label_null_gate.py:37:    return f"N{n}:phase{phase:g}:{source_mode}:trial{trial}"
tools/exp_vc_nonsturmian_label_null_gate.py:40:def label_set(seq: np.ndarray, args: argparse.Namespace) -> set[int]:
tools/exp_vc_nonsturmian_label_null_gate.py:41:    obs = gap_labels(seq, THETA, args.label_threshold, args.max_label, args.top_k)
tools/exp_vc_nonsturmian_label_null_gate.py:45:def score_sequence(seq: np.ndarray, reference_labels: set[int], args: argparse.Namespace) -> float:
tools/exp_vc_nonsturmian_label_null_gate.py:102:def candidate_pool(reference: np.ndarray, rng: np.random.Generator, args: argparse.Namespace):
tools/exp_vc_nonsturmian_label_null_gate.py:158:def run(args: argparse.Namespace) -> dict:
tools/exp_vc_nonsturmian_label_null_gate.py:161:    phases = parse_csv_floats(args.phases)
tools/exp_vc_nonsturmian_label_null_gate.py:162:    thresholds = parse_csv_floats(args.r_thresholds)
tools/exp_vc_nonsturmian_label_null_gate.py:169:        for phase in phases:
tools/exp_vc_nonsturmian_label_null_gate.py:170:            reference = sturmian_sequence(THETA, n, phase)
tools/exp_vc_nonsturmian_label_null_gate.py:174:                    "candidate_id": make_candidate_id(n, phase, "phi_sturmian", 0),
tools/exp_vc_nonsturmian_label_null_gate.py:189:                cid = make_candidate_id(n, phase, source_mode, trial)
tools/exp_vc_nonsturmian_label_null_gate.py:193:                    "phase": phase,
tools/exp_vc_nonsturmian_label_null_gate.py:203:                    for threshold in thresholds:
tools/exp_vc_nonsturmian_label_null_gate.py:206:                            "r_threshold": threshold,
tools/exp_vc_nonsturmian_label_null_gate.py:208:                            **crossing_event(v_values, r_values, threshold),
tools/exp_vc_nonsturmian_label_null_gate.py:224:                for threshold in thresholds:
tools/exp_vc_nonsturmian_label_null_gate.py:227:                        "phase": phase,
tools/exp_vc_nonsturmian_label_null_gate.py:231:                        "r_threshold": threshold,
tools/exp_vc_nonsturmian_label_null_gate.py:236:                        **crossing_event(v_values, r_values, threshold),
tools/exp_vc_nonsturmian_label_null_gate.py:257:    parser = argparse.ArgumentParser()
tools/exp_vc_nonsturmian_label_null_gate.py:258:    parser.add_argument("--ns", default="144")
tools/exp_vc_nonsturmian_label_null_gate.py:259:    parser.add_argument("--phases", default="0,0.25,0.5,0.75")
tools/exp_vc_nonsturmian_label_null_gate.py:260:    parser.add_argument("--r-thresholds", default="0.48,0.50,0.52")
tools/exp_vc_nonsturmian_label_null_gate.py:270:    parser.add_argument("--label-threshold", type=float, default=2.0)

codex
Creo il nuovo deposito senza cambiare gli strumenti: stesso gate label-preserving, ma con N estesi a `610,987` e stesso contratto `vc_defined`. Questo verifica se il canale ordinato regge fuori dalla finestra in cui era nato il fit.
exec
/bin/bash -lc 'python -m py_compile tools/exp_vc_nonsturmian_label_null_gate.py tools/exp_vc_generator_class_direction_audit.py tools/exp_vc_fit_ready_scale_table.py tools/exp_vc_fit_model_gate.py' in /opt/MM_D-ND
 succeeded in 0ms:
exec
/bin/bash -lc 'python tools/exp_vc_nonsturmian_label_null_gate.py --ns 89,144,233,377,610,987 --phases 0,0.25,0.5,0.75 --r-thresholds 0.48,0.50,0.52 --random-trials 64 --mode-trials 48 --seed 202605091457 --include-rejected-best --out tools/data/vc_nonsturmian_label_null_gate_20260509_1457.json' in /opt/MM_D-ND
codex
Il run esteso è in corso; è locale e usa solo numpy sugli strumenti del lab. Appena deposita il JSON passo agli audit secondari senza introdurre nuovi parametri interpretativi.
codex
Il tempo è speso nel calcolo delle curve `V_c` sui candidati accettati, non in rete o API. Tengo il perimetro così com’è perché la comparabilità con 08:37 vale più di una scorciatoia sui trial.
codex
Il run completo sta superando il tempo tipico ma resta sotto il budget del ciclo. Se emerge troppo pesante, il dato stesso è telemetria sul denominatore esteso; per ora lascio finire invece di cambiare perimetro a metà.
codex
Il perimetro pieno non deposita output in tempo utile. Lo interrompo e restringo il run esteso mantenendo la stessa domanda: N alti, fasi uguali, classi presenti, ma meno trial. Questo è coerente con “atto minimo, osserva, reitera” invece di forzare un run pesante.
2026-05-09T15:02:24.351319Z ERROR codex_core::tools::router: error=write_stdin failed: stdin is closed for this session; rerun exec_command with tty=true to keep stdin open
exec
/bin/bash -lc "ps -eo pid,etime,cmd | rg 'exp_vc_nonsturmian_label_null_gate.py|PID'" in /opt/MM_D-ND
 succeeded in 0ms:
    PID     ELAPSED CMD
      1       00:00 /root/.codex-lab/tmp/arg0/codex-arg02ZCQ8L/codex-linux-sandbox --sandbox-policy-cwd /opt/MM_D-ND --command-cwd /opt/MM_D-ND --sandbox-policy {"type":"workspace-write","writable_roots":["/root/.codex-lab/memories"],"network_access":false,"exclude_tmpdir_env_var":false,"exclude_slash_tmp":false} --file-system-sandbox-policy {"kind":"restricted","entries":[{"path":{"type":"special","value":{"kind":"root"}},"access":"read"},{"path":{"type":"special","value":{"kind":"current_working_directory"}},"access":"write"},{"path":{"type":"special","value":{"kind":"slash_tmp"}},"access":"write"},{"path":{"type":"special","value":{"kind":"tmpdir"}},"access":"write"},{"path":{"type":"path","path":"/root/.codex-lab/memories"},"access":"write"},{"path":{"type":"path","path":"/opt/MM_D-ND/.git"},"access":"read"},{"path":{"type":"path","path":"/opt/MM_D-ND/.codex"},"access":"read"}]} --network-sandbox-policy "restricted" -- /bin/bash -c __CODEX_SNAPSHOT_OVERRIDE_SET_0="${CODEX_THREAD_ID+x}" __CODEX_SNAPSHOT_OVERRIDE_0="${CODEX_THREAD_ID-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_0="${ALL_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_0="${ALL_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_1="${BUNDLE_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_1="${BUNDLE_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_2="${BUNDLE_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_2="${BUNDLE_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_3="${BUNDLE_NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_3="${BUNDLE_NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_4="${CODEX_NETWORK_ALLOW_LOCAL_BINDING+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_4="${CODEX_NETWORK_ALLOW_LOCAL_BINDING-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_5="${CODEX_NETWORK_PROXY_ACTIVE+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_5="${CODEX_NETWORK_PROXY_ACTIVE-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_6="${DOCKER_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_6="${DOCKER_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_7="${DOCKER_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_7="${DOCKER_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_8="${ELECTRON_GET_USE_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_8="${ELECTRON_GET_USE_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_9="${FTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_9="${FTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_10="${HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_10="${HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_11="${HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_11="${HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_12="${NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_12="${NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_13="${NPM_CONFIG_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_13="${NPM_CONFIG_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_14="${NPM_CONFIG_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_14="${NPM_CONFIG_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_15="${NPM_CONFIG_NOPROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_15="${NPM_CONFIG_NOPROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_16="${NPM_CONFIG_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_16="${NPM_CONFIG_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_17="${PIP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_17="${PIP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_18="${WSS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_18="${WSS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_19="${WS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_19="${WS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_20="${YARN_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_20="${YARN_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_21="${YARN_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_21="${YARN_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_22="${YARN_NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_22="${YARN_NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_23="${all_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_23="${all_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_24="${ftp_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_24="${ftp_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_25="${http_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_25="${http_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_26="${https_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_26="${https_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_27="${no_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_27="${no_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_28="${npm_config_http_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_28="${npm_config_http_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_29="${npm_config_https_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_29="${npm_config_https_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_30="${npm_config_noproxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_30="${npm_config_noproxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_31="${npm_config_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_31="${npm_config_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_32="${ws_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_32="${ws_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_33="${wss_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_33="${wss_proxy-}" __CODEX_SNAPSHOT_PROXY_ENV_SET="${CODEX_NETWORK_PROXY_ACTIVE+x}"  if . '/root/.codex-lab/shell_snapshots/019e0d3e-9497-7781-baac-8fb5b6c46d52.1778338665636524390.sh' >/dev/null 2>&1; then :; fi  if [ -n "${__CODEX_SNAPSHOT_OVERRIDE_SET_0}" ]; then export CODEX_THREAD_ID="${__CODEX_SNAPSHOT_OVERRIDE_0}"; else unset CODEX_THREAD_ID; fi if [ -n "$__CODEX_SNAPSHOT_PROXY_ENV_SET" ] || [ -n "${CODEX_NETWORK_PROXY_ACTIVE+x}" ]; then if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_0}" ]; then export ALL_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_0}"; else unset ALL_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_1}" ]; then export BUNDLE_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_1}"; else unset BUNDLE_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_2}" ]; then export BUNDLE_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_2}"; else unset BUNDLE_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_3}" ]; then export BUNDLE_NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_3}"; else unset BUNDLE_NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_4}" ]; then export CODEX_NETWORK_ALLOW_LOCAL_BINDING="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_4}"; else unset CODEX_NETWORK_ALLOW_LOCAL_BINDING; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_5}" ]; then export CODEX_NETWORK_PROXY_ACTIVE="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_5}"; else unset CODEX_NETWORK_PROXY_ACTIVE; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_6}" ]; then export DOCKER_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_6}"; else unset DOCKER_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_7}" ]; then export DOCKER_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_7}"; else unset DOCKER_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_8}" ]; then export ELECTRON_GET_USE_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_8}"; else unset ELECTRON_GET_USE_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_9}" ]; then export FTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_9}"; else unset FTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_10}" ]; then export HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_10}"; else unset HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_11}" ]; then export HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_11}"; else unset HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_12}" ]; then export NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_12}"; else unset NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_13}" ]; then export NPM_CONFIG_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_13}"; else unset NPM_CONFIG_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_14}" ]; then export NPM_CONFIG_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_14}"; else unset NPM_CONFIG_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_15}" ]; then export NPM_CONFIG_NOPROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_15}"; else unset NPM_CONFIG_NOPROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_16}" ]; then export NPM_CONFIG_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_16}"; else unset NPM_CONFIG_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_17}" ]; then export PIP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_17}"; else unset PIP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_18}" ]; then export WSS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_18}"; else unset WSS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_19}" ]; then export WS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_19}"; else unset WS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_20}" ]; then export YARN_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_20}"; else unset YARN_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_21}" ]; then export YARN_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_21}"; else unset YARN_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_22}" ]; then export YARN_NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_22}"; else unset YARN_NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_23}" ]; then export all_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_23}"; else unset all_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_24}" ]; then export ftp_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_24}"; else unset ftp_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_25}" ]; then export http_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_25}"; else unset http_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_26}" ]; then export https_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_26}"; else unset https_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_27}" ]; then export no_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_27}"; else unset no_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_28}" ]; then export npm_config_http_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_28}"; else unset npm_config_http_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_29}" ]; then export npm_config_https_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_29}"; else unset npm_config_https_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_30}" ]; then export npm_config_noproxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_30}"; else unset npm_config_noproxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_31}" ]; then export npm_config_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_31}"; else unset npm_config_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_32}" ]; then export ws_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_32}"; else unset ws_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_33}" ]; then export wss_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_33}"; else unset wss_proxy; fi fi  exec '/bin/bash' -c 'ps -eo pid,etime,cmd | rg '"'"'exp_vc_nonsturmian_label_null_gate.py|PID'"'"''
      2       00:00 /bin/bash -c ps -eo pid,etime,cmd | rg 'exp_vc_nonsturmian_label_null_gate.py|PID'
      4       00:00 rg exp_vc_nonsturmian_label_null_gate.py|PID

exec
/bin/bash -lc 'python tools/exp_vc_nonsturmian_label_null_gate.py --ns 89,144,233,377,610 --phases 0,0.25 --r-thresholds 0.50 --random-trials 0 --mode-trials 12 --block-sizes 2,3,5,8,13 --periods 13,21,34 --seed 202605091457 --include-rejected-best --out tools/data/vc_nonsturmian_label_null_gate_min_20260509_1457.json' in /opt/MM_D-ND
exec
/bin/bash -lc "ps -eo pid,etime,cmd | rg 'python tools/exp_vc_nonsturmian|PID'" in /opt/MM_D-ND
 succeeded in 0ms:
    PID     ELAPSED CMD
      1       00:00 /root/.codex-lab/tmp/arg0/codex-arg02ZCQ8L/codex-linux-sandbox --sandbox-policy-cwd /opt/MM_D-ND --command-cwd /opt/MM_D-ND --sandbox-policy {"type":"workspace-write","writable_roots":["/root/.codex-lab/memories"],"network_access":false,"exclude_tmpdir_env_var":false,"exclude_slash_tmp":false} --file-system-sandbox-policy {"kind":"restricted","entries":[{"path":{"type":"special","value":{"kind":"root"}},"access":"read"},{"path":{"type":"special","value":{"kind":"current_working_directory"}},"access":"write"},{"path":{"type":"special","value":{"kind":"slash_tmp"}},"access":"write"},{"path":{"type":"special","value":{"kind":"tmpdir"}},"access":"write"},{"path":{"type":"path","path":"/root/.codex-lab/memories"},"access":"write"},{"path":{"type":"path","path":"/opt/MM_D-ND/.git"},"access":"read"},{"path":{"type":"path","path":"/opt/MM_D-ND/.codex"},"access":"read"}]} --network-sandbox-policy "restricted" -- /bin/bash -c __CODEX_SNAPSHOT_OVERRIDE_SET_0="${CODEX_THREAD_ID+x}" __CODEX_SNAPSHOT_OVERRIDE_0="${CODEX_THREAD_ID-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_0="${ALL_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_0="${ALL_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_1="${BUNDLE_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_1="${BUNDLE_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_2="${BUNDLE_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_2="${BUNDLE_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_3="${BUNDLE_NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_3="${BUNDLE_NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_4="${CODEX_NETWORK_ALLOW_LOCAL_BINDING+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_4="${CODEX_NETWORK_ALLOW_LOCAL_BINDING-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_5="${CODEX_NETWORK_PROXY_ACTIVE+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_5="${CODEX_NETWORK_PROXY_ACTIVE-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_6="${DOCKER_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_6="${DOCKER_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_7="${DOCKER_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_7="${DOCKER_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_8="${ELECTRON_GET_USE_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_8="${ELECTRON_GET_USE_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_9="${FTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_9="${FTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_10="${HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_10="${HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_11="${HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_11="${HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_12="${NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_12="${NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_13="${NPM_CONFIG_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_13="${NPM_CONFIG_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_14="${NPM_CONFIG_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_14="${NPM_CONFIG_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_15="${NPM_CONFIG_NOPROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_15="${NPM_CONFIG_NOPROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_16="${NPM_CONFIG_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_16="${NPM_CONFIG_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_17="${PIP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_17="${PIP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_18="${WSS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_18="${WSS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_19="${WS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_19="${WS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_20="${YARN_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_20="${YARN_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_21="${YARN_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_21="${YARN_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_22="${YARN_NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_22="${YARN_NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_23="${all_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_23="${all_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_24="${ftp_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_24="${ftp_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_25="${http_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_25="${http_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_26="${https_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_26="${https_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_27="${no_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_27="${no_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_28="${npm_config_http_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_28="${npm_config_http_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_29="${npm_config_https_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_29="${npm_config_https_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_30="${npm_config_noproxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_30="${npm_config_noproxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_31="${npm_config_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_31="${npm_config_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_32="${ws_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_32="${ws_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_33="${wss_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_33="${wss_proxy-}" __CODEX_SNAPSHOT_PROXY_ENV_SET="${CODEX_NETWORK_PROXY_ACTIVE+x}"  if . '/root/.codex-lab/shell_snapshots/019e0d3e-9497-7781-baac-8fb5b6c46d52.1778338665636524390.sh' >/dev/null 2>&1; then :; fi  if [ -n "${__CODEX_SNAPSHOT_OVERRIDE_SET_0}" ]; then export CODEX_THREAD_ID="${__CODEX_SNAPSHOT_OVERRIDE_0}"; else unset CODEX_THREAD_ID; fi if [ -n "$__CODEX_SNAPSHOT_PROXY_ENV_SET" ] || [ -n "${CODEX_NETWORK_PROXY_ACTIVE+x}" ]; then if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_0}" ]; then export ALL_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_0}"; else unset ALL_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_1}" ]; then export BUNDLE_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_1}"; else unset BUNDLE_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_2}" ]; then export BUNDLE_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_2}"; else unset BUNDLE_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_3}" ]; then export BUNDLE_NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_3}"; else unset BUNDLE_NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_4}" ]; then export CODEX_NETWORK_ALLOW_LOCAL_BINDING="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_4}"; else unset CODEX_NETWORK_ALLOW_LOCAL_BINDING; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_5}" ]; then export CODEX_NETWORK_PROXY_ACTIVE="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_5}"; else unset CODEX_NETWORK_PROXY_ACTIVE; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_6}" ]; then export DOCKER_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_6}"; else unset DOCKER_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_7}" ]; then export DOCKER_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_7}"; else unset DOCKER_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_8}" ]; then export ELECTRON_GET_USE_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_8}"; else unset ELECTRON_GET_USE_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_9}" ]; then export FTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_9}"; else unset FTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_10}" ]; then export HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_10}"; else unset HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_11}" ]; then export HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_11}"; else unset HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_12}" ]; then export NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_12}"; else unset NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_13}" ]; then export NPM_CONFIG_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_13}"; else unset NPM_CONFIG_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_14}" ]; then export NPM_CONFIG_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_14}"; else unset NPM_CONFIG_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_15}" ]; then export NPM_CONFIG_NOPROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_15}"; else unset NPM_CONFIG_NOPROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_16}" ]; then export NPM_CONFIG_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_16}"; else unset NPM_CONFIG_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_17}" ]; then export PIP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_17}"; else unset PIP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_18}" ]; then export WSS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_18}"; else unset WSS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_19}" ]; then export WS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_19}"; else unset WS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_20}" ]; then export YARN_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_20}"; else unset YARN_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_21}" ]; then export YARN_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_21}"; else unset YARN_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_22}" ]; then export YARN_NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_22}"; else unset YARN_NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_23}" ]; then export all_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_23}"; else unset all_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_24}" ]; then export ftp_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_24}"; else unset ftp_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_25}" ]; then export http_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_25}"; else unset http_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_26}" ]; then export https_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_26}"; else unset https_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_27}" ]; then export no_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_27}"; else unset no_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_28}" ]; then export npm_config_http_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_28}"; else unset npm_config_http_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_29}" ]; then export npm_config_https_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_29}"; else unset npm_config_https_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_30}" ]; then export npm_config_noproxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_30}"; else unset npm_config_noproxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_31}" ]; then export npm_config_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_31}"; else unset npm_config_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_32}" ]; then export ws_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_32}"; else unset ws_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_33}" ]; then export wss_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_33}"; else unset wss_proxy; fi fi  exec '/bin/bash' -c 'ps -eo pid,etime,cmd | rg '"'"'python tools/exp_vc_nonsturmian|PID'"'"''
      2       00:00 /bin/bash -c ps -eo pid,etime,cmd | rg 'python tools/exp_vc_nonsturmian|PID'
      4       00:00 rg python tools/exp_vc_nonsturmian|PID

exec
/bin/bash -lc 'ls -lh tools/data/vc_nonsturmian_label_null_gate*1457*.json 2>/dev/null || true' in /opt/MM_D-ND
 succeeded in 0ms:
codex
Il run di ricomputo non ha prodotto deposito leggibile, quindi non lo uso come evidenza. Faccio il passo minimo regressivo: audito il JSON 14:00 per misurare esattamente dove `V_c=1` viene attraversato; questo testa il claim di convergenza senza introdurre nuovi spettri.
apply patch
patch: completed
/opt/MM_D-ND/tools/exp_vc_unit_boundary_audit.py
diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

codex
Lo script nuovo legge solo il deposito verificato 14:00 e classifica ogni curva fit-ready rispetto al bordo `V_c=1`. Ora lo compilo, lo eseguo e poi scrivo il report 1457 con i count grezzi.
exec
/bin/bash -lc 'python tools/exp_vc_unit_boundary_audit.py --input tools/data/vc_fit_model_gate_20260509_1400.json --out tools/data/vc_unit_boundary_audit_20260509_1457.json' in /opt/MM_D-ND
exec
/bin/bash -lc 'python -m py_compile tools/exp_vc_unit_boundary_audit.py' in /opt/MM_D-ND
diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

 succeeded in 205ms:
{
  "experiment": "vc_unit_boundary_audit",
  "counts": {
    "rows": 13,
    "by_unit_status": {
      "all_above_unit": 1,
      "all_below_unit": 3,
      "crosses_down_inside_window": 9
    },
    "by_generator_class_status": {
      "order_memory": {
        "all_above_unit": 1,
        "crosses_down_inside_window": 5
      },
      "periodic_closure": {
        "all_below_unit": 2,
        "crosses_down_inside_window": 1
      },
      "random_dispersion": {
        "all_below_unit": 1
      },
      "reference_order": {
        "crosses_down_inside_window": 3
      }
    },
    "rows_below_unit": 12,
    "crosses_down_inside_window": 9
  },
  "out": "tools/data/vc_unit_boundary_audit_20260509_1457.json"
}

 succeeded in 208ms:
exec
/bin/bash -lc "sed -n '1,260p' tools/data/vc_unit_boundary_audit_20260509_1457.json" in /opt/MM_D-ND
exec
/bin/bash -lc "python - <<'PY'
import json
p='tools/data/vc_unit_boundary_audit_20260509_1457.json'
d=json.load(open(p))
for r in d['rows']:
    if r['generator_class'] in {'reference_order','order_memory'}:
        print(r['row_id'], r['unit_status'], r['unit_crossing_N'], r['first_value'], r['last_value'], r['best_model'], r['denominator_state'], r['fit_ready_rows'], r['total_rows'], r['excluded_rows'])
print('earliest')
for r in d['earliest_crosses']:
    print(r['row_id'], r['unit_crossing_N'])
PY" in /opt/MM_D-ND
exec
/bin/bash -lc 'ls -lh tools/data/vc_nonsturmian_label_null_gate*1457*.json 2>/dev/null || true' in /opt/MM_D-ND
diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

 succeeded in 115ms:
{
  "experiment": "vc_unit_boundary_audit",
  "input": "tools/data/vc_fit_model_gate_20260509_1400.json",
  "contract": {
    "unit_boundary": "V_c = 1",
    "observable": "fit-ready V_c points from vc_fit_model_gate",
    "operator": "classify each admissible row by its observed relation to V_c=1",
    "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
    "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window"
  },
  "counts": {
    "rows": 13,
    "by_unit_status": {
      "all_above_unit": 1,
      "all_below_unit": 3,
      "crosses_down_inside_window": 9
    },
    "by_generator_class_status": {
      "order_memory": {
        "all_above_unit": 1,
        "crosses_down_inside_window": 5
      },
      "periodic_closure": {
        "all_below_unit": 2,
        "crosses_down_inside_window": 1
      },
      "random_dispersion": {
        "all_below_unit": 1
      },
      "reference_order": {
        "crosses_down_inside_window": 3
      }
    },
    "rows_below_unit": 12,
    "crosses_down_inside_window": 9
  },
  "earliest_crosses": [
    {
      "row_id": "per_mode_best:periodic_closure:r0.48",
      "level": "per_mode_best",
      "generator_class": "periodic_closure",
      "class_threshold": "periodic_closure:r0.48",
      "denominator_state": "contaminated",
      "fit_ready_rows": 36,
      "total_rows": 47,
      "excluded_rows": 11,
      "best_model": "inv_N",
      "delta_aicc_to_second": 1.2437732332462907,
      "unit_status": "crosses_down_inside_window",
      "unit_crossing_N": 105.73395836827048,
      "first_value": 1.1241889641400176,
      "last_value": 0.7152102808552453,
      "below_unit_count": 3,
      "fit_points": [
        [
          89,
          1.1241889641400176
        ],
        [
          144,
          0.7160133922052755
        ],
        [
          233,
          0.7264751706525534
        ],
        [
          377,
          0.7152102808552453
        ]
      ]
    },
    {
      "row_id": "per_mode_best:reference_order:r0.52",
      "level": "per_mode_best",
      "generator_class": "reference_order",
      "class_threshold": "reference_order:r0.52",
      "denominator_state": "complete",
      "fit_ready_rows": 16,
      "total_rows": 16,
      "excluded_rows": 0,
      "best_model": "linear_N",
      "delta_aicc_to_second": 7.595849612224054,
      "unit_status": "crosses_down_inside_window",
      "unit_crossing_N": 151.9731266215292,
      "first_value": 1.0717248880032573,
      "last_value": 0.806781882380817,
      "below_unit_count": 2,
      "fit_points": [
        [
          89,
          1.0717248880032573
        ],
        [
          144,
          1.0052154776443325
        ],
        [
          233,
          0.9469977253898767
        ],
        [
          377,
          0.806781882380817
        ]
      ]
    },
    {
      "row_id": "per_mode_best:order_memory:r0.52",
      "level": "per_mode_best",
      "generator_class": "order_memory",
      "class_threshold": "order_memory:r0.52",
      "denominator_state": "complete",
      "fit_ready_rows": 48,
      "total_rows": 48,
      "excluded_rows": 0,
      "best_model": "linear_N",
      "delta_aicc_to_second": 1.8846081016752265,
      "unit_status": "crosses_down_inside_window",
      "unit_crossing_N": 188.58544474569982,
      "first_value": 1.2182330139145714,
      "last_value": 0.6879789588316143,
      "below_unit_count": 2,
      "fit_points": [
        [
          89,
          1.2182330139145714
        ],
        [
          144,
          1.0439589792485444
        ],
        [
          233,
          0.9562095090921927
        ],
        [
          377,
          0.6879789588316143
        ]
      ]
    },
    {
      "row_id": "per_mode_best:order_memory:r0.5",
      "level": "per_mode_best",
      "generator_class": "order_memory",
      "class_threshold": "order_memory:r0.5",
      "denominator_state": "complete",
      "fit_ready_rows": 48,
      "total_rows": 48,
      "excluded_rows": 0,
      "best_model": "linear_N",
      "delta_aicc_to_second": 6.606559577142949,
      "unit_status": "crosses_down_inside_window",
      "unit_crossing_N": 255.73659487234482,
      "first_value": 1.317490444282622,
      "last_value": 0.7740722575832769,
      "below_unit_count": 1,
      "fit_points": [
        [
          89,
          1.317490444282622
        ],
        [
          144,
          1.1744827385654728
        ],
        [
          233,
          1.0423609047127196
        ],
        [
          377,
          0.7740722575832769
        ]
      ]
    },
    {
      "row_id": "accepted_candidates:order_memory:r0.52",
      "level": "accepted_candidates",
      "generator_class": "order_memory",
      "class_threshold": "order_memory:r0.52",
      "denominator_state": "complete",
      "fit_ready_rows": 279,
      "total_rows": 279,
      "excluded_rows": 0,
      "best_model": "linear_N",
      "delta_aicc_to_second": 5.925609338370524,
      "unit_status": "crosses_down_inside_window",
      "unit_crossing_N": 272.8945033053499,
      "first_value": 1.23599754498142,
      "last_value": 0.7809336496449928,
      "below_unit_count": 1,
      "fit_points": [
        [
          89,
          1.23599754498142
        ],
        [
          144,
          1.1927066756413467
        ],
        [
          233,
          1.0839489125532205
        ],
        [
          377,
          0.7809336496449928
        ]
      ]
    },
    {
      "row_id": "per_mode_best:reference_order:r0.5",
      "level": "per_mode_best",
      "generator_class": "reference_order",
      "class_threshold": "reference_order:r0.5",
      "denominator_state": "complete",
      "fit_ready_rows": 16,
      "total_rows": 16,
      "excluded_rows": 0,
      "best_model": "linear_N",
      "delta_aicc_to_second": 5.650618559114456,
      "unit_status": "crosses_down_inside_window",
      "unit_crossing_N": 276.87603371326986,
      "first_value": 1.191259279354183,
      "last_value": 0.87901967362663,
      "below_unit_count": 1,
      "fit_points": [
        [
          89,
          1.191259279354183
        ],
        [
          144,
          1.1085694689776533
        ],
        [
          233,
          1.0530156472567136
        ],
        [
          377,
          0.87901967362663
        ]
      ]
    },
    {
      "row_id": "per_mode_best:order_memory:r0.48",
      "level": "per_mode_best",
      "generator_class": "order_memory",
      "class_threshold": "order_memory:r0.48",
      "denominator_state": "complete",
      "fit_ready_rows": 48,
      "total_rows": 48,
      "excluded_rows": 0,
      "best_model": "linear_N",
      "delta_aicc_to_second": 6.203379910727133,
      "unit_status": "crosses_down_inside_window",
      "unit_crossing_N": 315.75956958027234,

 succeeded in 108ms:
 succeeded in 167ms:
per_mode_best:order_memory:r0.48 crosses_down_inside_window 315.75956958027234 1.4322116756208225 0.8934039585145115 linear_N complete 48 48 0
per_mode_best:order_memory:r0.5 crosses_down_inside_window 255.73659487234482 1.317490444282622 0.7740722575832769 linear_N complete 48 48 0
per_mode_best:order_memory:r0.52 crosses_down_inside_window 188.58544474569982 1.2182330139145714 0.6879789588316143 linear_N complete 48 48 0
per_mode_best:reference_order:r0.48 crosses_down_inside_window 348.75287854153214 1.3113064059269433 0.9554078746852592 linear_N complete 16 16 0
per_mode_best:reference_order:r0.5 crosses_down_inside_window 276.87603371326986 1.191259279354183 0.87901967362663 linear_N complete 16 16 0
per_mode_best:reference_order:r0.52 crosses_down_inside_window 151.9731266215292 1.0717248880032573 0.806781882380817 linear_N complete 16 16 0
accepted_candidates:order_memory:r0.48 all_above_unit None 1.4735516290357615 1.0690955543342653 linear_N contaminated 273 279 6
accepted_candidates:order_memory:r0.5 crosses_down_inside_window 332.7332673641306 1.3501047690316834 0.8985253681454546 linear_N contaminated 278 279 1
accepted_candidates:order_memory:r0.52 crosses_down_inside_window 272.8945033053499 1.23599754498142 0.7809336496449928 linear_N complete 279 279 0
earliest
per_mode_best:periodic_closure:r0.48 105.73395836827048
per_mode_best:reference_order:r0.52 151.9731266215292
per_mode_best:order_memory:r0.52 188.58544474569982
per_mode_best:order_memory:r0.5 255.73659487234482
accepted_candidates:order_memory:r0.52 272.8945033053499
per_mode_best:reference_order:r0.5 276.87603371326986
per_mode_best:order_memory:r0.48 315.75956958027234
accepted_candidates:order_memory:r0.5 332.7332673641306

codex
Il dato nuovo è pronto: 13 righe fit-ready auditate, 12/13 hanno almeno un punto sotto `V_c=1`, 9/13 attraversano il bordo dentro la finestra osservata. Scrivo il report nello slot richiesto e lo limito al perimetro del JSON 14:00.
apply patch
patch: completed
/opt/MM_D-ND/tools/data/reports/agent_20260509_1457.md
diff --git a/tools/data/reports/agent_20260509_1457.md b/tools/data/reports/agent_20260509_1457.md
new file mode 100644
index 0000000000000000000000000000000000000000..743a0e1212b8c4e96656a71bf09a31c53c887c81
--- /dev/null
+++ b/tools/data/reports/agent_20260509_1457.md
@@ -0,0 +1,128 @@
+# Agent Report - Vc Unit Boundary Audit
+**Date**: 2026-05-09 14:57
+**Piano**: 107
+**Tension explored**: TENS_SCALE_TRASCENDENZA_LIMITE / TRASCENDENZA_LIMITE (0.6 / 0.9)
+**verdict**: FALSIFIED as convergence-to-1-from-above in the observed fit-ready window
+observables_registry: 1.0.0-2026-05-06
+observables_used: [`unit_status`, `unit_crossing_N`, `below_unit_count`, `fit_ready_rows`, `denominator_state`, `best_model`] - osservabili domain-native, non canonici SR/SR2/L1/L2/triple_var.
+**observable_contract**: claim=`V_c(phi)` converge a 1 come limite leggibile del canale ordinato; observable=relazione dei punti fit-ready con il bordo `V_c=1`; operator=`exp_vc_unit_boundary_audit.py` su deposito `vc_fit_model_gate_20260509_1400`; generator=`reference_order`, `order_memory`, `periodic_closure`, `random_dispersion`; denominator=13 righe ammissibili `complete/contaminated` del fit model gate, N={89,144,233,377}, soglie r={0.48,0.50,0.52}, livelli `per_mode_best` e `accepted_candidates`; non_possible=dichiarare convergenza a 1 dall'alto quando la curva osservata attraversa sotto 1 nel perimetro; not_tested=nuovi spettri, nuovi N, nuovi candidati, limite asintotico oltre la finestra osservata.
+
+## Respiro fuori-tempo
+- **Prima impressione**: il bordo `V_c=1` non e' attrattore osservato; e' un taglio attraversato dal canale fit-ready.
+- **Combo**: A2 confine det=-1 + A3 punto fisso come attrattore da falsificare + A9 terzo incluso + QxG continuo/discreto + grafo dei generatori + tensione `TENS_SCALE_TRASCENDENZA_LIMITE`.
+- **Dipolo / punto-zero**: convergenza a 1 / attraversamento di 1; punto-zero = la riga fit-ready prima che il bordo unitario venga trattato come limite o come taglio.
+- **Piano superiore**: grafo della conoscenza e bicono-dipoli. Il valore 1 e' nodo di bordo: decide quale arco puo' ricevere il claim di limite.
+- **Operatori laterali scelti**: boundary operator, graph cut, fit come morfismo. Entrano per separare il bordo unitario dal modello numerico.
+- **Contaminazione cognitiva**: CE-0001 / KSAR: reiterazione sul deposito 14:00 senza ricomputare spettri; CE-0117: cascata della possibilita, il claim di limite passa solo dove il bordo non e' attraversato; YSN DeltaLink: `fit-ready curve -> unit cut -> limit veto`.
+- **Proto-ipotesi**: se una curva fit-ready attraversa `V_c=1` dentro la finestra osservata, il claim "converge a 1 dall'alto" cade su quel perimetro; il bordo unitario resta coordinata di taglio, non attrattore.
+- **Possibile / non-possibile**: possibile = usare `V_c=1` come unit boundary audit; non-possibile = chiamarlo limite osservato quando 12/13 righe hanno punti sotto 1.
+- **Proiezione**: classifico ogni riga ammissibile come `all_above_unit`, `crosses_down_inside_window`, o `all_below_unit`, e calcolo `unit_crossing_N` per le righe che attraversano.
+
+## Claim Under Test
+> Nel perimetro fit-ready 14:00, il canale ordinato sostiene `V_c -> 1` come limite osservato dall'alto.
+
+## Question
+Il bordo `V_c=1` si comporta come attrattore della scala o come taglio attraversato dalle curve fit-ready?
+
+## Experiment Design
+- Nuovo strumento: `tools/exp_vc_unit_boundary_audit.py`.
+- Input: `tools/data/vc_fit_model_gate_20260509_1400.json`.
+- Output: `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Perimetro atomico: 13 righe ammissibili del model gate, gia' filtrate da `denominator_state in {complete, contaminated}`.
+- Operatore: per ogni riga ordino i punti `(N, V_c)`, conto i valori sotto 1, e interpolo il primo attraversamento del bordo unitario quando avviene tra due N consecutivi.
+- Contratto osservabile-operatore: il ciclo misura il bordo unitario sul deposito 14:00; non misura nuovi N, non testa l'asintoto, non ripara il fit.
+
+## Results
+
+Indice globale:
+
+| measure | value |
+|---|---:|
+| admissible rows audited | 13 |
+| rows with any `V_c < 1` | 12 |
+| `crosses_down_inside_window` | 9 |
+| `all_below_unit` | 3 |
+| `all_above_unit` | 1 |
+
+Stati per classe generatore:
+
+| generator_class | all_above | crosses_down | all_below |
+|---|---:|---:|---:|
+| reference_order | 0 | 3 | 0 |
+| order_memory | 1 | 5 | 0 |
+| periodic_closure | 0 | 1 | 2 |
+| random_dispersion | 0 | 0 | 1 |
+
+Canale ordinato, righe complete/contaminate:
+
+| row | state | fit_ready/total | excluded | first V_c | last V_c | unit status | crossing N |
+|---|---|---:|---:|---:|---:|---|---:|
+| per_mode_best:reference_order:r0.48 | complete | 16/16 | 0 | 1.311 | 0.955 | crosses_down | 348.753 |
+| per_mode_best:reference_order:r0.50 | complete | 16/16 | 0 | 1.191 | 0.879 | crosses_down | 276.876 |
+| per_mode_best:reference_order:r0.52 | complete | 16/16 | 0 | 1.072 | 0.807 | crosses_down | 151.973 |
+| per_mode_best:order_memory:r0.48 | complete | 48/48 | 0 | 1.432 | 0.893 | crosses_down | 315.760 |
+| per_mode_best:order_memory:r0.50 | complete | 48/48 | 0 | 1.317 | 0.774 | crosses_down | 255.737 |
+| per_mode_best:order_memory:r0.52 | complete | 48/48 | 0 | 1.218 | 0.688 | crosses_down | 188.585 |
+| accepted_candidates:order_memory:r0.48 | contaminated | 273/279 | 6 | 1.474 | 1.069 | all_above | blank |
+| accepted_candidates:order_memory:r0.50 | contaminated | 278/279 | 1 | 1.350 | 0.899 | crosses_down | 332.733 |
+| accepted_candidates:order_memory:r0.52 | complete | 279/279 | 0 | 1.236 | 0.781 | crosses_down | 272.895 |
+
+Primi attraversamenti del bordo:
+
+| row | crossing N |
+|---|---:|
+| per_mode_best:periodic_closure:r0.48 | 105.734 |
+| per_mode_best:reference_order:r0.52 | 151.973 |
+| per_mode_best:order_memory:r0.52 | 188.585 |
+| per_mode_best:order_memory:r0.50 | 255.737 |
+| accepted_candidates:order_memory:r0.52 | 272.895 |
+| per_mode_best:reference_order:r0.50 | 276.876 |
+| per_mode_best:order_memory:r0.48 | 315.760 |
+| accepted_candidates:order_memory:r0.50 | 332.733 |
+
+## Key Findings
+1. **Verificato: il claim `converge a 1 dall'alto` cade nel perimetro osservato.** 12/13 righe ammissibili hanno almeno un punto fit-ready sotto `V_c=1`.
+2. **Verificato: il canale ordinato completo attraversa il bordo.** `reference_order` fa 3/3 attraversamenti; `order_memory` per-mode-best fa 3/3 attraversamenti; tutti con denominatore `complete`.
+3. **Verificato: l'unica riga all-above e' contaminata.** `accepted_candidates:order_memory:r0.48` resta sopra 1, ma ha 273/279 righe fit-ready e 6 righe escluse; non puo' sostenere da sola il claim hard.
+4. **Verificato: `periodic_closure` e `random_dispersion` non salvano il limite.** Due righe `periodic_closure` e una `random_dispersion` sono gia' tutte sotto 1; il loro denominatore era contaminato e non appartiene al canale ordinato completo.
+5. **Inferito: il nodo regressivo non e' scegliere un nuovo modello di fit.** Il bordo unitario va promosso a veto osservabile prima del claim di limite.
+
+## Verdict
+**FALSIFIED** nel perimetro osservato.
+
+`V_c=1` non opera come limite osservato dall'alto sulle righe fit-ready 14:00. Opera come bordo attraversato. Il canale ordinato resta fittabile e lineare nel perimetro, ma proprio quel canale scende sotto 1: `reference_order` 3/3 e `order_memory` per-mode-best 3/3 attraversano il bordo dentro N={89,144,233,377}.
+
+La formulazione valida diventa:
+
+`V_c=1` e' un unit boundary audit del sottografo fit-ready; non e' attrattore verificato della scala nel perimetro 14:00.
+
+## Bicono della scoperta
+- **Due radici**: limite unitario / attraversamento unitario.
+- **Singolare**: la curva fit-ready prima che `1` sia interpretato come attrattore o come taglio.
+- **Invariante di passaggio**: la disponibilita del denominatore completo sopravvive; il claim di convergenza a 1 non sopravvive.
+- **Campo di possibilita**: qui diventa possibile usare `V_c=1` come veto strutturale nei futuri fit; qui diventa non-possibile formulare `V_c(phi) -> 1` come claim osservato dall'alto su questo perimetro.
+
+## Consecutio
+Il prossimo ciclo che estende N deve partire dal veto unitario: se N piu' alti vengono calcolati, il claim non e' "converge a 1", ma "dopo l'attraversamento, la curva resta sotto 1, rientra, o cambia famiglia". Il denominatore da preservare e' `complete + unit_status`, non solo `fit_ready`.
+
+## Auto-audit: source flags e 7 lenti
+- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/data/seme.json`, `tools/dnd_scenario.py --best`, report `agent_20260509_1337.md`, report `agent_20260509_1400.md`, JSON `tools/data/vc_fit_model_gate_20260509_1400.json`, nuovo JSON `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- **L1 hard constraint**: il verdict vale solo per le 13 righe ammissibili del deposito 14:00 e N={89,144,233,377}.
+- **L2 count grezzi**: riportati 12/13 sotto 1, 9/13 attraversamenti, 1/13 sopra 1, 3/13 tutte sotto 1.
+- **L3 no silent patching**: nessun nuovo spettro, nessun nuovo N usato come evidenza, nessuna modifica ai depositi 13:37/14:00.
+- **L4 edge cases**: l'unica riga sopra 1 e' contaminata con 6 esclusioni; non chiude il claim hard.
+- **L5 re-discovery**: il finding non ripete "V_c scende"; misura il bordo unitario come veto atomico.
+- **L6 metabolismo cognitivo**: CE-0001, CE-0117 e YSN usati nella combo.
+- **L7 possibile/non-possibile**: possibile = unit boundary audit; non-possibile = convergenza a 1 dall'alto nel perimetro osservato.
+
+## Telemetria
+- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` assenti nell'ambiente.
+- Verifica script: `python -m py_compile tools/exp_vc_unit_boundary_audit.py`.
+- Run valido: `python tools/exp_vc_unit_boundary_audit.py --input tools/data/vc_fit_model_gate_20260509_1400.json --out tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Un tentativo di ricomputo esteso su N alti non ha prodotto deposito leggibile in tempo utile e non e' usato come evidenza.
+- Git state: worktree gia' sporco da cicli precedenti; questo cycle aggiunge solo lo script unit-boundary, il JSON 1457 e questo report.
+
+## Files
+- Script nuovo: `tools/exp_vc_unit_boundary_audit.py`
+- Data: `tools/data/vc_unit_boundary_audit_20260509_1457.json`
+- Report: `tools/data/reports/agent_20260509_1457.md`
diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

diff --git a/tools/data/reports/agent_20260509_1457.md b/tools/data/reports/agent_20260509_1457.md
new file mode 100644
index 0000000000000000000000000000000000000000..743a0e1212b8c4e96656a71bf09a31c53c887c81
--- /dev/null
+++ b/tools/data/reports/agent_20260509_1457.md
@@ -0,0 +1,128 @@
+# Agent Report - Vc Unit Boundary Audit
+**Date**: 2026-05-09 14:57
+**Piano**: 107
+**Tension explored**: TENS_SCALE_TRASCENDENZA_LIMITE / TRASCENDENZA_LIMITE (0.6 / 0.9)
+**verdict**: FALSIFIED as convergence-to-1-from-above in the observed fit-ready window
+observables_registry: 1.0.0-2026-05-06
+observables_used: [`unit_status`, `unit_crossing_N`, `below_unit_count`, `fit_ready_rows`, `denominator_state`, `best_model`] - osservabili domain-native, non canonici SR/SR2/L1/L2/triple_var.
+**observable_contract**: claim=`V_c(phi)` converge a 1 come limite leggibile del canale ordinato; observable=relazione dei punti fit-ready con il bordo `V_c=1`; operator=`exp_vc_unit_boundary_audit.py` su deposito `vc_fit_model_gate_20260509_1400`; generator=`reference_order`, `order_memory`, `periodic_closure`, `random_dispersion`; denominator=13 righe ammissibili `complete/contaminated` del fit model gate, N={89,144,233,377}, soglie r={0.48,0.50,0.52}, livelli `per_mode_best` e `accepted_candidates`; non_possible=dichiarare convergenza a 1 dall'alto quando la curva osservata attraversa sotto 1 nel perimetro; not_tested=nuovi spettri, nuovi N, nuovi candidati, limite asintotico oltre la finestra osservata.
+
+## Respiro fuori-tempo
+- **Prima impressione**: il bordo `V_c=1` non e' attrattore osservato; e' un taglio attraversato dal canale fit-ready.
+- **Combo**: A2 confine det=-1 + A3 punto fisso come attrattore da falsificare + A9 terzo incluso + QxG continuo/discreto + grafo dei generatori + tensione `TENS_SCALE_TRASCENDENZA_LIMITE`.
+- **Dipolo / punto-zero**: convergenza a 1 / attraversamento di 1; punto-zero = la riga fit-ready prima che il bordo unitario venga trattato come limite o come taglio.
+- **Piano superiore**: grafo della conoscenza e bicono-dipoli. Il valore 1 e' nodo di bordo: decide quale arco puo' ricevere il claim di limite.
+- **Operatori laterali scelti**: boundary operator, graph cut, fit come morfismo. Entrano per separare il bordo unitario dal modello numerico.
+- **Contaminazione cognitiva**: CE-0001 / KSAR: reiterazione sul deposito 14:00 senza ricomputare spettri; CE-0117: cascata della possibilita, il claim di limite passa solo dove il bordo non e' attraversato; YSN DeltaLink: `fit-ready curve -> unit cut -> limit veto`.
+- **Proto-ipotesi**: se una curva fit-ready attraversa `V_c=1` dentro la finestra osservata, il claim "converge a 1 dall'alto" cade su quel perimetro; il bordo unitario resta coordinata di taglio, non attrattore.
+- **Possibile / non-possibile**: possibile = usare `V_c=1` come unit boundary audit; non-possibile = chiamarlo limite osservato quando 12/13 righe hanno punti sotto 1.
+- **Proiezione**: classifico ogni riga ammissibile come `all_above_unit`, `crosses_down_inside_window`, o `all_below_unit`, e calcolo `unit_crossing_N` per le righe che attraversano.
+
+## Claim Under Test
+> Nel perimetro fit-ready 14:00, il canale ordinato sostiene `V_c -> 1` come limite osservato dall'alto.
+
+## Question
+Il bordo `V_c=1` si comporta come attrattore della scala o come taglio attraversato dalle curve fit-ready?
+
+## Experiment Design
+- Nuovo strumento: `tools/exp_vc_unit_boundary_audit.py`.
+- Input: `tools/data/vc_fit_model_gate_20260509_1400.json`.
+- Output: `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Perimetro atomico: 13 righe ammissibili del model gate, gia' filtrate da `denominator_state in {complete, contaminated}`.
+- Operatore: per ogni riga ordino i punti `(N, V_c)`, conto i valori sotto 1, e interpolo il primo attraversamento del bordo unitario quando avviene tra due N consecutivi.
+- Contratto osservabile-operatore: il ciclo misura il bordo unitario sul deposito 14:00; non misura nuovi N, non testa l'asintoto, non ripara il fit.
+
+## Results
+
+Indice globale:
+
+| measure | value |
+|---|---:|
+| admissible rows audited | 13 |
+| rows with any `V_c < 1` | 12 |
+| `crosses_down_inside_window` | 9 |
+| `all_below_unit` | 3 |
+| `all_above_unit` | 1 |
+
+Stati per classe generatore:
+
+| generator_class | all_above | crosses_down | all_below |
+|---|---:|---:|---:|
+| reference_order | 0 | 3 | 0 |
+| order_memory | 1 | 5 | 0 |
+| periodic_closure | 0 | 1 | 2 |
+| random_dispersion | 0 | 0 | 1 |
+
+Canale ordinato, righe complete/contaminate:
+
+| row | state | fit_ready/total | excluded | first V_c | last V_c | unit status | crossing N |
+|---|---|---:|---:|---:|---:|---|---:|
+| per_mode_best:reference_order:r0.48 | complete | 16/16 | 0 | 1.311 | 0.955 | crosses_down | 348.753 |
+| per_mode_best:reference_order:r0.50 | complete | 16/16 | 0 | 1.191 | 0.879 | crosses_down | 276.876 |
+| per_mode_best:reference_order:r0.52 | complete | 16/16 | 0 | 1.072 | 0.807 | crosses_down | 151.973 |
+| per_mode_best:order_memory:r0.48 | complete | 48/48 | 0 | 1.432 | 0.893 | crosses_down | 315.760 |
+| per_mode_best:order_memory:r0.50 | complete | 48/48 | 0 | 1.317 | 0.774 | crosses_down | 255.737 |
+| per_mode_best:order_memory:r0.52 | complete | 48/48 | 0 | 1.218 | 0.688 | crosses_down | 188.585 |
+| accepted_candidates:order_memory:r0.48 | contaminated | 273/279 | 6 | 1.474 | 1.069 | all_above | blank |
+| accepted_candidates:order_memory:r0.50 | contaminated | 278/279 | 1 | 1.350 | 0.899 | crosses_down | 332.733 |
+| accepted_candidates:order_memory:r0.52 | complete | 279/279 | 0 | 1.236 | 0.781 | crosses_down | 272.895 |
+
+Primi attraversamenti del bordo:
+
+| row | crossing N |
+|---|---:|
+| per_mode_best:periodic_closure:r0.48 | 105.734 |
+| per_mode_best:reference_order:r0.52 | 151.973 |
+| per_mode_best:order_memory:r0.52 | 188.585 |
+| per_mode_best:order_memory:r0.50 | 255.737 |
+| accepted_candidates:order_memory:r0.52 | 272.895 |
+| per_mode_best:reference_order:r0.50 | 276.876 |
+| per_mode_best:order_memory:r0.48 | 315.760 |
+| accepted_candidates:order_memory:r0.50 | 332.733 |
+
+## Key Findings
+1. **Verificato: il claim `converge a 1 dall'alto` cade nel perimetro osservato.** 12/13 righe ammissibili hanno almeno un punto fit-ready sotto `V_c=1`.
+2. **Verificato: il canale ordinato completo attraversa il bordo.** `reference_order` fa 3/3 attraversamenti; `order_memory` per-mode-best fa 3/3 attraversamenti; tutti con denominatore `complete`.
+3. **Verificato: l'unica riga all-above e' contaminata.** `accepted_candidates:order_memory:r0.48` resta sopra 1, ma ha 273/279 righe fit-ready e 6 righe escluse; non puo' sostenere da sola il claim hard.
+4. **Verificato: `periodic_closure` e `random_dispersion` non salvano il limite.** Due righe `periodic_closure` e una `random_dispersion` sono gia' tutte sotto 1; il loro denominatore era contaminato e non appartiene al canale ordinato completo.
+5. **Inferito: il nodo regressivo non e' scegliere un nuovo modello di fit.** Il bordo unitario va promosso a veto osservabile prima del claim di limite.
+
+## Verdict
+**FALSIFIED** nel perimetro osservato.
+
+`V_c=1` non opera come limite osservato dall'alto sulle righe fit-ready 14:00. Opera come bordo attraversato. Il canale ordinato resta fittabile e lineare nel perimetro, ma proprio quel canale scende sotto 1: `reference_order` 3/3 e `order_memory` per-mode-best 3/3 attraversano il bordo dentro N={89,144,233,377}.
+
+La formulazione valida diventa:
+
+`V_c=1` e' un unit boundary audit del sottografo fit-ready; non e' attrattore verificato della scala nel perimetro 14:00.
+
+## Bicono della scoperta
+- **Due radici**: limite unitario / attraversamento unitario.
+- **Singolare**: la curva fit-ready prima che `1` sia interpretato come attrattore o come taglio.
+- **Invariante di passaggio**: la disponibilita del denominatore completo sopravvive; il claim di convergenza a 1 non sopravvive.
+- **Campo di possibilita**: qui diventa possibile usare `V_c=1` come veto strutturale nei futuri fit; qui diventa non-possibile formulare `V_c(phi) -> 1` come claim osservato dall'alto su questo perimetro.
+
+## Consecutio
+Il prossimo ciclo che estende N deve partire dal veto unitario: se N piu' alti vengono calcolati, il claim non e' "converge a 1", ma "dopo l'attraversamento, la curva resta sotto 1, rientra, o cambia famiglia". Il denominatore da preservare e' `complete + unit_status`, non solo `fit_ready`.
+
+## Auto-audit: source flags e 7 lenti
+- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/data/seme.json`, `tools/dnd_scenario.py --best`, report `agent_20260509_1337.md`, report `agent_20260509_1400.md`, JSON `tools/data/vc_fit_model_gate_20260509_1400.json`, nuovo JSON `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- **L1 hard constraint**: il verdict vale solo per le 13 righe ammissibili del deposito 14:00 e N={89,144,233,377}.
+- **L2 count grezzi**: riportati 12/13 sotto 1, 9/13 attraversamenti, 1/13 sopra 1, 3/13 tutte sotto 1.
+- **L3 no silent patching**: nessun nuovo spettro, nessun nuovo N usato come evidenza, nessuna modifica ai depositi 13:37/14:00.
+- **L4 edge cases**: l'unica riga sopra 1 e' contaminata con 6 esclusioni; non chiude il claim hard.
+- **L5 re-discovery**: il finding non ripete "V_c scende"; misura il bordo unitario come veto atomico.
+- **L6 metabolismo cognitivo**: CE-0001, CE-0117 e YSN usati nella combo.
+- **L7 possibile/non-possibile**: possibile = unit boundary audit; non-possibile = convergenza a 1 dall'alto nel perimetro osservato.
+
+## Telemetria
+- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` assenti nell'ambiente.
+- Verifica script: `python -m py_compile tools/exp_vc_unit_boundary_audit.py`.
+- Run valido: `python tools/exp_vc_unit_boundary_audit.py --input tools/data/vc_fit_model_gate_20260509_1400.json --out tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Un tentativo di ricomputo esteso su N alti non ha prodotto deposito leggibile in tempo utile e non e' usato come evidenza.
+- Git state: worktree gia' sporco da cicli precedenti; questo cycle aggiunge solo lo script unit-boundary, il JSON 1457 e questo report.
+
+## Files
+- Script nuovo: `tools/exp_vc_unit_boundary_audit.py`
+- Data: `tools/data/vc_unit_boundary_audit_20260509_1457.json`
+- Report: `tools/data/reports/agent_20260509_1457.md`
diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

codex
Report scritto. Faccio una verifica finale sui file creati e sullo stato dei processi, poi chiudo con il riepilogo verificato.
exec
/bin/bash -lc 'test -s tools/data/reports/agent_20260509_1457.md && test -s tools/data/vc_unit_boundary_audit_20260509_1457.json && test -s tools/exp_vc_unit_boundary_audit.py && echo ok' in /opt/MM_D-ND
exec
/bin/bash -lc 'python tools/exp_vc_unit_boundary_audit.py --input tools/data/vc_fit_model_gate_20260509_1400.json --out /tmp/vc_unit_boundary_audit_1457_verify.json' in /opt/MM_D-ND
exec
/bin/bash -lc 'python3 /opt/tm7/tools/tm7_hook_manager.py --event post_change --paths tools/exp_vc_unit_boundary_audit.py tools/data/vc_unit_boundary_audit_20260509_1457.json tools/data/reports/agent_20260509_1457.md' in /opt/MM_D-ND
exec
/bin/bash -lc 'git status --short tools/exp_vc_unit_boundary_audit.py tools/data/vc_unit_boundary_audit_20260509_1457.json tools/data/reports/agent_20260509_1457.md' in /opt/MM_D-ND
exec
/bin/bash -lc "ps -eo pid,etime,cmd | rg 'exp_vc_nonsturmian_label_null_gate.py|exp_vc_unit_boundary_audit.py' || true" in /opt/MM_D-ND
 succeeded in 121ms:
ok

 succeeded in 139ms:
?? tools/data/reports/agent_20260509_1457.md
?? tools/data/vc_unit_boundary_audit_20260509_1457.json
?? tools/exp_vc_unit_boundary_audit.py

 succeeded in 130ms:
      1       00:00 /root/.codex-lab/tmp/arg0/codex-arg02ZCQ8L/codex-linux-sandbox --sandbox-policy-cwd /opt/MM_D-ND --command-cwd /opt/MM_D-ND --sandbox-policy {"type":"workspace-write","writable_roots":["/root/.codex-lab/memories"],"network_access":false,"exclude_tmpdir_env_var":false,"exclude_slash_tmp":false} --file-system-sandbox-policy {"kind":"restricted","entries":[{"path":{"type":"special","value":{"kind":"root"}},"access":"read"},{"path":{"type":"special","value":{"kind":"current_working_directory"}},"access":"write"},{"path":{"type":"special","value":{"kind":"slash_tmp"}},"access":"write"},{"path":{"type":"special","value":{"kind":"tmpdir"}},"access":"write"},{"path":{"type":"path","path":"/root/.codex-lab/memories"},"access":"write"},{"path":{"type":"path","path":"/opt/MM_D-ND/.git"},"access":"read"},{"path":{"type":"path","path":"/opt/MM_D-ND/.codex"},"access":"read"}]} --network-sandbox-policy "restricted" -- /bin/bash -c __CODEX_SNAPSHOT_OVERRIDE_SET_0="${CODEX_THREAD_ID+x}" __CODEX_SNAPSHOT_OVERRIDE_0="${CODEX_THREAD_ID-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_0="${ALL_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_0="${ALL_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_1="${BUNDLE_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_1="${BUNDLE_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_2="${BUNDLE_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_2="${BUNDLE_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_3="${BUNDLE_NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_3="${BUNDLE_NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_4="${CODEX_NETWORK_ALLOW_LOCAL_BINDING+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_4="${CODEX_NETWORK_ALLOW_LOCAL_BINDING-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_5="${CODEX_NETWORK_PROXY_ACTIVE+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_5="${CODEX_NETWORK_PROXY_ACTIVE-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_6="${DOCKER_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_6="${DOCKER_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_7="${DOCKER_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_7="${DOCKER_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_8="${ELECTRON_GET_USE_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_8="${ELECTRON_GET_USE_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_9="${FTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_9="${FTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_10="${HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_10="${HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_11="${HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_11="${HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_12="${NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_12="${NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_13="${NPM_CONFIG_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_13="${NPM_CONFIG_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_14="${NPM_CONFIG_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_14="${NPM_CONFIG_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_15="${NPM_CONFIG_NOPROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_15="${NPM_CONFIG_NOPROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_16="${NPM_CONFIG_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_16="${NPM_CONFIG_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_17="${PIP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_17="${PIP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_18="${WSS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_18="${WSS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_19="${WS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_19="${WS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_20="${YARN_HTTPS_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_20="${YARN_HTTPS_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_21="${YARN_HTTP_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_21="${YARN_HTTP_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_22="${YARN_NO_PROXY+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_22="${YARN_NO_PROXY-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_23="${all_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_23="${all_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_24="${ftp_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_24="${ftp_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_25="${http_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_25="${http_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_26="${https_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_26="${https_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_27="${no_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_27="${no_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_28="${npm_config_http_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_28="${npm_config_http_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_29="${npm_config_https_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_29="${npm_config_https_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_30="${npm_config_noproxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_30="${npm_config_noproxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_31="${npm_config_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_31="${npm_config_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_32="${ws_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_32="${ws_proxy-}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_33="${wss_proxy+x}" __CODEX_SNAPSHOT_PROXY_OVERRIDE_33="${wss_proxy-}" __CODEX_SNAPSHOT_PROXY_ENV_SET="${CODEX_NETWORK_PROXY_ACTIVE+x}"  if . '/root/.codex-lab/shell_snapshots/019e0d3e-9497-7781-baac-8fb5b6c46d52.1778338665636524390.sh' >/dev/null 2>&1; then :; fi  if [ -n "${__CODEX_SNAPSHOT_OVERRIDE_SET_0}" ]; then export CODEX_THREAD_ID="${__CODEX_SNAPSHOT_OVERRIDE_0}"; else unset CODEX_THREAD_ID; fi if [ -n "$__CODEX_SNAPSHOT_PROXY_ENV_SET" ] || [ -n "${CODEX_NETWORK_PROXY_ACTIVE+x}" ]; then if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_0}" ]; then export ALL_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_0}"; else unset ALL_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_1}" ]; then export BUNDLE_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_1}"; else unset BUNDLE_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_2}" ]; then export BUNDLE_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_2}"; else unset BUNDLE_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_3}" ]; then export BUNDLE_NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_3}"; else unset BUNDLE_NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_4}" ]; then export CODEX_NETWORK_ALLOW_LOCAL_BINDING="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_4}"; else unset CODEX_NETWORK_ALLOW_LOCAL_BINDING; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_5}" ]; then export CODEX_NETWORK_PROXY_ACTIVE="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_5}"; else unset CODEX_NETWORK_PROXY_ACTIVE; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_6}" ]; then export DOCKER_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_6}"; else unset DOCKER_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_7}" ]; then export DOCKER_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_7}"; else unset DOCKER_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_8}" ]; then export ELECTRON_GET_USE_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_8}"; else unset ELECTRON_GET_USE_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_9}" ]; then export FTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_9}"; else unset FTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_10}" ]; then export HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_10}"; else unset HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_11}" ]; then export HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_11}"; else unset HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_12}" ]; then export NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_12}"; else unset NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_13}" ]; then export NPM_CONFIG_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_13}"; else unset NPM_CONFIG_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_14}" ]; then export NPM_CONFIG_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_14}"; else unset NPM_CONFIG_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_15}" ]; then export NPM_CONFIG_NOPROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_15}"; else unset NPM_CONFIG_NOPROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_16}" ]; then export NPM_CONFIG_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_16}"; else unset NPM_CONFIG_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_17}" ]; then export PIP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_17}"; else unset PIP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_18}" ]; then export WSS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_18}"; else unset WSS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_19}" ]; then export WS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_19}"; else unset WS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_20}" ]; then export YARN_HTTPS_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_20}"; else unset YARN_HTTPS_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_21}" ]; then export YARN_HTTP_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_21}"; else unset YARN_HTTP_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_22}" ]; then export YARN_NO_PROXY="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_22}"; else unset YARN_NO_PROXY; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_23}" ]; then export all_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_23}"; else unset all_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_24}" ]; then export ftp_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_24}"; else unset ftp_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_25}" ]; then export http_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_25}"; else unset http_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_26}" ]; then export https_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_26}"; else unset https_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_27}" ]; then export no_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_27}"; else unset no_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_28}" ]; then export npm_config_http_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_28}"; else unset npm_config_http_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_29}" ]; then export npm_config_https_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_29}"; else unset npm_config_https_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_30}" ]; then export npm_config_noproxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_30}"; else unset npm_config_noproxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_31}" ]; then export npm_config_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_31}"; else unset npm_config_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_32}" ]; then export ws_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_32}"; else unset ws_proxy; fi if [ -n "${__CODEX_SNAPSHOT_PROXY_OVERRIDE_SET_33}" ]; then export wss_proxy="${__CODEX_SNAPSHOT_PROXY_OVERRIDE_33}"; else unset wss_proxy; fi fi  exec '/bin/bash' -c 'ps -eo pid,etime,cmd | rg '"'"'exp_vc_nonsturmian_label_null_gate.py|exp_vc_unit_boundary_audit.py'"'"' || true'
      2       00:00 /bin/bash -c ps -eo pid,etime,cmd | rg 'exp_vc_nonsturmian_label_null_gate.py|exp_vc_unit_boundary_audit.py' || true
      4       00:00 rg exp_vc_nonsturmian_label_null_gate.py|exp_vc_unit_boundary_audit.py

diff --git a/tools/data/reports/agent_20260509_1457.md b/tools/data/reports/agent_20260509_1457.md
new file mode 100644
index 0000000000000000000000000000000000000000..743a0e1212b8c4e96656a71bf09a31c53c887c81
--- /dev/null
+++ b/tools/data/reports/agent_20260509_1457.md
@@ -0,0 +1,128 @@
+# Agent Report - Vc Unit Boundary Audit
+**Date**: 2026-05-09 14:57
+**Piano**: 107
+**Tension explored**: TENS_SCALE_TRASCENDENZA_LIMITE / TRASCENDENZA_LIMITE (0.6 / 0.9)
+**verdict**: FALSIFIED as convergence-to-1-from-above in the observed fit-ready window
+observables_registry: 1.0.0-2026-05-06
+observables_used: [`unit_status`, `unit_crossing_N`, `below_unit_count`, `fit_ready_rows`, `denominator_state`, `best_model`] - osservabili domain-native, non canonici SR/SR2/L1/L2/triple_var.
+**observable_contract**: claim=`V_c(phi)` converge a 1 come limite leggibile del canale ordinato; observable=relazione dei punti fit-ready con il bordo `V_c=1`; operator=`exp_vc_unit_boundary_audit.py` su deposito `vc_fit_model_gate_20260509_1400`; generator=`reference_order`, `order_memory`, `periodic_closure`, `random_dispersion`; denominator=13 righe ammissibili `complete/contaminated` del fit model gate, N={89,144,233,377}, soglie r={0.48,0.50,0.52}, livelli `per_mode_best` e `accepted_candidates`; non_possible=dichiarare convergenza a 1 dall'alto quando la curva osservata attraversa sotto 1 nel perimetro; not_tested=nuovi spettri, nuovi N, nuovi candidati, limite asintotico oltre la finestra osservata.
+
+## Respiro fuori-tempo
+- **Prima impressione**: il bordo `V_c=1` non e' attrattore osservato; e' un taglio attraversato dal canale fit-ready.
+- **Combo**: A2 confine det=-1 + A3 punto fisso come attrattore da falsificare + A9 terzo incluso + QxG continuo/discreto + grafo dei generatori + tensione `TENS_SCALE_TRASCENDENZA_LIMITE`.
+- **Dipolo / punto-zero**: convergenza a 1 / attraversamento di 1; punto-zero = la riga fit-ready prima che il bordo unitario venga trattato come limite o come taglio.
+- **Piano superiore**: grafo della conoscenza e bicono-dipoli. Il valore 1 e' nodo di bordo: decide quale arco puo' ricevere il claim di limite.
+- **Operatori laterali scelti**: boundary operator, graph cut, fit come morfismo. Entrano per separare il bordo unitario dal modello numerico.
+- **Contaminazione cognitiva**: CE-0001 / KSAR: reiterazione sul deposito 14:00 senza ricomputare spettri; CE-0117: cascata della possibilita, il claim di limite passa solo dove il bordo non e' attraversato; YSN DeltaLink: `fit-ready curve -> unit cut -> limit veto`.
+- **Proto-ipotesi**: se una curva fit-ready attraversa `V_c=1` dentro la finestra osservata, il claim "converge a 1 dall'alto" cade su quel perimetro; il bordo unitario resta coordinata di taglio, non attrattore.
+- **Possibile / non-possibile**: possibile = usare `V_c=1` come unit boundary audit; non-possibile = chiamarlo limite osservato quando 12/13 righe hanno punti sotto 1.
+- **Proiezione**: classifico ogni riga ammissibile come `all_above_unit`, `crosses_down_inside_window`, o `all_below_unit`, e calcolo `unit_crossing_N` per le righe che attraversano.
+
+## Claim Under Test
+> Nel perimetro fit-ready 14:00, il canale ordinato sostiene `V_c -> 1` come limite osservato dall'alto.
+
+## Question
+Il bordo `V_c=1` si comporta come attrattore della scala o come taglio attraversato dalle curve fit-ready?
+
+## Experiment Design
+- Nuovo strumento: `tools/exp_vc_unit_boundary_audit.py`.
+- Input: `tools/data/vc_fit_model_gate_20260509_1400.json`.
+- Output: `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Perimetro atomico: 13 righe ammissibili del model gate, gia' filtrate da `denominator_state in {complete, contaminated}`.
+- Operatore: per ogni riga ordino i punti `(N, V_c)`, conto i valori sotto 1, e interpolo il primo attraversamento del bordo unitario quando avviene tra due N consecutivi.
+- Contratto osservabile-operatore: il ciclo misura il bordo unitario sul deposito 14:00; non misura nuovi N, non testa l'asintoto, non ripara il fit.
+
+## Results
+
+Indice globale:
+
+| measure | value |
+|---|---:|
+| admissible rows audited | 13 |
+| rows with any `V_c < 1` | 12 |
+| `crosses_down_inside_window` | 9 |
+| `all_below_unit` | 3 |
+| `all_above_unit` | 1 |
+
+Stati per classe generatore:
+
+| generator_class | all_above | crosses_down | all_below |
+|---|---:|---:|---:|
+| reference_order | 0 | 3 | 0 |
+| order_memory | 1 | 5 | 0 |
+| periodic_closure | 0 | 1 | 2 |
+| random_dispersion | 0 | 0 | 1 |
+
+Canale ordinato, righe complete/contaminate:
+
+| row | state | fit_ready/total | excluded | first V_c | last V_c | unit status | crossing N |
+|---|---|---:|---:|---:|---:|---|---:|
+| per_mode_best:reference_order:r0.48 | complete | 16/16 | 0 | 1.311 | 0.955 | crosses_down | 348.753 |
+| per_mode_best:reference_order:r0.50 | complete | 16/16 | 0 | 1.191 | 0.879 | crosses_down | 276.876 |
+| per_mode_best:reference_order:r0.52 | complete | 16/16 | 0 | 1.072 | 0.807 | crosses_down | 151.973 |
+| per_mode_best:order_memory:r0.48 | complete | 48/48 | 0 | 1.432 | 0.893 | crosses_down | 315.760 |
+| per_mode_best:order_memory:r0.50 | complete | 48/48 | 0 | 1.317 | 0.774 | crosses_down | 255.737 |
+| per_mode_best:order_memory:r0.52 | complete | 48/48 | 0 | 1.218 | 0.688 | crosses_down | 188.585 |
+| accepted_candidates:order_memory:r0.48 | contaminated | 273/279 | 6 | 1.474 | 1.069 | all_above | blank |
+| accepted_candidates:order_memory:r0.50 | contaminated | 278/279 | 1 | 1.350 | 0.899 | crosses_down | 332.733 |
+| accepted_candidates:order_memory:r0.52 | complete | 279/279 | 0 | 1.236 | 0.781 | crosses_down | 272.895 |
+
+Primi attraversamenti del bordo:
+
+| row | crossing N |
+|---|---:|
+| per_mode_best:periodic_closure:r0.48 | 105.734 |
+| per_mode_best:reference_order:r0.52 | 151.973 |
+| per_mode_best:order_memory:r0.52 | 188.585 |
+| per_mode_best:order_memory:r0.50 | 255.737 |
+| accepted_candidates:order_memory:r0.52 | 272.895 |
+| per_mode_best:reference_order:r0.50 | 276.876 |
+| per_mode_best:order_memory:r0.48 | 315.760 |
+| accepted_candidates:order_memory:r0.50 | 332.733 |
+
+## Key Findings
+1. **Verificato: il claim `converge a 1 dall'alto` cade nel perimetro osservato.** 12/13 righe ammissibili hanno almeno un punto fit-ready sotto `V_c=1`.
+2. **Verificato: il canale ordinato completo attraversa il bordo.** `reference_order` fa 3/3 attraversamenti; `order_memory` per-mode-best fa 3/3 attraversamenti; tutti con denominatore `complete`.
+3. **Verificato: l'unica riga all-above e' contaminata.** `accepted_candidates:order_memory:r0.48` resta sopra 1, ma ha 273/279 righe fit-ready e 6 righe escluse; non puo' sostenere da sola il claim hard.
+4. **Verificato: `periodic_closure` e `random_dispersion` non salvano il limite.** Due righe `periodic_closure` e una `random_dispersion` sono gia' tutte sotto 1; il loro denominatore era contaminato e non appartiene al canale ordinato completo.
+5. **Inferito: il nodo regressivo non e' scegliere un nuovo modello di fit.** Il bordo unitario va promosso a veto osservabile prima del claim di limite.
+
+## Verdict
+**FALSIFIED** nel perimetro osservato.
+
+`V_c=1` non opera come limite osservato dall'alto sulle righe fit-ready 14:00. Opera come bordo attraversato. Il canale ordinato resta fittabile e lineare nel perimetro, ma proprio quel canale scende sotto 1: `reference_order` 3/3 e `order_memory` per-mode-best 3/3 attraversano il bordo dentro N={89,144,233,377}.
+
+La formulazione valida diventa:
+
+`V_c=1` e' un unit boundary audit del sottografo fit-ready; non e' attrattore verificato della scala nel perimetro 14:00.
+
+## Bicono della scoperta
+- **Due radici**: limite unitario / attraversamento unitario.
+- **Singolare**: la curva fit-ready prima che `1` sia interpretato come attrattore o come taglio.
+- **Invariante di passaggio**: la disponibilita del denominatore completo sopravvive; il claim di convergenza a 1 non sopravvive.
+- **Campo di possibilita**: qui diventa possibile usare `V_c=1` come veto strutturale nei futuri fit; qui diventa non-possibile formulare `V_c(phi) -> 1` come claim osservato dall'alto su questo perimetro.
+
+## Consecutio
+Il prossimo ciclo che estende N deve partire dal veto unitario: se N piu' alti vengono calcolati, il claim non e' "converge a 1", ma "dopo l'attraversamento, la curva resta sotto 1, rientra, o cambia famiglia". Il denominatore da preservare e' `complete + unit_status`, non solo `fit_ready`.
+
+## Auto-audit: source flags e 7 lenti
+- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/data/seme.json`, `tools/dnd_scenario.py --best`, report `agent_20260509_1337.md`, report `agent_20260509_1400.md`, JSON `tools/data/vc_fit_model_gate_20260509_1400.json`, nuovo JSON `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- **L1 hard constraint**: il verdict vale solo per le 13 righe ammissibili del deposito 14:00 e N={89,144,233,377}.
+- **L2 count grezzi**: riportati 12/13 sotto 1, 9/13 attraversamenti, 1/13 sopra 1, 3/13 tutte sotto 1.
+- **L3 no silent patching**: nessun nuovo spettro, nessun nuovo N usato come evidenza, nessuna modifica ai depositi 13:37/14:00.
+- **L4 edge cases**: l'unica riga sopra 1 e' contaminata con 6 esclusioni; non chiude il claim hard.
+- **L5 re-discovery**: il finding non ripete "V_c scende"; misura il bordo unitario come veto atomico.
+- **L6 metabolismo cognitivo**: CE-0001, CE-0117 e YSN usati nella combo.
+- **L7 possibile/non-possibile**: possibile = unit boundary audit; non-possibile = convergenza a 1 dall'alto nel perimetro osservato.
+
+## Telemetria
+- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` assenti nell'ambiente.
+- Verifica script: `python -m py_compile tools/exp_vc_unit_boundary_audit.py`.
+- Run valido: `python tools/exp_vc_unit_boundary_audit.py --input tools/data/vc_fit_model_gate_20260509_1400.json --out tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Un tentativo di ricomputo esteso su N alti non ha prodotto deposito leggibile in tempo utile e non e' usato come evidenza.
+- Git state: worktree gia' sporco da cicli precedenti; questo cycle aggiunge solo lo script unit-boundary, il JSON 1457 e questo report.
+
+## Files
+- Script nuovo: `tools/exp_vc_unit_boundary_audit.py`
+- Data: `tools/data/vc_unit_boundary_audit_20260509_1457.json`
+- Report: `tools/data/reports/agent_20260509_1457.md`
diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

 succeeded in 231ms:
# TM7 hook manager report

- generated_at: 2026-05-09T15:05:49+00:00
- event: post_change
- matched_rules: 1

## Event instructions

**Post-change cascade**

- Map downstream consumers of every touched file.
- Run the smallest relevant verification first.
- Separate local file state, git state, generated data, and live/public state.
- Record residual risk if any check is skipped.

## Paths

- /opt/MM_D-ND/tools/exp_vc_unit_boundary_audit.py
- /opt/MM_D-ND/tools/data/vc_unit_boundary_audit_20260509_1457.json
- /opt/MM_D-ND/tools/data/reports/agent_20260509_1457.md

## Matched context

### MM_D-ND live physics lab

Instructions:
- This is the live lab generator territory with many cycle outputs.
- Worktree dirtiness can be normal cycle output; never commit broad changes blindly.
- Do not read .env, keys, tokens, or credential files unless explicitly required and approved.

Read before action:
- /opt/MM_D-ND/HANDOVER_CODEX_2026-05-07.md
- /opt/MM_D-ND/PIANO_REVISIONE_LAB_2026-05-07.md
- /opt/MM_D-ND/tools/LAB_AGENT_CONTEXT.md

Suggested checks:
- git -C /opt/MM_D-ND status --short --branch
- tail -5 /opt/MM_D-ND/tools/data/lab_session_log.jsonl
- bash /opt/MM_D-ND/tools/test_cron_exact.sh 600

Cascade:
- If tools/lab_agent.sh changes, inspect provider chain, falsifier gates, SSP pipeline, notifications, and session log.
- If build_applications_index.py changes, verify lab-d-nd-site data and page consumers.
- If SSP trigger scripts change, verify stage contracts and published/scoperte separation.
- If seme or knowledge data changes, check whether it is cycle output or intentional canonical change.

## Imported TM3 hook functions

- `share_reflex` (manual_equivalent): Share/write a reflex after significant writes.
  Source: `share_reflex.sh`. Implemented as packets under /opt/tm7/packets.
- `cascade_check` (active_equivalent): After changes, list downstream checks and propagation requirements.
  Source: `cascade_check.sh`. Implemented by hook_rules path cascade.
- `session_thread` (manual_equivalent): Track recent actions for session continuity.
  Source: `session_thread.sh`. For Codex, use packets and final summaries; future state file possible.
- `gyroscope` (manual_equivalent): Detect drift patterns: repeated errors, many content changes, need cascade/system check.
  Source: `gyroscope.sh`. Partially represented by post_change/pre_commit reports.

## Gate

- Do not commit/deploy until the relevant suggested checks are either run or explicitly marked skipped with reason.


 succeeded in 297ms:
{
  "experiment": "vc_unit_boundary_audit",
  "counts": {
    "rows": 13,
    "by_unit_status": {
      "all_above_unit": 1,
      "all_below_unit": 3,
      "crosses_down_inside_window": 9
    },
    "by_generator_class_status": {
      "order_memory": {
        "all_above_unit": 1,
        "crosses_down_inside_window": 5
      },
      "periodic_closure": {
        "all_below_unit": 2,
        "crosses_down_inside_window": 1
      },
      "random_dispersion": {
        "all_below_unit": 1
      },
      "reference_order": {
        "crosses_down_inside_window": 3
      }
    },
    "rows_below_unit": 12,
    "crosses_down_inside_window": 9
  },
  "out": "/tmp/vc_unit_boundary_audit_1457_verify.json"
}

exec
/bin/bash -lc 'cmp -s tools/data/vc_unit_boundary_audit_20260509_1457.json /tmp/vc_unit_boundary_audit_1457_verify.json && echo verify_match || echo verify_diff' in /opt/MM_D-ND
 succeeded in 0ms:
verify_match

diff --git a/tools/data/reports/agent_20260509_1457.md b/tools/data/reports/agent_20260509_1457.md
new file mode 100644
index 0000000000000000000000000000000000000000..743a0e1212b8c4e96656a71bf09a31c53c887c81
--- /dev/null
+++ b/tools/data/reports/agent_20260509_1457.md
@@ -0,0 +1,128 @@
+# Agent Report - Vc Unit Boundary Audit
+**Date**: 2026-05-09 14:57
+**Piano**: 107
+**Tension explored**: TENS_SCALE_TRASCENDENZA_LIMITE / TRASCENDENZA_LIMITE (0.6 / 0.9)
+**verdict**: FALSIFIED as convergence-to-1-from-above in the observed fit-ready window
+observables_registry: 1.0.0-2026-05-06
+observables_used: [`unit_status`, `unit_crossing_N`, `below_unit_count`, `fit_ready_rows`, `denominator_state`, `best_model`] - osservabili domain-native, non canonici SR/SR2/L1/L2/triple_var.
+**observable_contract**: claim=`V_c(phi)` converge a 1 come limite leggibile del canale ordinato; observable=relazione dei punti fit-ready con il bordo `V_c=1`; operator=`exp_vc_unit_boundary_audit.py` su deposito `vc_fit_model_gate_20260509_1400`; generator=`reference_order`, `order_memory`, `periodic_closure`, `random_dispersion`; denominator=13 righe ammissibili `complete/contaminated` del fit model gate, N={89,144,233,377}, soglie r={0.48,0.50,0.52}, livelli `per_mode_best` e `accepted_candidates`; non_possible=dichiarare convergenza a 1 dall'alto quando la curva osservata attraversa sotto 1 nel perimetro; not_tested=nuovi spettri, nuovi N, nuovi candidati, limite asintotico oltre la finestra osservata.
+
+## Respiro fuori-tempo
+- **Prima impressione**: il bordo `V_c=1` non e' attrattore osservato; e' un taglio attraversato dal canale fit-ready.
+- **Combo**: A2 confine det=-1 + A3 punto fisso come attrattore da falsificare + A9 terzo incluso + QxG continuo/discreto + grafo dei generatori + tensione `TENS_SCALE_TRASCENDENZA_LIMITE`.
+- **Dipolo / punto-zero**: convergenza a 1 / attraversamento di 1; punto-zero = la riga fit-ready prima che il bordo unitario venga trattato come limite o come taglio.
+- **Piano superiore**: grafo della conoscenza e bicono-dipoli. Il valore 1 e' nodo di bordo: decide quale arco puo' ricevere il claim di limite.
+- **Operatori laterali scelti**: boundary operator, graph cut, fit come morfismo. Entrano per separare il bordo unitario dal modello numerico.
+- **Contaminazione cognitiva**: CE-0001 / KSAR: reiterazione sul deposito 14:00 senza ricomputare spettri; CE-0117: cascata della possibilita, il claim di limite passa solo dove il bordo non e' attraversato; YSN DeltaLink: `fit-ready curve -> unit cut -> limit veto`.
+- **Proto-ipotesi**: se una curva fit-ready attraversa `V_c=1` dentro la finestra osservata, il claim "converge a 1 dall'alto" cade su quel perimetro; il bordo unitario resta coordinata di taglio, non attrattore.
+- **Possibile / non-possibile**: possibile = usare `V_c=1` come unit boundary audit; non-possibile = chiamarlo limite osservato quando 12/13 righe hanno punti sotto 1.
+- **Proiezione**: classifico ogni riga ammissibile come `all_above_unit`, `crosses_down_inside_window`, o `all_below_unit`, e calcolo `unit_crossing_N` per le righe che attraversano.
+
+## Claim Under Test
+> Nel perimetro fit-ready 14:00, il canale ordinato sostiene `V_c -> 1` come limite osservato dall'alto.
+
+## Question
+Il bordo `V_c=1` si comporta come attrattore della scala o come taglio attraversato dalle curve fit-ready?
+
+## Experiment Design
+- Nuovo strumento: `tools/exp_vc_unit_boundary_audit.py`.
+- Input: `tools/data/vc_fit_model_gate_20260509_1400.json`.
+- Output: `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Perimetro atomico: 13 righe ammissibili del model gate, gia' filtrate da `denominator_state in {complete, contaminated}`.
+- Operatore: per ogni riga ordino i punti `(N, V_c)`, conto i valori sotto 1, e interpolo il primo attraversamento del bordo unitario quando avviene tra due N consecutivi.
+- Contratto osservabile-operatore: il ciclo misura il bordo unitario sul deposito 14:00; non misura nuovi N, non testa l'asintoto, non ripara il fit.
+
+## Results
+
+Indice globale:
+
+| measure | value |
+|---|---:|
+| admissible rows audited | 13 |
+| rows with any `V_c < 1` | 12 |
+| `crosses_down_inside_window` | 9 |
+| `all_below_unit` | 3 |
+| `all_above_unit` | 1 |
+
+Stati per classe generatore:
+
+| generator_class | all_above | crosses_down | all_below |
+|---|---:|---:|---:|
+| reference_order | 0 | 3 | 0 |
+| order_memory | 1 | 5 | 0 |
+| periodic_closure | 0 | 1 | 2 |
+| random_dispersion | 0 | 0 | 1 |
+
+Canale ordinato, righe complete/contaminate:
+
+| row | state | fit_ready/total | excluded | first V_c | last V_c | unit status | crossing N |
+|---|---|---:|---:|---:|---:|---|---:|
+| per_mode_best:reference_order:r0.48 | complete | 16/16 | 0 | 1.311 | 0.955 | crosses_down | 348.753 |
+| per_mode_best:reference_order:r0.50 | complete | 16/16 | 0 | 1.191 | 0.879 | crosses_down | 276.876 |
+| per_mode_best:reference_order:r0.52 | complete | 16/16 | 0 | 1.072 | 0.807 | crosses_down | 151.973 |
+| per_mode_best:order_memory:r0.48 | complete | 48/48 | 0 | 1.432 | 0.893 | crosses_down | 315.760 |
+| per_mode_best:order_memory:r0.50 | complete | 48/48 | 0 | 1.317 | 0.774 | crosses_down | 255.737 |
+| per_mode_best:order_memory:r0.52 | complete | 48/48 | 0 | 1.218 | 0.688 | crosses_down | 188.585 |
+| accepted_candidates:order_memory:r0.48 | contaminated | 273/279 | 6 | 1.474 | 1.069 | all_above | blank |
+| accepted_candidates:order_memory:r0.50 | contaminated | 278/279 | 1 | 1.350 | 0.899 | crosses_down | 332.733 |
+| accepted_candidates:order_memory:r0.52 | complete | 279/279 | 0 | 1.236 | 0.781 | crosses_down | 272.895 |
+
+Primi attraversamenti del bordo:
+
+| row | crossing N |
+|---|---:|
+| per_mode_best:periodic_closure:r0.48 | 105.734 |
+| per_mode_best:reference_order:r0.52 | 151.973 |
+| per_mode_best:order_memory:r0.52 | 188.585 |
+| per_mode_best:order_memory:r0.50 | 255.737 |
+| accepted_candidates:order_memory:r0.52 | 272.895 |
+| per_mode_best:reference_order:r0.50 | 276.876 |
+| per_mode_best:order_memory:r0.48 | 315.760 |
+| accepted_candidates:order_memory:r0.50 | 332.733 |
+
+## Key Findings
+1. **Verificato: il claim `converge a 1 dall'alto` cade nel perimetro osservato.** 12/13 righe ammissibili hanno almeno un punto fit-ready sotto `V_c=1`.
+2. **Verificato: il canale ordinato completo attraversa il bordo.** `reference_order` fa 3/3 attraversamenti; `order_memory` per-mode-best fa 3/3 attraversamenti; tutti con denominatore `complete`.
+3. **Verificato: l'unica riga all-above e' contaminata.** `accepted_candidates:order_memory:r0.48` resta sopra 1, ma ha 273/279 righe fit-ready e 6 righe escluse; non puo' sostenere da sola il claim hard.
+4. **Verificato: `periodic_closure` e `random_dispersion` non salvano il limite.** Due righe `periodic_closure` e una `random_dispersion` sono gia' tutte sotto 1; il loro denominatore era contaminato e non appartiene al canale ordinato completo.
+5. **Inferito: il nodo regressivo non e' scegliere un nuovo modello di fit.** Il bordo unitario va promosso a veto osservabile prima del claim di limite.
+
+## Verdict
+**FALSIFIED** nel perimetro osservato.
+
+`V_c=1` non opera come limite osservato dall'alto sulle righe fit-ready 14:00. Opera come bordo attraversato. Il canale ordinato resta fittabile e lineare nel perimetro, ma proprio quel canale scende sotto 1: `reference_order` 3/3 e `order_memory` per-mode-best 3/3 attraversano il bordo dentro N={89,144,233,377}.
+
+La formulazione valida diventa:
+
+`V_c=1` e' un unit boundary audit del sottografo fit-ready; non e' attrattore verificato della scala nel perimetro 14:00.
+
+## Bicono della scoperta
+- **Due radici**: limite unitario / attraversamento unitario.
+- **Singolare**: la curva fit-ready prima che `1` sia interpretato come attrattore o come taglio.
+- **Invariante di passaggio**: la disponibilita del denominatore completo sopravvive; il claim di convergenza a 1 non sopravvive.
+- **Campo di possibilita**: qui diventa possibile usare `V_c=1` come veto strutturale nei futuri fit; qui diventa non-possibile formulare `V_c(phi) -> 1` come claim osservato dall'alto su questo perimetro.
+
+## Consecutio
+Il prossimo ciclo che estende N deve partire dal veto unitario: se N piu' alti vengono calcolati, il claim non e' "converge a 1", ma "dopo l'attraversamento, la curva resta sotto 1, rientra, o cambia famiglia". Il denominatore da preservare e' `complete + unit_status`, non solo `fit_ready`.
+
+## Auto-audit: source flags e 7 lenti
+- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/data/seme.json`, `tools/dnd_scenario.py --best`, report `agent_20260509_1337.md`, report `agent_20260509_1400.md`, JSON `tools/data/vc_fit_model_gate_20260509_1400.json`, nuovo JSON `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- **L1 hard constraint**: il verdict vale solo per le 13 righe ammissibili del deposito 14:00 e N={89,144,233,377}.
+- **L2 count grezzi**: riportati 12/13 sotto 1, 9/13 attraversamenti, 1/13 sopra 1, 3/13 tutte sotto 1.
+- **L3 no silent patching**: nessun nuovo spettro, nessun nuovo N usato come evidenza, nessuna modifica ai depositi 13:37/14:00.
+- **L4 edge cases**: l'unica riga sopra 1 e' contaminata con 6 esclusioni; non chiude il claim hard.
+- **L5 re-discovery**: il finding non ripete "V_c scende"; misura il bordo unitario come veto atomico.
+- **L6 metabolismo cognitivo**: CE-0001, CE-0117 e YSN usati nella combo.
+- **L7 possibile/non-possibile**: possibile = unit boundary audit; non-possibile = convergenza a 1 dall'alto nel perimetro osservato.
+
+## Telemetria
+- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` assenti nell'ambiente.
+- Verifica script: `python -m py_compile tools/exp_vc_unit_boundary_audit.py`.
+- Run valido: `python tools/exp_vc_unit_boundary_audit.py --input tools/data/vc_fit_model_gate_20260509_1400.json --out tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Un tentativo di ricomputo esteso su N alti non ha prodotto deposito leggibile in tempo utile e non e' usato come evidenza.
+- Git state: worktree gia' sporco da cicli precedenti; questo cycle aggiunge solo lo script unit-boundary, il JSON 1457 e questo report.
+
+## Files
+- Script nuovo: `tools/exp_vc_unit_boundary_audit.py`
+- Data: `tools/data/vc_unit_boundary_audit_20260509_1457.json`
+- Report: `tools/data/reports/agent_20260509_1457.md`
diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

codex
Eseguito il ciclo e scritto il report richiesto:

[tools/data/reports/agent_20260509_1457.md](/opt/MM_D-ND/tools/data/reports/agent_20260509_1457.md)

Artefatti creati:
- [tools/exp_vc_unit_boundary_audit.py](/opt/MM_D-ND/tools/exp_vc_unit_boundary_audit.py)
- [tools/data/vc_unit_boundary_audit_20260509_1457.json](/opt/MM_D-ND/tools/data/vc_unit_boundary_audit_20260509_1457.json)

Risultato verificato: nel perimetro fit-ready 14:00, `V_c=1` non regge come convergenza osservata dall’alto. Su 13 righe ammissibili, 12 hanno almeno un punto sotto `V_c=1`, 9 attraversano il bordo dentro la finestra osservata. Verifica ripetuta su `/tmp` e output identico (`cmp` match).
diff --git a/tools/data/reports/agent_20260509_1457.md b/tools/data/reports/agent_20260509_1457.md
new file mode 100644
index 0000000000000000000000000000000000000000..743a0e1212b8c4e96656a71bf09a31c53c887c81
--- /dev/null
+++ b/tools/data/reports/agent_20260509_1457.md
@@ -0,0 +1,128 @@
+# Agent Report - Vc Unit Boundary Audit
+**Date**: 2026-05-09 14:57
+**Piano**: 107
+**Tension explored**: TENS_SCALE_TRASCENDENZA_LIMITE / TRASCENDENZA_LIMITE (0.6 / 0.9)
+**verdict**: FALSIFIED as convergence-to-1-from-above in the observed fit-ready window
+observables_registry: 1.0.0-2026-05-06
+observables_used: [`unit_status`, `unit_crossing_N`, `below_unit_count`, `fit_ready_rows`, `denominator_state`, `best_model`] - osservabili domain-native, non canonici SR/SR2/L1/L2/triple_var.
+**observable_contract**: claim=`V_c(phi)` converge a 1 come limite leggibile del canale ordinato; observable=relazione dei punti fit-ready con il bordo `V_c=1`; operator=`exp_vc_unit_boundary_audit.py` su deposito `vc_fit_model_gate_20260509_1400`; generator=`reference_order`, `order_memory`, `periodic_closure`, `random_dispersion`; denominator=13 righe ammissibili `complete/contaminated` del fit model gate, N={89,144,233,377}, soglie r={0.48,0.50,0.52}, livelli `per_mode_best` e `accepted_candidates`; non_possible=dichiarare convergenza a 1 dall'alto quando la curva osservata attraversa sotto 1 nel perimetro; not_tested=nuovi spettri, nuovi N, nuovi candidati, limite asintotico oltre la finestra osservata.
+
+## Respiro fuori-tempo
+- **Prima impressione**: il bordo `V_c=1` non e' attrattore osservato; e' un taglio attraversato dal canale fit-ready.
+- **Combo**: A2 confine det=-1 + A3 punto fisso come attrattore da falsificare + A9 terzo incluso + QxG continuo/discreto + grafo dei generatori + tensione `TENS_SCALE_TRASCENDENZA_LIMITE`.
+- **Dipolo / punto-zero**: convergenza a 1 / attraversamento di 1; punto-zero = la riga fit-ready prima che il bordo unitario venga trattato come limite o come taglio.
+- **Piano superiore**: grafo della conoscenza e bicono-dipoli. Il valore 1 e' nodo di bordo: decide quale arco puo' ricevere il claim di limite.
+- **Operatori laterali scelti**: boundary operator, graph cut, fit come morfismo. Entrano per separare il bordo unitario dal modello numerico.
+- **Contaminazione cognitiva**: CE-0001 / KSAR: reiterazione sul deposito 14:00 senza ricomputare spettri; CE-0117: cascata della possibilita, il claim di limite passa solo dove il bordo non e' attraversato; YSN DeltaLink: `fit-ready curve -> unit cut -> limit veto`.
+- **Proto-ipotesi**: se una curva fit-ready attraversa `V_c=1` dentro la finestra osservata, il claim "converge a 1 dall'alto" cade su quel perimetro; il bordo unitario resta coordinata di taglio, non attrattore.
+- **Possibile / non-possibile**: possibile = usare `V_c=1` come unit boundary audit; non-possibile = chiamarlo limite osservato quando 12/13 righe hanno punti sotto 1.
+- **Proiezione**: classifico ogni riga ammissibile come `all_above_unit`, `crosses_down_inside_window`, o `all_below_unit`, e calcolo `unit_crossing_N` per le righe che attraversano.
+
+## Claim Under Test
+> Nel perimetro fit-ready 14:00, il canale ordinato sostiene `V_c -> 1` come limite osservato dall'alto.
+
+## Question
+Il bordo `V_c=1` si comporta come attrattore della scala o come taglio attraversato dalle curve fit-ready?
+
+## Experiment Design
+- Nuovo strumento: `tools/exp_vc_unit_boundary_audit.py`.
+- Input: `tools/data/vc_fit_model_gate_20260509_1400.json`.
+- Output: `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Perimetro atomico: 13 righe ammissibili del model gate, gia' filtrate da `denominator_state in {complete, contaminated}`.
+- Operatore: per ogni riga ordino i punti `(N, V_c)`, conto i valori sotto 1, e interpolo il primo attraversamento del bordo unitario quando avviene tra due N consecutivi.
+- Contratto osservabile-operatore: il ciclo misura il bordo unitario sul deposito 14:00; non misura nuovi N, non testa l'asintoto, non ripara il fit.
+
+## Results
+
+Indice globale:
+
+| measure | value |
+|---|---:|
+| admissible rows audited | 13 |
+| rows with any `V_c < 1` | 12 |
+| `crosses_down_inside_window` | 9 |
+| `all_below_unit` | 3 |
+| `all_above_unit` | 1 |
+
+Stati per classe generatore:
+
+| generator_class | all_above | crosses_down | all_below |
+|---|---:|---:|---:|
+| reference_order | 0 | 3 | 0 |
+| order_memory | 1 | 5 | 0 |
+| periodic_closure | 0 | 1 | 2 |
+| random_dispersion | 0 | 0 | 1 |
+
+Canale ordinato, righe complete/contaminate:
+
+| row | state | fit_ready/total | excluded | first V_c | last V_c | unit status | crossing N |
+|---|---|---:|---:|---:|---:|---|---:|
+| per_mode_best:reference_order:r0.48 | complete | 16/16 | 0 | 1.311 | 0.955 | crosses_down | 348.753 |
+| per_mode_best:reference_order:r0.50 | complete | 16/16 | 0 | 1.191 | 0.879 | crosses_down | 276.876 |
+| per_mode_best:reference_order:r0.52 | complete | 16/16 | 0 | 1.072 | 0.807 | crosses_down | 151.973 |
+| per_mode_best:order_memory:r0.48 | complete | 48/48 | 0 | 1.432 | 0.893 | crosses_down | 315.760 |
+| per_mode_best:order_memory:r0.50 | complete | 48/48 | 0 | 1.317 | 0.774 | crosses_down | 255.737 |
+| per_mode_best:order_memory:r0.52 | complete | 48/48 | 0 | 1.218 | 0.688 | crosses_down | 188.585 |
+| accepted_candidates:order_memory:r0.48 | contaminated | 273/279 | 6 | 1.474 | 1.069 | all_above | blank |
+| accepted_candidates:order_memory:r0.50 | contaminated | 278/279 | 1 | 1.350 | 0.899 | crosses_down | 332.733 |
+| accepted_candidates:order_memory:r0.52 | complete | 279/279 | 0 | 1.236 | 0.781 | crosses_down | 272.895 |
+
+Primi attraversamenti del bordo:
+
+| row | crossing N |
+|---|---:|
+| per_mode_best:periodic_closure:r0.48 | 105.734 |
+| per_mode_best:reference_order:r0.52 | 151.973 |
+| per_mode_best:order_memory:r0.52 | 188.585 |
+| per_mode_best:order_memory:r0.50 | 255.737 |
+| accepted_candidates:order_memory:r0.52 | 272.895 |
+| per_mode_best:reference_order:r0.50 | 276.876 |
+| per_mode_best:order_memory:r0.48 | 315.760 |
+| accepted_candidates:order_memory:r0.50 | 332.733 |
+
+## Key Findings
+1. **Verificato: il claim `converge a 1 dall'alto` cade nel perimetro osservato.** 12/13 righe ammissibili hanno almeno un punto fit-ready sotto `V_c=1`.
+2. **Verificato: il canale ordinato completo attraversa il bordo.** `reference_order` fa 3/3 attraversamenti; `order_memory` per-mode-best fa 3/3 attraversamenti; tutti con denominatore `complete`.
+3. **Verificato: l'unica riga all-above e' contaminata.** `accepted_candidates:order_memory:r0.48` resta sopra 1, ma ha 273/279 righe fit-ready e 6 righe escluse; non puo' sostenere da sola il claim hard.
+4. **Verificato: `periodic_closure` e `random_dispersion` non salvano il limite.** Due righe `periodic_closure` e una `random_dispersion` sono gia' tutte sotto 1; il loro denominatore era contaminato e non appartiene al canale ordinato completo.
+5. **Inferito: il nodo regressivo non e' scegliere un nuovo modello di fit.** Il bordo unitario va promosso a veto osservabile prima del claim di limite.
+
+## Verdict
+**FALSIFIED** nel perimetro osservato.
+
+`V_c=1` non opera come limite osservato dall'alto sulle righe fit-ready 14:00. Opera come bordo attraversato. Il canale ordinato resta fittabile e lineare nel perimetro, ma proprio quel canale scende sotto 1: `reference_order` 3/3 e `order_memory` per-mode-best 3/3 attraversano il bordo dentro N={89,144,233,377}.
+
+La formulazione valida diventa:
+
+`V_c=1` e' un unit boundary audit del sottografo fit-ready; non e' attrattore verificato della scala nel perimetro 14:00.
+
+## Bicono della scoperta
+- **Due radici**: limite unitario / attraversamento unitario.
+- **Singolare**: la curva fit-ready prima che `1` sia interpretato come attrattore o come taglio.
+- **Invariante di passaggio**: la disponibilita del denominatore completo sopravvive; il claim di convergenza a 1 non sopravvive.
+- **Campo di possibilita**: qui diventa possibile usare `V_c=1` come veto strutturale nei futuri fit; qui diventa non-possibile formulare `V_c(phi) -> 1` come claim osservato dall'alto su questo perimetro.
+
+## Consecutio
+Il prossimo ciclo che estende N deve partire dal veto unitario: se N piu' alti vengono calcolati, il claim non e' "converge a 1", ma "dopo l'attraversamento, la curva resta sotto 1, rientra, o cambia famiglia". Il denominatore da preservare e' `complete + unit_status`, non solo `fit_ready`.
+
+## Auto-audit: source flags e 7 lenti
+- **Fonti**: Verificato da `tools/data/agent_field_live.md`, `tools/LAB_AGENT_CONTEXT.md`, `tools/data/seme.json`, `tools/dnd_scenario.py --best`, report `agent_20260509_1337.md`, report `agent_20260509_1400.md`, JSON `tools/data/vc_fit_model_gate_20260509_1400.json`, nuovo JSON `tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- **L1 hard constraint**: il verdict vale solo per le 13 righe ammissibili del deposito 14:00 e N={89,144,233,377}.
+- **L2 count grezzi**: riportati 12/13 sotto 1, 9/13 attraversamenti, 1/13 sopra 1, 3/13 tutte sotto 1.
+- **L3 no silent patching**: nessun nuovo spettro, nessun nuovo N usato come evidenza, nessuna modifica ai depositi 13:37/14:00.
+- **L4 edge cases**: l'unica riga sopra 1 e' contaminata con 6 esclusioni; non chiude il claim hard.
+- **L5 re-discovery**: il finding non ripete "V_c scende"; misura il bordo unitario come veto atomico.
+- **L6 metabolismo cognitivo**: CE-0001, CE-0117 e YSN usati nella combo.
+- **L7 possibile/non-possibile**: possibile = unit boundary audit; non-possibile = convergenza a 1 dall'alto nel perimetro osservato.
+
+## Telemetria
+- No API paid run: `ANTHROPIC_API_KEY` e `OPENAI_API_KEY` assenti nell'ambiente.
+- Verifica script: `python -m py_compile tools/exp_vc_unit_boundary_audit.py`.
+- Run valido: `python tools/exp_vc_unit_boundary_audit.py --input tools/data/vc_fit_model_gate_20260509_1400.json --out tools/data/vc_unit_boundary_audit_20260509_1457.json`.
+- Un tentativo di ricomputo esteso su N alti non ha prodotto deposito leggibile in tempo utile e non e' usato come evidenza.
+- Git state: worktree gia' sporco da cicli precedenti; questo cycle aggiunge solo lo script unit-boundary, il JSON 1457 e questo report.
+
+## Files
+- Script nuovo: `tools/exp_vc_unit_boundary_audit.py`
+- Data: `tools/data/vc_unit_boundary_audit_20260509_1457.json`
+- Report: `tools/data/reports/agent_20260509_1457.md`
diff --git a/tools/exp_vc_unit_boundary_audit.py b/tools/exp_vc_unit_boundary_audit.py
new file mode 100644
index 0000000000000000000000000000000000000000..cfee1936c9123fc56dc5a5a3eb741522b2dc140d
--- /dev/null
+++ b/tools/exp_vc_unit_boundary_audit.py
@@ -0,0 +1,138 @@
+#!/usr/bin/env python3
+"""
+Audit the V_c=1 boundary after the fit-ready/model gate.
+
+This tool does not recompute spectra. It reads the model-gate deposit and asks
+whether the observed fit-ready curves stay above 1, cross 1 inside the measured
+window, or are already below 1. The unit boundary is treated as a structural
+cut, not as a fitted attractor.
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+from pathlib import Path
+from typing import Any
+
+
+def crossing_n(points: list[list[float]], target: float = 1.0) -> float | None:
+    ordered = sorted((float(n), float(v)) for n, v in points)
+    for (n0, v0), (n1, v1) in zip(ordered[:-1], ordered[1:]):
+        if v0 == target:
+            return n0
+        if (v0 - target) * (v1 - target) <= 0 and v0 != v1:
+            return n0 + (target - v0) * (n1 - n0) / (v1 - v0)
+    if ordered and ordered[-1][1] == target:
+        return ordered[-1][0]
+    return None
+
+
+def unit_status(points: list[list[float]]) -> str:
+    values = [float(point[1]) for point in points]
+    if not values:
+        return "absent"
+    below = [value < 1.0 for value in values]
+    above = [value > 1.0 for value in values]
+    if all(above):
+        return "all_above_unit"
+    if all(below):
+        return "all_below_unit"
+    if above[0] and below[-1]:
+        return "crosses_down_inside_window"
+    if below[0] and above[-1]:
+        return "crosses_up_inside_window"
+    return "mixed_inside_window"
+
+
+def split_class(class_threshold: str) -> str:
+    return class_threshold.split(":", 1)[0]
+
+
+def summarize_row(row: dict[str, Any]) -> dict[str, Any]:
+    points = row.get("fit_points", [])
+    values = [float(point[1]) for point in points]
+    status = unit_status(points)
+    return {
+        "row_id": f"{row['level']}:{row['class_threshold']}",
+        "level": row["level"],
+        "generator_class": split_class(row["class_threshold"]),
+        "class_threshold": row["class_threshold"],
+        "denominator_state": row["denominator_state"],
+        "fit_ready_rows": row["fit_ready_rows"],
+        "total_rows": row["total_rows"],
+        "excluded_rows": row["excluded_rows"],
+        "best_model": row.get("best_model"),
+        "delta_aicc_to_second": row.get("delta_aicc_to_second"),
+        "unit_status": status,
+        "unit_crossing_N": crossing_n(points),
+        "first_value": values[0] if values else None,
+        "last_value": values[-1] if values else None,
+        "below_unit_count": sum(1 for value in values if value < 1.0),
+        "fit_points": points,
+    }
+
+
+def run(args: argparse.Namespace) -> dict[str, Any]:
+    source = Path(args.input)
+    data = json.loads(source.read_text(encoding="utf-8"))
+    rows = [summarize_row(row) for row in data.get("summaries", [])]
+
+    by_status: dict[str, int] = {}
+    by_class_status: dict[str, dict[str, int]] = {}
+    for row in rows:
+        by_status[row["unit_status"]] = by_status.get(row["unit_status"], 0) + 1
+        class_index = by_class_status.setdefault(row["generator_class"], {})
+        class_index[row["unit_status"]] = class_index.get(row["unit_status"], 0) + 1
+
+    crosses = [row for row in rows if row["unit_status"] == "crosses_down_inside_window"]
+    ordered_crosses = sorted(
+        crosses,
+        key=lambda row: row["unit_crossing_N"] if row["unit_crossing_N"] is not None else 1e18,
+    )
+
+    return {
+        "experiment": "vc_unit_boundary_audit",
+        "input": str(source),
+        "contract": {
+            "unit_boundary": "V_c = 1",
+            "observable": "fit-ready V_c points from vc_fit_model_gate",
+            "operator": "classify each admissible row by its observed relation to V_c=1",
+            "non_possible": "claiming convergence to 1 from above when an observed fit-ready point is already below 1",
+            "not_tested": "new spectra, new N, new candidates, asymptotic limit beyond observed window",
+        },
+        "counts": {
+            "rows": len(rows),
+            "by_unit_status": dict(sorted(by_status.items())),
+            "by_generator_class_status": {
+                klass: dict(sorted(statuses.items()))
+                for klass, statuses in sorted(by_class_status.items())
+            },
+            "rows_below_unit": sum(1 for row in rows if row["below_unit_count"] > 0),
+            "crosses_down_inside_window": len(crosses),
+        },
+        "earliest_crosses": ordered_crosses[:8],
+        "rows": rows,
+    }
+
+
+def main() -> None:
+    parser = argparse.ArgumentParser()
+    parser.add_argument("--input", required=True)
+    parser.add_argument("--out", required=True)
+    args = parser.parse_args()
+
+    output = run(args)
+    out = Path(args.out)
+    out.parent.mkdir(parents=True, exist_ok=True)
+    out.write_text(json.dumps(output, indent=2), encoding="utf-8")
+
+    print(json.dumps({
+        "experiment": output["experiment"],
+        "counts": output["counts"],
+        "out": str(out),
+    }, indent=2))
+
+
+if __name__ == "__main__":
+    main()

tokens used
152,953
Eseguito il ciclo e scritto il report richiesto:

[tools/data/reports/agent_20260509_1457.md](/opt/MM_D-ND/tools/data/reports/agent_20260509_1457.md)

Artefatti creati:
- [tools/exp_vc_unit_boundary_audit.py](/opt/MM_D-ND/tools/exp_vc_unit_boundary_audit.py)
- [tools/data/vc_unit_boundary_audit_20260509_1457.json](/opt/MM_D-ND/tools/data/vc_unit_boundary_audit_20260509_1457.json)

Risultato verificato: nel perimetro fit-ready 14:00, `V_c=1` non regge come convergenza osservata dall’alto. Su 13 righe ammissibili, 12 hanno almeno un punto sotto `V_c=1`, 9 attraversano il bordo dentro la finestra osservata. Verifica ripetuta su `/tmp` e output identico (`cmp` match).
