- 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>
23 lines
932 B
Bash
23 lines
932 B
Bash
# GTI Fiscal Agent - PILOT PROFILE: CONSTRUCAO (materiais de construcao). Audited: company 000001, UF BA, CRT 1, AUTO_RESOLVED, confidence HIGH
|
|
# NO SECRETS in this file. Copy to <install>\.env (gti-agent configure -FromTemplate) and fill AGENT_TOKEN / FB_PASSWORD locally.
|
|
GTI_HUB_URL=https://fiscal.example.gti
|
|
AGENT_TOKEN=
|
|
AGENT_ID=
|
|
|
|
# Company context (deterministic resolver; never the first row of C000004)
|
|
COMPANY_CODE=000001
|
|
COMPANY_CNPJ=
|
|
# AUTO is enough here: EMISSOR.EMITENTE_CRT and C000004.CRT agree (1). The host preflight must confirm UF=BA / CRT=1.
|
|
COMPANY_CRT_SOURCE=AUTO
|
|
# COMPANY_UF= is an explicit override only when the database proves nothing; it never replaces the resolver silently.
|
|
|
|
# Real path of the client's SGV database ON THIS HOST (do not reuse the path of any local copy)
|
|
FIREBIRD_DATABASE_PATH=
|
|
FB_USER=
|
|
FB_PASSWORD=
|
|
|
|
FISCAL_MODE=DRY_RUN
|
|
FIREBIRD_WRITES=0
|
|
POLL_INTERVAL_SECONDS=5
|
|
AGENT_VERSION=1.1.9
|