Type
Implementation — merge a PR with working code. Not investigation.
Goal
Replace hardcoded mock data in hourly_tracking/tools.py with env-gated read-only Postgres queries for finance pilot demos.
Files to change
examples/templates/hourly_tracking/tools.py ← UPDATE
examples/templates/hourly_tracking/.env.example ← NEW
examples/templates/hourly_tracking/README.md ← UPDATE (Production wiring section)
Implementation checklist
SQL sketch (implement in tools.py)
-- broker transactions last hour (read-only user)
SELECT transaction_id, broker_id, investor_id, input_amount, output_amount, fees
FROM broker_transactions
WHERE created_at > now() - interval '1 hour';
Done when
Out of scope
- Client-specific schema migration
- Write access to client DB
Related (context only)
#15 Section 2.4 hourly_tracking example · Closed #2
Type
Implementation — merge a PR with working code. Not investigation.
Goal
Replace hardcoded mock data in
hourly_tracking/tools.pywith env-gated read-only Postgres queries for finance pilot demos.Files to change
Implementation checklist
HOURLY_TRACKING_USE_LIVE=1andCLIENT_DB_URLset: run read-only SQL for broker + investor feeds./engine validate examples/templates/hourly_trackingpasses./engine run examples/templates/hourly_tracking --input '{}'works with mocksSQL sketch (implement in tools.py)
Done when
.env.exampledocumentsCLIENT_DB_URL,HOURLY_TRACKING_USE_LIVEOut of scope
Related (context only)
#15 Section 2.4 hourly_tracking example · Closed #2