agentleFS
ostrium-labsostrium-labs/loams-skills/skills/target-architecture/SKILL.md

target-architecture

Skill1 starsChanged 39 days agoApache-2.0View on GitHub

Design the target Loams topology: namespaces and tenancy, collection schemas, data flows, identity, deployment, capacity, and failure domains. Use after fit decisions and before building the pilot.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Design data flows: Write path, read path, backfill, dual-write, events, analytics.

    line 41
  2. Distinctive:

    Do not assume replication on the light single-node stack.

    line 63
  3. Distinctive:

    Do not mix tenants in a namespace without a written risk acceptance.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Target architecture

Turn fit decisions into a topology a team can build and an operator can run.

When to use

  • Stage 2, after company/architecture/fit.md and the ADRs exist.
  • A new environment, region, or tenant is added.
  • A security or tenancy review asks for the data-flow diagram.

Inputs

  • company/architecture/fit.md.
  • company/company.yaml (cloud, IdP, Loams version).
  • Traffic, data volume, retention, and RPO/RTO targets.
  • Design 01, Design 70, Design 76.

Procedure

  1. Choose the deployment shape. Local dev (loams dev) → one VM light stack → profiles (tikv, rustfs) → Kubernetes only when upstream supports it. Record why. The current guides cover the one-VM tier; container and Kubernetes tiers are not built yet.
  2. Define namespaces. One per environment and trust boundary, for example prod, staging, dev, and a namespace per external tenant if required. Namespaces are the unit of isolation; do not put two trust boundaries in one.
  3. Design collections and schemas. Fields, types, vector dimensions, analyzers, filters, sort keys, retention. Avoid one giant collection.
  4. Design data flows. Write path, read path, backfill, dual-write, events, analytics. Mark synchronous vs asynchronous and the consistency expectation.
  5. Design identity. Human SSO, machine users, agent identities, service tokens, authorization tuples. See the identity-authz skill.
  6. Design the network. Tailnet only, no inbound rule, egress for images and the tailnet. Name the break-glass path.
  7. Design capacity and failure. Disk, RAM, IOPS, bucket growth, backup window, restore time, single-node risk, upgrade window.
  8. Write company/architecture/target.md with Mermaid diagrams and a decision table. Link every choice to an ADR.

Outputs

  • company/architecture/target.md
  • company/architecture/data-flows.md (optional)
  • company/architecture/capacity.md
  • ADRs for deployment shape, tenancy, identity, and consistency.

Guardrails

  • The engine is never public. A design that needs a public endpoint is rejected or fronted by a company-owned gateway with its own review.
  • Do not assume replication on the light single-node stack.
  • Do not mix tenants in a namespace without a written risk acceptance.

References

  • Design 01
  • Design 70
  • Design 76
  • BYOG rules

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.