Files
oci-deal-accelerator/kb/diagram/assets/archcenter-refs/cloud-native-ecommerce/_template.yaml
root b77a855a3e Extractor: drawio → absolute_layout YAML scaffold (107/132 cached)
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>
2026-04-25 23:56:29 -03:00

542 lines
7.4 KiB
YAML

# Auto-extracted absolute_layout template from
# kb/diagram/assets/archcenter-refs/cloud-native-ecommerce/mushop-infrastructure-expand-oracle/mushop-infrastructure-expand.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: c1
type: region
label: ''
x: 127
y: 0
w: 1158
h: 1268
services:
- id: s33
type: TODO_identify
label: ''
x: 8
y: 42
w: 58
h: 63
- id: s5
type: TODO_identify
label: ''
x: 816
y: 42
w: 63
h: 63
- id: s32
type: TODO_identify
label: ''
x: 8
y: 43
w: 56
h: 61
- id: s4
type: TODO_identify
label: ''
x: 817
y: 43
w: 61
h: 61
- id: s6
type: TODO_identify
label: ''
x: 817
y: 43
w: 60
h: 60
- id: s25
type: TODO_identify
label: ''
x: 310
y: 44
w: 63
h: 60
- id: s26
type: TODO_identify
label: ''
x: 310
y: 44
w: 65
h: 61
- id: s30
type: TODO_identify
label: ''
x: 153
y: 45
w: 63
h: 59
- id: s27
type: TODO_identify
label: ''
x: 311
y: 45
w: 62
h: 29
- id: s29
type: TODO_identify
label: ''
x: 154
y: 46
w: 62
h: 58
- id: s31
type: TODO_identify
label: ''
x: 155
y: 47
w: 60
h: 57
- id: s28
type: TODO_identify
label: ''
x: 336
y: 63
w: 31
h: 40
- id: s69
type: TODO_identify
label: ''
x: 816
y: 176
w: 63
h: 63
- id: s68
type: TODO_identify
label: ''
x: 817
y: 177
w: 61
h: 61
- id: s70
type: TODO_identify
label: ''
x: 818
y: 178
w: 60
h: 60
- id: s13
type: TODO_identify
label: ''
x: 818
y: 330
w: 61
h: 61
- id: s14
type: TODO_identify
label: ''
x: 818
y: 330
w: 63
h: 63
- id: s15
type: TODO_identify
label: ''
x: 819
y: 331
w: 60
h: 60
- id: s35
type: TODO_identify
label: ''
x: 153
y: 482
w: 63
h: 63
- id: s34
type: TODO_identify
label: ''
x: 154
y: 482
w: 61
h: 62
- id: s23
type: TODO_identify
label: ''
x: 705
y: 483
w: 63
h: 63
- id: s22
type: TODO_identify
label: ''
x: 706
y: 484
w: 61
h: 61
- id: s24
type: TODO_identify
label: ''
x: 707
y: 485
w: 60
h: 60
- id: s17
type: TODO_identify
label: ''
x: 817
y: 485
w: 63
h: 63
- id: s16
type: TODO_identify
label: ''
x: 817
y: 486
w: 61
h: 61
- id: s20
type: TODO_identify
label: ''
x: 928
y: 486
w: 63
h: 63
- id: s18
type: TODO_identify
label: ''
x: 818
y: 487
w: 60
h: 60
- id: s19
type: TODO_identify
label: ''
x: 928
y: 487
w: 61
h: 61
- id: s21
type: TODO_identify
label: ''
x: 929
y: 488
w: 60
h: 60
- id: s36
type: TODO_identify
label: ''
x: 154
y: 489
w: 60
h: 54
- id: s38
type: TODO_identify
label: ''
x: 154
y: 641
w: 63
h: 63
- id: s37
type: TODO_identify
label: ''
x: 154
y: 642
w: 61
h: 62
- id: s39
type: TODO_identify
label: ''
x: 155
y: 642
w: 60
h: 60
- id: s41
type: TODO_identify
label: ''
x: 323
y: 642
w: 32
h: 61
- id: s40
type: TODO_identify
label: ''
x: 324
y: 643
w: 30
h: 60
- id: s43
type: TODO_identify
label: ''
x: 325
y: 644
w: 29
h: 58
- id: s11
type: TODO_identify
label: ''
x: 527
y: 644
w: 63
h: 63
- id: s8
type: TODO_identify
label: ''
x: 1105
y: 644
w: 63
h: 63
- id: s10
type: TODO_identify
label: ''
x: 528
y: 645
w: 61
h: 61
- id: s7
type: TODO_identify
label: ''
x: 1106
y: 645
w: 61
h: 61
- id: s42
type: TODO_identify
label: ''
x: 327
y: 646
w: 24
h: 54
- id: s12
type: TODO_identify
label: ''
x: 529
y: 646
w: 60
h: 60
- id: s9
type: TODO_identify
label: ''
x: 1107
y: 646
w: 60
h: 60
- id: s3
type: TODO_identify
label: ''
x: 381
y: 751
w: 177
h: 61
- id: s74
type: TODO_identify
label: ''
x: 309
y: 781
w: 63
h: 63
- id: s73
type: TODO_identify
label: ''
x: 310
y: 781
w: 61
h: 62
- id: s45
type: TODO_identify
label: ''
x: 704
y: 781
w: 63
h: 63
- id: s44
type: TODO_identify
label: ''
x: 705
y: 781
w: 61
h: 61
- id: s47
type: TODO_identify
label: ''
x: 817
y: 781
w: 61
h: 61
- id: s48
type: TODO_identify
label: ''
x: 817
y: 781
w: 63
h: 63
- id: s75
type: TODO_identify
label: ''
x: 311
y: 782
w: 60
h: 60
- id: s46
type: TODO_identify
label: ''
x: 706
y: 782
w: 60
h: 60
- id: s49
type: TODO_identify
label: ''
x: 818
y: 782
w: 60
h: 60
- id: s72
type: TODO_identify
label: ''
x: 158
y: 800
w: 63
h: 43
- id: s71
type: TODO_identify
label: ''
x: 158
y: 801
w: 62
h: 42
- id: s2
type: TODO_identify
label: ''
x: 737
y: 924
w: 215
h: 168
- id: s51
type: TODO_identify
label: ''
x: 815
y: 947
w: 63
h: 63
- id: s50
type: TODO_identify
label: ''
x: 816
y: 948
w: 61
h: 61
- id: s52
type: TODO_identify
label: ''
x: 817
y: 949
w: 60
h: 60
- id: s66
type: TODO_identify
label: ''
x: 234
y: 1083
w: 63
h: 55
- id: s65
type: TODO_identify
label: ''
x: 235
y: 1084
w: 61
h: 53
- id: s67
type: TODO_identify
label: ''
x: 236
y: 1085
w: 60
h: 52
- id: s57
type: TODO_identify
label: ''
x: 818
y: 1097
w: 63
h: 63
- id: s60
type: TODO_identify
label: ''
x: 929
y: 1097
w: 63
h: 63
- id: s63
type: TODO_identify
label: ''
x: 1023
y: 1097
w: 63
h: 63
- id: s54
type: TODO_identify
label: ''
x: 706
y: 1098
w: 63
h: 63
- id: s56
type: TODO_identify
label: ''
x: 818
y: 1098
w: 61
h: 61
- id: s59
type: TODO_identify
label: ''
x: 930
y: 1098
w: 61
h: 61
- id: s62
type: TODO_identify
label: ''
x: 1024
y: 1098
w: 61
h: 61
- id: s53
type: TODO_identify
label: ''
x: 707
y: 1099
w: 61
h: 61
- id: s58
type: TODO_identify
label: ''
x: 819
y: 1099
w: 60
h: 60
- id: s61
type: TODO_identify
label: ''
x: 930
y: 1099
w: 60
h: 60
- id: s64
type: TODO_identify
label: ''
x: 1024
y: 1099
w: 60
h: 60
- id: s55
type: TODO_identify
label: ''
x: 708
y: 1100
w: 60
h: 60
labels: []
connections: []