Opal Ticket Context
Use the extracted TDIA markdown first
- •Treat
.codex-docs/tdia/<tdia-name>/extracted.mdas the primary design artifact for ticket preparation. - •Prefer the TDIA folder explicitly named by the user or linked from the ticket.
- •If the correct TDIA folder is not obvious, stop and ask which folder under
.codex-docs/tdia/applies. - •If no extracted TDIA exists yet, use
$opal-ticket-tdiafirst to create it.
Build ticket context in this order
- •Read the ticket and identify the feature, scope, and likely affected journey.
- •Read the related
extracted.md. - •Pull the implementation-relevant TDIA sections for the ticket.
- •Inspect the codebase paths that match those sections.
- •Implement only after the ticket, TDIA, and codebase view are aligned.
Pull the right TDIA sections
- •Always read
Overview and Scope,Assumptions,Tech Decisions, andNon-Functional Requirementswhen they exist. - •For frontend tickets, read
Opal User Portal (FE)and its relevant child sections such asPages,Global Components,Services (API Only),Feature Toggles,Design Notes,Payload Generation, validators, resolvers, state store, or guards if present. - •For backend tickets, read
Opal Services (BE)andREST API Endpoints. - •For database-impacting tickets, read
Opal Database (DB),Libra / GOB, and any relatedStored Procedures,Data, or design notes. - •For testing work, read
Test and QAplusIntegration / Component Tests,E2E / Functional Tests,Non-Functional Tests, and accessibility sections. - •For flows with diagrams, read
E2E Interactionsand inspect any images referenced fromimages/.
Convert the TDIA into implementation context
- •Summarize the impacted routes, pages, APIs, services, feature toggles, data entities, and tests before touching code.
- •Preserve TDIA wording and identifiers exactly when they materially affect implementation.
- •Translate the TDIA into concrete repo targets: routes, components, services, validators, resolvers, state, tests, backend handlers, and DB integration points.
- •Use the repo as the source of truth for current implementation details; the TDIA provides design intent, not guaranteed current state.
Handle mismatches explicitly
- •If the ticket and TDIA disagree, call out the mismatch before implementing.
- •If the codebase and TDIA disagree, call out the mismatch and favor code inspection for current behavior while preserving TDIA constraints where still applicable.
- •If the TDIA is broader than the ticket, constrain the implementation to the ticket scope.
- •Do not invent missing approvals, waivers, SYS-NFR IDs, routes, or API behavior.
Output expectations
- •State which TDIA markdown file was used.
- •Summarize the sections that informed the implementation.
- •Identify the likely code areas to inspect before editing.
- •Keep secrets, tokens, and PII out of notes, code, and tests.