Building infrastructure SOC documentation with AI-assisted discovery

  • Share this:
Building infrastructure SOC documentation with AI-assisted discovery

Quick facts

  • Status: Shipped (documentation pass complete; a few verification gaps remain)
  • Product: Infrastructure repo (homelab / production stack)
  • Stack: Proxmox, OPNsense, Docker Compose, Traefik, Tailscale, Cursor Agent, Obsidian
  • Date: May 2026
  • Read time: ~12 min

Context

If you operate a small production stack, you already know the failure mode: the docs in git drift from what is actually running. Containers move, NAT rules live only in a router GUI, and the diagram in the README no longer matches the host answering on port 443.

I wanted a current-state documentation set I could trust for ops and for security-style inventory (what runs where, what trusts what, what still needs a human to verify). I also wanted a blog-shaped record of how I produced it, including what an AI agent can scan automatically and what it cannot.

The stack I documented: one Proxmox host (z-prox04), OPNsense on a VM, one Docker server (z-dock01) running every Compose stack, Pi-hole on an LXC, Tailscale for remote admin. Platform databases run as containers on the Docker host. That is enough moving parts that manual inventory would take days without a structured pass.

What I built or changed

Three notebooks, one stack

I kept three artifacts in sync instead of one giant doc:

  • Roadmap: phases, status, and where to SSH (private repo).
  • Captain's Log: what we did, in order, in normal language.
  • AI Documentation Log: what the agent read, ran, and could not verify.

The Infrastructure repo is the source of truth for ops. This post is the readable version. The figures below are diagrams of that method. The original screen captures were not kept.

Three notebooks: roadmap, captain's log, and AI log

How we staged the work

I split the pass into eleven phases so we were not trying to inventory everything in one sitting. In plain terms:

  1. Setup: roadmap, log indexes, and a draft of this post.
  2. Hypervisor: what runs on Proxmox, storage, and bridges.
  3. Edge network: OPNsense, LAN layout, and what still needs a router export.
  4. Docker host: compose projects, containers, and bind mounts.
  5. Ingress: Traefik routes and the public hostname list.
  6. Platform: GitLab, Portainer, Vaultwarden, AI; call out that monitoring is not running yet.
  7. Applications: folded into the ingress pass (no separate doc sprint).
  8. Storage and backups: data disk usage and disabled vzdump jobs.
  9. Tailscale: who is on the tailnet (addresses stay in the private repo).
  10. Runbooks: short triage for Traefik, the Docker host, and GitLab.
  11. Hub: architecture overview and the main index page.

The full phase table with file paths lives in Documentation/Roadmap.md in git. That file is the progress board; this post is the story.

Eleven phases, all marked done

How we discovered what was running

The agent used our usual SSH key. Hostnames are in the post; IP addresses are not (they stay in the private repo).

On Proxmox it ran the usual host inventory: version, VM list, storage, bridges. On Docker it listed compose projects and containers and read Traefik labels and compose files over Tailscale.

OPNsense had no SSH from the LAN, so firewall and NAT detail still depend on a manual export from the web UI. That gap is called out in the docs rather than guessed.

What showed up on the wire

The picture is simpler than a multi-node cluster but not trivial: one Proxmox box, OPNsense as a VM, one Docker VM doing all platform and app work, Pi-hole on an LXC, plus a few media/game VMs we documented lightly.

Diagram of the stack that was documented

On Docker alone there are about fifteen compose projects and forty containers. Platform stacks live under ~/docker-data/; customer apps deploy from GitLab CI into /builds/.../compose/. Traefik owns 443 and routes by hostname.

A few things were easy to miss without a deliberate scan:

  • Monitoring is in the repo but not running on the Docker host.
  • Proxmox backup jobs to PBS exist but were turned off.
  • Jellyfin/Overseerr routes in Traefik may point at a different host than the temp-jellyfin VM on Tailscale.
  • GitLab Runner caches sit on disk; runners themselves are job containers, not a permanent service.

Rules that kept the docs honest

Write what is running now, in present tense. Put inventories and diagrams in the technical pages; keep the story in the Captain's Log. When the agent could not verify something (NAT intent, backup schedule, a stale backend host), say so in the AI Log instead of inventing detail. Build the index last, after the scans, and drop pages that describe a stack we no longer run.

Challenges and trade-offs

The agent is strong at SSH inventory and weak at router intent. It can list VMs and Traefik routers; it cannot explain why a NAT rule exists. That waits on an OPNsense export.

Pausing to record each phase felt slow in the moment. Those screen captures were not kept. Without them, this post would be a command log. The diagrams stand in for the missing pictures. The logs in the private repo are still the evidence.

Everything interesting runs on one Docker VM. That made the inventory tractable and the failure domain large. Saying monitoring is not deployed in the index is more useful than pretending the stack YAML implies it is live.

Outcome

Six sessions covered all eleven roadmap phases. The Infrastructure repo now documents only this stack: architecture and network, Proxmox, OPNsense, Docker, platform services, applications, storage, Tailscale, runbooks, and a rewritten index. The roadmap is marked complete.

What the agent could read, and the page that came from it

Traefik fronts 18+ public hostnames (GitLab, registry, Portainer, Vaultwarden, AI, and several customer sites). Databases for those apps run as containers on the same Docker VM, not on a separate database server.

Still open (documented as gaps, not hidden):

  • OPNsense NAT / firewall export into Firewall-and-NAT.md
  • Re-enable Proxmox backups for VMs 104 and 1004
  • Deploy monitoring when ready (doc already marks it as not running)
  • Reconcile Jellyfin backend host vs. temp-jellyfin VM

What I learned

A single roadmap file beats chat history for agent-assisted work. Everyone reads the same phase list.

Keep narrative and evidence separate. Captain's Log for humans, AI Log for reproducibility. Merge them and you get ops docs nobody reads or blog posts with no proof.

Pull router exports in phase two next time. OPNsense became the long pole because we deferred it.

Mark absent services explicitly. “Monitoring not deployed” is a fact worth indexing.

Keep addresses in the private repo and hostnames on the public post. That matches how we actually connect without publishing targets.

Next steps

  1. Paste OPNsense NAT/port-forward export into the firewall doc and close the verification checkboxes.
  2. Review Proxmox vzdump jobs: enable backups for z-dock01 and opnsense-04, confirm PBS storage z-pbs01 is healthy.
  3. Deploy the monitoring stack when capacity allows.
  4. Publish a guide companion: numbered steps mirroring the 11 roadmap phases, with verification commands per step (link from this post both ways).
  5. Schedule a quarterly re-scan session: rerun docker compose ls, diff against Applications/Inventory.md, append a new Captain's Log + AI Log session.

Assim Alexander

Assim Alexander

About
I build and improve products, systems, and digital experiences, then document the process and outcomes as public proof of execution.
Connect on LinkedIn
Follow me
Comments

Comments are turned off site-wide. Editors and admins can enable them again under Admin CMS.