Repository navigation
Closed
Labels
area: securitySecurity-relevant: vulnerability, hardening, or disclosure follow-up.
Description
Part of #4639. Blocked by #4641.
Problem
No skill extracts the C4 Container view: the separately deployable units, and the data stores and
brokers they bind to. This is the view that answers "what actually runs". It is most needed when
someone joins a codebase, or when an incident crosses a process boundary. plugins/architecture/skills/
on main has no map-containers.
Evidence
Verified this pass (main a6ba321):
- The skill does not exist.
/planning:designemits an opt-in C4 container view of a design, not of the code. It is governed by
diagram_dialect.system, which acceptslikec4|c4-plantuml, has no default, and refuses mermaid
(plugins/planning/skills/design/SKILL.md:177,docs/conventions/authoring-formats/README.md). An
extracted container view that emits mermaid C4 would contradict that convention, so the dialect
choice is an open decision, recorded on the epic.
Proposed approach
/architecture:map-containers [system]
- Deployables: entry-point projects and their output kinds (web host, API host, worker, CLI, function).
Detect them from the project output type, host-builder usage,Dockerfilepresence and process
manifests, never from directory names. Build ondependency-graph.jsonfrom map-dependencies. - Stores and brokers: databases, caches, queues, topics, blob stores and search indexes, found in
committed configuration. Apply the same evidence and redaction rules as map-context, using the same
shared helper. - Container-to-container paths: from configured endpoints, shared broker names and shared connection
targets. Two containers naming the same broker namespace is a citable edge. Two containers sitting in
the same repository is not. - Several modules shipped inside one deployable render as containment, not as separate containers.
- Every node carries a technology annotation (runtime and framework), or
unknown.
Files:
- new
plugins/architecture/skills/map-containers/{SKILL.md,scripts,evals} - the shared redaction helper in
plugins/architecture/lib/ config.md,plugin.json,CHANGELOG.md,README.md
Acceptance criteria
- Against a fixture with several deployables, each is identified by output kind, and a directory
name that suggests otherwise does not change the result. - A modular monolith fixture renders as one container with contained modules.
- Two deployables configured against one broker produce a shared-infrastructure edge that cites
both config keys. - A credential fixture produces no credential material in the output.
- Every node carries a technology annotation or the literal
unknown.
Constraints and gotchas
- The most common error at this rung is drawing a modular monolith as a set of services. The diagram
would then misrepresent the deployment model. - Out of scope: environment topology and scaling (map-deployment), what is inside a container
(map-components), and message choreography (map-events). This view shows the binding only. - Follow
.claude/rules/skill-bodies-state-current-rules.md, keep the description under 1024
codepoints, bump the version and add a CHANGELOG entry, and use bash plus POSIX awk/sed only.
Context
Source: local handoff item 20260907-094201-map-containers-skill-proposal.md (retired into this issue).
Parent epic: #4639. Depends on: #4641. Related: #3910 (C4 dialect surfaces).
Metadata
Metadata
Assignees
Labels
area: securitySecurity-relevant: vulnerability, hardening, or disclosure follow-up.
Type
Fields
No fields configured for issues without a type.
Activity
feat(architecture): render map-containers with landscape_dialect (#4644)
fix(architecture): one dependency-graph writer, one record shape, sha…
refactor(architecture): share config-assignments.awk and the family r…
fix(architecture): chart container images, test projects, database id…
docs(architecture): tidy family skill hints, dead flags and tracker r…
kyle-sexton commentedon Sep 29, 2026
Refs #4644. The 2026-09-29 audit of the Cursor run found code defects in
map-containers. #5392 (T7) fixes them:FROMwith a digest yielded the digest as the technology. The digest is now dropped.OutputType Exewere charted asclicontainers. They are now excluded.mongodb, not SQL.Two parts of this issue are still not built: deployable-to-deployable edges from configured endpoints, and search-index stores.
map-containersSKILL.md now states that endpoint edges are not extracted. Both are tracked in #5402.fix(architecture): remediate the map-* family audit findings (#5392)
feat(architecture): map-containers endpoint edges and search-index st…