Files
oci-deal-accelerator/kb/diagram/assets/archcenter-refs/azure-pipeline-exacs-dbazure/_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

549 lines
7.5 KiB
YAML

# Auto-extracted absolute_layout template from
# kb/diagram/assets/archcenter-refs/azure-pipeline-exacs-dbazure/exadata-database-service-oracle/exadata-database-service.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: []
services:
- id: s1
type: TODO_identify
label: ''
x: 1167
y: 50
w: 28
h: 31
- id: s14
type: TODO_identify
label: ''
x: 197
y: 169
w: 63
h: 63
- id: s28
type: TODO_identify
label: ''
x: 344
y: 169
w: 63
h: 63
- id: s24
type: TODO_identify
label: ''
x: 446
y: 169
w: 63
h: 63
- id: s20
type: TODO_identify
label: ''
x: 546
y: 169
w: 57
h: 63
- id: s13
type: TODO_identify
label: ''
x: 197
y: 170
w: 62
h: 62
- id: s15
type: TODO_identify
label: ''
x: 198
y: 170
w: 60
h: 60
- id: s27
type: TODO_identify
label: ''
x: 345
y: 170
w: 61
h: 61
- id: s29
type: TODO_identify
label: ''
x: 345
y: 170
w: 60
h: 60
- id: s23
type: TODO_identify
label: ''
x: 447
y: 170
w: 61
h: 61
- id: s25
type: TODO_identify
label: ''
x: 448
y: 170
w: 43
h: 56
- id: s19
type: TODO_identify
label: ''
x: 547
y: 170
w: 56
h: 61
- id: s21
type: TODO_identify
label: ''
x: 548
y: 170
w: 43
h: 56
- id: s30
type: TODO_identify
label: ''
x: 357
y: 184
w: 36
h: 34
- id: s11
type: TODO_identify
label: ''
x: 57
y: 186
w: 63
h: 46
- id: s12
type: TODO_identify
label: ''
x: 58
y: 187
w: 44
h: 44
- id: s26
type: TODO_identify
label: ''
x: 478
y: 191
w: 28
h: 28
- id: s54
type: TODO_identify
label: ''
x: 1403
y: 199
w: 63
h: 33
- id: s53
type: TODO_identify
label: ''
x: 1404
y: 200
w: 61
h: 31
- id: s55
type: TODO_identify
label: ''
x: 1404
y: 201
w: 60
h: 30
- id: s22
type: TODO_identify
label: ''
x: 577
y: 206
w: 24
h: 24
- id: s9
type: TODO_identify
label: ''
x: 61
y: 321
w: 57
h: 63
- id: s17
type: TODO_identify
label: ''
x: 197
y: 321
w: 63
h: 63
- id: s32
type: TODO_identify
label: ''
x: 347
y: 321
w: 56
h: 63
- id: s41
type: TODO_identify
label: ''
x: 543
y: 321
w: 63
h: 63
- id: s16
type: TODO_identify
label: ''
x: 197
y: 322
w: 62
h: 62
- id: s31
type: TODO_identify
label: ''
x: 348
y: 322
w: 55
h: 61
- id: s40
type: TODO_identify
label: ''
x: 544
y: 322
w: 61
h: 62
- id: s8
type: TODO_identify
label: ''
x: 63
y: 323
w: 53
h: 59
- id: s18
type: TODO_identify
label: ''
x: 198
y: 323
w: 60
h: 60
- id: s43
type: TODO_identify
label: ''
x: 572
y: 323
w: 33
h: 33
- id: s42
type: TODO_identify
label: ''
x: 545
y: 326
w: 57
h: 56
- id: s34
type: TODO_identify
label: ''
x: 446
y: 328
w: 61
h: 55
- id: s35
type: TODO_identify
label: ''
x: 446
y: 328
w: 63
h: 57
- id: s33
type: TODO_identify
label: ''
x: 349
y: 329
w: 35
h: 50
- id: s36
type: TODO_identify
label: ''
x: 447
y: 329
w: 54
h: 54
- id: s38
type: TODO_identify
label: ''
x: 463
y: 331
w: 39
h: 30
- id: s37
type: TODO_identify
label: ''
x: 454
y: 336
w: 41
h: 41
- id: s39
type: TODO_identify
label: ''
x: 458
y: 336
w: 48
h: 34
- id: s10
type: TODO_identify
label: ''
x: 66
y: 343
w: 47
h: 37
- id: s6
type: TODO_identify
label: ''
x: 61
y: 457
w: 57
h: 63
- id: s45
type: TODO_identify
label: ''
x: 447
y: 457
w: 58
h: 63
- id: s57
type: TODO_identify
label: ''
x: 1403
y: 457
w: 63
h: 63
- id: s56
type: TODO_identify
label: ''
x: 1404
y: 457
w: 62
h: 62
- id: s44
type: TODO_identify
label: ''
x: 448
y: 458
w: 57
h: 61
- id: s46
type: TODO_identify
label: ''
x: 449
y: 458
w: 55
h: 60
- id: s5
type: TODO_identify
label: ''
x: 63
y: 459
w: 53
h: 59
- id: s62
type: TODO_identify
label: ''
x: 1076
y: 461
w: 96
h: 127
- id: s72
type: TODO_identify
label: ''
x: 652
y: 464
w: 135
h: 53
- id: s63
type: TODO_identify
label: ''
x: 1079
y: 464
w: 90
h: 45
- id: s58
type: TODO_identify
label: ''
x: 1404
y: 464
w: 60
h: 54
- id: s7
type: TODO_identify
label: ''
x: 66
y: 478
w: 47
h: 37
- id: s67
type: TODO_identify
label: ''
x: 958
y: 479
w: 63
h: 40
- id: s66
type: TODO_identify
label: ''
x: 959
y: 480
w: 62
h: 39
- id: s71
type: TODO_identify
label: ''
x: 647
y: 482
w: 135
h: 31
- id: s65
type: TODO_identify
label: ''
x: 1102
y: 489
w: 47
h: 97
- id: s68
type: TODO_identify
label: ''
x: 509
y: 491
w: 75
h: 211
- id: s61
type: TODO_identify
label: ''
x: 1107
y: 493
w: 38
h: 87
- id: s64
type: TODO_identify
label: ''
x: 1107
y: 493
w: 38
h: 87
- id: s3
type: TODO_identify
label: ''
x: 1260
y: 537
w: 42
h: 42
- id: s2
type: TODO_identify
label: ''
x: 1260
y: 538
w: 41
h: 41
- id: s4
type: TODO_identify
label: ''
x: 1261
y: 552
w: 29
h: 26
- id: s48
type: TODO_identify
label: ''
x: 447
y: 562
w: 58
h: 63
- id: s59
type: TODO_identify
label: ''
x: 823
y: 562
w: 55
h: 63
- id: s47
type: TODO_identify
label: ''
x: 448
y: 563
w: 57
h: 61
- id: s49
type: TODO_identify
label: ''
x: 449
y: 564
w: 55
h: 60
- id: s60
type: TODO_identify
label: ''
x: 825
y: 564
w: 34
h: 25
- id: s73
type: TODO_identify
label: ''
x: 1291
y: 595
w: 41
h: 41
- id: s74
type: TODO_identify
label: ''
x: 1291
y: 595
w: 42
h: 42
- id: s75
type: TODO_identify
label: ''
x: 1291
y: 595
w: 30
h: 31
- id: s76
type: TODO_identify
label: ''
x: 1296
y: 600
w: 36
h: 36
- id: s70
type: TODO_identify
label: ''
x: 954
y: 605
w: 72
h: 32
- id: s69
type: TODO_identify
label: ''
x: 951
y: 611
w: 78
h: 31
- id: s51
type: TODO_identify
label: ''
x: 447
y: 668
w: 58
h: 63
- id: s50
type: TODO_identify
label: ''
x: 448
y: 669
w: 57
h: 61
- id: s52
type: TODO_identify
label: ''
x: 449
y: 670
w: 55
h: 60
labels: []
connections: []