Files
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/active-data-guard-far-sync-oracle-db-at-azure/active-data-guard-far-sync-dba-oracle/active-data-guard-far-sync-dba.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: 652
y: 1
w: 676
h: 447
- id: c2
type: region
label: ''
x: 652
y: 585
w: 676
h: 447
- id: c5
type: region
label: ''
x: 965
y: 686
w: 105
h: 36
- id: c50
type: region
label: ''
x: 818
y: 161
w: 99
h: 14
- id: c53
type: region
label: ''
x: 818
y: 855
w: 99
h: 14
- id: c70
type: region
label: ''
x: 1150
y: 377
w: 2
h: 63
- id: c74
type: region
label: ''
x: 1150
y: 657
w: 2
h: 63
- id: c54
type: region
label: ''
x: 776
y: 855
w: 2
h: 50
- id: c58
type: region
label: ''
x: 956
y: 855
w: 2
h: 50
- id: c62
type: region
label: ''
x: 776
y: 161
w: 2
h: 50
- id: c66
type: region
label: ''
x: 956
y: 161
w: 2
h: 50
services:
- id: s3
type: TODO_identify
label: ''
x: 582
y: 34
w: 28
h: 31
- id: s7
type: TODO_identify
label: ''
x: 725
y: 77
w: 42
h: 40
- id: s6
type: TODO_identify
label: ''
x: 726
y: 77
w: 41
h: 39
- id: s8
type: TODO_identify
label: ''
x: 726
y: 78
w: 40
h: 38
- id: s12
type: TODO_identify
label: ''
x: 676
y: 106
w: 41
h: 41
- id: s13
type: TODO_identify
label: ''
x: 676
y: 106
w: 42
h: 42
- id: s14
type: TODO_identify
label: ''
x: 677
y: 120
w: 29
h: 26
- id: s15
type: TODO_identify
label: ''
x: 1260
y: 132
w: 41
h: 41
- id: s16
type: TODO_identify
label: ''
x: 1260
y: 132
w: 42
h: 42
- id: s17
type: TODO_identify
label: ''
x: 1261
y: 146
w: 29
h: 26
- id: s64
type: TODO_identify
label: ''
x: 756
y: 149
w: 42
h: 42
- id: s68
type: TODO_identify
label: ''
x: 936
y: 149
w: 42
h: 42
- id: s63
type: TODO_identify
label: ''
x: 757
y: 150
w: 40
h: 40
- id: s67
type: TODO_identify
label: ''
x: 937
y: 150
w: 40
h: 40
- id: s65
type: TODO_identify
label: ''
x: 758
y: 151
w: 38
h: 38
- id: s69
type: TODO_identify
label: ''
x: 938
y: 151
w: 38
h: 38
- id: s37
type: TODO_identify
label: ''
x: 500
y: 212
w: 48
h: 63
- id: s35
type: TODO_identify
label: ''
x: 1119
y: 212
w: 63
h: 63
- id: s34
type: TODO_identify
label: ''
x: 1120
y: 213
w: 62
h: 62
- id: s36
type: TODO_identify
label: ''
x: 1121
y: 214
w: 60
h: 60
- id: s19
type: TODO_identify
label: ''
x: 676
y: 241
w: 42
h: 42
- id: s18
type: TODO_identify
label: ''
x: 676
y: 242
w: 41
h: 41
- id: s20
type: TODO_identify
label: ''
x: 677
y: 256
w: 29
h: 26
- id: s31
type: TODO_identify
label: ''
x: 107
y: 314
w: 63
h: 63
- id: s30
type: TODO_identify
label: ''
x: 108
y: 315
w: 61
h: 61
- id: s32
type: TODO_identify
label: ''
x: 109
y: 315
w: 60
h: 60
- id: s33
type: TODO_identify
label: ''
x: 129
y: 322
w: 36
h: 41
- id: s72
type: TODO_identify
label: ''
x: 1129
y: 377
w: 42
h: 42
- id: s71
type: TODO_identify
label: ''
x: 1130
y: 378
w: 41
h: 41
- id: s73
type: TODO_identify
label: ''
x: 1130
y: 378
w: 40
h: 40
- id: s43
type: TODO_identify
label: ''
x: 944
y: 466
w: 57
h: 63
- id: s42
type: TODO_identify
label: ''
x: 945
y: 466
w: 55
h: 61
- id: s44
type: TODO_identify
label: ''
x: 946
y: 467
w: 54
h: 60
- id: s45
type: TODO_identify
label: ''
x: 958
y: 485
w: 29
h: 38
- id: s51
type: TODO_identify
label: ''
x: 1130
y: 505
w: 42
h: 29
- id: s52
type: TODO_identify
label: ''
x: 1136
y: 505
w: 29
h: 29
- id: s4
type: TODO_identify
label: ''
x: 582
y: 617
w: 28
h: 31
- id: s76
type: TODO_identify
label: ''
x: 1129
y: 657
w: 42
h: 42
- id: s75
type: TODO_identify
label: ''
x: 1130
y: 658
w: 41
h: 41
- id: s77
type: TODO_identify
label: ''
x: 1130
y: 658
w: 40
h: 40
- id: s10
type: TODO_identify
label: ''
x: 725
y: 661
w: 42
h: 40
- id: s9
type: TODO_identify
label: ''
x: 726
y: 662
w: 41
h: 39
- id: s11
type: TODO_identify
label: ''
x: 726
y: 662
w: 40
h: 38
- id: s22
type: TODO_identify
label: ''
x: 676
y: 690
w: 42
h: 42
- id: s21
type: TODO_identify
label: ''
x: 676
y: 691
w: 41
h: 41
- id: s23
type: TODO_identify
label: ''
x: 677
y: 705
w: 29
h: 26
- id: s24
type: TODO_identify
label: ''
x: 1260
y: 716
w: 41
h: 41
- id: s25
type: TODO_identify
label: ''
x: 1260
y: 716
w: 42
h: 42
- id: s26
type: TODO_identify
label: ''
x: 1261
y: 730
w: 29
h: 26
- id: s39
type: TODO_identify
label: ''
x: 107
y: 745
w: 63
h: 63
- id: s38
type: TODO_identify
label: ''
x: 108
y: 746
w: 61
h: 61
- id: s40
type: TODO_identify
label: ''
x: 109
y: 747
w: 60
h: 60
- id: s41
type: TODO_identify
label: ''
x: 129
y: 753
w: 36
h: 41
- id: s49
type: TODO_identify
label: ''
x: 500
y: 779
w: 48
h: 63
- id: s47
type: TODO_identify
label: ''
x: 1119
y: 821
w: 63
h: 63
- id: s46
type: TODO_identify
label: ''
x: 1120
y: 822
w: 62
h: 62
- id: s48
type: TODO_identify
label: ''
x: 1121
y: 823
w: 60
h: 60
- id: s27
type: TODO_identify
label: ''
x: 676
y: 826
w: 41
h: 41
- id: s28
type: TODO_identify
label: ''
x: 676
y: 826
w: 42
h: 42
- id: s29
type: TODO_identify
label: ''
x: 677
y: 840
w: 29
h: 26
- id: s56
type: TODO_identify
label: ''
x: 756
y: 843
w: 42
h: 42
- id: s60
type: TODO_identify
label: ''
x: 936
y: 843
w: 42
h: 42
- id: s55
type: TODO_identify
label: ''
x: 757
y: 844
w: 40
h: 40
- id: s59
type: TODO_identify
label: ''
x: 937
y: 844
w: 40
h: 40
- id: s57
type: TODO_identify
label: ''
x: 758
y: 845
w: 38
h: 38
- id: s61
type: TODO_identify
label: ''
x: 938
y: 845
w: 38
h: 38
labels: []
connections: []