|
|
|
@@ -440,7 +440,7 @@ allowlist and the fiscal rule engines still decide what may actually be written
|
|
|
|
|
Hub `classification_cache` fixed: fingerprint (tenant + input + ENGINE_VERSION + dataset_versions()) is computed first and a HIT returns without running the Classifier (test: `central/tests/test_classification_cache.py`). Live benchmark (100 products): MISS 337 ms/product, HIT 15 ms/product, 100/100 hits, identical results. Fingerprint inputs unchanged, so existing cache entries stay valid and version bumps still invalidate naturally.
|
|
|
|
|
|
|
|
|
|
## Release Candidate 1.0.0-rc1 (2026-09-19) — COMPLETE_LOCAL_RC
|
|
|
|
|
Frozen: `release/VERSION`, `central/app/version.py` (`GET /version`), `release/RELEASE_MANIFEST.json` (versions + ACTIVE dataset hashes + migrations; head `0020_not_null_timestamps` since 2026-09-23). See `docs/RELEASE_CANDIDATE_V1.md`.
|
|
|
|
|
Frozen: `release/VERSION`, `central/app/version.py` (`GET /version`), `release/RELEASE_MANIFEST.json` (versions + ACTIVE dataset hashes + migrations; head `0021_sso_federated_identity` since 2026-09-23). See `docs/RELEASE_CANDIDATE_V1.md`.
|
|
|
|
|
Architecture: Hub central (Docker Hub+PostgreSQL, `deploy/hub`) <-HTTPS- Agent Windows (`deploy/agent-windows`, service GTIFiscalAgent) -local read-only-> SGV Firebird. The Hub never accesses Firebird.
|
|
|
|
|
Agent: `FISCAL_MODE` DRY_RUN|AUTO_APPLY (DRY_RUN = technically no writes), `COMPANY_CODE/COMPANY_CNPJ/COMPANY_CRT_SOURCE(AUTO|EMISSOR|C000004)`, `COMPANY_UF` explicit override only; single preflight `agent/scripts/preflight.py` (also enforced at service start); REPROCESS_ALL job result includes the coverage report + company context (`gti_fiscal_agent/coverage.py`, shared with multi-db tooling); `scripts/prove_zero_write.py` (DML counters + table digests). Packaging: `scripts/build_agent_package.py` (secret-scanned zip). Hub prod: `deploy/hub/docker-compose.prod.yml` (Postgres internal only), backup/restore, dataset seed export/import; `APP_ENV=production` refuses AGENT_DEV_TOKEN.
|
|
|
|
|
Pilot profile: CONSTRUCAO (`pilot-construcao.env.example`); planned, not installed: MMMODAS/RINCAO/UNIAO with `COMPANY_CRT_SOURCE=EMISSOR`. No real host was accessed: a local simulation ran the Agent (registered agent, DRY_RUN) end-to-end on the CONSTRUCAO copy. Follow-up: memoize `dataset_versions()`.
|
|
|
|
@@ -481,8 +481,13 @@ See `docs/PRE_AI_LOCAL_COMPLETION_V3_REPORT.md` for measured values.
|
|
|
|
|
|
|
|
|
|
- Hub + PostgreSQL run on VM 10.0.10.117 (`deploy/hub`, compose project
|
|
|
|
|
`gti-fiscal-hub`), next to the GTI Gerenciador but isolated (own DB, process,
|
|
|
|
|
login). TLS via Caddy on 443 only; HTTPS still waits on public DNS.
|
|
|
|
|
- Migration head: `0020_not_null_timestamps`. An empty database is initialized
|
|
|
|
|
login). Public HTTPS `gtifiscal.gtigrupo.com.br` via the GTI Nginx Proxy Manager
|
|
|
|
|
(10.0.10.100) -> `http://10.0.10.117:8000` (DOCKER-USER allows only the NPM).
|
|
|
|
|
- Human access: SSO from GTI Gerenciador (Ed25519 assertion, nonce, single-use jti;
|
|
|
|
|
collaborators in `admin_users` with `auth_source=GTI_GERENCIADOR`, no password);
|
|
|
|
|
local admin only as break-glass at `/login/local`. Same visual identity as the
|
|
|
|
|
panel (`static/gti-theme.css` is a copy of its design system).
|
|
|
|
|
- Migration head: `0021_sso_federated_identity`. An empty database is initialized
|
|
|
|
|
by `alembic upgrade head` alone — never `stamp`/`create_all`.
|
|
|
|
|
- `0001` is a frozen explicit baseline (it used to call `create_all()`, which
|
|
|
|
|
broke every fresh install). `0019` fixes the frozen `created_at` defaults
|
|
|
|
|