Files
GTI_GERENCIADOR_FISCAL/deploy/agent-windows
gtiandClaude Sonnet 5 9f08998800 feat: deterministic cClassTrib resolver + gated CCLASSTRIB auto-apply (default OFF), RTC panel summary; 1.1.9
- resolver (rules RTC-R0..R4/A1..A3/G1..G2) over the official cClassTrib table 2026-06-22 and LC 214/2025 annexes; local vs official catalog comparison
- ONE root-cause RTC blocker per product (missing/unresolved/ambiguous/conflict/official mismatch/catalog outdated/evidence missing)
- auto-apply: C000025.CCLASSTRIB only, three switches (FIREBIRD_WRITES + RTC_AUTO_APPLY_ENABLED + Hub authorization), per-product re-read and re-decision, never overwrites, rowcount 1, audit table rtc_write_audits (migration 0027)
- copy-only write E2E (280/280 applied, only CCLASSTRIB changed, 2nd run 0 writes, stale decision 0 writes); real databases untouched
- docs: cclasstrib_resolution, rtc_auto_apply, unified_fiscal_completeness

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-24 21:18:34 -03:00
..
2026-09-21 15:51:47 -03:00

GTI Fiscal Agent 1.0.0-rc1 - pacote Windows
==========================================

Arquitetura: Hub central --HTTPS--> Agent Windows --local--> Firebird do SGV. O Hub nunca acessa o Firebird.
Este pacote NAO contem segredos (token do Agent e senha do Firebird sao informados localmente).

Requisitos no host do cliente: Python 3.12 (64 bits) no PATH, cliente Firebird (fbclient.dll, o mesmo do SGV),
acesso HTTPS ao Hub, uma conta Firebird somente leitura.

Passo a passo (PowerShell como Administrador, dentro desta pasta):
  .\gti-agent.ps1 install        cria o venv, instala as dependencias, registra o servico "GTIFiscalAgent" (nao inicia)
  .\gti-agent.ps1 configure      (ou: configure -FromTemplate .\pilot-construcao.env.example) grava o .env local com ACL restrita
  .\gti-agent.ps1 preflight      PREFLIGHT=PASS|FAIL e os bloqueios, se houver
  .\gti-agent.ps1 start          so inicia se o preflight passar
  .\gti-agent.ps1 status | stop | restart | uninstall [-Purge]

Modo do piloto: FISCAL_MODE=DRY_RUN e FIREBIRD_WRITES=0. Nesse modo o Agent e tecnicamente incapaz de escrever no Firebird.
Detalhes: docs/PILOT_DEPLOYMENT.md e docs/OPERATIONS.md do repositorio.