Training · learner work

The AI Proposes, A Verified Human Decides

Quincy Nkwain Ninying built an AI operations platform for SQL Server infrastructure that proposes remediations and cannot apply one on its own. Every write waits for a verified human, and every decision leaves a record that outlives the session that made it.

verified

All student projects
How it works. Narrated by a synthetic voice; the figures it states are the verified metrics recorded below.
Organisation
Colaberry
Industry
Data infrastructure operations
Capability
Governed AI remediation
Status
In progress
Built by
Learner
Published
2026-11-19

The situation

Operations teams do not distrust automation because it is inaccurate. They distrust it because they cannot see what it did, cannot stop it mid-flight, and cannot reconstruct afterwards who allowed it. An assistant that fixes the right thing without leaving a trail is still a thing nobody will let near a database.

That makes the interesting problem a governance one rather than a modelling one. A language model can already read telemetry, correlate failures across services and suggest a remediation. What it cannot do is establish that a person agreed, that the person was who they claimed to be, and that the agreement can be shown to someone else weeks later.

So the design question is not how good the suggestion is. It is where the boundary sits between proposing and acting, whether that boundary is enforced in code or merely written in a policy document, and whether crossing it leaves something durable behind.

What it had to do

  • Put the proposal and the action on opposite sides of a boundary that is enforced by code.
  • Bind an approval to an identity strong enough to be worth binding it to.
  • Persist every decision so it can be reconstructed by someone who was not there.
  • Record the architectural decisions themselves, so the reasoning is inspectable and not just the behaviour.

What constrained it

  • Nothing may write to a monitored system on the strength of a model output alone.
  • An approval must be attributable to a verified identity, not to whoever held a session.
  • The record of a decision has to outlive the session that made it, or it is not an audit trail.
The proposed fix waits: a person has to approve the write
The proposed fix waits: a person has to approve the writeA proposed restart of an unreachable Postgres service, held with Approve and Reject buttons and the note that it needs explicit approval before it can run, under its correlation id. A frame from the builder's own recording of the running console, committed on 11 Nov 2026. It was recorded on his local development stack with a real incident, so the services named are his test containers; the only person shown is the builder.

Decisions that made the difference

Three choices shaped the system. Each one lives at a specific point in the drawing above.

  1. At ABAC evaluator

    Put the proposal and the action on opposite sides of a boundary enforced by code

    Operations teams distrust automation they cannot see, stop mid-flight or reconstruct afterwards. A model can already read telemetry and suggest a fix; the risk is a write on the strength of a model output alone.

    An ABAC evaluator decides whether an action is permissible under policy at all. A human-in-the-loop queue holds anything that would write until a person acts. A remediation guardrail wraps the action itself.

    Evidence The guardrails directory (architecture narrative); roadmap: approval boundary enforced by an ABAC evaluator and a human-in-the-loop queue, shipped.

    4 of 7guardrail modules carry their own test file, which is the difference between a boundary that is enforced and one that is described. Nothing writes to a monitored system on a model output alone.

  2. At Verified human

    Bind the approval to a verified identity, not to a session

    An approval attributed to whoever held a session cannot answer, weeks later, who agreed. An approval gate is only as strong as the identity standing behind it.

    One decision record commits to multi-factor authentication on the approving account; another binds the approval to a verified identity rather than to a session.

    Evidence ADR-006 and ADR-007 (architecture narrative); roadmap: approvals bound to a verified identity rather than a session, shipped.

    The answer to who approved something outlives the session that produced it.

  3. At Audit trail

    Design the audit trail rather than log it

    A decision that cannot be reconstructed by someone who was not there is not an audit trail, however much was logged.

    Correlate events under a single identifier, persist the trail, and write the architectural decisions themselves down as records beside the code.

    Evidence ADR-002 and ADR-005 (architecture narrative); roadmap: audit trail correlated and persisted, shipped.

    14architecture decision records sit alongside the code: a system whose central claim is that its choices are provable after the fact has written its choices down.

Who built it

  • Quincy Nkwain Ninying, Builder: the governance layer, identity-bound approval and sixteen decision records
One correlation id, every step: queued, decided, executed
One correlation id, every step: queued, decided, executedThe audit trail for one incident: the item queued by the governance engine, the human decision by the signed-in operator, and the guardrail execution, each timestamped. A frame from the builder's own recording of the running console, committed on 11 Nov 2026. It was recorded on his local development stack with a real incident, so the services named are his test containers; the only person shown is the builder.

The build

  1. Repository and the first decision record
  2. One correlation id for the whole trail
  3. Approvals bound to a verified person
  4. Grounded evidence and real fixes
  5. Production drill
  6. Plugin connector architecture
  7. A recorded walkthrough of the console
