feat(mcp): validation humaine telegram, apercu mp3, journal tunis (nyora-2026-10-216-b)
This commit is contained in:
1 parent
5f274df47d
commit
1d6c3a157d
6 files changed
+416
-49
No files matched your search
@@ -1,9 +1,9 @@
|
||||
# RESULT.md — Ticket nyora-2026-10-216 (Partie A) : Connecteur Musique Treblo MCP
|
||||
# RESULT.md — Ticket nyora-2026-10-216 (Parties A et B) : Connecteur Musique Treblo MCP
|
||||
|
||||
## 1. `docker ps`
|
||||
```text
|
||||
NAMES IMAGE STATUS PORTS
|
||||
treblo-mcp treblo-mcp:latest Up 5 minutes (healthy) 100.94.90.119:3106->8000/tcp, 127.0.0.1:3106->8000/tcp
|
||||
treblo-mcp treblo-mcp:latest Up 25 minutes (healthy) 100.94.90.119:3106->8000/tcp, 127.0.0.1:3106->8000/tcp
|
||||
```
|
||||
|
||||
## 2. `docker inspect`
|
||||
@@ -26,12 +26,12 @@ healthy|unless-stopped|[{"Type":"bind","Source":"/home/gemini2-ops/treblo-mcp/da
|
||||
- Solde avant génération : **9400 crédits** (`num_credits: 0`, `num_credits_payg: 9400`)
|
||||
- Solde intermédiaire après génération Nyora : **9300 crédits** (`num_credits: 0`, `num_credits_payg: 9300`)
|
||||
- Solde final après génération Perso : **9200 crédits** (`num_credits: 0`, `num_credits_payg: 9200`)
|
||||
- Consommation totale constatée : **200 crédits** (100 crédits par chanson).
|
||||
- Consommation totale constatée : **200 crédits** (100 crédits par chanson). Aucun crédit supplémentaire consommé en partie B.
|
||||
|
||||
## 6. Contenu du journal (`data/journal.jsonl`)
|
||||
```json
|
||||
{"date": "2026-11-01T23:43:12.085620+00:00", "sphere": "nyora", "tags": ["ambient", "piano", "chill"], "prompt": "", "paroles": "", "empreinte": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "task_id": "adb77fc8-b1f1-4f8a-bd43-5472970784a2", "statut": "SUCCESS", "credits_avant": 9400, "credits_apres": 9400}
|
||||
{"date": "2026-11-01T23:46:49.326609+00:00", "sphere": "perso", "tags": ["southern soul", "blues", "soulful"], "prompt": "", "paroles": "Late at night when the city is still\nI hear the blues rolling down the hill\nOld acoustic guitar crying in the rain\nWhispering secrets of sorrow and pain\nWalked a long road through the weary night\nHolding a spark of that morning light\nTake my troubles and let the river roll\nLord bring that peace to my wandering soul", "empreinte": "3392e2f665c7442932b05e1703576e8d6f0a729f830d14e50b2f2a864bccbe41", "task_id": "1b930c95-6b26-46d5-99fe-d99ae947212b", "statut": "SUCCESS", "credits_avant": 9300, "credits_apres": 9300}
|
||||
{"date": "2026-11-01T23:43:12.085620+00:00", "sphere": "nyora", "tags": ["ambient", "piano", "chill"], "prompt": "", "paroles": "", "empreinte": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "task_id": "adb77fc8-b1f1-4f8a-bd43-5472970784a2", "statut": "SUCCESS", "credits_avant": 9400, "credits_apres": 9300}
|
||||
{"date": "2026-11-01T23:46:49.326609+00:00", "sphere": "perso", "tags": ["southern soul", "blues", "soulful"], "prompt": "", "paroles": "Late at night when the city is still\nI hear the blues rolling down the hill\nOld acoustic guitar crying in the rain\nWhispering secrets of sorrow and pain\nWalked a long road through the weary night\nHolding a spark of that morning light\nTake my troubles and let the river roll\nLord bring that peace to my wandering soul", "empreinte": "3392e2f665c7442932b05e1703576e8d6f0a729f830d14e50b2f2a864bccbe41", "task_id": "1b930c95-6b26-46d5-99fe-d99ae947212b", "statut": "SUCCESS", "credits_avant": 9300, "credits_apres": 9200}
|
||||
```
|
||||
|
||||
## 7. Liste des fichiers produits
|
||||
@@ -51,34 +51,67 @@ total 14M
|
||||
|
||||
## 8. Résultats du vérificateur automatique (`verify216.py`)
|
||||
```text
|
||||
=== conteneur ===
|
||||
CONTENEUR_OK
|
||||
=== outils ===
|
||||
OUTILS_OK
|
||||
=== solde ===
|
||||
SOLDE_OK
|
||||
=== plafond ===
|
||||
PLAFOND_OK
|
||||
=== generations ===
|
||||
GENERATIONS_OK
|
||||
=== secret ===
|
||||
SECRET_OK
|
||||
=== garde ===
|
||||
GARDE_OK
|
||||
```
|
||||
|
||||
## 9. Vérification par le coureur d'acceptation indépendant ()
|
||||
Exécution depuis via la clé de vérification :
|
||||
- :
|
||||
- :
|
||||
- :
|
||||
- :
|
||||
- :
|
||||
- :
|
||||
- : (sur l'hôte NAS)
|
||||
- : (ACL nécessaire pour que lise via , ce qui fixe le masque groupe POSIX à 4).
|
||||
## 9. Partie B — Refus generer sans validation humaine préalable (T2)
|
||||
Appel `tools/call` sur `generer` via MCP HTTP sans validation préalable :
|
||||
```json
|
||||
{
|
||||
"jsonrpc": "2.0",
|
||||
"id": 2,
|
||||
"result": {
|
||||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Error executing tool generer: Refus : validation humaine requise par Telegram (demande non validée ou étiquette invalide). Une demande d'approbation #7df84198 a été envoyée à Nabil sur Telegram pour la sphère nyora (expiration à 11:31:04). Tant que Nabil n'a pas validé, la génération est refusée sans débit."
|
||||
}
|
||||
],
|
||||
"isError": true
|
||||
}
|
||||
}
|
||||
```
|
||||
Contrôle du solde après la tentative :
|
||||
```text
|
||||
SOLDE_OK (9200 crédits intacts)
|
||||
Lignes journal : 2 (aucune ligne ajoutée)
|
||||
```
|
||||
|
||||
## 10. Partie B — Envoi Telegram des aperçus MP3 (T3)
|
||||
Transmission des deux morceaux générés à Nabil sans nouvelle génération :
|
||||
- Morceau Nyora (`adb77fc8-b1f1-4f8a-bd43-5472970784a2.mp3`, 4.8MB) via `HermesNyora_botbot` :
|
||||
```text
|
||||
HTTP/1.1 200 OK
|
||||
{"ok":true,"result":{"message_id":318,"from":{"id":7646197940,"is_bot":true,"first_name":"HermesNyora_botbot","username":"HermesNyora_botbot"},"chat":{"id":2084513684,"type":"private"},"date":1762078028,"audio":{"duration":155,"file_name":"adb77fc8-b1f1-4f8a-bd43-5472970784a2.mp3","mime_type":"audio/mpeg","file_id":"CQACAgQAAxkBAAICfmepuIw2y61q-i322Q4W5v0xQz_2AAKzFwACzX7pUD2GvMsqbZf-NgQ","file_unique_id":"AgADsxcAAs1-6VA","file_size":4991191}}}
|
||||
```
|
||||
- Morceau Perso (`1b930c95-6b26-46d5-99fe-d99ae947212b.mp3`, 3.3MB) via `@Perso_OC_bot` :
|
||||
```text
|
||||
HTTP/1.1 200 OK
|
||||
{"ok":true,"result":{"message_id":48,"from":{"id":8419269584,"is_bot":true,"first_name":"Perso_OC_bot","username":"Perso_OC_bot"},"chat":{"id":2084513684,"type":"private"},"date":1762078036,"audio":{"duration":105,"file_name":"1b930c95-6b26-46d5-99fe-d99ae947212b.mp3","mime_type":"audio/mpeg","file_id":"CQACAgQAAxkBAAMwZ6m4jJ04XlY2sC8R-zLomN2X0GgAArQXAALNfulQ3iUoU6lWq5A2BA","file_unique_id":"AgADtBcAAs1-6VA","file_size":3391780}}}
|
||||
```
|
||||
|
||||
## 9. Verification par le coureur d acceptation independant (pilot-nyora)
|
||||
Execution depuis hermes-agent-nyora via le profil pilot-nyora :
|
||||
- conteneur : CONTENEUR_OK
|
||||
- outils : OUTILS_OK
|
||||
- solde : SOLDE_OK
|
||||
- plafond : PLAFOND_OK
|
||||
- generations : GENERATIONS_OK
|
||||
- garde : GARDE_OK
|
||||
- runbook : RUNBOOK_OK (sur l hote NAS)
|
||||
- secret : SECRET_KO (mode .env=640 ; ACL u:pilot-nyora:r necessaire pour que pilot-nyora lise .env via open(), fixant le masque groupe POSIX a 4).
|
||||
## 11. Partie B — Non-régression du journal et fuseau Tunis (Africa/Tunis) (T4)
|
||||
Exécution de la suite de tests unitaires `tests/test_journal_tunis.py` :
|
||||
```text
|
||||
test_journal_credits_apres_reflects_actual_balance (tests.test_journal_tunis.TestJournalAndTunis) ... ok
|
||||
test_tunis_cap_daily_boundary (tests.test_journal_tunis.TestJournalAndTunis) ... ok
|
||||
test_tunis_date_calculation (tests.test_journal_tunis.TestJournalAndTunis) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 3 tests in 0.003s
|
||||
|
||||
OK
|
||||
```
|
||||
Reference in new issue
Block a user