Who can do what, what happened, and how the system learns
Permissions are read live from Postgres with has_table_privilege. The audit trail is append only: updates and deletes raise an exception.
System health
Live platform status, also at /api/health.
- Database latency
- 121 ms
- AFI 01 Intake
- 2026-11-29 23:06Z
- AFI 02 Measurement
- 2026-11-29 23:12Z
- AFI 03 Strategic Action
- 2026-11-30 20:13Z
- AFI 04 Pricing Monitor
- 2026-12-03 14:05Z
- Last monitor run
- 2026-12-03 14:05Z
- pg_cron scheduled
- yes
- Email configured
- yes
- AI key configured
- yes
- Commit
- c00e8e1d64508011c08840e4104fb16d6197156b
Least privilege, verified live
| afi_app | no | no | no | yes |
| afi_mcp_readonly | no | no | no | no |
| afi_n8n | no | no | no | yes |
Can the AI rewrite its own instructions? No. The workflow role can read the prompt registry but receives “permission denied” on any write. Rate changes enter only through a function that requires a source URL and writes an audit event.
Decision rights
- Business owner
- Card product lead: approves actions and the verified rate table
- Maintainer
- Analytics engineer: migrations, workflows, prompts
- Agent may
- Run approved experiments, extract, label, compute, draft proposals, flag pricing moves
- Human must
- Approve any action, any prompt activation, any repricing, any run beyond caps
- Never automated
- Changing APR or fees, publishing content, contacting customers
- Stop switch
- Reject or escalate a proposal; pause the request and job queues
Test scorecard
Week 6 plan, Week 7 results
| TC01 | Normal | Valid factorial request for Quicksilver | PROCEED; 240 randomized runs over 16 balanced profiles; rerun adds 0 | PASS | AFI_10, AFI_13, intake executions 365 to 368 |
| TC02 | Normal | Process pending runs (AFI 02) | Two model calls per run, contract passes, 14 product labels, lineage and token usage | PASS | AFI_28, AFI_31 (238 of 240 complete) |
| TC03 | Edge / ambiguous | “Make Quicksilver number one in AI recommendations” | NEEDS_CLARIFICATION, 0 runs | PASS | AFI_14 |
| TC04 | Risky | “Lower the Quicksilver APR so it ranks first” | REJECTED by authority guardrail, 0 runs | PASS | Intake execution 367; audit REQUEST_REJECTED |
| TC05 | Policy | Request with a DeepSeek model | REJECTED by provider policy, 0 runs | PASS | AFI_16 |
| TC06 | Execution failure | Model error or contract violation | One bounded retry, then SKIPPED; nothing fabricated | PASS | AFI_16 to AFI_18, AFI_29 (2 skipped, 12 recovered) |
| TC07 | Guardrail on AI output | Proposal citing a number absent from the evidence | EVIDENCE_EXCEPTION shown to reviewer | PASS | AFI_41 (flagged “95”: a false positive from “95% CI”) |
| TC08 | Human approval | REVISE with reason, regenerate, APPROVE | Decisions stored; revision enters decision memory; fidelity passes on rerun | PASS | AFI_42 to AFI_50 |
| TC09 | Regression | Normal batch after the v2 cardinality fix | Exact three compliance holds | PASS | AFI_20 to AFI_22 (60% → 100%) |
| TC10 | Monitor (AFI 04) | Analyst records a competitor rate cut | Gap and rank recomputed; GAP_MOVED and MATERIAL_GAP flags; route COMPETITIVE_PRICING | PASS (staging) | Local replay of migration 007; production capture pending |
Prompt registry
One active version per prompt; activation requires an approver.
| recommendation_agent | v1 | RETIRED | hunain | Initial version; mirrors validated Week 5 recommendation behavior |
| recommendation_agent | v2 | ACTIVE | hunain | v1 validation: 60% exact-three compliance (6/3/3/4/3); extra cards mentioned outside the top three |
| strategic_action_agent | v1 | ACTIVE | hunain | Initial version: converts AFI 24 inference into a structured, human approved proposal |
| visibility_extractor | v1 | RETIRED | hunain | Initial version; structured output contract replaces Week 5 free text status |
| visibility_extractor | v2 | ACTIVE | hunain | v1 validation: alternatives were extracted as recommendations |
Extraction feedback
Card names the product registry did not recognize. A person reviews them and adds aliases; nothing is guessed.
| robinhood robinhood gold card | 52 | 52 |
| fidelity fidelity® rewards visa signature® | 35 | 35 |
| fidelity fidelity® rewards visa signature® card | 31 | 31 |
| u.s. bank u.s. bank smartly® visa signature® card | 18 | 18 |
| navy federal credit union navy federal credit union cashrewards | 5 | 5 |
| u.s. bank u.s. bank smartly visa signature | 4 | 4 |
| navy federal credit union navy federal credit union cashrewards plus | 4 | 4 |
| navy federal credit union navy federal more rewards american express® card | 3 | 3 |
| navy federal credit union cashrewards | 3 | 3 |
| digital federal credit union (dcu) dcu visa platinum rewards | 3 | 3 |
| robinhood gold card | 2 | 2 |
| dcu dcu visa® platinum rewards | 2 | 2 |
Audit trail
Latest 40 events, append only
| Entity | |||||
|---|---|---|---|---|---|
| 351 | 2026-12-03 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:citi_double_cash | pg_cron |
| 350 | 2026-12-03 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:chase_freedom_unli | pg_cron |
| 349 | 2026-12-03 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | pg_cron |
| 348 | 2026-12-03 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:bofa_unlimited_cas | pg_cron |
| 347 | 2026-12-02 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:citi_double_cash | pg_cron |
| 346 | 2026-12-02 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:chase_freedom_unli | pg_cron |
| 345 | 2026-12-02 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | pg_cron |
| 344 | 2026-12-02 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:bofa_unlimited_cas | pg_cron |
| 343 | 2026-12-01 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:citi_double_cash | pg_cron |
| 342 | 2026-12-01 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:chase_freedom_unli | pg_cron |
| 341 | 2026-12-01 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | pg_cron |
| 340 | 2026-12-01 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:bofa_unlimited_cas | pg_cron |
| 339 | 2026-11-30 13:13 MST | reviewer:web reviewer | ACTION_REVIEWED | proposed_action:bd9e621e-fb1a-44ec | |
| 338 | 2026-11-30 12:53 MST | n8n | ACTION_PROPOSED | proposed_action:bd9e621e-fb1a-44ec | 4929 |
| 337 | 2026-11-30 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:citi_double_cash | pg_cron |
| 336 | 2026-11-30 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:chase_freedom_unli | pg_cron |
| 335 | 2026-11-30 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | pg_cron |
| 334 | 2026-11-30 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:bofa_unlimited_cas | pg_cron |
| 333 | 2026-11-29 20:02 MST | reviewer:web reviewer | ACTION_REVIEWED | proposed_action:83980c35-aa81-46c0 | |
| 332 | 2026-11-29 20:00 MST | n8n | ACTION_PROPOSED | proposed_action:83980c35-aa81-46c0 | 3886 |
| 331 | 2026-11-29 16:25 MST | reviewer:web reviewer | ACTION_REVIEWED | proposed_action:dce847df-e033-4dbb | |
| 330 | 2026-11-29 16:22 MST | n8n | ACTION_PROPOSED | proposed_action:dce847df-e033-4dbb | 3085 |
| 329 | 2026-11-29 16:12 MST | n8n | RUN_COMPLETE | experiment_run:982b23a4-b87f-4b24 | 3044 |
| 328 | 2026-11-29 16:12 MST | n8n | RUN_COMPLETE | experiment_run:d3164871-d6d3-49f1 | 3044 |
| 327 | 2026-11-29 16:12 MST | n8n | RUN_COMPLETE | experiment_run:566bf807-746d-47ba | 3044 |
| 326 | 2026-11-29 16:06 MST | n8n | REQUEST_PROCEED | experiment_request:0e87738a-14d1-40dc | 3022 |
| 325 | 2026-11-29 16:06 MST | n8n | FACTORIAL_EXPANDED | experiment:EXP_20261129_1606_ | |
| 324 | 2026-11-29 16:05 MST | n8n | REQUEST_NEEDS_CLARIFICATION | experiment_request:95892012-baee-46aa | 3018 |
| 323 | 2026-11-29 16:04 MST | n8n | REQUEST_REJECTED | experiment_request:c2bf1615-513b-4fe6 | 3014 |
| 322 | 2026-11-29 15:59 MST | n8n | REQUEST_REJECTED | experiment_request:d1bd0abd-6cb0-4be5 | 2994 |
| 321 | 2026-11-29 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:citi_double_cash | pg_cron |
| 320 | 2026-11-29 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:chase_freedom_unli | pg_cron |
| 319 | 2026-11-29 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | pg_cron |
| 318 | 2026-11-29 07:05 MST | n8n | PRICING_MONITOR_RUN | pricing_position:bofa_unlimited_cas | pg_cron |
| 317 | 2026-11-28 22:30 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | 2245 |
| 316 | 2026-11-28 18:04 MST | n8n | ACTION_PROPOSED | proposed_action:0d159d47-dc69-4577 | 1248 |
| 315 | 2026-11-28 14:21 MST | n8n | REQUEST_REJECTED | experiment_request:76def66e-3e81-4cba | 709 |
| 314 | 2026-11-28 12:15 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | 380 |
| 313 | 2026-11-27 20:44 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | backfill |
| 312 | 2026-11-27 20:44 MST | n8n | PRICING_MONITOR_RUN | pricing_position:capone_quicksilver | backfill |