Files
oci-deal-accelerator/kb/diagram/assets/archcenter-refs/mid-tier-replication-oci-dr-arch/_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

619 lines
8.4 KiB
YAML

# Auto-extracted absolute_layout template from
# kb/diagram/assets/archcenter-refs/mid-tier-replication-oci-dr-arch/active-passive-dr-mid-tier-oracle/active-passive-dr-mid-tier.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: 9
y: 255
w: 295
h: 329
- id: c63
type: region
label: ''
x: 1221
y: 255
w: 295
h: 329
- id: c15
type: region
label: ''
x: 277
y: 375
w: 2
h: 63
- id: c31
type: region
label: ''
x: 475
y: 375
w: 2
h: 63
- id: c50
type: region
label: ''
x: 1048
y: 375
w: 2
h: 63
- id: c74
type: region
label: ''
x: 1246
y: 375
w: 2
h: 63
services:
- id: s6
type: TODO_identify
label: ''
x: 349
y: 50
w: 51
h: 48
- id: s7
type: TODO_identify
label: ''
x: 349
y: 50
w: 52
h: 49
- id: s44
type: TODO_identify
label: ''
x: 1131
y: 50
w: 51
h: 48
- id: s45
type: TODO_identify
label: ''
x: 1131
y: 50
w: 52
h: 49
- id: s8
type: TODO_identify
label: ''
x: 350
y: 51
w: 50
h: 47
- id: s46
type: TODO_identify
label: ''
x: 1132
y: 51
w: 50
h: 47
- id: s4
type: TODO_identify
label: ''
x: 128
y: 53
w: 24
h: 46
- id: s3
type: TODO_identify
label: ''
x: 149
y: 53
w: 52
h: 46
- id: s66
type: TODO_identify
label: ''
x: 1335
y: 53
w: 24
h: 46
- id: s65
type: TODO_identify
label: ''
x: 1357
y: 53
w: 52
h: 46
- id: s2
type: TODO_identify
label: ''
x: 150
y: 54
w: 51
h: 45
- id: s5
type: TODO_identify
label: ''
x: 150
y: 54
w: 50
h: 44
- id: s64
type: TODO_identify
label: ''
x: 1357
y: 54
w: 51
h: 45
- id: s67
type: TODO_identify
label: ''
x: 1358
y: 54
w: 50
h: 44
- id: s10
type: TODO_identify
label: ''
x: 130
y: 171
w: 63
h: 33
- id: s9
type: TODO_identify
label: ''
x: 131
y: 171
w: 61
h: 31
- id: s72
type: TODO_identify
label: ''
x: 1342
y: 171
w: 63
h: 33
- id: s71
type: TODO_identify
label: ''
x: 1343
y: 171
w: 61
h: 31
- id: s11
type: TODO_identify
label: ''
x: 132
y: 172
w: 60
h: 30
- id: s73
type: TODO_identify
label: ''
x: 1344
y: 172
w: 60
h: 30
- id: s20
type: TODO_identify
label: ''
x: 132
y: 279
w: 52
h: 52
- id: s36
type: TODO_identify
label: ''
x: 573
y: 279
w: 52
h: 52
- id: s55
type: TODO_identify
label: ''
x: 903
y: 279
w: 52
h: 52
- id: s79
type: TODO_identify
label: ''
x: 1344
y: 279
w: 52
h: 52
- id: s19
type: TODO_identify
label: ''
x: 132
y: 280
w: 51
h: 51
- id: s35
type: TODO_identify
label: ''
x: 574
y: 280
w: 51
h: 51
- id: s54
type: TODO_identify
label: ''
x: 903
y: 280
w: 51
h: 51
- id: s78
type: TODO_identify
label: ''
x: 1345
y: 280
w: 51
h: 51
- id: s21
type: TODO_identify
label: ''
x: 133
y: 281
w: 50
h: 50
- id: s37
type: TODO_identify
label: ''
x: 574
y: 281
w: 50
h: 50
- id: s56
type: TODO_identify
label: ''
x: 904
y: 281
w: 50
h: 50
- id: s80
type: TODO_identify
label: ''
x: 1345
y: 281
w: 50
h: 50
- id: s29
type: TODO_identify
label: ''
x: 684
y: 289
w: 42
h: 40
- id: s69
type: TODO_identify
label: ''
x: 1455
y: 289
w: 42
h: 40
- id: s12
type: TODO_identify
label: ''
x: 226
y: 290
w: 41
h: 39
- id: s13
type: TODO_identify
label: ''
x: 226
y: 290
w: 42
h: 40
- id: s28
type: TODO_identify
label: ''
x: 685
y: 290
w: 41
h: 39
- id: s30
type: TODO_identify
label: ''
x: 685
y: 290
w: 40
h: 38
- id: s47
type: TODO_identify
label: ''
x: 997
y: 290
w: 41
h: 39
- id: s48
type: TODO_identify
label: ''
x: 997
y: 290
w: 42
h: 40
- id: s68
type: TODO_identify
label: ''
x: 1456
y: 290
w: 41
h: 39
- id: s70
type: TODO_identify
label: ''
x: 1456
y: 290
w: 40
h: 38
- id: s14
type: TODO_identify
label: ''
x: 227
y: 291
w: 40
h: 38
- id: s49
type: TODO_identify
label: ''
x: 998
y: 291
w: 40
h: 38
- id: s17
type: TODO_identify
label: ''
x: 256
y: 375
w: 42
h: 42
- id: s16
type: TODO_identify
label: ''
x: 257
y: 375
w: 41
h: 41
- id: s33
type: TODO_identify
label: ''
x: 454
y: 375
w: 42
h: 42
- id: s32
type: TODO_identify
label: ''
x: 455
y: 375
w: 41
h: 41
- id: s52
type: TODO_identify
label: ''
x: 1027
y: 375
w: 42
h: 42
- id: s51
type: TODO_identify
label: ''
x: 1028
y: 375
w: 41
h: 41
- id: s76
type: TODO_identify
label: ''
x: 1225
y: 375
w: 42
h: 42
- id: s75
type: TODO_identify
label: ''
x: 1226
y: 375
w: 41
h: 41
- id: s18
type: TODO_identify
label: ''
x: 257
y: 376
w: 40
h: 40
- id: s34
type: TODO_identify
label: ''
x: 455
y: 376
w: 40
h: 40
- id: s53
type: TODO_identify
label: ''
x: 1028
y: 376
w: 40
h: 40
- id: s77
type: TODO_identify
label: ''
x: 1226
y: 376
w: 40
h: 40
- id: s22
type: TODO_identify
label: ''
x: 127
y: 394
w: 62
h: 43
- id: s23
type: TODO_identify
label: ''
x: 127
y: 394
w: 63
h: 44
- id: s39
type: TODO_identify
label: ''
x: 568
y: 394
w: 63
h: 44
- id: s38
type: TODO_identify
label: ''
x: 569
y: 394
w: 62
h: 43
- id: s58
type: TODO_identify
label: ''
x: 898
y: 394
w: 63
h: 44
- id: s57
type: TODO_identify
label: ''
x: 899
y: 394
w: 62
h: 43
- id: s82
type: TODO_identify
label: ''
x: 1340
y: 394
w: 63
h: 44
- id: s81
type: TODO_identify
label: ''
x: 1341
y: 394
w: 62
h: 43
- id: s24
type: TODO_identify
label: ''
x: 128
y: 395
w: 61
h: 42
- id: s40
type: TODO_identify
label: ''
x: 569
y: 395
w: 61
h: 42
- id: s59
type: TODO_identify
label: ''
x: 899
y: 395
w: 61
h: 42
- id: s83
type: TODO_identify
label: ''
x: 1341
y: 395
w: 61
h: 42
- id: s26
type: TODO_identify
label: ''
x: 130
y: 481
w: 56
h: 63
- id: s25
type: TODO_identify
label: ''
x: 131
y: 481
w: 55
h: 61
- id: s42
type: TODO_identify
label: ''
x: 571
y: 481
w: 56
h: 63
- id: s41
type: TODO_identify
label: ''
x: 572
y: 481
w: 55
h: 61
- id: s61
type: TODO_identify
label: ''
x: 902
y: 481
w: 56
h: 63
- id: s60
type: TODO_identify
label: ''
x: 903
y: 481
w: 55
h: 61
- id: s85
type: TODO_identify
label: ''
x: 1343
y: 481
w: 56
h: 63
- id: s84
type: TODO_identify
label: ''
x: 1344
y: 481
w: 55
h: 61
- id: s27
type: TODO_identify
label: ''
x: 132
y: 482
w: 53
h: 60
- id: s43
type: TODO_identify
label: ''
x: 573
y: 482
w: 53
h: 60
- id: s62
type: TODO_identify
label: ''
x: 904
y: 482
w: 53
h: 60
- id: s86
type: TODO_identify
label: ''
x: 1345
y: 482
w: 53
h: 60
labels: []
connections: []