{
  "schemaVersion": 1,
  "status": "usable-public-package-with-known-limits",
  "scope": "public annotation package readiness against the requested product scope",
  "requiredScripts": [
    "test",
    "test:docs-snippets",
    "test:types",
    "test:exports",
    "test:api-reference",
    "test:api-stability",
    "test:canary",
    "test:d3-parity",
    "test:bronto-parity",
    "test:bronto-upstream",
    "test:examples",
    "test:pack",
    "test:dogfood",
    "test:dogfood:bronto-report",
    "test:dogfood:self-report",
    "test:dogfood:external",
    "test:browser",
    "test:screenshots",
    "test:readiness",
    "test:completion-audit",
    "test:repo",
    "test:release",
    "test:security-automation",
    "test:pre-release",
    "test:compatibility",
    "test:compatibility:lanes",
    "test:performance",
    "test:hygiene"
  ],
  "requirements": [
    {
      "id": "typescript-esm-scaffold",
      "status": "proven",
      "claim": "The package keeps the TypeScript ESM scaffold, public exports, declarations, examples, and umbrella check script.",
      "evidence": [
        {
          "file": "package.json",
          "terms": [
            "\"type\": \"module\"",
            "\"exports\"",
            "\"types\": \"./dist/index.d.ts\"",
            "\"check\""
          ]
        },
        {
          "file": "scripts/check-package-exports.mjs",
          "terms": [
            "dist/index.d.ts",
            "dist/adapters/react-flow.d.ts",
            "dist/bronto.css",
            "dist/bronto.css.d.ts"
          ]
        },
        {
          "file": "test/export-consumer.ts",
          "terms": [
            "@ponchia/annotations/react",
            "@ponchia/annotations/vega",
            "@ponchia/annotations/bronto.css"
          ]
        }
      ]
    },
    {
      "id": "dom-free-core-engine",
      "status": "proven",
      "claim": "The core owns DOM-free models, anchors, placement, collision scoring, connector geometry, priorities, priority-aware paint ordering, note sizing, bounds, padding, debug candidates, and layout quality diagnostics.",
      "evidence": [
        {
          "file": "src/core/model.ts",
          "terms": [
            "export type Point",
            "export type Box",
            "export type Anchor",
            "export type Annotation",
            "ManualPlacement",
            "PlacementCandidate"
          ]
        },
        {
          "file": "src/core/layout-resolver.ts",
          "terms": [
            "resolveAnnotationLayout",
            "estimateNoteSize",
            "refineAnnotationLayout"
          ]
        },
        {
          "file": "src/core/order.ts",
          "terms": [
            "annotationsForPaint"
          ]
        },
        {
          "file": "src/core/placement.ts",
          "terms": [
            "allPlacementCandidates",
            "scorePlacementCandidate",
            "scoreBreakdown"
          ]
        },
        {
          "file": "src/core/quality.ts",
          "terms": [
            "evaluateAnnotationLayout",
            "assertAnnotationLayoutQuality",
            "formatLayoutQualityReport"
          ]
        },
        {
          "file": "src/core/edit.ts",
          "terms": [
            "createAnnotationEditSession",
            "createAnnotationEditEvent",
            "createAnnotationEditDelta",
            "AnnotationEditEvent"
          ]
        },
        {
          "file": "src/adapters/layout.ts",
          "terms": [
            "generatedSurfaceLayoutDefaults",
            "resolvePreparedAnnotationLayout",
            "assertQuality",
            "assertValidation",
            "validationSummary",
            "qualitySummary"
          ]
        },
        {
          "file": "test/core/placement.test.ts",
          "terms": [
            "debug candidates",
            "obstacle"
          ]
        },
        {
          "file": "test/core/quality.test.ts",
          "terms": [
            "failOnWarnings",
            "below required minimum"
          ]
        },
        {
          "file": "test/core/edit.test.ts",
          "terms": [
            "custom authoring surfaces",
            "authoring session for drag and nudge workflows",
            "translated anchor edit events",
            "annotationEditPatch(event)"
          ]
        }
      ]
    },
    {
      "id": "root-import-purity",
      "status": "proven",
      "claim": "The root package remains free of required React, Vega, Mermaid, D2, React Flow, and @ponchia/ui runtime dependencies.",
      "evidence": [
        {
          "file": "package.json",
          "terms": [
            "\"peerDependenciesMeta\"",
            "\"optional\": true"
          ]
        },
        {
          "file": "test/package/optional-peers.test.ts",
          "terms": [
            "root import",
            "optional"
          ]
        },
        {
          "file": "scripts/smoke-packed-consumer.mjs",
          "terms": [
            "assertOptionalPeersAbsent(workdir)",
            "clean root consumer unexpectedly installed optional peers"
          ]
        },
        {
          "file": "scripts/check-readiness-matrix.mjs",
          "terms": [
            "runtime dependencies must stay absent",
            "@ponchia/ui must not be a dev dependency"
          ]
        }
      ]
    },
    {
      "id": "svg-renderer",
      "status": "proven",
      "claim": "The SVG renderer outputs subjects, connectors, notes, optional focusable notes, optional focusable edit handles, debug boxes, layout-quality issue boxes, classes, data attributes, and accessible labels.",
      "evidence": [
        {
          "file": "src/svg/render.ts",
          "terms": [
            "renderSubjectSvg",
            "${prefix}__connector",
            "aria-label",
            "aria-hidden",
            "noteTabIndex",
            "editHandleTabIndex",
            "includeDebugBoxes",
            "includeQualityIssues"
          ]
        },
        {
          "file": "test/svg/render.test.ts",
          "terms": [
            "data-annotation-id",
            "data-debug-kind=\"candidate\"",
            "pa-annotation__quality-issue--note-overlap",
            "role=\"group\" aria-label",
            "tabindex",
            "aria-hidden=\"true\"",
            "pa-annotation__connector"
          ]
        }
      ]
    },
    {
      "id": "react-adapter",
      "status": "proven",
      "claim": "The React adapter provides AnnotationLayer, useAnnotations, ResizeObserver measurement, renderNote, onLayout, onQuality, quality assertions, target-alignment assertions, debug mode, quality issue rendering, optional focusable notes, edit callbacks, and SSR-safe behavior.",
      "evidence": [
        {
          "file": "src/react/AnnotationLayer.tsx",
          "terms": [
            "renderNote",
            "noteTabIndex",
            "editHandleTabIndex",
            "onLayout",
            "onQuality",
            "assertQuality",
            "onTargetAlignment",
            "assertTargetAlignment",
            "debug",
            "qualityDebug",
            "aria-hidden",
            "typeof window"
          ]
        },
        {
          "file": "src/react/preview-scheduler.ts",
          "terms": [
            "useAnnotationPreviewScheduler",
            "usePreviewLayoutInvalidation",
            "previewGeneration",
            "cancelAnimationFrame"
          ]
        },
        {
          "file": "test/react/drag-preview-frame.test.tsx",
          "terms": [
            "unrelated pointers",
            "host geometry changes",
            "stale frames"
          ]
        },
        {
          "file": "src/react/svg-annotation-parts.tsx",
          "terms": [
            "renderSubject",
            "renderConnector",
            "renderDebugBoxes",
            "badgeGeometry",
            "aria-hidden"
          ]
        },
        {
          "file": "test/react/svg-annotation-parts.test.tsx",
          "terms": [
            "private resolved annotation SVG geometry",
            "data-debug-kind",
            "directional badges"
          ]
        },
        {
          "file": "src/react/dom-measurements.ts",
          "terms": [
            "ResizeObserver",
            "getBoundingClientRect",
            "getComputedStyle",
            "idsByNode",
            "active = false",
            "shallowSizesEqual"
          ]
        },
        {
          "file": "test/react/dom-resize-delta.test.tsx",
          "terms": [
            "ResizeObserver measures only changed DOM notes",
            "first.emit(priorNode)"
          ]
        },
        {
          "file": "src/react/edit-geometry.ts",
          "terms": [
            "clientToSvgPoint",
            "svgPointFromClient",
            "keyboardDelta",
            "groupEditHandles"
          ]
        },
        {
          "file": "src/react/marker-defs.tsx",
          "terms": [
            "MemoMarkerDefs",
            "markerId"
          ]
        },
        {
          "file": "src/react/render-data.ts",
          "terms": [
            "dataAttributes",
            "annotationStyle"
          ]
        },
        {
          "file": "test/react/private-helpers.test.ts",
          "terms": [
            "private React rendering and editing helpers",
            "markerId",
            "keyboardDelta"
          ]
        },
        {
          "file": "src/react/useAnnotations.ts",
          "terms": [
            "useAnnotations",
            "useMemo"
          ]
        },
        {
          "file": "test/react/AnnotationLayer.test.tsx",
          "terms": [
            "renderNote",
            "onLayout",
            "onQuality",
            "onTargetAlignment",
            "React target alignment",
            "tabindex",
            "keyboard",
            "allows hosts to control React edit handle tab order",
            "aria-hidden",
            "preserveAspectRatio letterboxing"
          ]
        },
        {
          "file": "scripts/smoke-packed-consumer.mjs",
          "terms": [
            "async function smokeReact",
            "Packed React target alignment",
            "react target alignment event failed"
          ]
        }
      ]
    },
    {
      "id": "dom-svg-utilities",
      "status": "proven",
      "claim": "DOM/SVG utilities support DOMRects, SVG elements, selectors, ids, getBBox, getBoundingClientRect, and coordinate conversion.",
      "evidence": [
        {
          "file": "src/dom/index.ts",
          "terms": [
            "anchorFromDOMRect",
            "annotationFrameFromSvg",
            "boxFromSvgElement",
            "svgPointFromClient",
            "prepareDomAnnotations"
          ]
        },
        {
          "file": "test/dom/dom.test.ts",
          "terms": [
            "coordinateSpace",
            "prepareDomAnnotations"
          ]
        },
        {
          "file": "examples/dom-basic/main.ts",
          "terms": [
            "extractedAnchorFromElement",
            "coordinateSpace"
          ]
        }
      ]
    },
    {
      "id": "generated-surface-adapters",
      "status": "proven",
      "claim": "Vega/Vega-Lite, Mermaid, D2, and React Flow adapters extract generated host geometry through public APIs or rendered SVG and preserve normal annotation authoring fields.",
      "evidence": [
        {
          "file": "src/adapters/vega.ts",
          "terms": [
            "prepareVegaScenegraphAnnotations",
            "prepareVegaSvgAnnotations",
            "obstaclesFromVegaView",
            "obstaclesFromVegaScales",
            "validateVegaScenegraphAnchors",
            "vegaSvgAnchorGeometryElement",
            "formatAnchorValidationReport"
          ]
        },
        {
          "file": "test/adapters/vega.test.ts",
          "terms": [
            "extracts rendered Vega SVG anchors by mark metadata without a selector",
            "extracts and prepares obstacles from Vega view data geometry",
            "extracts and prepares obstacles from Vega scale geometry",
            "keeps multi-mark Vega SVG metadata anchors",
            "expect(anchors[0]?.element).toBe(path)"
          ]
        },
        {
          "file": "src/adapters/mermaid.ts",
          "terms": [
            "prepareMermaidAnnotations",
            "validateMermaidSvgAnchors",
            "findMermaidElement",
            "findMermaidEdgeElementByEndpoints",
            "path.messageLine0",
            "line[class*=\"messageLine\"]",
            "edgeSourceId",
            "edgeTargetId",
            "formatAnchorValidationReport"
          ]
        },
        {
          "file": "test/adapters/mermaid.test.ts",
          "terms": [
            "extracts Mermaid edge paths from rendered source and target node ids",
            "sequence participant, message, and route anchors",
            "data-message-id",
            "line class=\"messageLine0\"",
            "api-report-route",
            "mermaidEdgeSourceId",
            "mermaidEdgeTargetId"
          ]
        },
        {
          "file": "src/adapters/d2.ts",
          "terms": [
            "prepareD2DiagramAnnotations",
            "prepareD2SvgAnnotations",
            "validateD2DiagramAnchors",
            "findD2ConnectionPath",
            "spec.connectionId && spec.kind === 'path'",
            "formatAnchorValidationReport"
          ]
        },
        {
          "file": "test/adapters/d2.test.ts",
          "terms": [
            "prefers rendered D2 child paths",
            "connection-route",
            "expect(anchors[0]?.element).toBe(path)"
          ]
        },
        {
          "file": "src/adapters/react-flow.ts",
          "terms": [
            "prepareReactFlowAnnotations",
            "validateReactFlowAnchors",
            "resolveEdgeHandleAnchor",
            "includeHandles",
            "sourceHandleId",
            "targetHandleId",
            "handlePoint",
            "formatAnchorValidationReport"
          ]
        },
        {
          "file": "test/adapters/react-flow.test.ts",
          "terms": [
            "uses measured source and target handles",
            "node, handle, and edge obstacles",
            "reactFlowSourceHandleId",
            "reactFlowTargetHandleId"
          ]
        },
        {
          "file": "test/adapters/authoring-contract.test.ts",
          "terms": [
            "preserves manual placement",
            "adapter-contract"
          ]
        }
      ]
    },
    {
      "id": "generated-placement-quality",
      "status": "proven",
      "claim": "Generated-surface adapters are verified through target-alignment diagnostics, layout with automatic placement, manual placement, generated obstacles, and layout quality checks.",
      "evidence": [
        {
          "file": "test/adapters/generated-placement.test.ts",
          "terms": [
            "generated-surface placement contract",
            "automatic placement should stay automatic",
            "manual placement",
            "targetAlignmentTargets",
            "assertTargetAlignment",
            "target alignment",
            "resolvePreparedAnnotationLayout",
            "assertValidation",
            "assertQuality"
          ]
        },
        {
          "file": "test/adapters/prepared-layout.test.ts",
          "terms": [
            "resolvePreparedAnnotationLayout",
            "additionalObstacles",
            "Generated graph annotations",
            "assertValidation",
            "assertTargetAlignment"
          ]
        },
        {
          "file": "test/adapters/prepare-assert.test.ts",
          "terms": [
            "prepare helper validation assertions",
            "fail fast for missing generated and DOM anchors",
            "failOnWarnings"
          ]
        },
        {
          "file": "examples/vega-basic/main.ts",
          "terms": [
            "generatedSurfaceLayoutDefaults",
            "anchorLabel: 'Vega anchors'",
            "prepareVegaScenegraphAnnotations",
            "resolvePreparedAnnotationLayout"
          ]
        },
        {
          "file": "examples/mermaid-basic/main.ts",
          "terms": [
            "generatedSurfaceLayoutDefaults",
            "anchorLabel: 'Mermaid anchors'",
            "prepareMermaidAnnotations",
            "resolvePreparedAnnotationLayout",
            "sequenceSource",
            "Ingresso dati",
            "translated-node",
            "mermaid-translated-data",
            "renderedTranslatedHooks",
            "mermaid-sequence-route",
            "renderedSequenceActors"
          ]
        },
        {
          "file": "examples/d2-basic/main.ts",
          "terms": [
            "generatedSurfaceLayoutDefaults",
            "anchorLabel: 'D2 anchors'",
            "prepareD2DiagramAnnotations",
            "resolvePreparedAnnotationLayout"
          ]
        },
        {
          "file": "examples/react-flow-basic/main.tsx",
          "terms": [
            "generatedSurfaceLayoutDefaults",
            "anchorLabel: 'React Flow anchors'",
            "assert: flowLayoutDefaults.assertValidation",
            "assertQuality={flowLayoutDefaults.assertQuality}",
            "onQuality",
            "prepareReactFlowAnnotations"
          ]
        },
        {
          "file": "scripts/verify-examples-browser.mjs",
          "terms": [
            "anchorTargetChecks",
            "validateTargetAlignment",
            "clean generated target alignment diagnostics",
            "did not prove generated adapter anchors",
            "annotation subject is not aligned to rendered target geometry",
            "passing package layout-quality report",
            "qualitySummary",
            "reactFlowHandleType",
            "flow-handle",
            "mermaidId: 'api-report'",
            "mermaid-edge"
          ]
        },
        {
          "file": "docs/integration-recipes.md",
          "terms": [
            "Automatic placement",
            "Manual placement",
            "Validate generated targets before layout",
            "concrete child mark",
            "multi-mark layers",
            "edgeSourceId",
            "edgeTargetId",
            "sourceHandle",
            "targetHandle",
            "edgePoints",
            "kind: 'path'",
            "child route `<path>`"
          ]
        },
        {
          "file": "docs/context-quickstart.md",
          "terms": [
            "Choose The Adapter",
            "Generated Surfaces",
            "prepareVegaScenegraphAnnotations",
            "prepareMermaidAnnotations",
            "prepareD2DiagramAnnotations",
            "prepareReactFlowAnnotations"
          ]
        }
      ]
    },
    {
      "id": "bronto-css-and-styling",
      "status": "proven",
      "claim": "The Bronto CSS bridge carries the legacy public annotation styling surface and package-prefixed styling without a hard @ponchia/ui dependency.",
      "evidence": [
        {
          "file": "docs/bronto-ui-annotation-parity.json",
          "terms": [
            ".ui-annotation__connector-end",
            ".pa-annotation__body",
            ".pa-annotation__badge-label",
            ".pa-annotation__edit-handles",
            "annotationParts",
            "@media print"
          ]
        },
        {
          "file": "src/styles/bronto.css",
          "terms": [
            ".pa-annotation__note-box",
            ".ui-annotation__title",
            ".ui-annotation__badge-pointer",
            "pointer-events: none",
            "pointer-events: auto",
            "@media (prefers-reduced-motion: no-preference)"
          ]
        },
        {
          "file": "scripts/check-bronto-parity.mjs",
          "terms": [
            "Bronto annotation parity verified",
            "helperExports"
          ]
        },
        {
          "file": "scripts/check-bronto-upstream-parity.mjs",
          "terms": [
            "Historical Bronto UI",
            "CSS declarations",
            "PONCHIA_UI_ROOT",
            "root package must preserve historical Bronto UI annotation helper exports",
            "annotation CSS must retain the published legacy declaration contract"
          ]
        },
        {
          "file": "test/package/bronto-css.test.ts",
          "terms": [
            "styles the critical classes emitted by the static SVG renderer",
            "tracks emitted package text, badge, and edit classes",
            "--bronto-accent-soft",
            "pa-annotation__marker",
            "pa-annotation__edit-hit",
            "pa-annotation__badge-label"
          ]
        },
        {
          "file": "scripts/verify-examples-browser.mjs",
          "terms": [
            "verifyStyleGallery",
            "verifyBrontoPackageCss",
            "brontoPackageCss",
            "missingVariantClasses",
            "missingToneClasses",
            "missingMotionClasses",
            "badgeStyled",
            "badgePointerStyled",
            "badgeLabelStyled"
          ]
        },
        {
          "file": "docs/migration-guide.md",
          "terms": [
            "From Bronto UI Annotations",
            "Bronto Helper Mapping",
            "ui-annotation*",
            "brontoAnnotationClassName"
          ]
        }
      ]
    },
    {
      "id": "susie-lu-d3-style-ergonomics",
      "status": "proven",
      "claim": "The package includes a DOM-free d3-annotation-style authoring and edit bridge while explicitly excluding the D3 selection runtime.",
      "evidence": [
        {
          "file": "docs/d3-annotation-parity.json",
          "terms": [
            "d3-svg-annotation@2.5.1",
            "annotationCalloutCircle",
            "defineD3StyleAnnotationType",
            "supportedCollectionFields",
            "supportedBuilderMethods",
            "annotationData",
            "annotationCustomType"
          ]
        },
        {
          "file": "src/d3/index.ts",
          "terms": [
            "annotationFromD3Style",
            "annotationsFromD3Style",
            "prepareD3StyleAnnotationCollection",
            "d3StyleAnnotationCollectionEditPatch",
            "createD3StyleAnnotationBuilder",
            "defineD3StyleAnnotationType",
            "applyD3StyleAnnotationEdit"
          ]
        },
        {
          "file": "src/presets/d3-types.ts",
          "terms": [
            "accessorsInverse"
          ]
        },
        {
          "file": "src/presets/d3-style.ts",
          "terms": [
            "style: mergeObjects"
          ]
        },
        {
          "file": "scripts/check-d3-parity.mjs",
          "terms": [
            "d3-annotation parity verified",
            "prepareD3StyleAnnotationCollection",
            "applyD3StyleAnnotationCollectionEdit",
            "createD3StyleAnnotationBuilder",
            "custom d3-style type",
            "rich.style.noteBackground",
            "rich.data",
            "legacy-badge-hook",
            "intentionallyUnsupportedExports"
          ]
        },
        {
          "file": "docs/migration-guide.md",
          "terms": [
            "From d3-annotation",
            "d3 Mapping",
            "annotationFromD3Style",
            "prepareD3StyleAnnotationCollection",
            "createD3StyleAnnotationBuilder",
            "defineD3StyleAnnotationType",
            "annotationData",
            "applyD3StyleAnnotationEdit",
            "No D3 collection selection joins",
            "No `annotation()` component."
          ]
        }
      ]
    },
    {
      "id": "examples-coverage",
      "status": "proven",
      "claim": "The package includes public-import examples for SVG, React, Bronto reports, DOM, Vega, Mermaid, D2, and React Flow.",
      "evidence": [
        {
          "file": "docs/e2e-plan.md",
          "terms": [
            "`svg-basic`",
            "`react-basic`",
            "`bronto-report`",
            "`dom-basic`",
            "`vega-basic`",
            "`mermaid-basic`",
            "`d2-basic`",
            "`react-flow-basic`",
            "`style-gallery`",
            "`index`"
          ]
        },
        {
          "file": "scripts/build-examples.mjs",
          "terms": [
            "index",
            "svg-basic",
            "react-flow-basic",
            "style-gallery"
          ]
        },
        {
          "file": "scripts/verify-examples-browser.mjs",
          "terms": [
            "name: 'index'",
            "verifyExamplesIndex",
            "missingLinks",
            "name: 'svg-basic'",
            "name: 'vega-basic'",
            "name: 'react-flow-basic'",
            "name: 'style-gallery'",
            "verifyStyleGallery"
          ]
        }
      ]
    },
    {
      "id": "packed-consumer-and-browser-verification",
      "status": "proven",
      "claim": "Packed tarball clean consumers and browser verification prove root, React, CSS, DOM, Vega, Mermaid, D2, and React Flow subpaths work from the published package shape.",
      "evidence": [
        {
          "file": "scripts/smoke-packed-consumer.mjs",
          "terms": [
            "smokeRootAndAdapters(tarball)",
            "assertOptionalPeersAbsent(workdir)",
            "smokeBrowserBundle",
            "smokeBrowserAdapters",
            "packed adapter browser smoke"
          ]
        },
        {
          "file": "scripts/check-browser-screenshots.mjs",
          "terms": [
            "Browser screenshot evidence verified",
            "packedScreenshots",
            "distinctColors",
            "nonBackgroundSamples",
            "nonBackgroundRatio",
            "luminanceRange",
            "Visual baselines verified",
            "assertVisualBaseline"
          ]
        },
        {
          "file": "test/visual-baselines/browser-screenshots.json",
          "terms": [
            "schemaVersion",
            "index-desktop",
            "vega-basic-desktop",
            "mermaid-basic-mobile",
            "d2-basic-desktop",
            "react-flow-basic-mobile",
            "packed-adapters"
          ]
        },
        {
          "file": "scripts/verify-examples-browser.mjs",
          "terms": [
            "focusableNotes",
            "keyboard-focusable annotation note",
            "passing package layout-quality report",
            "qualitySummary"
          ]
        },
        {
          "file": "docs/e2e-plan.md",
          "terms": [
            "Packed tarball content checks",
            "Browser screenshot evidence checks"
          ]
        }
      ]
    },
    {
      "id": "public-hygiene",
      "status": "proven",
      "claim": "Public hygiene checks guard against private project names, personal data, local absolute paths, internal URLs, secrets, and consumer-specific details.",
      "evidence": [
        {
          "file": "scripts/public-hygiene.mjs",
          "terms": [
            "Public hygiene scan failed",
            "privateNames",
            "Users",
            "SECRET_"
          ]
        },
        {
          "file": "AGENTS.md",
          "terms": [
            "publishes the public `@ponchia/annotations` package",
            "Public Boundary"
          ]
        },
        {
          "file": "package.json",
          "terms": [
            "\"test:hygiene\""
          ]
        }
      ]
    },
    {
      "id": "docs-api-boundaries-and-known-limits",
      "status": "proven",
      "claim": "README and docs describe the API, adapter boundaries, install/use examples, peer dependency rules, completed scope, known limits, and future work.",
      "evidence": [
        {
          "file": "README.md",
          "terms": [
            "## Install",
            "## Adapters",
            "## Known Limits",
            "peer packages are optional"
          ]
        },
        {
          "file": "docs/e2e-plan.md",
          "terms": [
            "## Completed Scope",
            "## Adapter Boundaries",
            "## Known Limits",
            "## Future Work"
          ]
        },
        {
          "file": "docs/integration-recipes.md",
          "terms": [
            "## Common Flow",
            "## First-Use Checklist"
          ]
        },
        {
          "file": "docs/context-quickstart.md",
          "terms": [
            "Context Quickstart",
            "Choose The Adapter",
            "Common Mistakes"
          ]
        },
        {
          "file": "docs/migration-guide.md",
          "terms": [
            "Migration Guide",
            "Recommended Migration Order",
            "From d3-annotation",
            "From Bronto UI Annotations"
          ]
        },
        {
          "file": "docs/api-reference.md",
          "terms": [
            "API Reference",
            "@ponchia/annotations/react",
            "@ponchia/annotations/vega",
            "@ponchia/annotations/bronto.css",
            "Boundary"
          ]
        },
        {
          "file": "scripts/check-api-reference.mjs",
          "terms": [
            "API reference verified",
            "public subpaths"
          ]
        },
        {
          "file": "docs/api-stability.manifest.json",
          "terms": [
            "\"policy\": \"0.7.x\"",
            "\"./react\"",
            "\"./vega\"",
            "\"stable\"",
            "\"experimental\""
          ]
        },
        {
          "file": "scripts/check-api-stability.mjs",
          "terms": [
            "API stability verified",
            "collectPublicExports",
            "@public",
            "@experimental"
          ]
        },
        {
          "file": "test/docs/snippets.test.ts",
          "terms": [
            "documentation snippets",
            "runs generated-surface quickstart snippets",
            "prepareVegaScenegraphAnnotations",
            "prepareMermaidAnnotations",
            "prepareD2DiagramAnnotations",
            "prepareReactFlowAnnotations",
            "Vega docs anchors",
            "React Flow docs anchors",
            "AnnotationLayer"
          ]
        },
        {
          "file": "test/docs-public-snippets.ts",
          "terms": [
            "@ponchia/annotations/react",
            "@ponchia/annotations/vega",
            "@ponchia/annotations/mermaid",
            "@ponchia/annotations/d2",
            "@ponchia/annotations/react-flow",
            "@ponchia/annotations/bronto.css",
            "resolveAnnotationLayout",
            "resolvePreparedAnnotationLayout",
            "assertAnnotationLayoutQuality",
            "formatLayoutQualityReport",
            "renderAnnotationsSvg",
            "failOnWarnings",
            "AnnotationLayerProps"
          ]
        }
      ]
    },
    {
      "id": "repo-operations-readiness",
      "status": "proven",
      "claim": "The repository has release-grade package metadata, CI, release provenance workflow, public security automation, dependency update automation, issue and PR templates, security policy, contribution guide, changelog, release runbook, and enforced repository-readiness checks.",
      "evidence": [
        {
          "file": "package.json",
          "terms": [
            "\"version\": \"0.9.2\"",
            "\"repository\"",
            "\"publishConfig\"",
            "\"test:repo\"",
            "\"test:security-automation\"",
            "\"packageManager\""
          ]
        },
        {
          "file": ".github/workflows/ci.yml",
          "terms": [
            "npm run check",
            "node-version:",
            "actions/upload-artifact@"
          ]
        },
        {
          "file": ".github/workflows/release.yml",
          "terms": [
            "id-token: write",
            "Verify tag commit is on main",
            "Verify tag matches package.json version",
            "npm pack --dry-run --json --ignore-scripts",
            "publish --ignore-scripts --provenance --access public --tag \"$dist_tag\"",
            "environment: npm-publish"
          ]
        },
        {
          "file": ".github/dependabot.yml",
          "terms": [
            "package-ecosystem: npm",
            "github-actions",
            "optional-peers"
          ]
        },
        {
          "file": ".github/workflows/codeql.yml",
          "terms": [
            "name: CodeQL",
            "security-events: write",
            "github/codeql-action/init@",
            "config-file: ./.github/codeql/codeql-config.yml",
            "languages: javascript-typescript",
            "security-extended,security-and-quality"
          ]
        },
        {
          "file": ".github/codeql/codeql-config.yml",
          "terms": [
            "@ponchia/annotations CodeQL config",
            "query-filters:",
            "js/html-constructed-from-input",
            "escaped SVG string renderers"
          ]
        },
        {
          "file": ".github/workflows/dependency-review.yml",
          "terms": [
            "name: Dependency Review",
            "actions/dependency-review-action@",
            "fail-on-severity: high",
            "warn-only: false"
          ]
        },
        {
          "file": ".github/workflows/scorecard.yml",
          "terms": [
            "name: Scorecard",
            "ossf/scorecard-action@",
            "results_format: sarif",
            "github/codeql-action/upload-sarif@"
          ]
        },
        {
          "file": "scripts/check-repo-readiness.mjs",
          "terms": [
            "Repository readiness verified",
            "package-lock root version must match package.json",
            "publish --ignore-scripts --provenance --access public --tag \"$dist_tag\"",
            "CodeQL",
            "Dependency Review",
            "OpenSSF Scorecard"
          ]
        },
        {
          "file": "CONTRIBUTING.md",
          "terms": [
            "Product Boundaries",
            "npm run check",
            "Adapter Changes"
          ]
        },
        {
          "file": "SECURITY.md",
          "terms": [
            "Reporting a Vulnerability",
            "Security Boundary",
            "CodeQL",
            "Dependency Review",
            "OpenSSF Scorecard"
          ]
        },
        {
          "file": "docs/security-automation.md",
          "terms": [
            "Security Automation",
            "CodeQL",
            "js/html-constructed-from-input",
            "Dependency Review",
            "OpenSSF Scorecard",
            "Dependabot security updates",
            "Secret scanning push protection"
          ]
        },
        {
          "file": "CHANGELOG.md",
          "terms": [
            "0.1.0 - 2026-06-19",
            "Repository"
          ]
        },
        {
          "file": "docs/release.md",
          "terms": [
            "Release Runbook",
            "npm pack --dry-run",
            "Canary / Private Registry",
            "docs/canary-publish-report.md",
            "docs/public-release-decisions.md",
            "npm provenance"
          ]
        },
        {
          "file": "docs/public-release-decisions.md",
          "terms": [
            "Public Release Decisions",
            "Public package name: `@ponchia/annotations`",
            "GitHub owner: `Ponchia`",
            "Repository for `0.1.x`: `Ponchia/bronto-annotations`",
            "`publishConfig.access` is `public`",
            "publish --ignore-scripts --provenance --access public --tag \"$dist_tag\"",
            "README headline stays `# @ponchia/annotations`",
            "No separate hosted examples site is required before `0.1.0`"
          ]
        }
      ]
    },
    {
      "id": "pre-release-hardening",
      "status": "proven",
      "claim": "The project now tracks and enforces the next pre-release goals: clean-consumer dogfood reporting, API stability policy, GitHub Packages canary publishing, visual baseline enforcement, deeper adapter recipes, authoring UX direction, performance stress checks, accessibility recipes, compatibility matrix, and public release naming decisions.",
      "evidence": [
        {
          "file": "docs/pre-release-roadmap.md",
          "terms": [
            "Dogfood in a real consumer",
            "Freeze the `0.1.x` public API contract",
            "Publish a private/canary package",
            "docs/dogfood-clean-consumer-report.md",
            "docs/dogfood-self-report.md",
            "docs/dogfood-external-consumer-report.md",
            "docs/canary-release.md",
            "docs/canary-publish-report.md",
            "docs/adapter-recipes-proof.md",
            "docs/public-release-decisions.md",
            "createAnnotationEditSession",
            "createAnnotationEditEvent",
            "createAnnotationEditDelta",
            "includeQualityIssues",
            "qualityDebug",
            "visual regression baselines",
            "test/visual-baselines/browser-screenshots.json",
            "Performance",
            "Accessibility",
            "Compatibility matrix",
            "public package/repository naming"
          ]
        },
        {
          "file": "docs/public-release-decisions.md",
          "terms": [
            "Public Release Decisions",
            "Package Name",
            "Ownership",
            "Repository Name And Visibility",
            "Npm Access And Provenance",
            "README Positioning",
            "Examples Hosting",
            "@ponchia/annotations",
            "Ponchia/bronto-annotations"
          ]
        },
        {
          "file": "docs/api-stability.md",
          "terms": [
            "Stable for `0.7.x`",
            "Experimental",
            "Root imports must remain DOM-free",
            "docs/api-stability.manifest.json",
            "@public",
            "@experimental",
            "npm run test:api-stability"
          ]
        },
        {
          "file": "docs/api-stability.manifest.json",
          "terms": [
            "\"schemaVersion\": 1",
            "\"policy\": \"0.7.x\"",
            "\"./bronto.css\"",
            "\"stable\"",
            "\"experimental\""
          ]
        },
        {
          "file": "scripts/check-api-stability.mjs",
          "terms": [
            "API stability verified",
            "docs/api-stability.manifest.json",
            "collectPublicExports",
            "isExperimentalExport"
          ]
        },
        {
          "file": "docs/canary-release.md",
          "terms": [
            "GitHub Packages Canary",
            "gh workflow run canary.yml -f publish=true",
            "0.1.0-canary.",
            "docs/canary-publish-report.md",
            "clean registry consumer",
            "npm run test:canary"
          ]
        },
        {
          "file": "docs/canary-publish-report.md",
          "terms": [
            "Canary Publish Report",
            "Workflow run: `27827132524`",
            "0.1.0-canary.1.e754177",
            "Publish GitHub Packages canary`: success",
            "Smoke registry consumer`: success",
            "Registry consumer smoke verified",
            "@ponchia/annotations@0.1.0-canary.1.e754177"
          ]
        },
        {
          "file": ".github/workflows/canary.yml",
          "terms": [
            "workflow_dispatch:",
            "packages: write",
            "registry-url: https://npm.pkg.github.com",
            "publish --tag canary --registry https://npm.pkg.github.com",
            "node scripts/smoke-registry-consumer.mjs"
          ]
        },
        {
          "file": "scripts/check-canary-readiness.mjs",
          "terms": [
            "Canary readiness verified",
            "prepare-github-canary",
            "smoke-registry-consumer",
            "npm.pkg.github.com"
          ]
        },
        {
          "file": "docs/compatibility.md",
          "terms": [
            "Node.js",
            "TypeScript",
            "TypeScript 5.8 clean consumer",
            "TypeScript 6.0",
            "npm run test:compatibility",
            "npm run test:compatibility:lanes",
            "React 18",
            "React 18 clean consumer",
            "React 19",
            "Vega 5",
            "Vega 5 clean consumer",
            "Vega 6",
            "Vega",
            "Mermaid",
            "D2",
            "React Flow",
            "optional peers"
          ]
        },
        {
          "file": "scripts/check-compatibility-matrix.mjs",
          "terms": [
            "Compatibility matrix verified",
            "expectedPeers",
            "peerDependenciesMeta",
            "clean root consumer unexpectedly installed optional peers",
            "Node 20",
            "Node 22"
          ]
        },
        {
          "file": "scripts/smoke-compatibility-lanes.mjs",
          "terms": [
            "Compatibility lane smoke verified",
            "TypeScript 5.8 clean consumer",
            "typescript@5.8.3",
            "React 18 clean consumer",
            "Vega 5 clean consumer",
            "react@18.2.0",
            "vega@5",
            "prepareVegaScenegraphAnnotations"
          ]
        },
        {
          "file": "docs/dogfood-friction-report.md",
          "terms": [
            "Dogfood Friction Report Template",
            "Coordinate space",
            "Generated geometry timing",
            "Would ship with this API today"
          ]
        },
        {
          "file": "docs/dogfood-clean-consumer-report.md",
          "terms": [
            "Dogfood Clean Consumer Report",
            "clean Vite report",
            "Vega-Lite generated chart",
            "Mermaid generated diagram",
            "npm run test:dogfood",
            "external note list",
            "screen-reader summary",
            "Would ship with this API today: yes"
          ]
        },
        {
          "file": "docs/dogfood-bronto-report.md",
          "terms": [
            "Dogfood Bronto Report",
            "public `@ponchia/ui` report CSS",
            "report stat cards",
            "SVG report chart",
            "report table row",
            "mixed DOM/SVG report figure",
            "mixedCoordinateSpaces",
            "npm run test:dogfood:bronto-report",
            "Would ship with this API today: yes"
          ]
        },
        {
          "file": "docs/dogfood-self-report.md",
          "terms": [
            "Dogfood Self Report",
            "docs/readiness-matrix.json",
            "docs/completion-audit.json",
            "generated SVG readiness chart",
            "generated SVG release-flow diagram",
            "npm run test:dogfood:self-report",
            "Would ship with this API today: yes"
          ]
        },
        {
          "file": "docs/dogfood-external-consumer-report.md",
          "terms": [
            "Dogfood External Consumer Report",
            "external Astro/React writing site",
            "rendered DOM stack diagram",
            "rendered React Flow diagram",
            "npm run test:dogfood:external",
            "prepareReactFlowAnnotations",
            "42 generated SVG edge-route points",
            "Target-alignment checks used: yes",
            "Layout-quality checks used: yes",
            "Would ship with this API today: yes"
          ]
        },
        {
          "file": "scripts/dogfood-clean-consumer.mjs",
          "terms": [
            "Dogfood clean consumer verified",
            "packed tarball clean consumer",
            "prepareDomAnnotations",
            "prepareVegaScenegraphAnnotations",
            "prepareMermaidAnnotations",
            "compiledFromVegaLite",
            "setupExternalNoteList",
            "screenReaderSummary",
            "rovingFocus"
          ]
        },
        {
          "file": "scripts/dogfood-bronto-report.mjs",
          "terms": [
            "Bronto report dogfood verified",
            "public @ponchia/ui static report grammar",
            "@ponchia/ui@0.6.8",
            "prepareDomAnnotations",
            "annotationFrameFromSvg",
            "mixedCoordinateSpaces",
            "dogfood-bronto-report.png"
          ]
        },
        {
          "file": "scripts/dogfood-self-report.mjs",
          "terms": [
            "Self dogfood report verified",
            "self-dogfood project evidence report",
            "docs/readiness-matrix.json",
            "docs/completion-audit.json",
            "generated-svg-chart",
            "generated-svg-diagram",
            "dogfood-self-report.png"
          ]
        },
        {
          "file": "scripts/dogfood-external-consumer.mjs",
          "terms": [
            "External consumer dogfood verified",
            "PONCHIA_ANNOTATIONS_EXTERNAL_CONSUMER_ROOT",
            "Skipped external consumer dogfood",
            "anchorFromDOMRect",
            "prepareReactFlowAnnotations",
            "resolvePreparedAnnotationLayout",
            "renderAnnotationsSvg",
            "External React Flow dogfood verified",
            "dogfood-external-consumer.png",
            "dogfood-external-react-flow.png"
          ]
        },
        {
          "file": "docs/visual-regression.md",
          "terms": [
            "Visual Regression Baselines",
            "visual baselines",
            "CI compares new screenshots",
            "non-empty screenshot evidence",
            "test/visual-baselines/browser-screenshots.json",
            "--write-baseline"
          ]
        },
        {
          "file": "test/visual-baselines/browser-screenshots.json",
          "terms": [
            "schemaVersion",
            "packed-browser",
            "packed-adapters",
            "react-flow-basic-mobile"
          ]
        },
        {
          "file": "docs/performance.md",
          "terms": [
            "npm run test:performance",
            "10 annotations",
            "50 annotations",
            "200 annotations"
          ]
        },
        {
          "file": "docs/accessibility.md",
          "terms": [
            "Static SVG",
            "External Note Lists",
            "roving focus",
            "screenReaderSummary",
            "keyboard activation",
            "npm run test:dogfood"
          ]
        },
        {
          "file": "docs/adapter-recipes-roadmap.md",
          "terms": [
            "Vega-Lite",
            "Sequence diagram",
            "Nested diagram",
            "Zoom/pan",
            "docs/adapter-recipes-proof.md"
          ]
        },
        {
          "file": "docs/adapter-recipes-proof.md",
          "terms": [
            "Deep Adapter Recipes Proof",
            "Vega-Lite Compile-To-Vega",
            "Mermaid Flowchart And Sequence SVG",
            "D2 Nested Diagrams And Routes",
            "React Flow Viewport, Handles, And Editing",
            "non-identity React Flow viewport",
            "host-owned annotation patch",
            "flowchart and sequence browser-proven",
            "mermaid-translated-data",
            "translated-label data-hook",
            "mermaid-sequence-route",
            "Remaining Limits"
          ]
        },
        {
          "file": "scripts/benchmark-layout.mjs",
          "terms": [
            "layout-stress",
            "annotations: 200",
            "evaluateAnnotationLayout",
            "maxMedianMs"
          ]
        },
        {
          "file": "scripts/check-pre-release-goals.mjs",
          "terms": [
            "Pre-release goals verified",
            "docs/public-release-decisions.md",
            "docs/dogfood-self-report.md",
            "docs/dogfood-external-consumer-report.md",
            "npm run test:dogfood:external",
            "npm run test:compatibility",
            "npm run test:compatibility:lanes",
            "npm run test:performance",
            "Dogfood Friction Report Template"
          ]
        }
      ]
    },
    {
      "id": "product-boundaries",
      "status": "proven",
      "claim": "The package remains an annotation engine and does not become a chart engine, diagram parser, graph layout engine, app-state layer, persistence layer, router, workflow engine, or design system.",
      "evidence": [
        {
          "file": "README.md",
          "terms": [
            "It does not",
            "provide a design system"
          ]
        },
        {
          "file": "docs/e2e-plan.md",
          "terms": [
            "It does not create chart",
            "parse Mermaid source or own diagram layout",
            "It does not parse D2",
            "It does not own graph"
          ]
        },
        {
          "file": "AGENTS.md",
          "terms": [
            "Product Boundary",
            "This package owns annotation models"
          ]
        }
      ]
    }
  ]
}
