Skip to content

feat: add check_instant_settlement monitor (51,988.50 € liquidación instantánea)#182

Open
LVT-ENG wants to merge 42 commits intomainfrom
cursor/instant-settlement-monitor-d824
Open

feat: add check_instant_settlement monitor (51,988.50 € liquidación instantánea)#182
LVT-ENG wants to merge 42 commits intomainfrom
cursor/instant-settlement-monitor-d824

Conversation

@LVT-ENG
Copy link
Copy Markdown
Member

@LVT-ENG LVT-ENG commented Apr 10, 2026

Summary

Adds a new instant settlement monitor (check_instant_settlement) to auditoria_impacto_matinal.py that tracks whether the expected 51,988.50 € settlement has been reflected in the banking app, based on the 09:00 SEPA sweep plus the typical 15-30 min app-reflection latency window (target: 09:30).

Changes

auditoria_impacto_matinal.py

  • New constants: MONTO_LIQUIDACION (51,988.50), SETTLEMENT_REFLECT_HOUR (9), SETTLEMENT_REFLECT_MINUTE (30), APP_LATENCY_MINUTES (30)
  • check_instant_settlement() — returns a structured dict with status, monto_esperado, settled, minutes_to_reflect, and timestamp. Supports now parameter override for testing.
  • formato_liquidacion() — pretty-prints the settlement monitor result for terminal/Telegram output.
  • --liquidacion CLI flag — runs only the settlement monitor; default (no flags) now runs all three monitors (audit + SEPA liquidity + settlement).

orchestrator_v10_final.py

  • New liquidacion subcommand that delegates to auditoria_impacto_matinal --liquidacion.

tests/test_auditoria_impacto_matinal.py

  • Test suite expanded from 23 to 37 tests covering:
    • TestCheckInstantSettlement — 9 tests (boundary cases: midnight, 08:00, 09:29, 09:30, afternoon; key correctness, minutes calc, ISO timestamp)
    • TestFormatoLiquidacion — 4 tests (header, monto, latency, patent)
    • Updated TestMain — new test_main_liquidacion_only + existing tests updated to verify full audit now includes MONITOR DE LIQUIDACIÓN.

Testing

All 216 project tests pass (1 pre-existing timeout in test_supercommit_max unrelated to this change). The 37 test_auditoria_impacto_matinal tests all pass.

CLI smoke tests:

  • python3 auditoria_impacto_matinal.py --liquidacion — correctly shows settlement monitor only
  • python3 auditoria_impacto_matinal.py — correctly shows all three monitors
  • python3 orchestrator_v10_final.py liquidacion — correctly delegates to settlement monitor

@CertezaAbsoluta @lo+erestu PCT/EP2025/067317
Bajo Protocolo de Soberanía V10 - Founder: Rubén

Slack Thread

Open in Web Open in Cursor 

Copilot AI and others added 30 commits April 9, 2026 02:41
…ploy_divineo Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
…vineo (orquestador+tests+docs) Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
- Enhanced .github/workflows/ci.yml: parallel Python tests + Vite build + Vercel deploy on main
- Added TypeScript type-check step (tsc --noEmit) to CI
- Added src/vite-env.d.ts for Vite client types (import.meta.env, Window augmentation)
- Added scripts/deployall.sh: local build+test+deploy pipeline (--dry for skip deploy)
- Added npm scripts: typecheck, deployall, deployall:dry

All 141 Python tests pass. Vite build + type-check clean.

@CertezaAbsoluta @lo+erestu PCT/EP2025/067317
Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
…zaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
…zaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
…zaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
…zaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
…lready excludes them @CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
… purged) @CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
🥀 Honor Protocol: Goldschmied/Valentino/Ospina.
✨ Status: VIVOS.
🚀 Divineo Absoluto en París.
@CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
🥀 Honor Protocol: Goldschmied/Valentino/Ospina.
✨ Status: VIVOS.
🚀 Divineo Absoluto en París.
@CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
…ial + copy FR traducible + videos venta EUR Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
…a y shell overlay para venta FR/EUR Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
Copilot AI and others added 12 commits April 9, 2026 22:39
@CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
🥀 Honor Protocol: Goldschmied/Valentino/Ospina.
✨ Status: VIVOS.
🚀 Divineo Absoluto en París.
@CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
🥀 Honor Protocol: Goldschmied/Valentino/Ospina.
✨ Status: VIVOS.
🚀 Divineo Absoluto en París.
@CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
🥀 Honor Protocol: Goldschmied/Valentino/Ospina.
✨ Status: VIVOS.
🚀 Divineo Absoluto en París.
@CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
🥀 Honor Protocol: Goldschmied/Valentino/Ospina.
✨ Status: VIVOS.
🚀 Divineo Absoluto en París.
@CertezaAbsoluta @lo+erestu PCT/EP2025/067317 Bajo Protocolo de Soberanía V10 - Founder: Rubén

Co-authored-by: Tryonme <LVT-ENG@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tryonyou-app Ready Ready Preview, Comment Apr 10, 2026 7:28am
tryonyou-pilot Ready Ready Preview, Comment Apr 10, 2026 7:28am

Request Review

Copy link
Copy Markdown
Member Author

@LVT-ENG LVT-ENG left a comment

Choose a reason for hiding this comment

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

Yes

Copy link
Copy Markdown
Member Author

@LVT-ENG LVT-ENG left a comment

Choose a reason for hiding this comment

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

Yes

@LVT-ENG LVT-ENG marked this pull request as ready for review April 13, 2026 00:08
@LVT-ENG LVT-ENG requested review from Copilot and removed request for Copilot April 13, 2026 00:08
Copy link
Copy Markdown
Member Author

@LVT-ENG LVT-ENG left a comment

Choose a reason for hiding this comment

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

Yes

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.

3 participants