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>
577 lines
7.8 KiB
YAML
577 lines
7.8 KiB
YAML
# Auto-extracted absolute_layout template from
|
|
# kb/diagram/assets/archcenter-refs/deploy-maa-for-peoplesoft-on-oci/peoplesoft-maa-arch-oracle/peoplesoft-maa-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: c1
|
|
type: region
|
|
label: ''
|
|
x: 0
|
|
y: 84
|
|
w: 405
|
|
h: 565
|
|
- id: c38
|
|
type: region
|
|
label: ''
|
|
x: 635
|
|
y: 84
|
|
w: 405
|
|
h: 565
|
|
services:
|
|
- id: s73
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 463
|
|
y: 0
|
|
w: 57
|
|
h: 63
|
|
- id: s72
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 464
|
|
y: 0
|
|
w: 55
|
|
h: 61
|
|
- id: s76
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 522
|
|
y: 0
|
|
w: 62
|
|
h: 63
|
|
- id: s75
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 523
|
|
y: 0
|
|
w: 60
|
|
h: 61
|
|
- id: s74
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 465
|
|
y: 1
|
|
w: 54
|
|
h: 60
|
|
- id: s77
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 524
|
|
y: 1
|
|
w: 59
|
|
h: 60
|
|
- id: s7
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 170
|
|
y: 135
|
|
w: 63
|
|
h: 63
|
|
- id: s6
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 171
|
|
y: 135
|
|
w: 61
|
|
h: 61
|
|
- id: s40
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 805
|
|
y: 135
|
|
w: 63
|
|
h: 63
|
|
- id: s39
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 806
|
|
y: 135
|
|
w: 61
|
|
h: 61
|
|
- id: s8
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 172
|
|
y: 136
|
|
w: 60
|
|
h: 60
|
|
- id: s41
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 807
|
|
y: 136
|
|
w: 60
|
|
h: 60
|
|
- id: s2
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 9
|
|
y: 244
|
|
w: 192
|
|
h: 127
|
|
- id: s3
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 9
|
|
y: 244
|
|
w: 192
|
|
h: 127
|
|
- id: s44
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 839
|
|
y: 244
|
|
w: 192
|
|
h: 127
|
|
- id: s45
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 839
|
|
y: 244
|
|
w: 192
|
|
h: 127
|
|
- id: s12
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 24
|
|
y: 301
|
|
w: 33
|
|
h: 53
|
|
- id: s24
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 126
|
|
y: 301
|
|
w: 33
|
|
h: 53
|
|
- id: s51
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 855
|
|
y: 301
|
|
w: 33
|
|
h: 53
|
|
- id: s63
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 957
|
|
y: 301
|
|
w: 33
|
|
h: 53
|
|
- id: s11
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 25
|
|
y: 302
|
|
w: 32
|
|
h: 52
|
|
- id: s14
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 25
|
|
y: 302
|
|
w: 31
|
|
h: 50
|
|
- id: s23
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 127
|
|
y: 302
|
|
w: 32
|
|
h: 52
|
|
- id: s26
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 127
|
|
y: 302
|
|
w: 31
|
|
h: 50
|
|
- id: s50
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 855
|
|
y: 302
|
|
w: 32
|
|
h: 52
|
|
- id: s53
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 856
|
|
y: 302
|
|
w: 31
|
|
h: 50
|
|
- id: s62
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 957
|
|
y: 302
|
|
w: 32
|
|
h: 52
|
|
- id: s65
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 958
|
|
y: 302
|
|
w: 31
|
|
h: 50
|
|
- id: s10
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 53
|
|
y: 311
|
|
w: 34
|
|
h: 34
|
|
- id: s22
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 155
|
|
y: 311
|
|
w: 34
|
|
h: 34
|
|
- id: s49
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 884
|
|
y: 311
|
|
w: 34
|
|
h: 34
|
|
- id: s61
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 986
|
|
y: 311
|
|
w: 34
|
|
h: 34
|
|
- id: s9
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 54
|
|
y: 312
|
|
w: 32
|
|
h: 32
|
|
- id: s13
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 55
|
|
y: 312
|
|
w: 31
|
|
h: 31
|
|
- id: s21
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 156
|
|
y: 312
|
|
w: 32
|
|
h: 32
|
|
- id: s25
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 157
|
|
y: 312
|
|
w: 31
|
|
h: 31
|
|
- id: s48
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 885
|
|
y: 312
|
|
w: 32
|
|
h: 32
|
|
- id: s52
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 885
|
|
y: 312
|
|
w: 31
|
|
h: 31
|
|
- id: s60
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 987
|
|
y: 312
|
|
w: 32
|
|
h: 32
|
|
- id: s64
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 987
|
|
y: 312
|
|
w: 31
|
|
h: 31
|
|
- id: s36
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 274
|
|
y: 324
|
|
w: 60
|
|
h: 63
|
|
- id: s35
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 275
|
|
y: 324
|
|
w: 58
|
|
h: 62
|
|
- id: s78
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 707
|
|
y: 324
|
|
w: 58
|
|
h: 62
|
|
- id: s79
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 707
|
|
y: 324
|
|
w: 60
|
|
h: 63
|
|
- id: s37
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 275
|
|
y: 325
|
|
w: 57
|
|
h: 60
|
|
- id: s80
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 708
|
|
y: 325
|
|
w: 57
|
|
h: 60
|
|
- id: s4
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 9
|
|
y: 379
|
|
w: 192
|
|
h: 125
|
|
- id: s5
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 9
|
|
y: 379
|
|
w: 192
|
|
h: 125
|
|
- id: s46
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 839
|
|
y: 379
|
|
w: 192
|
|
h: 125
|
|
- id: s47
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 839
|
|
y: 379
|
|
w: 192
|
|
h: 125
|
|
- id: s16
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 24
|
|
y: 437
|
|
w: 33
|
|
h: 53
|
|
- id: s15
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 25
|
|
y: 437
|
|
w: 32
|
|
h: 52
|
|
- id: s28
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 126
|
|
y: 437
|
|
w: 33
|
|
h: 53
|
|
- id: s27
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 127
|
|
y: 437
|
|
w: 32
|
|
h: 52
|
|
- id: s54
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 855
|
|
y: 437
|
|
w: 32
|
|
h: 52
|
|
- id: s55
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 855
|
|
y: 437
|
|
w: 33
|
|
h: 53
|
|
- id: s66
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 957
|
|
y: 437
|
|
w: 32
|
|
h: 52
|
|
- id: s67
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 957
|
|
y: 437
|
|
w: 33
|
|
h: 53
|
|
- id: s19
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 25
|
|
y: 438
|
|
w: 31
|
|
h: 50
|
|
- id: s31
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 127
|
|
y: 438
|
|
w: 31
|
|
h: 50
|
|
- id: s58
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 856
|
|
y: 438
|
|
w: 31
|
|
h: 50
|
|
- id: s70
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 958
|
|
y: 438
|
|
w: 31
|
|
h: 50
|
|
- id: s17
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 54
|
|
y: 448
|
|
w: 32
|
|
h: 30
|
|
- id: s18
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 54
|
|
y: 448
|
|
w: 33
|
|
h: 32
|
|
- id: s29
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 156
|
|
y: 448
|
|
w: 32
|
|
h: 30
|
|
- id: s30
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 156
|
|
y: 448
|
|
w: 33
|
|
h: 32
|
|
- id: s56
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 885
|
|
y: 448
|
|
w: 32
|
|
h: 30
|
|
- id: s57
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 885
|
|
y: 448
|
|
w: 33
|
|
h: 32
|
|
- id: s69
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 986
|
|
y: 448
|
|
w: 33
|
|
h: 32
|
|
- id: s68
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 987
|
|
y: 448
|
|
w: 32
|
|
h: 30
|
|
- id: s20
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 55
|
|
y: 449
|
|
w: 31
|
|
h: 29
|
|
- id: s32
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 157
|
|
y: 449
|
|
w: 31
|
|
h: 29
|
|
- id: s59
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 886
|
|
y: 449
|
|
w: 31
|
|
h: 29
|
|
- id: s71
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 988
|
|
y: 449
|
|
w: 31
|
|
h: 29
|
|
- id: s34
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 181
|
|
y: 528
|
|
w: 43
|
|
h: 63
|
|
- id: s43
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 816
|
|
y: 528
|
|
w: 43
|
|
h: 63
|
|
- id: s33
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 183
|
|
y: 530
|
|
w: 40
|
|
h: 60
|
|
- id: s42
|
|
type: TODO_identify
|
|
label: ''
|
|
x: 818
|
|
y: 530
|
|
w: 40
|
|
h: 60
|
|
labels: []
|
|
connections: []
|