Derive query inputs from declaration surfaces
On current main, source adapters can describe a reusable declaration’s inputs without classifying that declaration as an event, command, query or concept. Generation can transfer those inputs to an exact query endpoint when an application adapter explicitly opts in. Plain Reads relationships do not copy members.
Contribute the proof
Section titled “Contribute the proof”Declare the capabilities DeclarationInputMemberDeclaration, DeclarationInputMemberTypeUse and EntryPointInputTransfer for the corresponding facts you emit.
DeclarationInputMemberDeclarationFactgives aDeclarationMemberKey(exact declaration subject, optional backend occurrence and normalized Screenplay member name) and nonnegative semanticDeclarationOrder.DeclarationInputMemberTypeUseFactgives that same key and the complete substitutedTypeUseDefinition. Preserve wrapper order, observed target identity and target backend occurrence. Source substitution and normalization belong to the observing frontend; Generation does not discover inherited members or resolve generic substitutions by reflection.EntryPointInputTransferFactidentifies an exact method, queryArtifactKeyand supportedReadsrole. Its subject is the method. An independent exactEntryPointFactmust map that method occurrence to the same query.MethodArtifactUsageDefinition.ExecutionOrdersupplies a nonnegative semantic execution position when proved. Null means unknown, never zero. It is optional for existing producers. Generation never uses a fact ID, file name or enumeration order as execution precedence.
Use exact evidence and declaration/method ownership. A null backend key means only the unscoped occurrence: no name matching, inherited lookup or single-candidate fallback crosses projects, overloads, substitutions or backend occurrences.
Precedence and completeness
Section titled “Precedence and completeness”Direct endpoint inputs win by normalized name, including legacy properties and granular endpoint-owned members. Transferred additions follow the actual maximum direct declaration order, including sparse orders. Among transferred inputs, semantic execution order precedes source member order; the earliest proved occurrence wins a repeated name. Missing or conflicting order that could change the result is an error, not a lexical tie-break.
Both declaration and full type-use proof are required. Conflicting source orders, duplicate source orders for different names, contradictory types, unsupported shapes, ambiguous entry points and unresolved named targets produce located diagnostics. Generation omits uncertain additions for that endpoint and leaves direct inputs intact. A single execution can order its members by source member order without an execution position; multiple independent executions require proved, distinct positions.
The built-in rule transfers only input member declaration, full type use and any exact named binding required by that type. It never transfers output semantics, event identity, defaults or inferred roles such as Id. Existing type-binding resolution selects named targets from the fixed base snapshot, including named primitives, concepts and typed EventSourceId primitives. There is no reflection or string fallback.
Eligibility, lineage and verification
Section titled “Eligibility, lineage and verification”Method eligibility is selected first. Only surviving usages, transfer intents, entry points and declaration facets participate. Failure-only executions and their lexical descendants cannot re-enter through the transfer rule.
Rule cratis.screenplay.entry-point-input-members version 1.0.0 operates on that fixed effective base snapshot, alongside existing derivation rules. It does not feed freshly derived members into another rule. Synthetic member IDs use the endpoint’s exact identity and member name; lineage retains original intent, entry-point, execution, declaration, type, endpoint and scope evidence. Declaration-owned input facets remain provenance, never fake artifacts.
Generate(snapshot) retains the admitted originals and derives deterministic endpoint members for resolution, lowering, printing and Screenplay compiler verification. Generate(contributions) uses the same selection and transfer logic. The public released baseline is unchanged; these additive contracts and rules describe current main.