TITAN Statutory Gate

v1.0.1
io.github.titan-capital-forensics/statutory-gate Checked 2 days ago Published 17 days ago

Stateless diagnostic applicability and schema gate for US, EU, and UAE statutory filings.

A 85/100 Discovery passed License not confirmed Crypto

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_cbp_drawback_eligibility US CBP Duty Drawback Statutory Gate

Check US CBP duty drawback statutory scope, 8-digit HTSUS/Schedule B alignment, and 5-year lookback window readiness under 19 U.S.C. 1313. Read-only diagnostic gate; zero duty refund calculations.

ParameterTypeDescription
accelerated_paymentbooleanWhether claimant requests 19 CFR 190.92 accelerated payment bond readiness check.
days_since_importnumberElapsed calendar days since CBP import entry date (checked against the 1,825-day 5-year statutory bar).
export_schedule_b_8string8-digit US Schedule B or HTSUS export classification code for substitution/direct check.
import_htsus_8string8-digit US HTSUS import tariff classification code (digits only or dotted).
provisionstringStatutory drawback subsection under 19 U.S.C. 1313 (j(1) direct unused, j(2) substitution, or a/b manufacturing).
query_notestringOptional non-sensitive context note for diagnostic scope triage.

check_eu_cbam_eudr_mandate EU CBAM & EUDR Statutory Scope Gate

Check EU CBAM (Regulation (EU) 2023/956 and 2025/2083 50-tonne threshold) and EUDR (Regulation (EU) 2023/1115) CN/HS scope and WGS84 polygon rules. Read-only diagnostic gate; zero emissions math.

ParameterTypeDescription
regime *stringTarget European Union border compliance regime to evaluate: 'cbam', 'eudr', or 'both'.
annual_mass_tonnesnumberCumulative annual net mass imported into the EU customs territory in metric tonnes.
cn_or_hs_codestring4-to-8 digit EU Combined Nomenclature (CN) or Harmonized System (HS) commodity code.
geojson_ring_closedbooleanWhether the WGS84 GeoJSON exterior coordinate ring is topologically closed.
plot_hectaresnumberProduction plot area in hectares (triggers EUDR Art. 9 polygon vs point rule at 4.0 ha).
query_notestringOptional non-sensitive context note for diagnostic scope triage.

check_irs_179d_cmmc_readiness IRS Section 179D & DoD CMMC 2.0 Readiness Gate

Check IRS Section 179D (Form 7205) energy-efficient commercial building scope and DoD CMMC 2.0 / NIST SP 800-171 SPRS readiness. Read-only diagnostic gate; zero tax deduction math.

ParameterTypeDescription
mandate *stringUS federal statutory mandate to screen: 'irs_179d', 'cmmc_sprs', or 'both'.
building_sqftnumberGross floor area of the commercial or tax-exempt building in square feet.
handles_cui_or_fcistringHighest defense contract information sensitivity handled: 'none', 'fci' (Level 1), or 'cui' (Level 2+).
prevailing_wage_metbooleanWhether IRA prevailing wage and apprenticeship requirements under 26 U.S.C. 179D(b)(3) are satisfied.
query_notestringOptional non-sensitive context note for diagnostic scope triage.
sprs_scoreintegerCurrent DoD Supplier Performance Risk System (SPRS) NIST SP 800-171 score (-203 to 110).
tax_exempt_allocationbooleanWhether project claims a Section 179D(d)(3) designer allocation letter from a tax-exempt or government entity.

check_uae_qfzp_gdpr_trigger UAE QFZP De-Minimis & EU GDPR Trigger Gate

Check UAE Corporate Tax QFZP 0% de-minimis cliff (Federal Decree-Law 47/2022 & MD 265/2023) and EU GDPR Art. 3/30/35 triggers. Read-only diagnostic gate; zero tax liability math.

ParameterTypeDescription
regime *stringStatutory compliance regime to evaluate: 'uae_qfzp', 'gdpr', or 'both'.
eu_data_subjectsbooleanWhether organization processes personal data of individuals in the EU/EEA under GDPR Article 3.
excluded_activitybooleanWhether entity performs an excluded activity under UAE Ministerial Decision No. 265 of 2023.
high_risk_processingbooleanWhether processing involves large-scale profiling, special categories, or systematic monitoring triggering GDPR Art. 35 DPIA.
non_qualifying_aednumberAnnual non-qualifying revenue in UAE Dirhams (AED; checked against AED 5,000,000 de-minimis ceiling).
non_qualifying_pctnumberPercentage share of non-qualifying revenue out of total Free Zone revenue (0 to 100; 5% statutory cliff).
query_notestringOptional non-sensitive context note for diagnostic scope triage.

verify_titan_ed25519_workpaper_hash TITAN Ed25519 Cryptographic Workpaper Verifier

Verify SHA-256 digest and detached Ed25519 signature of a TITAN statutory workpaper against the published authority public key. Read-only offline cryptographic gate.

ParameterTypeDescription
authority_pub_b64stringOptional Base64-encoded 32-byte Ed25519 public key override (defaults to published TITAN authority key).
canonical_payloadstringOptional UTF-8 canonical JSON payload string to hash and verify against the Ed25519 signature.
query_notestringOptional non-sensitive context note for audit log labeling.
signature_b64stringOptional Base64-encoded 64-byte detached Ed25519 signature over canonical_payload.
workpaper_sha256string64-character hexadecimal SHA-256 digest of the canonical TITAN workpaper artifact.