forked from diegoecab/oci-deal-accelerator
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>
409 lines
5.7 KiB
YAML
409 lines
5.7 KiB
YAML
# Auto-extracted absolute_layout template from
|
|
# kb/diagram/assets/archcenter-refs/oci-azure-multicloud-data-solution/oci-azure-multicloud-data-solution-diagram-oracle/oci-azure-multicloud-data-solution-diagram.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: c13
|
|
type: region
|
|
label: ''
|
|
x: 316
|
|
y: 0
|
|
w: 772
|
|
h: 517
|
|
- id: c1
|
|
type: region
|
|
label: ''
|
|
x: 0
|
|
y: 0
|
|
w: 168
|
|
h: 295
|
|
- id: c56
|
|
type: region
|
|
label: ''
|
|
x: 416
|
|
y: 364
|
|
w: 41
|
|
h: 14
|
|
- id: c27
|
|
type: region
|
|
label: ''
|
|
x: 475
|
|
y: 144
|
|
w: 2
|
|
h: 80
|
|
services:
|
|
- id: s25
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1028
|
|
y: 27
|
|
w: 42
|
|
h: 40
|
|
- id: s24
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1029
|
|
y: 27
|
|
w: 41
|
|
h: 39
|
|
- id: s26
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1029
|
|
y: 28
|
|
w: 40
|
|
h: 38
|
|
- id: s31
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1006
|
|
y: 74
|
|
w: 41
|
|
h: 41
|
|
- id: s32
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1006
|
|
y: 74
|
|
w: 42
|
|
h: 42
|
|
- id: s3
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 49
|
|
y: 86
|
|
w: 63
|
|
h: 52
|
|
- id: s2
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 50
|
|
y: 87
|
|
w: 62
|
|
h: 51
|
|
- id: s4
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 50
|
|
y: 87
|
|
w: 28
|
|
h: 50
|
|
- id: s33
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1007
|
|
y: 88
|
|
w: 29
|
|
h: 26
|
|
- id: s5
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 76
|
|
y: 104
|
|
w: 29
|
|
h: 32
|
|
- id: s17
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1441
|
|
y: 108
|
|
w: 62
|
|
h: 62
|
|
- id: s50
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 744
|
|
y: 132
|
|
w: 59
|
|
h: 63
|
|
- id: s49
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 745
|
|
y: 133
|
|
w: 58
|
|
h: 61
|
|
- id: s51
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 746
|
|
y: 134
|
|
w: 39
|
|
h: 26
|
|
- id: s29
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 458
|
|
y: 144
|
|
w: 36
|
|
h: 42
|
|
- id: s28
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 458
|
|
y: 145
|
|
w: 35
|
|
h: 41
|
|
- id: s38
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 903
|
|
y: 147
|
|
w: 63
|
|
h: 48
|
|
- id: s37
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 904
|
|
y: 148
|
|
w: 61
|
|
h: 46
|
|
- id: s53
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 182
|
|
y: 150
|
|
w: 40
|
|
h: 35
|
|
- id: s54
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 182
|
|
y: 150
|
|
w: 42
|
|
h: 35
|
|
- id: s21
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1138
|
|
y: 150
|
|
w: 62
|
|
h: 43
|
|
- id: s22
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1138
|
|
y: 150
|
|
w: 63
|
|
h: 44
|
|
- id: s55
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 183
|
|
y: 151
|
|
w: 39
|
|
h: 34
|
|
- id: s23
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1148
|
|
y: 151
|
|
w: 43
|
|
h: 42
|
|
- id: s30
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 459
|
|
y: 152
|
|
w: 34
|
|
h: 34
|
|
- id: s52
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 496
|
|
y: 167
|
|
w: 57
|
|
h: 170
|
|
- id: s7
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 52
|
|
y: 192
|
|
w: 63
|
|
h: 63
|
|
- id: s6
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 53
|
|
y: 193
|
|
w: 61
|
|
h: 61
|
|
- id: s8
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 54
|
|
y: 194
|
|
w: 60
|
|
h: 60
|
|
- id: s9
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 64
|
|
y: 209
|
|
w: 39
|
|
h: 39
|
|
- id: s18
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1443
|
|
y: 230
|
|
w: 55
|
|
h: 63
|
|
- id: s19
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1452
|
|
y: 238
|
|
w: 38
|
|
h: 47
|
|
- id: s34
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1006
|
|
y: 275
|
|
w: 41
|
|
h: 41
|
|
- id: s35
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1006
|
|
y: 275
|
|
w: 42
|
|
h: 42
|
|
- id: s36
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1007
|
|
y: 289
|
|
w: 29
|
|
h: 26
|
|
- id: s11
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 60
|
|
y: 337
|
|
w: 62
|
|
h: 59
|
|
- id: s40
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 739
|
|
y: 337
|
|
w: 63
|
|
h: 63
|
|
- id: s10
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 61
|
|
y: 338
|
|
w: 61
|
|
h: 57
|
|
- id: s47
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 500
|
|
y: 338
|
|
w: 63
|
|
h: 63
|
|
- id: s46
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 501
|
|
y: 338
|
|
w: 61
|
|
h: 62
|
|
- id: s39
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 740
|
|
y: 338
|
|
w: 62
|
|
h: 62
|
|
- id: s12
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 78
|
|
y: 339
|
|
w: 43
|
|
h: 56
|
|
- id: s41
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 741
|
|
y: 339
|
|
w: 60
|
|
h: 60
|
|
- id: s43
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 903
|
|
y: 343
|
|
w: 63
|
|
h: 57
|
|
- id: s42
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 904
|
|
y: 343
|
|
w: 62
|
|
h: 56
|
|
- id: s44
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 905
|
|
y: 344
|
|
w: 60
|
|
h: 30
|
|
- id: s48
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 501
|
|
y: 345
|
|
w: 60
|
|
h: 54
|
|
- id: s15
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 335
|
|
y: 350
|
|
w: 63
|
|
h: 50
|
|
- id: s14
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 335
|
|
y: 351
|
|
w: 62
|
|
h: 48
|
|
- id: s16
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 336
|
|
y: 352
|
|
w: 60
|
|
h: 30
|
|
- id: s45
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 915
|
|
y: 356
|
|
w: 38
|
|
h: 42
|
|
- id: s20
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 1448
|
|
y: 372
|
|
w: 48
|
|
h: 63
|
|
labels: []
|
|
connections: []
|