Notes on 7 of the 7 steps
  • Repository and the first decision record. The transport for the MCP gateway is chosen and written down as ADR-001.
  • One correlation id for the whole trail. Events from every step of an incident are unified under a single id.
  • Approvals bound to a verified person. Authenticator-code sign-in and a real second approver, with escalation wired into the live route.
  • Grounded evidence and real fixes. The evidence grounding check, source-aware SQL remediation, and a real Postgres execution path.
  • Production drill. A deliberately broken release caught by the health check and rolled back in 1m31s of operator time.
  • Plugin connector architecture. Data sources become plugins behind one contract, recorded as ADR-016.
  • A recorded walkthrough of the console. A 41-second recording of a real incident moving from detection to approval to a confirmed fix.
Resolved incidents, each with who fixed it and whether it held
Resolved incidents, each with who fixed it and whether it heldThe resolved list, read from the durable audit trail: each fix names the operator and the time, and asks whether the fix was confirmed or recurred. A frame from the builder's own recording of the running console, committed on 11 Nov 2026. It was recorded on his local development stack with a real incident, so the services named are his test containers; the only person shown is the builder.

More from this project

  • His solution architecture capstone for the Architect Expo

    The opening of his capstone document: the system in one paragraph, then stories, acceptance criteria, tests, decision records and requirements, each traced to a file or a commit. Its figures are from his 27 Aug 2026 revision; the counts on this record are later. A page the builder wrote and committed to his repository (28 Aug 2026), captured as it renders, with nothing changed.

  • From his Expo talk: the health check said everything was fine

    A slide built from a real incident in the live app: two cards failing on an invalid model key while the health endpoint still reported the model as configured. A page the builder wrote and committed to his repository (4 Oct 2026), captured as it renders, with nothing changed.

  • The system can investigate. It cannot act without you.

    His one-page architecture summary for leaders: the problem, what the system does, and the line it will not cross. A page the builder wrote and committed to his repository (24 Aug 2026), captured as it renders, with nothing changed.

What was built

The system reads telemetry from SQL Server, SSIS and SSRS, correlates failures across those services, and asks a model to reason about root cause and business impact. That half is unremarkable and is not where the design effort went.

Stack

  • CSS
  • HTML
  • JavaScript
  • Python
  • React
  • Shell
  • TypeScript
  • Vite
More on what was built

The effort went into the guardrails directory. An ABAC evaluator decides whether an action is permissible under policy at all. A human-in-the-loop queue holds anything that would write, and holds it until a person acts. A remediation guardrail wraps the action itself. Four of the seven modules there carry their own test file, which is the difference between a boundary that is enforced and a boundary that is described.

Identity is treated as part of the boundary rather than as a login problem. One decision record commits to multi-factor authentication on the approving account; another binds an approval to a verified identity rather than to a session, so the answer to "who approved this" survives the session that produced it. An approval gate is only as strong as the identity standing behind it.

The audit trail is designed rather than logged. Separate decision records cover correlating events under a single identifier and persisting the trail, which together are what let a decision be reconstructed later by someone who was not present when it was made.

Fourteen architecture decision records sit alongside the code. That is unusual and it is the most telling artefact here: a system whose central claim is that its choices are provable after the fact has written its choices down.

Capabilities

  • Claude code config
  • LLM SDK
  • MCP SDK
  • MCP surface
  • Prompt library

Integrations

  • SQL server
  • Ssis
  • Ssrs
  • MCP tool gateway

Data stores

  • PostgreSQL
  • SQL server
Architecture diagram for The AI Proposes, A Verified Human Decides
A diagram the delivery team drew.
Four places CoreOps stops trusting what it is holding
Four places CoreOps stops trusting what it is holdingHis trust-boundary diagram: data from external services and a signed-in person crosses four marked boundaries, and reaches a real action only if it survives all four. A page the builder wrote and committed to his repository (24 Aug 2026), captured as it renders, with nothing changed.

The measurement

Six figures, in two kinds that are not mixed. Five were checked here: the drill timings from his written record, the live sources from the app itself, and the decision records, test definitions and commits counted in the repository at the pinned commit. One is the builder's own: the 448 passing tests he recorded in October, which were not re-run.

