Closes the procedural hole that kept making Codex sessions fall back
to ``examples/`` for YAML scaffolding even after the SKILL forbade it.
The lookup tool returns a canonical Oracle ``.drawio`` as the geometry
source, but the agent had no YAML version of that geometry to copy —
the .drawio is XML with stencil-encoded icons. Without a scaffold,
agents reverse-engineered or fell back to ``examples/`` (which is
forbidden but happened anyway because the alternative was painful).
New tool ``tools/archcenter_drawio_to_template.py`` extracts:
• canvas dimensions
• containers (region / vcn / ad / subnet) classified by stroke /
fill style markers
• service bounding boxes with ``type: TODO_identify`` (the icon
type is encoded in stencil bytes — agent fills it from the
renderer's TYPE_TO_ICON aliases when authoring the spec)
• edge waypoints (source, target, points)
Output lands at ``kb/diagram/assets/archcenter-refs/<slug>/_template.yaml``
next to the .drawio. Lookup now surfaces it as
``cached: yaml=<path>`` so the agent has a one-step "copy this YAML
and adapt" path.
Ran across all 132 cached folders: 107 templates emitted, 24 had no
.drawio (zip didn't ship one), 1 already cached.
Other persistent guardrails added in this commit:
- SKILL.md option 2 step 3: explicit reminder that valid ``type:``
values come from ``TYPE_TO_ICON`` / ``ICON_TYPE_ALIASES`` in the
renderer source plus the icon-index JSON files. Do NOT grep
``examples/`` for ``type:`` — that's where the previous Codex
session was looking, against the rule.
- ``make archcenter-templates-refresh`` Makefile target.
- The lookup index now also indexes ``_template.yaml`` per slug.
- Auto-extracted templates committed under
``kb/diagram/assets/archcenter-refs/*/_template.yaml`` so a fresh
clone has them on first lookup (no extraction step needed).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
346 lines
4.8 KiB
YAML
346 lines
4.8 KiB
YAML
# Auto-extracted absolute_layout template from
|
|
# kb/diagram/assets/archcenter-refs/run-quantized-gguf-llm-ampere-cluster/gen-ai-ampere-gguf-llm-arch/gen-ai-ampere-gguf-llm-arch/gen-ai-ampere-gguf-llm-arch.drawio
|
|
# Source: Oracle Architecture Center reference (canonical geometry).
|
|
# Use this as the starting scaffold for a new spec — copy, rename ids,
|
|
# and replace `type: TODO_identify` on services with the right OCI
|
|
# type alias (adb_s, drg, fastconnect, etc.). Container coords and
|
|
# edge waypoints are Oracle's canonical layout; preserve unless the
|
|
# customer's topology requires a change.
|
|
absolute_layout:
|
|
canvas:
|
|
width: 850
|
|
height: 1100
|
|
containers:
|
|
- id: c2
|
|
type: region
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 777
|
|
h: 456
|
|
- id: c1
|
|
type: region
|
|
label: ''
|
|
x: 871
|
|
y: 0
|
|
w: 125
|
|
h: 456
|
|
- id: c5
|
|
type: region
|
|
label: ''
|
|
x: 734
|
|
y: 127
|
|
w: 2
|
|
h: 80
|
|
services:
|
|
- id: '22'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 49
|
|
h: 63
|
|
- id: '35'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 41
|
|
h: 39
|
|
- id: '36'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 42
|
|
h: 40
|
|
- id: '57'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 42
|
|
h: 42
|
|
- id: '58'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 41
|
|
h: 41
|
|
- id: '59'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 42
|
|
h: 42
|
|
- id: '78'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 42
|
|
h: 42
|
|
- id: '79'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 41
|
|
h: 41
|
|
- id: '80'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 42
|
|
h: 42
|
|
- id: '97'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 63
|
|
h: 63
|
|
- id: '98'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 61
|
|
h: 61
|
|
- id: '99'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 63
|
|
h: 63
|
|
- id: '105'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 63
|
|
h: 63
|
|
- id: '106'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 61
|
|
h: 62
|
|
- id: '107'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 63
|
|
h: 63
|
|
- id: '37'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 0
|
|
w: 40
|
|
h: 38
|
|
- id: '23'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 8
|
|
y: 0
|
|
w: 32
|
|
h: 32
|
|
- id: '24'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 8
|
|
y: 0
|
|
w: 31
|
|
h: 31
|
|
- id: '25'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 8
|
|
y: 0
|
|
w: 32
|
|
h: 32
|
|
- id: '41'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 12
|
|
y: 0
|
|
w: 38
|
|
h: 42
|
|
- id: '42'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 12
|
|
y: 0
|
|
w: 37
|
|
h: 40
|
|
- id: '43'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 12
|
|
y: 0
|
|
w: 38
|
|
h: 42
|
|
- id: '29'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 1
|
|
w: 46
|
|
h: 60
|
|
- id: '60'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 1
|
|
w: 40
|
|
h: 40
|
|
- id: '81'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 1
|
|
w: 40
|
|
h: 40
|
|
- id: '100'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 1
|
|
w: 60
|
|
h: 60
|
|
- id: '108'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 1
|
|
w: 60
|
|
h: 60
|
|
- id: '109'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 1
|
|
w: 60
|
|
h: 60
|
|
- id: '30'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 9
|
|
y: 1
|
|
w: 29
|
|
h: 29
|
|
- id: '61'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 14
|
|
w: 29
|
|
h: 26
|
|
- id: '82'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 14
|
|
w: 29
|
|
h: 26
|
|
- id: '26'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 31
|
|
w: 49
|
|
h: 31
|
|
- id: '27'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 31
|
|
w: 48
|
|
h: 30
|
|
- id: '28'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 31
|
|
w: 49
|
|
h: 31
|
|
- id: '31'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1
|
|
y: 32
|
|
w: 46
|
|
h: 28
|
|
- id: '51'
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 0
|
|
y: 45
|
|
w: 136
|
|
h: 37
|
|
- id: s4
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 683
|
|
y: 52
|
|
w: 42
|
|
h: 40
|
|
- id: s7
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 633
|
|
y: 80
|
|
w: 42
|
|
h: 42
|
|
- id: s9
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 242
|
|
y: 113
|
|
w: 63
|
|
h: 63
|
|
- id: s3
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 909
|
|
y: 113
|
|
w: 49
|
|
h: 63
|
|
- id: s6
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 703
|
|
y: 127
|
|
w: 136
|
|
h: 83
|
|
- id: s10
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 239
|
|
y: 180
|
|
w: 137
|
|
h: 37
|
|
- id: s8
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 633
|
|
y: 249
|
|
w: 42
|
|
h: 42
|
|
- id: s11
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 238
|
|
y: 304
|
|
w: 63
|
|
h: 63
|
|
labels: []
|
|
connections: []
|