Skip to content

docs(senato): dettaglio nominativo per ogni voto tranne la segreta#53

Merged
aborruso merged 3 commits into
mainfrom
docs/senato-segreta-roll-call
Jul 11, 2026
Merged

docs(senato): dettaglio nominativo per ogni voto tranne la segreta#53
aborruso merged 3 commits into
mainfrom
docs/senato-segreta-roll-call

Conversation

@aborruso

Copy link
Copy Markdown
Member

Chiude il punto A della gap analysis (segnale roll_call_available), ma ribaltando la premessa iniziale grazie a una verifica empirica.

Cosa è stato verificato (leg. 19, endpoint live)

Ipotesi di partenza: "il dettaglio per-senatore esiste solo per i voti nominale con appello". Falsa. senato-vote-detail restituisce le righe per-senatore per tutte le modalità di osr:tipoVotazione. La differenza vera è cosa contengono:

type righe per-senatore scelta Favorevole/Contrario?
elettronica sì (188)
nominale con appello sì (198)
controprova sì (193)
verifica numero legale sì (83) solo presenze (quorum)
segreta sì (36) NO — solo Presente non votante / In congedo/missione

Prova sul voto segreto 19-155-52: 15 Presente non votante + 21 In congedo/missione, zero Favorevole/Contrario. Corretto: il voto segreto registra la presenza, non la scelta.

Decisione: niente campo nuovo

Il segnale "posso sapere come ha votato il singolo senatore?" è semplicemente type !== "segreta", ed è derivabile dal campo type che senato-votes già espone. Coerente con la convenzione del progetto (niente flag nuovo se derivabile). Si chiude quindi documentando la regola, non aggiungendo schema.