What no figure here establishes is how well the system performs in use: that its diagnoses are right, that operators adopted it, or that troubleshooting time fell. His estimate of about 20 hours a week of troubleshooting is the problem it set out to address, not a result it has measured.

  • Recovered in 1m31s

    Once the failure was confirmed, in a deliberate production drill (6m14s total outage)

    verified

    Baseline
    Of the 6m14s, 4m43s was the deploy platform deciding the release had failed. The operator part, from confirmed failure to recovery, was 1m31s: one documented rollback command.
    Unit
    seconds
    Sample
    One drill against the production app on 16 Sep 2026.
    Methodology
    He changed the health route to fail, a change the test suite cannot see by design, pushed it, and timed each step from outside the host with curl and the platform machine list.

    Limitations

    • The drill found a real gap: a rolling deploy tears the old machine down before the new one is confirmed, so there was no automatic rollback. He recorded it rather than hiding it.
    • The build was broken by the builder, who knew what was wrong. A first-time responder would likely take longer.
  • 1 of 6 sources live

    Data sources the live health check reports as live, against all it reports on

    verified

    Sample
    One request to the health endpoint at 19:20 UTC on 11 Nov 2026.
    Methodology
    Reading the endpoint's own JSON: success with live mode, success with fallback mode, or failure with an error class.

    Limitations

    • The figure changes as sources come and go; a later request may read differently.
    • Most of what the production app shows today is fallback data, and the endpoint says so plainly.
  • 16 decision records, 17 Aug to 5 Oct 2026

    Architecture decision records in the repository

    verified

    Sample
    ADR-001 to ADR-016.
    Methodology
    Listing the files and the commit that added each one.

    Limitations

    • Several records name a gap the builder found in his own work before review did.
  • 522 test definitions in 61 files

    Test definitions in the repository

    verified

    Unit
    tests
    Sample
    Every test file outside dependencies.
    Methodology
    Text count of test blocks.

    Limitations

    • A parametrised block counts once here and may run many times.
  • 448 tests passing, recorded by the builder

    Tests passing, as the builder recorded it

    anonymized

    Sample
    His own test run, October 2026.
    Methodology
    As reported by the builder.

    Limitations

    • Not re-run for this record.
  • 196 commits, 17 Aug to 11 Nov 2026

    Commits from the first to the head of the default branch

    verified

    Sample
    The full log to f427ef5.
    Methodology
    Listing commits through the repository API.

    Limitations

    • Five are merge commits.
    • 93 of the 196 carry a Claude co-author trailer, which marks assistance, not a share of the lines.
Why a recommendation cannot write back on its own
Why a recommendation cannot write back on its ownHis seven-layer reference architecture, drawn around the one arrow that does not exist: nothing routes from the model's output straight back to the data it read. A page the builder wrote and committed to his repository (24 Aug 2026), captured as it renders, with nothing changed.

What happened next

Shipped

  • Approval boundary enforced by an ABAC evaluator and a human-in-the-loop queue
  • Approvals bound to a verified identity rather than a session
  • Audit trail correlated and persisted

In progress

  • Evidence grounding and structured claim verification

Not pursued

  • Measuring whether the remediations are correct
Notes on 5 of the 5 items
  • Approval boundary enforced by an ABAC evaluator and a human-in-the-loop queue. Both modules carry their own tests. A proposed action is held until a person acts on it.
  • Approvals bound to a verified identity rather than a session. ADR-006 commits to TOTP MFA and ADR-007 binds the approval to identity, so the answer to who approved something outlives the session that produced it.
  • Audit trail correlated and persisted. ADR-002 unifies events under one correlation identifier; ADR-005 commits to persisting the trail.
  • Evidence grounding and structured claim verification. ADR-008 and ADR-009 record the decisions. The records exist; this case study does not establish how much of either is built.
  • Measuring whether the remediations are correct. Nothing in the repository measures the quality of a proposed remediation or whether an operator accepted it. Reporting a figure would mean inventing one.
His build Command Center: what shipped, what was verified
His build Command Center: what shipped, what was verifiedThe overview of the static Command Center he kept beside the build: current release, stories verified and acceptance criteria passed, as of 5 Oct 2026. It tracks the build; it is not the product. A page the builder wrote and committed to his repository (5 Oct 2026), captured as it renders, with nothing changed.

Meet the builder

Learner and builder

Project contribution

Built the governance layer of an AI operations platform for SQL Server infrastructure: an ABAC evaluator that decides whether an action is permissible, a human-in-the-loop queue that holds any write until a person acts, and a remediation guardrail around the action itself, with four of the seven guardrail modules carrying their own tests; wrote fourteen architecture decision records alongside the code.

Skills demonstrated

  • Boundary designProposal and action on opposite sides of a boundary enforced in code: the ABAC evaluator and the human-in-the-loop queue, both tested (architecture narrative).
  • Identity-bound approvalADR-006 commits to TOTP MFA on the approving account; ADR-007 binds the approval to a verified identity rather than a session.
  • Audit trail designADR-002 unifies events under one correlation identifier; ADR-005 commits to persisting the trail.
  • Decision recordsFourteen architecture decision records sit beside the code, so the reasoning is inspectable and not just the behaviour.
  • Honest measurementThe record says which of its figures were checked here and which are the builder's own, and the live health endpoint it cites reports most data sources on fallback or failing.

From the repository record.

What this project shows

This record shows a governance boundary built as code rather than described in a policy: proposals on one side, writes on the other, an identity-bound approval between them, and sixteen decision records that make the reasoning inspectable. Its figures are few and say where each came from: a timed production drill and a live health check that admits most sources are not live. Whether the remediations are correct, whether an operator adopted it and whether anything downstream improved would need a measurement taken in use, which this record does not have and does not pretend to.

Build one of these

Start the program that produced this work.

See the program