Multi-agent systems, constrained design
A scoop of protein powder is a fixed budget. Everything that goes in competes for the same space, and every gram spent on flavour is a gram not spent on protein. This is what happened when nine specialist agents were made to bid for it.
The problem
Designing a supplement means satisfying constraints that actively fight each other. The protein claim on the front of the pack sets a floor. The scoop volume sets a ceiling. Flavour needs mass to work at all. The regulator has views on every ingredient. The accountant has views on all of it. Stability decides whether any of it survives a Pakistani summer in a warehouse.
No single person holds all of that. In practice it gets resolved by whoever is most senior in the room, in a spreadsheet nobody else can audit, and the reasoning disappears the moment the decision is made.
The interesting part is not that the constraints are hard. It is that they are competing, and the trade-off is usually invisible.
The mechanism
The whole system rests on one decision: the scoop is 42.00 grams and that number is not negotiable. It is a physical object. It does not care about anyone's priorities.
So the agents do not discuss. They bid. Each specialist submits a claim on grams of the budget, and what remains is calculated and published as residual headroom for everyone to see.
Scoop budget · 42.00 g · fully allocated
Because the budget is zero sum, no agent can win without another losing, and every concession is recorded rather than absorbed. The flavour agent bidding its mass down below the conventional load is not a preference, it is a documented trade made to fund the protein claim.
That is the difference between a system that produces a decision and a system that produces an auditable decision.
The agents
Each has a single remit and no obligation to be agreeable about it.
The protocol
State lives in one locked JSON object rather than in conversation. It carries the phase, a conflict register, loop counters, and deadlock flags that any agent can raise to stop the run.
The kill switch is the part most agent systems lack. If the same disagreement circulates three times, the run halts and escalates to a human instead of negotiating forever. Agents that cannot fail visibly will burn budget until someone notices, which is the standard way these systems go wrong.
The stability agent can also raise a hard deadlock, on the grounds that a formulation which will not survive its own shelf life is not a formulation worth costing.
Output
Not a chat transcript. Fourteen structured specification files, each one machine readable and human auditable, covering formulation, flavour, manufacturing, stability, cost, compliance and risk.
The protein claim landed on the target as a literal figure rather than a rounded one, which matters because rounding a claim upward is a regulatory problem rather than a marketing one.
The red team
Zero takes the agreed specification and runs failure mode and effects analysis against it, scoring severity, probability and detectability, and ranking by risk priority number against fixed thresholds.
The run closed at an overall amber posture with two high risks carried openly rather than resolved away, which is the correct outcome. A red team that always agrees is decoration.
Not "monitor this" but a named threshold and the specific action taken if it is crossed, including a fallback product specification already defined for the supply risk.
This is the part that transfers furthest outside nutrition. Most automated decisions are never adversarially tested before they ship.
Honest limits
Built for a founder-led sports nutrition company in Pakistan, working directly with its co-founder across formulation strategy, landed cost and regulatory compliance.
The output is a specification, not a lab-validated product. The system reasons about formulation, stability and compliance, and its conclusions are internally consistent and traceable, but computed chemistry is not tested chemistry. Anything intended for sale would need laboratory assay and real stability data behind it. In food and supplements that distinction is not a technicality.
Formulation ratios, landed cost and margin are withheld here. The transferable part was never the recipe.
Transfer
Any answer that has to satisfy constraints which disagree.
A quotation bounded by a code, a margin floor and a customer's budget. A schedule bounded by skills, travel and statutory deadlines. A purchase bounded by lead time, cash and shelf life. In each case the constraints are known, they conflict, and the reasoning normally lives in one experienced person's head where it can be neither checked nor repeated.
The pattern is the same every time: make the budget explicit, make the specialists bid against it, record every concession, and let something adversarial attack the result before it ships.
Contact
If your business makes decisions that have to satisfy rules pulling in different directions, that is the work I do. Tell me what the rules are.