AFI

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_appnononoyes
afi_mcp_readonlynononono
afi_n8nnononoyes

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

TC01NormalValid factorial request for QuicksilverPROCEED; 240 randomized runs over 16 balanced profiles; rerun adds 0PASSAFI_10, AFI_13, intake executions 365 to 368
TC02NormalProcess pending runs (AFI 02)Two model calls per run, contract passes, 14 product labels, lineage and token usagePASSAFI_28, AFI_31 (238 of 240 complete)
TC03Edge / ambiguous“Make Quicksilver number one in AI recommendations”NEEDS_CLARIFICATION, 0 runsPASSAFI_14
TC04Risky“Lower the Quicksilver APR so it ranks first”REJECTED by authority guardrail, 0 runsPASSIntake execution 367; audit REQUEST_REJECTED
TC05PolicyRequest with a DeepSeek modelREJECTED by provider policy, 0 runsPASSAFI_16
TC06Execution failureModel error or contract violationOne bounded retry, then SKIPPED; nothing fabricatedPASSAFI_16 to AFI_18, AFI_29 (2 skipped, 12 recovered)
TC07Guardrail on AI outputProposal citing a number absent from the evidenceEVIDENCE_EXCEPTION shown to reviewerPASSAFI_41 (flagged “95”: a false positive from “95% CI”)
TC08Human approvalREVISE with reason, regenerate, APPROVEDecisions stored; revision enters decision memory; fidelity passes on rerunPASSAFI_42 to AFI_50
TC09RegressionNormal batch after the v2 cardinality fixExact three compliance holdsPASSAFI_20 to AFI_22 (60% → 100%)
TC10Monitor (AFI 04)Analyst records a competitor rate cutGap and rank recomputed; GAP_MOVED and MATERIAL_GAP flags; route COMPETITIVE_PRICINGPASS (staging)Local replay of migration 007; production capture pending
Prompt registry

One active version per prompt; activation requires an approver.

recommendation_agentv1RETIREDhunainInitial version; mirrors validated Week 5 recommendation behavior
recommendation_agentv2ACTIVEhunainv1 validation: 60% exact-three compliance (6/3/3/4/3); extra cards mentioned outside the top three
strategic_action_agentv1ACTIVEhunainInitial version: converts AFI 24 inference into a structured, human approved proposal
visibility_extractorv1RETIREDhunainInitial version; structured output contract replaces Week 5 free text status
visibility_extractorv2ACTIVEhunainv1 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 card5252
fidelity fidelity® rewards visa signature®3535
fidelity fidelity® rewards visa signature® card3131
u.s. bank u.s. bank smartly® visa signature® card1818
navy federal credit union navy federal credit union cashrewards55
u.s. bank u.s. bank smartly visa signature44
navy federal credit union navy federal credit union cashrewards plus44
navy federal credit union navy federal more rewards american express® card33
navy federal credit union cashrewards33
digital federal credit union (dcu) dcu visa platinum rewards33
robinhood gold card22
dcu dcu visa® platinum rewards22
Audit trail

Latest 40 events, append only

Entity
3512026-12-03 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:citi_double_cashpg_cron
3502026-12-03 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:chase_freedom_unlipg_cron
3492026-12-03 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilverpg_cron
3482026-12-03 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:bofa_unlimited_caspg_cron
3472026-12-02 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:citi_double_cashpg_cron
3462026-12-02 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:chase_freedom_unlipg_cron
3452026-12-02 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilverpg_cron
3442026-12-02 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:bofa_unlimited_caspg_cron
3432026-12-01 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:citi_double_cashpg_cron
3422026-12-01 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:chase_freedom_unlipg_cron
3412026-12-01 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilverpg_cron
3402026-12-01 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:bofa_unlimited_caspg_cron
3392026-11-30 13:13 MSTreviewer:web reviewerACTION_REVIEWEDproposed_action:bd9e621e-fb1a-44ec
3382026-11-30 12:53 MSTn8nACTION_PROPOSEDproposed_action:bd9e621e-fb1a-44ec4929
3372026-11-30 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:citi_double_cashpg_cron
3362026-11-30 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:chase_freedom_unlipg_cron
3352026-11-30 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilverpg_cron
3342026-11-30 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:bofa_unlimited_caspg_cron
3332026-11-29 20:02 MSTreviewer:web reviewerACTION_REVIEWEDproposed_action:83980c35-aa81-46c0
3322026-11-29 20:00 MSTn8nACTION_PROPOSEDproposed_action:83980c35-aa81-46c03886
3312026-11-29 16:25 MSTreviewer:web reviewerACTION_REVIEWEDproposed_action:dce847df-e033-4dbb
3302026-11-29 16:22 MSTn8nACTION_PROPOSEDproposed_action:dce847df-e033-4dbb3085
3292026-11-29 16:12 MSTn8nRUN_COMPLETEexperiment_run:982b23a4-b87f-4b243044
3282026-11-29 16:12 MSTn8nRUN_COMPLETEexperiment_run:d3164871-d6d3-49f13044
3272026-11-29 16:12 MSTn8nRUN_COMPLETEexperiment_run:566bf807-746d-47ba3044
3262026-11-29 16:06 MSTn8nREQUEST_PROCEEDexperiment_request:0e87738a-14d1-40dc3022
3252026-11-29 16:06 MSTn8nFACTORIAL_EXPANDEDexperiment:EXP_20261129_1606_
3242026-11-29 16:05 MSTn8nREQUEST_NEEDS_CLARIFICATIONexperiment_request:95892012-baee-46aa3018
3232026-11-29 16:04 MSTn8nREQUEST_REJECTEDexperiment_request:c2bf1615-513b-4fe63014
3222026-11-29 15:59 MSTn8nREQUEST_REJECTEDexperiment_request:d1bd0abd-6cb0-4be52994
3212026-11-29 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:citi_double_cashpg_cron
3202026-11-29 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:chase_freedom_unlipg_cron
3192026-11-29 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilverpg_cron
3182026-11-29 07:05 MSTn8nPRICING_MONITOR_RUNpricing_position:bofa_unlimited_caspg_cron
3172026-11-28 22:30 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilver2245
3162026-11-28 18:04 MSTn8nACTION_PROPOSEDproposed_action:0d159d47-dc69-45771248
3152026-11-28 14:21 MSTn8nREQUEST_REJECTEDexperiment_request:76def66e-3e81-4cba709
3142026-11-28 12:15 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilver380
3132026-11-27 20:44 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilverbackfill
3122026-11-27 20:44 MSTn8nPRICING_MONITOR_RUNpricing_position:capone_quicksilverbackfill