You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method, route, page ID, guards, source span, binding, and related policy fields are repeatedly copied. appgen.Options can also carry both endpoint projections and the original IR.
Problem
Every new endpoint concern—authorization, cache policy, CSRF, rate limits, observability, body limits, error behavior, localization, or source metadata—must be threaded through multiple structs and conversions. Omitting a field can silently make generated registrations, adapters, proxy matching, reports, and runtime behavior disagree.
Proposed direction
Create one normalized EndpointPlan collection during application planning. Supporting records such as decoders, calls, responses, and fallbacks should reference a stable EndpointID rather than repeat endpoint identity and policy fields.
Priority
Medium
Context
Endpoint information is currently projected through several overlapping models:
Method, route, page ID, guards, source span, binding, and related policy fields are repeatedly copied.
appgen.Optionscan also carry both endpoint projections and the original IR.Problem
Every new endpoint concern—authorization, cache policy, CSRF, rate limits, observability, body limits, error behavior, localization, or source metadata—must be threaded through multiple structs and conversions. Omitting a field can silently make generated registrations, adapters, proxy matching, reports, and runtime behavior disagree.
Proposed direction
Create one normalized
EndpointPlancollection during application planning. Supporting records such as decoders, calls, responses, and fallbacks should reference a stableEndpointIDrather than repeat endpoint identity and policy fields.Example shape:
Acceptance criteria
appgen.Optionsno longer accepts competing endpoint projections plus raw IR.Related
#667 should provide the application-planning phase that owns this canonical model.