Build log / MVP brand agent pipeline
A content pipeline that cannot publish without permission
I publish under an employment agreement with disclosure obligations. That makes an ordinary content pipeline a compliance problem, and it is the reason this one has a veto in it.
- Project
- MVP brand agent pipeline
- Period
- 2026
- Role
- Sole author
Controls and human oversight
-
Typed boundaries
Every agent returns a validated object, not free text. A malformed response is a caught error, not a corrupted downstream input.
-
Guardrail with veto
A separate agent checks each draft against a written rule set and returns either an approval or a corrected body. It can refuse.
-
Human approval gate
Nothing publishes without me. Enforced in the operating manual, not just intended.
-
Deliberate context budget
The pipeline used to re-inject the full canon into every call. Compact per-call briefs replaced it, cutting input context per run by about 97 percent - roughly 59k tokens to 1.75k. The change is in the git history with the reasoning in the docstrings.
Business reality
Every draft has to be checked against a written rule set before it goes out, and the cost of a false negative is not symmetric with the cost of a false positive. A missed violation is a career problem. A blocked draft is an inconvenience.
Users and workflow
One user, me. Angles are generated, checked against the positioning, drafted, reviewed against the rules, and only then surfaced for approval. Nothing reaches a platform without a human saying yes.
The constraint
A language model asked to self-police will approve its own output more often than it should. The check has to be a separate step with its own prompt, its own rule set, and the authority to refuse.
Why AI was, or was not, the answer
The drafting is a genuine model task. The rule set is not - it is a written document, checked deliberately, and the agent that checks it can only return an approval or a corrected body. The approval gate itself is not automated at all, because that is the one decision that should stay with a person.
My exact role
Sole author. Design, schemas, prompts, the guardrail rule set and the cost work are mine; implementation is AI-assisted and reviewed.
Architecture and integrations
Six agents over a shared core, in Python. Typed schema boundaries at every agent edge using Pydantic v2. A structured-output helper that injects the JSON schema, parses the response, and on a validation failure re-prompts the model with the parse error before giving up. A dual runtime that uses the API when a key is present and falls back to local auth otherwise, failing with an explanation rather than silently.
Evaluation
Honest answer - thin, and this is the gap. There is schema validation with a retry, and the guardrail check itself, but there is no golden dataset and no measured pass rate. Nothing here evaluates model output quality, and I would not describe it as an eval suite.
Operational readiness
Modest and appropriate to what it is. Graceful runtime degradation, and clear failure messages. No observability, no run records.
Deployment
Runs locally, on demand. Not a service.
Adoption
One user. No claim beyond that.
Business impact
A measured cost reduction of about 97 percent in input context per run. No revenue claim, because there is not one.
Product boundaries
A personal publishing tool. It is included because the code is readable and shows how I think about guardrails and cost, not because it is a product.
Next iteration
The obvious missing piece is an eval - a golden set of drafts with known verdicts, and a published pass rate for the guardrail agent. That is the gap worth closing next.
Current limitations
Stated as plainly as the rest. A case study without honest limits is marketing.
- No golden dataset, no measured pass rate, no failure taxonomy for model output.
- No observability or run-level audit trail.
- One user. Nothing here has been tested by anyone else.
- Retry is a single reparse attempt, not a general recovery strategy.
Evidence
-
Private repository
The repository is private, so the code is described here rather than linked. Nothing below is offered as something you can open today - it is an account of how the thing is built.
-
The cost reduction
The change that cut input context by about 97 percent is recorded in the repository history, with the reasoning written down alongside it.