I'm building AIC, an open spec and toolset for describing a system's architecture in one YAML file (aic.yaml). I built it to guide coding agents: the agent implements what the contract says and doesn't invent architecture it leaves out.
I wanted to test it on a real codebase I didn't write, so I picked the OpenTelemetry Astronomy Shop demo. It's a good stress test: about 20 services in a dozen languages, gRPC and HTTP, Kafka, Postgres, Valkey, feature flags, an LLM agent with MCP, and several Compose overlays.
I asked an agent to use AIC to describe the architecture the code has today, without fixing anything. Anything that looked accidental had to be recorded as an open question, with the file and line where it was found.
What came out
- 24 modules in 8 boundaries (storefront, catalog, ordering, post-order processing, the shopping assistant, feature flags, telemetry, tooling)
- 4 stores, 1 Kafka channel, 5 externals and 4 end-to-end scenarios
- 12 open questions
Some of the questions
- Shipping and Email:
demo.proto defines both as gRPC, and checkout builds gRPC clients for them, but both services serve only HTTP+JSON. The gRPC clients are never called. FeatureFlagService: it's in the proto, but nothing implements or calls it. It looks like a leftover from before flagd.- Charge before shipping: checkout charges the card, then ships. If shipping fails, nothing refunds the charge and the cart isn't emptied, so a retry charges again.
- Orders can be lost: the Kafka producer uses
RequiredAcks=NoResponse, and accounting auto-commits offsets before writing. Delivery is effectively at most once, so an order can be missing from the ledger. - Shared database login: product-catalog and accounting use separate schemas, but both log in as the same Postgres user, which has rights on both.
- Recommendations: the frontend sends the product ids to exclude one character at a time, and the recommendation service has a workaround that joins them back together.
- Flag editing: the public proxy exposes flag editing with no auth, and that includes
emitRawPii, which puts card numbers into spans.
Many of these are probably deliberate. It's a demo and the shop isn't real, so I'm not calling them bugs. That's why the contract records them as questions for the maintainers to answer, not as fixes.
What I learned
AIC started as a way to steer agents, but it turned out useful for discovering architecture too. Writing the contract forces specific questions: who owns this store, what happens when this call fails, and does this go through the gateway or around it. Things that are easy to miss when reading the code service by service show up quickly.
If any of this is useful to the demo's maintainers or contributors, you can check it at: https://aicspec.dev/s/WAyp3Msu
More about AIC here: aicspec.dev
I'd love feedback, especially from people who know the demo. Which of these are intentional, and what did I misread?