Files
oci-deal-accelerator/kb/diagram/assets/archcenter-refs/select-ai-apex-framework/_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

192 lines
2.9 KiB
YAML

# Auto-extracted absolute_layout template from
# kb/diagram/assets/archcenter-refs/select-ai-apex-framework/hallucination-reduction-workflow-oracle/hallucination-reduction-workflow.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: c4
type: region
label: ''
x: 582
y: 52
w: 169
h: 134
- id: c7
type: region
label: ''
x: 834
y: 248
w: 142
h: 113
- id: c1
type: region
label: ''
x: 138
y: 90
w: 168
h: 57
- id: c2
type: region
label: ''
x: 358
y: 94
w: 168
h: 57
- id: c6
type: region
label: ''
x: 821
y: 156
w: 168
h: 57
- id: c8
type: region
label: ''
x: 821
y: 392
w: 168
h: 57
- id: c9
type: region
label: ''
x: 580
y: 275
w: 168
h: 57
- id: c10
type: region
label: ''
x: 583
y: 392
w: 168
h: 57
services:
- id: s21
type: TODO_identify
label: ''
x: 0
y: 4
w: 144
h: 81
- id: s16
type: TODO_identify
label: ''
x: 36
y: 87
w: 32
h: 32
- id: s15
type: TODO_identify
label: ''
x: 37
y: 88
w: 31
h: 31
- id: s19
type: TODO_identify
label: ''
x: 38
y: 89
w: 29
h: 29
- id: s14
type: TODO_identify
label: ''
x: 752
y: 118
w: 157
h: 38
- id: s18
type: TODO_identify
label: ''
x: 28
y: 119
w: 49
h: 31
- id: s17
type: TODO_identify
label: ''
x: 28
y: 120
w: 48
h: 30
- id: s3
type: TODO_identify
label: ''
x: 377
y: 120
w: 133
h: 26
- id: s20
type: TODO_identify
label: ''
x: 29
y: 121
w: 46
h: 28
- id: s5
type: TODO_identify
label: ''
x: 629
y: 133
w: 70
h: 27
- id: s23
type: TODO_identify
label: ''
x: 259
y: 273
w: 61
h: 53
- id: s24
type: TODO_identify
label: ''
x: 259
y: 273
w: 63
h: 55
- id: s12
type: TODO_identify
label: ''
x: 68
y: 274
w: 168
h: 57
- id: s25
type: TODO_identify
label: ''
x: 260
y: 274
w: 60
h: 52
- id: s11
type: TODO_identify
label: ''
x: 336
y: 275
w: 168
h: 57
- id: s13
type: TODO_identify
label: ''
x: 751
y: 299
w: 70
h: 120
- id: s22
type: TODO_identify
label: ''
x: 413
y: 379
w: 144
h: 81
labels: []
connections: []