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

556 lines
7.5 KiB
YAML

# Auto-extracted absolute_layout template from
# kb/diagram/assets/archcenter-refs/implement-goldengate-azure/goldengate-dbatazure-integration/goldengate-dbatazure-integration/goldengate-dbatazure-integration.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: c3
type: region
label: ''
x: 787
y: 0
w: 139
h: 774
- id: c4
type: region
label: ''
x: 0
y: 0
w: 139
h: 774
services:
- id: '24'
type: TODO_identify
label: ''
x: 0
y: 0
w: 72
h: 50
- id: '25'
type: TODO_identify
label: ''
x: 0
y: 0
w: 74
h: 52
- id: '48'
type: TODO_identify
label: ''
x: 0
y: 0
w: 41
h: 39
- id: '49'
type: TODO_identify
label: ''
x: 0
y: 0
w: 42
h: 40
- id: '58'
type: TODO_identify
label: ''
x: 0
y: 0
w: 42
h: 42
- id: '59'
type: TODO_identify
label: ''
x: 0
y: 0
w: 41
h: 41
- id: '60'
type: TODO_identify
label: ''
x: 0
y: 0
w: 42
h: 42
- id: '77'
type: TODO_identify
label: ''
x: 0
y: 0
w: 62
h: 45
- id: '78'
type: TODO_identify
label: ''
x: 0
y: 0
w: 63
h: 46
- id: '95'
type: TODO_identify
label: ''
x: 0
y: 0
w: 61
h: 61
- id: '96'
type: TODO_identify
label: ''
x: 0
y: 0
w: 63
h: 63
- id: '105'
type: TODO_identify
label: ''
x: 0
y: 0
w: 63
h: 42
- id: '146'
type: TODO_identify
label: ''
x: 0
y: 0
w: 55
h: 63
- id: '203'
type: TODO_identify
label: ''
x: 0
y: 0
w: 63
h: 55
- id: '215'
type: TODO_identify
label: ''
x: 0
y: 0
w: 55
h: 61
- id: '216'
type: TODO_identify
label: ''
x: 0
y: 0
w: 56
h: 63
- id: '223'
type: TODO_identify
label: ''
x: 0
y: 0
w: 39
h: 28
- id: '229'
type: TODO_identify
label: ''
x: 0
y: 0
w: 84
h: 48
- id: '238'
type: TODO_identify
label: ''
x: 0
y: 0
w: 63
h: 63
- id: '239'
type: TODO_identify
label: ''
x: 0
y: 0
w: 61
h: 62
- id: '240'
type: TODO_identify
label: ''
x: 0
y: 0
w: 63
h: 63
- id: '50'
type: TODO_identify
label: ''
x: 1
y: 0
w: 40
h: 38
- id: '188'
type: TODO_identify
label: ''
x: 2
y: 0
w: 57
h: 57
- id: '116'
type: TODO_identify
label: ''
x: 6
y: 0
w: 51
h: 56
- id: '189'
type: TODO_identify
label: ''
x: 17
y: 0
w: 42
h: 42
- id: '32'
type: TODO_identify
label: ''
x: 1
y: 1
w: 71
h: 49
- id: '61'
type: TODO_identify
label: ''
x: 1
y: 1
w: 40
h: 40
- id: '97'
type: TODO_identify
label: ''
x: 1
y: 1
w: 60
h: 60
- id: '217'
type: TODO_identify
label: ''
x: 1
y: 1
w: 53
h: 60
- id: '228'
type: TODO_identify
label: ''
x: 1
y: 1
w: 82
h: 46
- id: '177'
type: TODO_identify
label: ''
x: 0
y: 5
w: 31
h: 57
- id: '245'
type: TODO_identify
label: ''
x: 1
y: 7
w: 60
h: 54
- id: '147'
type: TODO_identify
label: ''
x: 8
y: 7
w: 38
h: 47
- id: '204'
type: TODO_identify
label: ''
x: 17
y: 9
w: 29
h: 36
- id: '62'
type: TODO_identify
label: ''
x: 1
y: 14
w: 29
h: 26
- id: '241'
type: TODO_identify
label: ''
x: 10
y: 14
w: 42
h: 40
- id: '100'
type: TODO_identify
label: ''
x: 13
y: 14
w: 36
h: 34
- id: '222'
type: TODO_identify
label: ''
x: 20
y: 16
w: 43
h: 47
- id: '80'
type: TODO_identify
label: ''
x: 1
y: 20
w: 61
h: 25
- id: '176'
type: TODO_identify
label: ''
x: 16
y: 22
w: 47
h: 41
- id: '190'
type: TODO_identify
label: ''
x: 0
y: 33
w: 27
h: 27
- id: s6
type: TODO_identify
label: ''
x: 865
y: 62
w: 42
h: 40
- id: s7
type: TODO_identify
label: ''
x: 856
y: 106
w: 42
h: 42
- id: s1
type: TODO_identify
label: ''
x: 297
y: 148
w: 154
h: 148
- id: s2
type: TODO_identify
label: ''
x: 297
y: 148
w: 154
h: 148
- id: s31
type: TODO_identify
label: ''
x: 590
y: 182
w: 63
h: 63
- id: s13
type: TODO_identify
label: ''
x: 321
y: 190
w: 63
h: 56
- id: s8
type: TODO_identify
label: ''
x: 39
y: 199
w: 63
h: 46
- id: s14
type: TODO_identify
label: ''
x: 315
y: 250
w: 169
h: 37
- id: s36
type: TODO_identify
label: ''
x: 178
y: 360
w: 63
h: 58
- id: s12
type: TODO_identify
label: ''
x: 324
y: 360
w: 63
h: 58
- id: s15
type: TODO_identify
label: ''
x: 590
y: 362
w: 63
h: 55
- id: s5
type: TODO_identify
label: ''
x: 33
y: 367
w: 74
h: 52
- id: s32
type: TODO_identify
label: ''
x: 452
y: 370
w: 84
h: 48
- id: s33
type: TODO_identify
label: ''
x: 440
y: 422
w: 220
h: 54
- id: s29
type: TODO_identify
label: ''
x: 42
y: 536
w: 56
h: 63
- id: s9
type: TODO_identify
label: ''
x: 325
y: 536
w: 60
h: 63
- id: s16
type: TODO_identify
label: ''
x: 415
y: 536
w: 55
h: 63
- id: s24
type: TODO_identify
label: ''
x: 614
y: 536
w: 39
h: 63
- id: s10
type: TODO_identify
label: ''
x: 826
y: 536
w: 63
h: 63
- id: s18
type: TODO_identify
label: ''
x: 521
y: 545
w: 63
h: 56
- id: s30
type: TODO_identify
label: ''
x: 35
y: 603
w: 135
h: 37
- id: s17
type: TODO_identify
label: ''
x: 409
y: 603
w: 152
h: 37
- id: s19
type: TODO_identify
label: ''
x: 527
y: 603
w: 101
h: 37
- id: s11
type: TODO_identify
label: ''
x: 830
y: 603
w: 118
h: 37
- id: s20
type: TODO_identify
label: ''
x: 602
y: 650
w: 63
h: 63
- id: s34
type: TODO_identify
label: ''
x: 826
y: 650
w: 63
h: 63
- id: s27
type: TODO_identify
label: ''
x: 332
y: 651
w: 48
h: 63
- id: s22
type: TODO_identify
label: ''
x: 523
y: 652
w: 60
h: 60
- id: s25
type: TODO_identify
label: ''
x: 411
y: 654
w: 63
h: 55
- id: s28
type: TODO_identify
label: ''
x: 320
y: 717
w: 152
h: 37
- id: s26
type: TODO_identify
label: ''
x: 414
y: 717
w: 118
h: 37
- id: s23
type: TODO_identify
label: ''
x: 522
y: 717
w: 135
h: 37
- id: s21
type: TODO_identify
label: ''
x: 607
y: 717
w: 118
h: 37
- id: s35
type: TODO_identify
label: ''
x: 817
y: 717
w: 169
h: 37
labels: []
connections: []