Modifiche

  • senato-vote-detaildescription con il caveat sul voto segreto (segnale agent-friendly per l'LLM: su segreta non dedurre il sì/no).
  • docs/lod-wiki/senato/votazione-tipo-semantico.md — tabella del dettaglio per tipo + nota Virtuoso STR() sul literal tipizzato.
  • skill CLI + MCP — nota breve sul voto segreto nel flusso "come ha votato X".

Nessuna modifica al comportamento runtime.

🤖 Generated with Claude Code

…a segreta

Verifica empirica (leg.19): senato-vote-detail restituisce le righe
per-senatore per TUTTE le modalità di osr:tipoVotazione, non solo
'nominale con appello'. L'unica eccezione è il voto SEGRETO, che alla
fonte non registra la scelta: torna solo le presenze (Presente non
votante, In congedo/missione), mai Favorevole/Contrario.

Il segnale 'roll_call_available' non serve come campo nuovo: è derivabile
da type !== 'segreta', già esposto da senato-votes.

- senato-vote-detail: description col caveat voto segreto (agent-friendly)
- wiki votazione-tipo-semantico.md: tabella dettaglio per tipo + nota STR()
- skill CLI + MCP: nota voto segreto

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 11, 2026 07:44
@greptile-apps

greptile-apps Bot commented Jul 11, 2026

Copy link
Copy Markdown

Greptile Summary

This PR documents when Senato vote details include an individual expressed choice.

  • Adds a roll-call availability table to the Senato LOD wiki note.
  • Clarifies that secret ballots and quorum checks only expose presence rows.
  • Updates the CLI and MCP skills for “who voted how” workflows.
  • Expands the senato-vote-detail tool description with the same caveat.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
docs/lod-wiki/senato/votazione-tipo-semantico.md Adds the Senato vote-detail table and the practical rule for merit votes versus presence-only vote types.
skills/italian-parliament-cli/SKILL.md Adds CLI guidance for when senato-vote-detail can answer individual vote-choice questions.
skills/italian-parliament-mcp/SKILL.md Adds MCP workflow guidance for handling secret ballots and quorum checks in Senato vote-detail answers.
src/tools/senato-vote-detail.ts Updates the tool description to warn callers that expressed choices are only recorded for merit votes.

Reviews (3): Last reviewed commit: "docs(senato): includi Astenuto tra le sc..." | Re-trigger Greptile

Comment thread docs/lod-wiki/senato/votazione-tipo-semantico.md Outdated
Comment thread skills/italian-parliament-cli/SKILL.md Outdated
Comment thread skills/italian-parliament-mcp/SKILL.md Outdated
Comment thread src/tools/senato-vote-detail.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Questo PR aggiorna la documentazione e le descrizioni/skill relative ai voti del Senato per chiarire che senato-vote-detail restituisce righe nominative anche oltre il solo “nominale con appello”, e introduce un caveat esplicito sul caso del voto segreto per ridurre il rischio di confabulazione (nessun sì/no individuale registrato alla fonte).

Changes:

  • Aggiornata la description di senato-vote-detail con un avviso sui voti type="segreta".
  • Estese le skill (MCP + CLI) con una nota operativa su come riportare correttamente i voti segreti.
  • Arricchita la pagina LOD wiki sul tipoVotazione con tabella e regole pratiche per orchestratori/LLM.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/tools/senato-vote-detail.ts Aggiorna la descrizione del tool con caveat sul voto segreto (riduzione rischio di inferenze errate).
skills/italian-parliament-mcp/SKILL.md Nota operativa (pipeline “who voted how”) per gestire correttamente type=segreta.
skills/italian-parliament-cli/SKILL.md Nota breve nel vademecum CLI per evitare inferenze su votazioni segrete.
docs/lod-wiki/senato/votazione-tipo-semantico.md Documenta semantica di osr:tipoVotazione, tabella per tipo, e regola pratica per LLM/orchestratore.

Comment thread skills/italian-parliament-mcp/SKILL.md Outdated
Comment thread skills/italian-parliament-cli/SKILL.md Outdated
Comment thread docs/lod-wiki/senato/votazione-tipo-semantico.md Outdated
Comment thread docs/lod-wiki/senato/votazione-tipo-semantico.md Outdated
Comment thread src/tools/senato-vote-detail.ts Outdated
…individuale

Greptile (P1) + Copilot: la regola diceva type !== segreta, ma anche
verifica numero legale (conteggio del quorum) registra solo presenze,
mai Favorevole/Contrario — come già indicava la tabella. Verificato:
- controprova 19-410-27: 89 Contrario + 46 Favorevole (voto di merito)
- verifica num. legale 19-334-1: solo presenze, 0 Favorevole/Contrario

Segnale corretto: la scelta individuale c'è per i voti di merito
(elettronica, nominale con appello, controprova), NON per segreta e
verifica numero legale → type non in {segreta, verifica numero legale}.

- allineati tool description, wiki, skill CLI+MCP
- wiki timestamp 2026-07-07 → 2026-07-11 (Copilot)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

Comment thread src/tools/senato-vote-detail.ts Outdated
Comment thread skills/italian-parliament-mcp/SKILL.md Outdated
Comment thread skills/italian-parliament-cli/SKILL.md Outdated
Comment thread docs/lod-wiki/senato/votazione-tipo-semantico.md Outdated
…tipizzato

Copilot (2ª passata):
- La scelta espressa include anche Astenuto, non solo Favorevole/Contrario.
  Su segreta e verifica numero legale mancano tutte e tre (solo presenze).
- Nota Virtuoso: aggiunta la forma con literal tipizzato
  osr:tipoVotazione "elettronica"^^xsd:string come alternativa a STR()
  (verificato: 7821 con tipizzato vs 0 con literal semplice).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@aborruso
aborruso merged commit 5a010c1 into main Jul 11, 2026
2 checks passed
@aborruso
aborruso deleted the docs/senato-segreta-roll-call branch July 11, 2026 08:00
aborruso added a commit that referenced this pull request Jul 11, 2026
… ricetta aic

Patch: raccoglie #49 (emptyHint via CLI), #52 (anti-refuso bill_number),
#53 (senato-vote-detail per tipo voto), ricetta sede question time aic, #50.
43 tool invariati, 137/137 test verdi.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants