Tangigo
ProductPricingDocsEngineering notesSecuritySupport
LoginStart free

Engineering notes · Registry

Why agents need a registry, not a longer prompt

A system prompt that carries your conventions has no owner, no version and no scope. A registry has all three, and it is what every Tangigo build starts from.

Tangigo engineering · · 4 min read

Most teams that adopt AI coding tools go through the same phase. The first week is impressive. By the third, someone is maintaining a long system prompt: use our error envelope, never call the payments service directly, timestamps are UTC, tests live next to the code. The prompt grows. It gets copied into three tools and edited in two of them. Nobody owns it, and nobody can say which version an agent read when it wrote last Tuesday's change.

That prompt is a registry in denial. It is trying to be a shared record of what your organization decided, and it has none of the properties a record needs.

What a decision needs to be useful to an agent

A rule your agents should follow has an owner who can change it. It has a history, so you can ask what was true when a change was made. It has a scope: the payments module has rules the marketing site does not. And it has a state. A proposal someone floated in a meeting is not the same as a standard the architecture group approved.

A prompt has none of that. It is one undifferentiated block of text, applied to everything, with no record of who changed what. When an agent ignores a convention, you cannot tell whether the convention was in the prompt that day, whether it was buried under four thousand other words, or whether it was never written down.

One envelope for every kind of decision

In Tangigo the record is the registry. It is scoped to your organization and holds the things your teams already decided: APIs and their contracts, data models, architecture principles, standards, reusable components, policies, skills and the agent definitions that use them. Every kind shares one envelope:

  • an owner, and a lifecycle that runs proposed, approved, active, deprecated, retired;
  • a new version on every write, with the principal who made it and the reason;
  • a used-by list, written back by the documents, builds and migrations that consumed the entry;
  • an approval that the server records from the approver's own identity, never from a field in the request.

That last point matters more than it looks. If approval were a field the client could set, anyone could record a standard as approved by someone else, and the record would stop being evidence of anything.

The build brief

A record only helps if the agents actually read it, at the right moment, in the right amount. Before a Tangigo squad writes a line of code for a story, the build job fetches a brief. It contains the principles, standards and policies in force on that module (approved or active, with a scope that reaches it), the story document and the artifacts it links to at their pinned versions, the module's own registry references, your approved design system and the reusable components you have promoted.

Each rule in the brief is marked as a gate or as advice. A gate is a rule your organization enforces; advice is context. If a dispensation covers the module, the gate reads as advisory for the life of that dispensation, and the brief says so.

The brief is bounded per item, per section and in total, and anything cut is marked as cut rather than silently dropped. The ids and versions of everything in it are recorded on the story, so six months later you can see exactly which version of which standard the squad was given. If the brief cannot be assembled, the job fails before any model spends a token. A build with no constraints is not a cheaper build; it is a review problem you have not seen yet.

Why not just a better prompt

You could write a better prompt. You would then need to version it, scope it per module, separate approved rules from proposals, record which revision each change saw, and keep it short enough that the model reads it. By the time you have done that, you have built a registry, minus the search index, the approvals and the used-by graph.

There is also a reason that has nothing to do with agents. A registry is useful to people. New engineers read it. Reviewers link to it. Retiring an API that something still uses is refused, and the refusal names what would break. The agents are simply one more reader of a record your organization should have had anyway.

What it does not do

The registry does not make a weak standard good. If your standards contradict each other, the brief will carry the contradiction to the squad and the conformance step will report it. It also does not decide what your rules should be. It holds the ones you agreed, makes them readable to every agent that builds for you, and records which ones each build was given.

Ship AI-built software you can actually sign off.

Start on the free tier with your own repository. Bring your standards; the squad works inside them.

Start freeTalk to sales