Question: Which CRLF conversion copy loop skips an original carriage return before a `\n`, preserves other bytes, and sizes output correctly for mixed LF and CRLF input?


Question: Where is the repository-discovery code that recognizes a working directory containing `.git` and sets the internal repository path and workdir during a successful open?


Question: Where is the path-joining and separator-normalization logic used when appending relative paths such as `refs/heads/master`, including protection against duplicated separators?


Question: Find the bare-repository opening and initialization logic that preserves bare behavior while ensuring `git_repository_path()` has a trailing separator.


Question: Find the code that combines similarity index and rename/copy headers with index lines and line-level hunks when rendering a diff patch.


Question: Where does git_diff_find_similar connect renamed or copied deltas to patch generation, including retention of the source content when GIT_DIFF_INCLUDE_UNMODIFIED is used?


Question: Where does the SSH transport create and tear down connections and sessions, so authentication-method detection can use a separate short-lived session with a dummy username?


Question: Where does the SSH transport map server authentication methods such as password, publickey, and keyboard-interactive to GIT_CREDTYPE values?


Question: Where does the filesystem refdb rewrite loose ref files, and how can an unchanged target return success without rewriting them?


Question: Locate the production code that appends reflog entries during filesystem-backed reference updates.


Question: Where does clone create the origin remote and assemble the initial fetch before connecting, so a temporary refs/tags/*:refs/tags/* refspec can be added only when download_tags is AUTO?


Question: Where is the clone default for remote_autotag initialized, and how is GIT_REMOTE_DOWNLOAD_TAGS_AUTO selected when the caller provides no option?


Question: Locate serialize_reflog_entry in the filesystem refdb backend and the code that formats reflog entries for disk, preventing embedded newlines from creating multiple physical lines.


Question: Where does the config parser process backslash-continued lines and invoke the per-variable callback with the parsed value and source line length?


Question: Where is git_remote_create_detached implemented, and how is its handle used for later ad-hoc network connections?


Question: Where does HTTP_PROXY environment detection differ from Git configuration-file proxy resolution for remotes with and without repositories?


Question: Where are submodule index-derived OIDs and status computed so missing index data is treated as absent state while `.gitmodules` and workdir entries remain discoverable?


Question: Where is `git_submodule_lookup` implemented, including its `.gitmodules` loading and `git_repository_head_tree` error handling for an orphaned HEAD?


Question: Where does `git_submodule_foreach` enumerate known submodules, and how does it avoid aborting when the HEAD tree is unavailable?


Question: Where is the summary passed through or reused between git_diff_format_email and git_diff_commit_as_email so one sanitization rule covers both public APIs?


Question: Which repository-initialization branch opens or updates existing configuration, and how does it preserve a missing or manually changed core.ignorecase value during re-initialization?


Question: Where does the pack ODB refresh scan objects/pack, detect a multi-pack-index, validate its trailing checksum and stat state, and reload it when the file changes?


Question: Where does the pack backend search a valid multi-pack-index first for full SHA1 and prefix lookups, then fall back only to individual indexes for packs not covered by the MIDX?


Question: Where are MIDX-covered packs tracked separately from the unindexed pack list so the same pack is not searched through both the MIDX and its individual index?


Question: Where does a multi-pack-index entry resolve an object to its pack and offset while deferring .pack opening until git_odb_read needs the object data, so git_odb_exists can remain index-only?


Question: Where does the pack backend fall back to legacy individual-pack lookup when the multi-pack-index is missing, corrupt, or references a pack that cannot be opened or verified?


Question: Where is create_literal_schema implemented, and how does it convert Literal arguments into OpenAPI enum or const schemas?


Question: Locate the path-template compilation or route construction code that currently allows malformed parameters to fail only when a request is matched.


Question: Where are OpenAPI or static-file ASGI endpoints dispatched outside registered route handlers, so they can avoid route-level compression and allowed-host middleware?


Question: Where does OpenAPIPlugin.provide_openapi collect HTTPRoute objects and merge operations into a single path item when multiple routes share the same path?


Question: Where does Litestar convert msgspec.inspect.Field type metadata into ParameterKwarg definitions for OpenAPI schema generation?


Question: Where is the signature model `_deserializer` implementation that checks default values with `isinstance` and should fall back to `get_origin_or_inner_type` for subscribed generics?


Question: Where does the default JSON/msgpack deserializer perform its `isinstance` fast path for values matching annotated route parameter types, including parameterized generics such as `Foo[str]`?


Question: Locate the CLI application-discovery and --app-dir resolution logic used when launch arguments request help, including the fallback that keeps built-in help available if no application can be loaded.


Question: Find the state or caching logic that ensures an application is loaded at most once per litestar CLI invocation while normal non-help command execution remains unchanged.


Question: Find the production code converting a handler FieldDefinition into an OpenAPI schema when no Annotated metadata or KwargDefinition is present.


Question: Find the logic that applies a non-Empty FieldDefinition default only when the generated schema does not already have a default.


Question: Where are the JWTCookieAuth and OAuth2PasswordBearerAuth cookie settings passed to the response, including Path, HttpOnly, Secure, SameSite, and an optional Domain?


Question: Locate the CORS response wrapper that adds Access-Control-Allow-Origin, Access-Control-Allow-Credentials, Access-Control-Expose-Headers, and Vary headers for allowed origins.


Question: Where is DTOInterface defined, including its current from_bytes/from_data constructors and to_data_type/to_encodable_type methods, and how are DTO instances constructed today?


Question: Where are the global type encoders in litestar.serialization defined, and where is DTOInterface treated as a special encoder instead of returning bytes or LitestarEncodableType directly?


Question: Where is `_normalize_cookies` cached with `lru_cache` in the HTTP handling path, and how should caching be removed so dynamic `Set-Cookie` values are recomputed for every request?


Question: Where does GenericSQLAlchemyConfig.create_engine retry engine creation without json_serializer and json_deserializer when a dialect rejects JSON parameters?


Question: Where does DTOFactory inspect source Pydantic fields and populate field_definitions based on whether field_info.default is Undefined or Ellipsis?


Question: Where does SQLAlchemy model-to-Pydantic conversion safely traverse recursive bidirectional graphs without producing Any or duplicate model classes?


Question: Where is SQLAlchemyPlugin.to_pydantic_model_class implemented, including the registry that reuses one generated Pydantic class per SQLAlchemy entity?


Question: Where is the Pydantic V1 versus V2 schema and type-hint handling selected while preserving public fields and generic type resolution?


Question: Where is the production definition of SignatureModel.parse_values_from_connection_kwargs, including its current **kwargs handling alongside connection and deserializer parameters?


Question: Where does WebSocketRoute parse websocket handler connection values and invoke SignatureModel.parse_values_from_connection_kwargs?


Question: Where does dependency resolution invoke SignatureModel.parse_values_from_connection_kwargs when building dependency arguments from connection kwargs?


Question: Where does HTTPRoute parse handler connection values and call SignatureModel.parse_values_from_connection_kwargs, so the parsed parameters can be passed as a dictionary?


Question: Where does the DTO backend derive and filter nested rename_fields prefixes such as bar.id and bars.0.id?


Question: Where is DTOConfig propagated through nested DTO construction and partial=True serialization or deserialization without changing behavior when no nested renames are configured?


Question: Where are nested DTO backends created for dataclass fields inside List, Dict, Tuple, and Union types, and how are the relevant rename_fields subsets propagated?


Question: Which code path decodes the request body for logging, and how does it handle malformed JSON or other body parsing exceptions?


Question: Where is the production logging middleware's structlog request-event construction implemented, including collection of the incoming request body?


Question: Where does create_connection_value_extractor build the ValidationException detail for missing required path, query, header, or cookie parameters, including the request URL?


Question: Where does SignatureModel._create_exception format validation-failure details with the HTTP method and request URL?


Question: Where do HTTP decorators such as @get and @post, along with WebSocket route decorators, pass one or multiple path values into their route handler classes?


Question: Where does Router register HTTP handler paths so every normalized path receives a {method: handler} entry in the route map?


Question: Where do BaseRouteHandler, HTTPRouteHandler, and WebSocketRouteHandler define the path argument and normalize a single path or Optional[List[str]] into internal paths, including None defaulting to "/"?


Question: Where does create_schema handle fields with field.sub_fields and map field.shape through PYDANTIC_FIELD_SHAPE_MAP to an OpenAPIType?


Question: Where is the production definition of ResponseSpec and its data_container field, including the response descriptions, headers, and media types exposed to OpenAPI generation?


Question: Where does the `litestar routes` output render WebSocket routes with the `WS` label and ASGI routes with the `ASGI` label?


Question: Where is the production implementation of RedisStore.set, including its current expires_in handling and Redis SET invocation?


Question: Where is ownership assigned when nesting Routers, and where are Routers with an existing owner rejected during registration?


Question: Where is Provide.__eq__ implemented, and how does it compare provider attributes while handling `other is self` first?


Question: Where is the dependency-injection wiring that lets a controller-level dependency consume a router-level dependency when the handler only requests the controller dependency?


Question: Where is the OpenAPI plugin's oauth2-redirect.html URL or OAuth2 redirect behavior wired into Swagger UI output?


Question: Where is SwaggerRenderPlugin defined and where are its constructor configuration options initialized?


Question: Where does SwaggerRenderPlugin generate the SwaggerUIBundle initialization and its options for the rendered Swagger UI?


Question: Where does handler signature parsing inspect reserved keyword parameters such as `request`, `scope`, and `state` and validate their type annotations?


Question: Where does `DataclassDTO` connect route-handler annotations to the shared collection-origin and collection-construction logic for `Sequence`, `Mapping`, `MutableSequence`, and related generic types?


Question: Locate the DTO data-transfer path that instantiates and populates the selected concrete collection for nested dataclass values in both request deserialization and response handling.


Question: Find where `InstantiableCollection` is defined and where DTO collection origins from `typing` and `collections.abc` are resolved to concrete `list`, `dict`, `set`, `tuple`, `deque`, or `defaultdict` implementations.


Question: Where is StructLoggingConfig defined, including the processors annotation and its default_structlog_processors factory?


Question: Find `OpenAPIController.root`, `swagger_ui`, `stoplight_elements`, and `redoc`, including their OpenAPI initialization guards and documentation responses.


Question: Find `OpenAPIController.retrieve_schema_yaml` and `retrieve_schema_json`, including schema retrieval and any local `MSG_OPENAPI_NOT_INITIALIZED` or duplicate `ImproperlyConfiguredException` checks.


Question: Find the shared `OPENAPI_NOT_INITIALIZED` error message in `starlite.constants` and the production code that should reuse it for uninitialized OpenAPI access.


Question: Where does Litestar parse a handler signature and classify each parameter as a dependency, path, query, header, cookie, or body parameter, especially for unmarked Annotated annotations?


Question: Locate the production logic that unwraps typing.Annotated metadata and distinguishes Litestar markers such as Query, Path, and Header from arbitrary metadata or annotated_types constraints like Gt and Lt.


Question: Where is Request.send_push_promise implemented so an unavailable http.response.push extension emits a LitestarWarning by default, or raises LitestarException when raise_if_unavailable=True, without sending a message?


Question: Where does Request capture ASGI scope extensions during connection initialization, normalize a None extensions mapping, and set the one-time public supports_push_promise flag from http.response.push?


Question: Find the route-trie node construction logic that stores or propagates a route's full path template.


Question: Where does the provider schedule page own its Slot state and incorporate updated Slot resources returned from appointment confirmation so the calendar immediately reflects new slot availability?


Question: Where does the medplum-provider schedule calendar map Appointment statuses to event styles, especially making pending appointments outlined with a blue border and white background without changing booked or cancelled appointments?


Question: Where is the appointment details drawer's existing "Cancel Visit" action implemented, including conditional rendering, loading and error handling, and Appointment/Slot search invalidation, so a pending-only "Confirm Appointment" action can follow the same pattern?


Question: Where is the batch-entry logic that checks for a fullUrl starting with urn:uuid and assigns or resolves resource identity, including related resource ID handling?


Question: Where does the FHIR batch Bundle processor iterate over entries and invoke identity resolution and validation for every entry, including entries with no fullUrl or a non-urn:uuid fullUrl?


Question: Where is `exportJsonFile` implemented and imported by production code in the app package, and where are shared React DOM utilities exposed so the helper can move to `@medplum/react`?


Question: Where is the production `CcdaDisplay` React component that accepts a `url` prop, renders the CCDA document in an iframe, and returns nothing when the URL is missing?


Question: Where are FHIR operation routes registered for PlanDefinition `$apply`, and where should the ChargeItemDefinition `$apply` route be wired alongside it?


Question: Where are the production implementations of useSearch, useSearchOne, and useSearchResources that issue FHIR search requests and return the [result, loading, outcome] tuple?


Question: Where does the server configure its JSON request-body parser and Content-Type allowlist, including the maxJsonSize option?


Question: Where is the FHIRcast WebSocket connection and subscription lifecycle implemented, including tracking clients as they connect, subscribe, and disconnect?


Question: Where are ThreadInbox and NewTopicDialog defined, including their prop types and the patient ResourceInput used in the new-topic dialog?


Question: Where does the medplum-provider MessagesPage configure ThreadInbox with allowPatientSelection enabled for provider workflows?


Question: Where does the foomedical MessagesPage determine the current user’s Patient profile and pass it as the ThreadInbox subject?


Question: Where does metric or heartbeat initialization register and remove its listener during graceful shutdown, and how is duplicate registration prevented on repeated initialization?


Question: Where are database pool idle/awaiting-client gauges and Node heap-size gauges produced with setGauge, including hostname and dbInstanceType writer/reader attributes?


Question: Where are generateAccessToken and generateIdToken implemented, and how do they construct JWT claims from authorized OAuth scopes and the authenticated principal?


Question: Where is claim submission for the encounter Billing tab implemented, and how can a pending debounced claim auto-save be canceled before submission?


Question: Where does the resource property display handle empty or null values and render regular strings with whiteSpace: 'pre-wrap'?


Question: Locate the HumanNameTable insertion path and its resource-type classification for Patient, Person, Practitioner, and RelatedPerson, then connect that predicate to both cleanup operations.


Question: Locate AddressTable.hasAddress and the address-index insertion classification, so cleanup uses the same list of resource types that can actually produce address rows.


Question: Where is MemberDetailsPage implemented, including loading the project membership and determining the current user's project-admin status and the member's project-owner status?


Question: Where does bot response handling detect OperationOutcome results, undefined returns, FHIR resources, and non-FHIR values before choosing an HTTP status and content type?


Question: Where is sendFhirResponse implemented, including attachment URL rewriting through getAuthenticatedContext for authenticated requests?


Question: Where is the PlanDefinition/$apply operation implemented, including applying an ActivityDefinition to generate the linked ServiceRequest and Task?


Question: Where are task-generation paths distinguished between ActivityDefinitions, Questionnaires, and direct tasks so the task-elements extension affects only ActivityDefinition-created Tasks?


Question: Find the standard FHIR operation parameter-parsing utilities and their use for typed string, integer, and boolean inputs so invalid `timeout` values produce errors containing the parameter name.


Question: Locate the code that performs agent upgrade side effects such as release download, replacement, child-process spawning, restart, and success or failure callbacks.


Question: Locate the server-side `Agent/$upgrade` operation definition and handler that declare the optional boolean `force` parameter, read version and timeout, and forward these values in an `agent:upgrade:request`.


Question: Locate the production handler for the `agent:upgrade:request` websocket message, including target-version resolution from the request or latest release and the normal download-and-restart flow.


Question: Where does the reindex worker paginate a resource type with a cursor and handle completion before moving to another type?


Question: Where is the POST /admin/projects/{projectId}/invite implementation that handles inviting a user who is already a project member and determines the response status?


Question: Where is the GraphQL validation rule or AST visitor that enforces the maximum query depth configured and invoked?


Question: Where is GraphQL query nesting depth calculated from nested field selections while handling fragment spreads and inline fragments without adding fragment-boundary depth?


Question: Where is multi-select toggle and checked-state behavior implemented for the TaskFilterMenu’s existing status values, including clearing the filter when no values remain?


Question: Where are the server-side FHIR operation parameter utilities parseParameters and parseInputParameters implemented, including their generic conversion of Parameters resources to T without unsafe any casts?


Question: Where is parseStringifiedParameter implemented for single query-string values, including its handling of arrays and other non-string inputs?


Question: Where does buildOutputParameters construct a FHIR Parameters resource from an optional operation output object and read its properties?


Question: Where is the TypedValue interface defined in @medplum/core, and where should an exported type guard narrow unknown values to that interface?


Question: Where does makeParameter recursively process nested param.part values and recognize TypedValue instances while constructing operation parameters?


Question: Where does the server catch and emit authentication failures as error-level logs containing the original error message and stack?


Question: Where is request logging implemented and wired so every received request records method, path, status, and duration even when authentication fails before request context initialization?


Question: Where does SearchControl calculate and render the result count range, including the empty-result case where the range end must not be negative?


Question: Where are HL7 separators initialized and exposed to fields, especially the MSH field separator, encoding characters, and subcomponent separator?


Question: Where are Hl7Segment field and component accessors connected to Hl7Field, including 1-based field indexes and repetition handling for setComponent?


Question: Where is Hl7Message segment storage and getSegment lookup implemented, including numeric indexes, named segments, and MSH placement rules?


Question: Where does Hl7Segment implement getField and represent the MSH field-separator and encoding-character offset needed for setField?


Question: Where are initOtelHeartbeat and cleanupOtelHeartbeat implemented, including any cached queue references that must be reset between initialization cycles?


Question: Where is the Claim/{id}/$submit endpoint registered and handled, including its GET-to-POST method, repository lookup by ID, and reuse of the same prior-authorization operation dispatch?


Question: Where are the expansion and validation helper signatures and call sites that thread displayLanguage through both operations without changing the external FHIR operation signatures?


Question: Where does ValueSet/$expand process inline ValueSet concept definitions, select a designation matching displayLanguage with fallback to the concept's primary display, and apply the text filter to that selected display?


Question: Where does migration generation compare or normalize existing index definitions, including expression indexes, before deciding what SQL to emit?


Question: Where does the server schema migration generator write migration files and emit CREATE INDEX statements or idempotentCreateIndex calls?


Question: Where are expression-based index columns and partial-index WHERE clauses serialized for generated SQL, preserving single-quoted literals such as to_tsvector expressions?


Question: Where does the Scheduler load available slots for the visible month's Period and highlight calendar days that contain slots?


Question: Which error-handling code sends the generic “Unhandled error” 500 response when a request body stream error is not specially handled?


Question: Where is the unexportedResourceTypes list used to omit BulkDataExport and AsyncJob from future bulk export output?


Question: Where does the BulkExporter create and update the asynchronous job record used to track a bulk data export, and how should that lifecycle use AsyncJob instead of BulkDataExport?


Question: Locate the FHIRcast event dispatch code and production implementation that handles `DiagnosticReport-update` topics and loads the active DiagnosticReport context.


Question: Where is the FHIR `$init` operation for `Project` implemented, including initialization of defaults for a newly provisioned project?


Question: Locate the TypeScript implementation of `findObservationReferenceRange` and how it evaluates `ObservationDefinition.qualifiedInterval` criteria against a patient before selecting the first match.


Question: Find the code that matches qualified-interval conditions or names to patient demographics and handles missing or empty interval lists.


Question: Where are IWebSocket and IWebSocketEventMap defined, and how do their addEventListener and removeEventListener overloads support browser WebSocket, ws, and Node WebSocket implementations?


Question: Where do ReconnectingWebSocket reconnect() and close() create or propagate CloseEvent code and reason through the wrapper?


Question: Where is cloneEvent implemented or used for ReconnectingWebSocket, including special reconstruction of polyfilled CloseEvent and ErrorEvent that preserves code, reason, error, and message?


Question: Where does the authentication middleware construct the 401 response for unauthenticated requests while deliberately omitting WWW-Authenticate?


Question: Where does Bot/$execute invoke the bot and serialize string, number, boolean, object, and undefined returns into responseBody or outcome parameters?


Question: Where does the AsyncJob infrastructure persist the original request URL, transition job status, and write AsyncJob.output or failure results?


Question: Where are Bot/$execute validation and startup failures, such as a missing bot ID or unsupported runtime version, converted into OperationOutcome resources?


Question: Where are OperationOutcome and allOk results wrapped in FHIR Parameters with an outcome parameter for operation responses, including thrown bot errors?


Question: Where do operation handlers such as Group/$export use AsyncJobExecutor to create an AsyncJob, return 202 Accepted with Content-Location, and run work in the background?


Question: Which production code reads connection-pool statistics from both the primary database and the readonlyDatabase reader for healthcheck metrics?


Question: Where is the POST /fhir/R4/PlanDefinition/{id}/$apply operation implemented, including parsing the subject parameter and applying the PlanDefinition?


Question: Find all production migration callers and exports of nonBlockingAddConstraint that must be renamed to nonBlockingAddCheckConstraint.


Question: Where should the batch entry loop distinguish a first `429` from ordinary per-entry `400`/`409` or validation errors, continuing the latter but stopping on the former?


Question: Where are `batch` and `transaction` bundle processing paths separated so rate-limit fast-fail applies only to `batch` and not `transaction`?


Question: Where is the FHIR `$get-ws-binding-token` operation for `Subscription/:id`, including its POST/GET handling and WebSocket binding-token issuance, implemented?


Question: Where does system-level and patient-level bulk export filter resolved resource types by canBeExported and the _type parameter before calling exportResourceType?


Question: Where is the production code that validates FHIR references during resource creation or update and already skips values beginning with `%`?


Question: Where are getSelectQueryForSearch and the surrounding builder logic used to apply reference search conditions without reimplementing filtering?


Question: Where does the SQL builder construct UNION ALL queries from multiple subqueries, including the Union representation and builder APIs?


Question: Where does bot `$execute` preserve HTTP 200 for successful results and HTTP 400 for bot errors while writing the returned resource response?


Question: Where is the bot `$execute` HTTP handler that converts a bot's returned FHIR resource into an HTTP response?


Question: Locate the OAuth2 authorization-code logic that verifies code_verifier against the stored code_challenge and respects whether the client is marked PKCE-optional.


Question: Locate the authorization server login request validation for code_challenge and code_challenge_method, including requiring both parameters together and allowing only plain or S256.


Question: Locate the code that combines explicit include.concept, hierarchical CodeSystem subsumption results, and included ValueSet concepts into the final flat expansion.contains list while omitting abstract grouping concepts such as _ActMoodPredicate.


Question: Where does ValueSet expansion recursively traverse nested expansion.contains entries, inherit a missing system from an enclosing element or include.system, and emit only flat concrete leaf codings with system, code, and display?


Question: Where is the FHIR ValueSet/$expand operation implemented, including resolution of compose.include.valueSet references and construction of the expansion response?


Question: Where is the server-side implementation of the bot `/$deploy` operation that updates an AWS Lambda function's configuration and then its code?


Question: Where do assignable constraints obtain actual.GetType(), and how is a null actual value handled without throwing?


Question: Locate the production implementation of PropertyConstraint, including how it reads a named property and creates its ConstraintResult.


Question: Where does NUnit validate category names and mark tests as not runnable when a category contains `!` or `+`?


Question: Locate IgnoreAttribute.ApplyToTest and its future ignore-until handling, including RunState.Ignored and the SkipReason and IgnoreUntilDate properties.


Question: Where does SetUpTearDownItem invoke SetUp and TearDown methods, especially the path using Reflect.InvokeMethod with a raw MethodInfo?


Question: Where is the IMethodInfo contract defined, including Invoke and the method metadata callers need to determine whether a method is static?


Question: Where does MethodWrapper implement IMethodInfo, and how does it determine whether the wrapped method is static?


Question: Where is RetryAttribute implemented, and where does its execution wrapper rerun the test method for each retry?


Question: Where are the NUnit SetCultureAttribute and SetUICultureAttribute classes defined, and what conditional compilation excludes them from netstandard1.4?


Question: Where does ConstructFixtureCommand construct fixtures, and how does it find the containing fixture and TestSuite when its wrapped Test is a leaf TestMethod?


Question: Where is the default single-instance-per-suite fixture reuse and suite-level disposal implemented so the new lifecycle branch does not change it?


Question: Find the internal argument-value formatter used for test names, including escaped strings and characters, numeric suffixes, null, arrays, and long-value truncation.


Question: Where are version-suffixed platform names such as NET-2.0 and NETFRAMEWORK-4.5 parsed and validated against the selected runtime?


Question: Find the production exception classification used by [Retry] to distinguish retry-recognized exceptions such as AssertionException from non-retry exceptions while stopping immediately for the latter.


Question: Where do AssertionHelper.Member(expected) and AssertionHelper.Contains(expected) create or delegate the member constraint returned to callers?


Question: Where is SomeItemsConstraint defined, including its constructor and the logic that applies its nested constraint to individual collection items?


Question: Where is the Has.Member(expected) factory implemented, and how does it construct the SomeItemsConstraint wrapping the expected-value EqualConstraint?


Question: Where are OrFilter.Pass and MatchDescendant implemented, and how can their hot-path checks avoid LINQ or foreach allocations while using full-name matching shortcuts?


Question: Locate the production code that builds the test work-item tree, including CompositeWorkItem for suites and SimpleWorkItem for methods, and make construction conditional on filter matches while always retaining the assembly root.


Question: Find the TestFilter.FromXml XML dispatch and AddToXml hooks used to serialize and reconstruct concrete filters, including support for a <partition>number/count</partition> element.


Question: Locate stable hashing utilities or existing SHA-256 string hashing in NUnit and code for mapping a digest to a bounded, 1-based bucket.


Question: Locate the production TestFilter hierarchy and concrete filters that show how leaf tests are matched while suites pass when a descendant matches, as a model for PartitionFilter.


Question: Where are the public Assert overload signatures and message-format handling defined so ThatAsync and MultipleAsync can accept Task or Task<T> delegates consistently with the synchronous APIs?


Question: Where are the existing Assert.That overloads for TestDelegate and constraints implemented, including Throws evaluation, failure messages, and reporting inside a multiple-assert block?


Question: Where is Assert.Multiple’s delegate execution and multiple-assertion nesting implemented, including collecting failures and throwing MultipleAssertException only for the outermost block?


Question: Which production comparison logic handles simple ordered collections, and where can the default object comparer make null sort before every non-null value?


Question: Where does the Is.Ordered fluent API construct the ordered constraint and configure ascending versus descending order?


Question: Which production code calls AddResult on test results and depends on parent-state or summary-counter updates?


Question: Which production runner code handles NUnitLite `--explore` and `--where`, including XML filter files, and constructs the filter used for exploration?


Question: Where are the remaining production catch blocks that manually inspect TargetInvocationException or NUnitException instead of using ExceptionHelper?


Question: Locate the production code where a no-value --mainthread option should set FrameworkPackageSettings.RunOnMainThread to true.


Question: Where is the internal OSPlatformTranslator logic that converts SupportedOSPlatformAttribute and UnsupportedOSPlatformAttribute into NUnit PlatformAttribute instances?


Question: Where are the XML documentation remarks for the InRange overloads on ConstraintExpression and Is and for the RangeConstraint constructors, including the incorrect “from must be less than or equal to true” text?


Question: Where is the RangeConstraint.Using behavior implemented that replaces the active comparer and affects later ApplyTo calls?


Question: Where does RangeConstraint.ApplyTo evaluate the range, and where should it re-check comparer.Compare(from, to) using the comparer currently configured?


Question: What shared fixture-attribute application logic handles ordinary [TestFixture] classes and source-backed fixtures without dropping other attributes?


Question: Locate the production implementation of Is.Ordered.By and CollectionOrderedConstraint.Matches that enumerates collection elements and compares them by a named property.


Question: Where is `ExplicitAttribute` handled when it skips a test without a reason, and where is that optional reason passed into the test result?


Question: Where is NUnit2 XML output generated for skipped tests, and how does it write or omit the `<reason>` element based on a null or empty message?


Question: Where are the IgnoreCase and Using overloads implemented for constraints, including IComparer, IComparer<T>, Comparison<T>, IEqualityComparer, IEqualityComparer<T>, and Func<T,T,bool>, and how do they support fluent chaining?


Question: Where are the static constraint factories on Is implemented, and where should Is.OneOf(IEnumerable expected) and Is.OneOf(params object[] expected) be added?


Question: Where are public Constraint-derived classes in the NUnit.Framework.Constraints namespace implemented, including the construction and base behavior a public OneOfConstraint should follow?


Question: Find the code that validates whether a test fixture constructor is compatible with the arguments supplied by TestFixtureSource and determines whether the fixture is runnable.


Question: Where is ValuesAttribute's automatic value generation implemented when no explicit values are supplied for a test parameter?


Question: Where does WorkItem create, signal, and wait on its ManualResetEvent, and where should its IDisposable implementation release that completion handle without changing wait behavior?


Question: Where does the NUnit2 result writer addin write legacy test-case XML, including the <categories> and <properties> sections?


Question: Where does DictionaryContainsKeyConstraint manually enumerate dictionary keys and compare them for equality, and how can that path preserve the dictionary's custom IEqualityComparer<TKey> semantics?


Question: Where is ComparingProperties enabled by UsingPropertiesComparer and carried through equality results without changing stream, collection, or plain Equals difference formatting?


Question: Locate discovery-time validation that marks a TestCase NotRunnable when a params argument cannot be implicitly converted, with a reason naming the incompatible type.


Question: Locate the production code that constructs a params array from individual [TestCase] arguments and converts each value to the array element type.


Question: Where does the production package-loading or package-hierarchy code enumerate .nunit project sub-packages and expose their assembly locations for domain setup?


Question: Locate the tokenizer and token definitions that classify words, whitespace, operators, commas, and EOF, especially the fixed ASCII character logic that must be relaxed for Unicode.


Question: Locate the parser's unexpected-token error construction and the token or character position information needed to include a position in syntax-error messages.


Question: Locate production input validation around TestSelectionParser.Parse for null, empty or whitespace-only input, and EOF-only token streams, including NUnitEngineException handling while keeping the tokenizer non-throwing on empty input.


Question: Locate the parser's keyword and comparison handling for cat versus category and comma-separated category values, including how filter operands are parsed.


Question: Find the production handling for skipped or non-runnable tests and how it avoids relying on an unnecessary skip-command factory.


Question: Find where upstream suite-level ITestAction instances are obtained from the execution context and applied as outer command wrappers.


Question: Where is the static Is helper populated with factory methods and properties for built-in constraints, and where should Is.MultipleOf(int), Is.Even, and Is.Odd be exposed?


Question: Where are NUnit's built-in numeric constraints implemented, including a constraint that performs exact modulus checks for byte, sbyte, short, ushort, int, uint, long, and ulong values while failing rather than throwing for non-integral values?


Question: Where does ConstraintExpression define fluent parameterized constraints and shorthand properties, including support for Is.Not.MultipleOf(3).And.Even and the Even/Odd inversion behavior?


Question: Where do constraint constructors validate positive integer arguments with Guard.ArgumentInRange or similar guards, and how do they produce descriptions such as MultipleOf(3)?


Question: Where is OSPlatformTranslator implemented, including translation of System.Runtime.Versioning.OSPlatformAttribute into NUnit PlatformAttribute constraints?


Question: Where does the result-summary traversal enter nested test-suite elements and initialize or reset its counters?


Question: Locate the production implementation of http.send caching, including the distinction between intra-query caching and server-mode caching.


Question: Where does topdown/http validate http.send parameters such as force_cache and force_cache_duration_seconds before selecting a caching path?


Question: Where does opa eval handle evaluation errors with prettyError before rendering the selected output format?


Question: Where does opa eval render partial evaluation results, including partial query bodies and support modules?


Question: Where is the opa eval --format flag defined and how are output formats such as pretty and json dispatched for partial evaluation?


Question: Where is the production response recorder or HTTP middleware that captures response bodies and decides whether the logged payload is compressed, binary, or ordinary text?


Question: Where does the API server have access to the selected handler's response headers or encoding when constructing debug logs, so uncompressed endpoints retain their real `resp_body`?


Question: Where is the existing comprehension-term rewriting mechanism that generates collision-free locals such as __local0__ and tracks them per module or query?


Question: Where does the compiler recursively rewrite dynamic terms inside arrays, objects, sets, and function-call arguments?


Question: Where is the compilation pipeline ordered so reference resolution and comprehension-term rewriting occur before dynamic-term extraction and safety checks?


Question: Where is the compiler pass that rewrites dynamic refs and comprehensions in query expressions into fresh local variables with inserted equality bindings?


Question: Find the topdown evaluation code that constructs, initializes, resets, or passes bindings while preserving the existing bindings API.


Question: Find topdown evaluation code on the binding Get and Put hot paths whose behavior must remain unchanged while the backing store is optimized.


Question: Where are topdown binding keys converted from *ast.Term to ast.Var, and how is the internal value struct updated or compared?


Question: Where does FindDefinition fall back to the first definition of a bare variable in function arguments or a rule body when no rule or import matches, without returning ErrNoMatchFound?


Question: Where is the opa eval CLI's --explain and --partial option parsing and eval-option construction implemented, including the --disable-indexing flag?


Question: Where are rewritten variables mapped back to user-written names and source locations for VarMetadata and LocalMetadata?


Question: Where are AST source locations attached to evaluation trace events so JSON output includes file, row, and column information?


Question: Where does rule indexing determine which rules are evaluated, and how can an eval option disable indexing for normal and partial evaluation?


Question: Where is hasRootsOverlap implemented, including root conflict detection and construction of the human-readable overlap errors?


Question: Where is the bundle store activation path that invokes hasRootsOverlap to validate roots across active bundles?


Question: Where are the internal hash-table key probes and equality checks used by Set.Contains, Set.Add, and set intersection, including Null, Boolean, String, Var, and Number fast paths with Compare fallback?


Question: Where does the object implementation perform key probes for Object.Get and Object.Insert, including scalar equality and the integer-short-circuit and big.Float paths for Number keys?


Question: Where is Number.Equal implemented, and what code defines numeric equality for values such as json.Number "1" and "1.0"?


Question: Where does the ast package implement String() for sets, and how are set elements traversed when constructing the output?


Question: Where is the AST Object string representation built, including the iteration over its keys and values?


Question: Where does `opa fmt` decide whether to print formatting results or suppress output when `--fail` is used, including the standalone `--fail` behavior?


Question: Where is the production implementation of the `opa fmt` command's `--fail`, `--list`, and `--diff` flags, including how each option controls formatting output?


Question: Where are built-ins registered and looked up through RegisterFunctionalBuiltin1/2/3/4 and RegisterBuiltinFunc, so per-query overrides or fallbacks can preserve existing global registration behavior?


Question: Where does Query.Run propagate its context.Context through evaluation and into built-in calls?


Question: Where is the topdown Query type defined and how is query-scoped evaluation state configured before Query.Run, so callers can supply custom built-in names mapped to BuiltinFunc implementations?


Question: Where does the watch package use extractBaseRefs to compute base document dependencies for change notifications, so it can be replaced with dependencies.Base?


Question: Where should dependencies.Virtual(compiler *ast.Compiler, x interface{}) collect rule references and recursively include transitively depended virtual documents with sorted, deduplicated results?


Question: Where is the decision log plugin’s Stop path that drains buffered decision events to its configured remote service?


Question: Where does the runtime handle graceful shutdown and pass the configured GracefulShutdownPeriod into the plugin manager?


Question: Where does the plugin manager create the graceful-shutdown timeout context and invoke Stop on registered plugins?


Question: Where does the decision log plugin’s Log method buffer incoming events, and what synchronization protects logging while shutdown flushing is in progress?


Question: Where is the Metrics interface in the metrics package defined, including the operations for retrieving all metrics and timers?


Question: Where does the metrics implementation store accumulated timer data and look up or create timers?


Question: Where is Metrics All() implemented, including how the current metrics map is assembled?


Question: Where should the metrics implementation add a clear or reset operation that removes existing measurements so All() is empty and later timers start at zero?


Question: Where are ParserOptions.FutureKeywords checked against known and capability-allowed keywords, returning "unknown future keyword: <keyword>"?


Question: Where does dynamic discovery activate a downloaded configuration, and where should the first successful activation transition the discovery status from NOT_READY to OK?


Question: Where do the bundle plugin and other plugins use UpdatePluginStatus to publish named NOT_READY, OK, or ERROR states, including the discovery status name?


Question: Where is the discovery plugin created and initialized with an initial NOT_READY status through the plugin manager?


Question: Where does stopping the discovery plugin reset its named plugin-manager status to NOT_READY?


Question: Where does the discovery plugin start and detect that no downloader is configured so it can immediately publish OK?


Question: Where does storage/inmem validate transaction arguments across store operations and return a *storage.Error with storage.InvalidTransactionErr for stale or unknown transactions?


Question: Where does an in-memory store associate a transaction with its owning store instance and reject transactions created by another store as unknown?


Question: Where does the in-memory store create transactions and record whether they are still active or have been committed or aborted?


Question: Locate the `--bench` benchmark output path and its separation from pretty test-result rendering, so file headers are not applied to benchmark lines.


Question: Where are expression-level nil-type match errors generated and suppressed when a contained closure has a more actionable error, following the existing reference-error suppression logic?


Question: Where are the existing `environment_credentials` and `metadata_credentials` implementations of `awsCredentialService`, especially the cached `credentials()` expiration check and five-minute refresh pattern used by metadata credentials?


Question: Where are the REST plugin’s S3-signing configuration structures and exactly-one credential-method validation implemented, so `web_identity_credentials` is mutually exclusive with `environment_credentials` and `metadata_credentials`?


Question: Where does `awsCredentialService()` choose and wire the provider into `awsSigningAuthPlugin`, with precedence `environment_credentials` then `web_identity_credentials` then `metadata_credentials`?


Question: Where does the compiler rewrite dynamic references such as data.test.str into local variables and generated equality expressions?


Question: Where does OPA preserve with modifiers when compiler expressions are cloned or rewritten?


Question: Where is the equality factory used for dynamic rewriting, and how should the source expression's with modifiers be copied onto the generated assignment?


Question: Find the decision logs plugin construction or configuration path for accepting an optional metrics.Metrics provider while preserving event dropping when no provider is set.


Question: Find the discovery subsystem's plugin initialization and dependency wiring that supplies the same metrics.Metrics provider to both the status plugin and the decision logs plugin.


Question: Where does the initialized Runtime activate and process policy or watcher events while preserving runtime error handling?


Question: Where is the public blocking Runtime entry point for REPL mode, including the REPL banner and output handling?


Question: Where is Runtime.Start implemented, including policy loading, store setup, logging, watcher activation, and error-limit handling that should move into non-blocking initialization?


Question: Locate the OCI bundle registry authentication wiring that invokes the AWS signing plugin for ECR downloads.


Question: Find the production JSON-marshaling path for the OPA server metrics API that consumes metrics.All(), metrics.Timers(), or histogram.Value().


Question: Find where metrics.Timers() builds its returned timer map and how its known entry count can be used to avoid map-growth allocations.


Question: Locate planner code that turns module rules into callable functions grouped by package-and-rule ref, combines multiple bodies for one path into blocks, and appends a final return block.


Question: Locate the planner logic for data-headed query refs that emits a CallStmt with the input document as the first argument and uses the returned local for subsequent ref traversal instead of planRefScan.


Question: Locate the IR walker that traverses Policy contents and update it to visit Funcs in deterministic function-name order, including each function's blocks and statements.


Question: Where is the InterQueryCache implementation that owns the entry map, insertion-order eviction list, byte-size limit, and mutex?


Question: Where is inter_query_builtin_cache.max_size_bytes applied when the inter-query cache is created or configured?


Question: Where are the bundle download callbacks oneShot and process registered and invoked when a downloader stops?


Question: Where are covered source ranges tracked per file and matched against a rule head's actual start and end positions?


Question: Where does coverage handle inline rule heads whose head and body share a source line when the body never succeeds?


Question: Where are RSA private keys parsed and validated for signing, including PEM `BEGIN RSA PRIVATE KEY` PKCS#1 and unencrypted `BEGIN PRIVATE KEY` PKCS#8 formats?


Question: How does the server pass its inter-query cache into ordinary `v1/data` or other Rego evaluations, and where can the `system.authz` path be wired the same way?


Question: Where does OPA's partial evaluator handle rule heads expressed as references such as `p[x]` and construct the residual query?


Question: Find the code that names or remaps generated variables in residual partial queries without dropping constraints from reference rule heads and their bodies.


Question: Where does the bundle plugin validate that each resource has a matching service, and how should file:// resources bypass that requirement while non-file URLs remain unchanged?


Question: Where does bundle loading enforce signing, size_limit_bytes, and other source options for bundles read from disk?


Question: Where is the common bundle activation path that notifies registered listeners and bulk listeners after a bundle is loaded?


Question: Where are bundle resource URLs resolved and downloaded, and where should a file:// URL be read from its local filesystem path?


Question: Where does rego.Eval rewrite and evaluate direct multi-expression queries so a false comparison makes the query undefined instead of returning an empty result?


Question: Where are evaluation-time type checks and error construction for the existing regex and string built-ins, especially invalid regex patterns and non-string values in a replacement object?


Question: Where are the built-in declaration metadata and default built-in registry that expose `regex.find_all_string_submatch_n` and `strings.replace_n` to Rego and feed the policy-reference listing?


Question: Find the `http.send` string-extraction code that calls `(*ast.Term).String()` or strips quotes and rewrites escaped newlines instead of reading an `ast.String` value directly.


Question: Where does OPA resolve the IAM role name and retrieve credentials from the EC2 metadata endpoint at 169.254.169.254/latest/meta-data/iam/security-credentials?


Question: Where does caller-supplied `Compiler` configuration flow into the bundle produced by `Build()`, so root strings can be copied into the manifest without changing the unset behavior?


Question: Where are `Compiler` configuration fields and additive option methods implemented, especially methods that accept variadic values and concatenate them across calls?


Question: Where does `compile.Compiler.Build()` construct the output bundle and initialize its `.manifest`, including the point where manifest roots could be set?


Question: Where does the SDK's bundles helper track loaded bundle names and revisions, and how is that metadata exposed at evaluation time?


Question: Where are the OPA version string, VCS, timestamp, and hostname sourced or assembled for provenance response metadata?


Question: Where is pretty output for eval metrics and profiles rendered, including duration formatting, `--pretty-limit`, and the tables for aggregated percentile columns?


Question: Where does the `opa eval` command define its profiling options and execute the existing single-run `--profile` path that produces `metrics` and `profile`?


Question: Where are expression profile entries containing `ExprTimeNs`, `NumEval`, `NumRedo`, and `location` constructed and ordered so per-run expression times can be aggregated safely?


Question: Where are timer metrics such as `timer_rego_query_eval_ns` collected and reset, and where can the existing go-metrics `Histogram` statistics provide min, max, mean, percentiles, standard deviation, and count for aggregation?


Question: Where does the eval result get encoded as JSON with the current `metrics` and `profile` fields, so counted runs can emit `aggregated_metrics` and `aggregated_profile` instead?


Question: Locate the code that generates semantic errors for function references embedded in composite terms or assignment expressions.


Question: Where does the test runner aggregate and report per-test failures, including cancel or timeout errors, after continuing through the suite?


Question: Where is the current-version and update report payload assembled and sent so scheduling changes do not alter it?


Question: Where is version checking gated by its runtime enable/disable setting so disabled instances do not schedule checks?


Question: Where does the decision logs plugin implement oneShot batching of buffered logs into upload_size_limit_bytes chunks and sequentially upload them?


Question: Where is topdown.Instrumentation threaded through partial-evaluation state and the PrepareForEval path that evaluates a partial result?


Question: Where does partial evaluation perform saveUnify and the saveSet Contains or ContainsRecursive checks that need startTimer/stopTimer instrumentation?


Question: Where is the topdown partial-evaluation implementation for the inlining full-scan path where a partial rule iterates over data?


Question: Where does partial-evaluation code safely handle nil topdown.Instrumentation while emitting timer pairs?


Question: Locate the code that assembles and normalizes partial-evaluation output query sets so redundant constraints are removed without dropping useful equality constraints.


Question: Where does the REPL parse and dispatch `show`, preserve the no-argument active-module output, and reject unsupported arguments?


Question: Where do the REPL `trace`, `metrics`, and `instrument` commands store and toggle their debugging flags?


Question: Where does REPL command code format structured output as well-formed JSON for programmatic consumers?


Question: Where is the REPL built-in help text or command registry defined so the `show debug` subcommand can be advertised?


Question: Where are the evaluator implementations of `unifyIterator` and `evalIterator`, including the branch that iterates array elements for expressions such as `input.foo[_] == "some_value"`?


Question: Where are bindings undone after each iterator element, particularly in the array path, to prevent bindings leaking into the next element?


Question: Where does the evaluator emit unification trace events for each array element, and which iteration path must preserve those events?


Question: Where is NumberToFloat defined, and how does it convert numeric values for the sum and product built-ins?


Question: Locate the production JSON marshal and unmarshal implementations used by pdata traces, metrics, logs, and profiles, including resource EntityRef preservation.


Question: Where are distinct extension, receiver, processor, exporter, and service unmarshal error codes defined and wrapped instead of errUnknownType and errUnmarshalTopLevelStructureError?


Question: Where is the shared unmarshal helper for receiver, processor, exporter, and extension maps implemented and wired, including component lookup and default decoding?


Question: Where does Config validation check the service extensions, pipelines, and telemetry after the service section is decoded?


Question: Where does the Prometheus receiver’s pdata metric-family logic update ordered label keys and compute a deterministic group key for metricFamilyPdata, paralleling metricFamily.getGroupKey?


Question: Where does loadMetricGroupOrCreate initialize the embedded metricGroup, and how are its ls and ts fields mapped to the supplied labels and timestamp without being swapped?


Question: Where does the Prometheus receiver derive scrape-target metadata from the scrape configuration and attach it as resource attributes to scraped metrics?


Question: Where is configmapprovider.NewFile implemented, including the file retrieval and YAML parsing path that produces a *config.Map?


Question: Where is configmapprovider.NewInMemory implemented and how does it expose in-memory config maps through the provider interface as an alternative to the removed constructors?


Question: Where does the configsource manager parse YAML snippets via NewMapFromBuffer, and where should that path unmarshal YAML then call config.NewMapFromStringMap?


Question: Where is the production YAML-to-flat-key config.Map conversion that preserves the semantics of the removed file and buffer helpers?


Question: Where are the OpenCensus trace and metrics raw export methods and their shutdown or error callbacks that should be wrapped by exporterhelper.NewTraceExporter and NewMetricsExporter?


Question: Where is the OpenCensus exporter factory and configuration defined, including sending_queue and retry_on_failure mapped to exporterhelper QueueSettings and RetrySettings?


Question: Locate the shared error aggregation and warning-logging logic that distinguishes non-panicking NewExporter/NewReceiver from panic-on-error MustNewExporter/MustNewReceiver.


Question: Where is the runtime host wrapper around component.Host that is passed to extensions and adds fatal-error logging?


Question: Where should the host wrapper use a type assertion to forward RegisterZPages(mux *http.ServeMux, pathPrefix string) to an underlying host that supports it while leaving component.Host unchanged?


Question: Where do the configgrpc option-building helpers unwrap generic client and server options into ordered []grpc.DialOption and []grpc.ServerOption slices?


Question: Where does configgrpc implement ClientConfig.ToClientConnWithOptions while keeping deprecated ToClientConn as a raw grpc.DialOption adapter that wraps each option and delegates?


Question: Which production call site in the OTLP exporter passes a user-agent grpc.DialOption to ClientConfig.ToClientConn and needs to switch to the wrapper plus ToClientConnWithOptions?


Question: Where does configgrpc implement ServerConfig.ToServerWithOptions while keeping deprecated ToServer as a raw grpc.ServerOption adapter that wraps each option and delegates?


Question: Which production call site in the OTLP receiver passes raw grpc.ServerOption values to ServerConfig.ToServer and needs to switch to the wrapper plus ToServerWithOptions?


Question: Find the exporterhelper production code that splits metrics export requests to enforce a maximum byte size.


Question: Where are the factory functions and registration wiring for the four example components that must preserve their external API after lifecycle-state embedding?


Question: Where are the ExampleReceiver, ExampleProcessor, ExampleExporter, and ExampleConnector implementations that duplicate Started/Stopped fields and lifecycle methods and should embed the shared state type?


Question: Where should the higher-level fields `Signal`, `ID`, `Telemetry`, and `MergeCtx` be grouped in an `AllSettings` type that embeds `queuebatch.Settings`?


Question: Where are the `WithQueueBatch`-style helpers implemented, and which signatures should change to accept the base `queuebatch.Settings` type?


Question: Where is QueueSettings defined for exporter buffering and retry, including enabled, queue_size, default construction, and reusable validation?


Question: Where does the OTLP exporter configuration Validate() method validate QueueSettings and return a descriptive error for an invalid queue_size?


Question: Find the sizing abstraction used by log extraction so item-count and serialized-byte batch limits share the implementation without changing count-based behavior.


Question: Which production OTLP HTTP exporter code paths call composeSignalURL for traces, metrics, and logs, and need to pass the v1 signal version?


Question: Where is composeSignalURL implemented in the OTLP HTTP exporter, and where does it hardcode the /v1/ signal path?


Question: Find the profiles request construction and merge/split code that ensures ItemsCount remains correct after resource profiles move between requests.


Question: Where are OTLP HTTP exporter client-construction errors, including invalid compression settings, returned during Start rather than creation?


Question: Where are extensionauth.NewClient and extensionauth.NewServer implemented, including the concrete authenticator construction logic that should return nil errors?


Question: Where are the deprecated auth.NewClient and auth.NewServer wrappers defined, and how do they delegate to extensionauth constructors while preserving their object-only signatures and handling unexpected errors?


Question: Where are the LoggerProvider and noopLoggerProvider abstractions defined and used in production telemetry factory or shutdown code?


Question: Where is the service-level wrapping of a zap.Logger with componentattribute.NewConsoleCoreWithAttributes and NewOTelTeeCoreWithAttributes implemented?


Question: Where are the Permanent error type or constructor and the IsPermanent classification helpers defined?


Question: Where are the model/otlpgrpc definitions of TracesRequest, TracesResponse, MetricsRequest, MetricsResponse, LogsRequest, and LogsResponse alongside their existing JSON and protobuf serialization code?


Question: Where does receiver/otlpreceiver use the otlpgrpc standalone protobuf or JSON unmarshal functions, and how should those callers switch to methods on the request and response structs?


Question: Where does exporter/otlphttpexporter use the otlpgrpc standalone marshal or unmarshal functions, and how should those callers switch to methods on the request and response structs?


Question: Where is the production pmetric JSON unmarshalling code that defines jsonUnmarshaler's private read* helpers and calls them from the unmarshalling entry points?


Question: Where does the ptrace JSON unmarshaler implement readTraceData and readResourceSpans as package-level helpers, providing the pattern for metrics and logs?


Question: Where are receiverhelper ScraperConfig and ScraperOption implemented, including collection intervals, initialize and close hooks, stop handling, and lifecycle error aggregation?


Question: Where should a receiverhelper scraper returning pdata.MetricSlice wrap that slice in default resource and instrumentation library metrics before sending it to the MetricsConsumer?


Question: Where are DataSender implementations and endpoint callers wired so tcp or udp is propagated to the agent health check?


Question: Where is the DataSender interface and GetEndpoint contract defined, including how the sender network type and address are returned?


Question: Locate the batch processor’s internal metric batch state and the code that assembles or flushes it using the current internal/data representation.


Question: Where is TelemetrySettings.MeterProvider assigned and passed into service components, and how is ownership of the process-metrics registry and reader servers established?


Question: Where is the service's final Shutdown path, and how does it type-assert the meter and tracer providers to an interface exposing Shutdown(context.Context) error before invoking them?


Question: Where is telemetryInitializer implemented, and how does it construct the metric.MeterProvider together with the OpenCensus registry and metric-reader HTTP servers?


Question: Where is configauth.ServerAuthenticator defined alongside DefaultGRPCUnaryServerInterceptor and DefaultGRPCStreamServerInterceptor, and where should an analogous HTTP interceptor call Authenticate with request headers and propagate the authenticated context?


Question: Where is confighttp.HTTPServerSettings defined and where is the HTTP server constructed so an optional Auth *configauth.Authentication can be resolved and its middleware applied to every request before the handler?


Question: Where are the embedded child types used by mdatagen metric data decoded and validated for required fields and valid enum values?


Question: Where are NewTraces, Traces initialization, and resource-spans ownership or replacement logic implemented for an initialized receiver?


Question: Where is the production implementation of pdata.Traces and its ToOtlpProtoBytes serialization into an ExportTraceServiceRequest, so the inverse byte unmarshalling can live alongside it?


Question: Where does pipeline validation resolve receiver and exporter references against configured receivers, exporters, and connectors, and report missing connector references as "not configured"?


Question: Where is the OTLP HTTP exporter’s default client configuration constructed, including the nil assignments for MaxIdleConns, MaxIdleConnsPerHost, MaxConnsPerHost, and IdleConnTimeout?


Question: Where is the persistent queue type that holds duplicated capacity, marshaler, unmarshaler, and storage fields and forwards Offer, Size, and Capacity through thin wrappers, rather than embedding the contiguous storage?


Question: Where are readIndex, writeIndex, and itemsCount maintained in persistent contiguous storage, and how does its locked Size calculation derive writeIndex minus readIndex?


Question: Where are persistent contiguous storage construction and the queue's Start path wired, including replacing fresh storage construction with a start step that assigns storage.Client and initializes persistent state?


Question: Where is the production stopStorage helper defined and used, and how does it accept a storage.Client rather than *persistentContiguousStorage?


Question: Where does persistent contiguous storage's Offer method invoke Batch, and how is the caller's context.Context forwarded instead of replaced by context.Background()?


Question: Where are the deprecated Server aliases and GRPCServer interface declarations for the three OTLP signal packages defined, so the registration-function deprecation can follow the same compatibility pattern?


Question: Where is the OTLP metrics gRPC server registration API implemented in pmetricotlp, including RegisterGRPCServer and the deprecated RegisterServer compatibility wrapper?


Question: Where is the OTLP traces gRPC server registration API implemented in ptraceotlp, including RegisterGRPCServer and the deprecated RegisterServer compatibility wrapper?


Question: Which production components call the OTLP RegisterServer functions to wire gRPC services, and where should those calls be migrated to RegisterGRPCServer?


Question: Where is the OTLP logs gRPC server registration API implemented in plogotlp, including RegisterGRPCServer and the deprecated RegisterServer compatibility wrapper?


Question: Locate the persistent queue batchStruct helper and its methods that wrap storage-client Batch operations and serialize read/write indices and item identifiers.


Question: Where is the exporterhelper persistent queue implementation that manages enqueue/dequeue ordering, capacity, restart recovery, and graceful shutdown?


Question: Where does service/internal/fanoutconsumer implement the clone dispatch path for traces, metrics, and logs, and how does it create an independent mutable copy for each downstream consumer?


Question: Where is the pmetricotlp rawMetricsServer wiring defined, and how is its srv field typed relative to the canonical GRPCServer interface versus the deprecated Server alias?


Question: Where are the batchProcessor, batcher, shard, and batch abstractions that currently pass any through the batching pipeline, including item addition, export, splitting, sizing, timeout, and shard handling?


Question: Where are newBatchTracesProcessor, newBatchMetricsProcessor, and newBatchLogsProcessor defined, and how does factory.go wire them to return the signal-specific processors?


Question: Where is featuregate.Gate defined with the GetStage, GetReferenceURL, and GetRemovalVersion accessors that should become Stage, ReferenceURL, and RemovalVersion?


Question: Which production code calls Gate.GetStage, Gate.GetReferenceURL, or Gate.GetRemovalVersion and must be updated to the renamed accessors?


Question: Where does `NewContext` store authenticator-enriched `client.Info` in the context, and where is that information retrieved downstream?


Question: Where do `FromGRPC` and `FromHTTP` construct `client.Info` values with positional struct literals that must remain valid after adding `Auth`?


Question: Where is the collector's effective telemetry resource assembled at startup, including generated service.name, service.version, and service.instance.id alongside configured attributes?


Question: Where is the effective telemetry resource passed into the default JSON stdout logging core so internal log records contain a structured resource object rather than the raw resource configuration?


Question: Where do the registered process collectors make gopsutil queries for CPU seconds, RSS memory, and uptime, and how is one selected proc root carried through all of those calls for the metrics' lifetime?


Question: Where does the Kafka exporter select the default otlp_proto encoding and construct its TracesMarshaler, MetricsMarshaler, and LogsMarshaler?


Question: Where do otlpTracesPbMarshaler, otlpMetricsPbMarshaler, and otlpLogsPbMarshaler call ToOtlpProtoBytes and wrap the bytes in sarama.ProducerMessage values?


Question: Where does internal resource data generation and other production code consume the old cloud semantic-convention constants or string keys, so references use `cloud.availability_zone` and `cloud.platform`?


Question: Where is the OpenCensus-to-OTLP resource translator that maps the legacy OpenCensus zone label to the `cloud.availability_zone` resource attribute?


Question: Where is the OTLP-to-OpenCensus resource translator that maps `cloud.availability_zone` back to the legacy OpenCensus zone label key?


Question: Where do `ZipkinDataSender`, `JaegerGRPCDataSender`, and OTLP-based testbed senders construct exporters and explicitly disable retry and `sending_queue` for synchronous delivery?


Question: Where does the Zipkin exporter declare support for the `retry_on_failure` and `sending_queue` configuration fields using standard `exporterhelper` settings?


Question: Where does the Zipkin exporter factory assemble its default configuration with the default retry and sending-queue settings?


Question: Which code checks whether a counter metric name already has the `_total` suffix without panicking when the name is shorter than the suffix?


Question: Where are the existing default file, environment, YAML, and other confmap providers and converters assembled when neither ConfigProvider nor ConfigProviderSettings is supplied, for both direct and command-based startup?


Question: Where does the otelcol Windows service handler start the Collector and apply ConfigProvider versus ConfigProviderSettings precedence, including --config URI overrides and preservation of custom providers and converters?


Question: Where do Read and OnProcessingFinished reduce queue size, and how should those paths wake producers waiting in blocking Offer mode?


Question: Where are memoryQueueSettings and persistentQueueSettings defined, and how are their internal queue options passed into the memory and persistent queue implementations?


Question: Where are the memory and persistent exporter queues shut down, and how does Shutdown notify blocked Offer calls so they can exit gracefully?


Question: Where does the persistent exporter queue implement Offer and enforce capacity, so blocking producers can wait for space with context cancellation?


Question: Where are the batcher’s size and timer flushing, request merging, and shutdown-draining paths implemented so they remain unchanged when requests use a synchronous queue?


Question: Where does exporterhelper decide whether to wrap the batcher in a queue based on batching and `queue.enabled`, including the case where batching requires a queue even when queueing is disabled?


Question: Where does the batcher initialize and acquire its worker pool from `queue.NumConsumers` or `maxWorkers`, and avoid both allocation and token acquisition when `maxWorkers == 0`?


Question: Locate the filter-expression code that reads metric labels with pdata.StringMap.Get, returns an empty string for missing labels, and checks label existence separately with HasLabel.


Question: Where does config loading call CreateDefaultConfig for receivers, exporters, processors, and extensions and expand those defaults before merging user-provided component configuration?


Question: Where is the existing YAML configuration environment-variable expansion implemented for $VAR, $$VAR, and missing variables?


Question: Where is LogStabilityLevel currently implemented and called while receivers, processors, and exporters are assembled during pipeline construction?


Question: Where is StabilityLevel declared, including the Unmaintained, Deprecated, InDevelopment, Alpha, Beta, Stable, and Undefined values?


Question: Where are the PUT /metadata/settings and POST /metadata/settings API handlers implemented, including the 403 response with "Metadata settings endpoints are disabled." when metadata settings edition is disabled?


Question: Where do EmailPreviewFactory::buildSingleEmailDigest and buildMultipleEmailDigest transfer every email_queue entity ID, including IDs from unsaved entities, into the in-memory EmailDigest?


Question: Where does EmailDigest store and expose the queue ID collection through getEmailIds(), including all IDs covered by a per-recipient summary digest?


Question: What production code selects an existing admin user's ID for both created_by and modified_by when generating a dummy metadata key?


Question: Where does the Passbolt/Log audit-log code determine action success or failure from the HTTP response status, particularly for the AuthLogin.loginPost action?


Question: Where does cleanupHardDeletedUserGroups apply the $entryIds exclusion so relations with parent_key in that list remain untouched?


Question: Where do the Azure SSO controller actions stage1, stage1DryRun, triage/stage2, and login receive AbstractSecureCookieService?


Question: Where are AbstractSsoService's constructor and clearStateCookie/createHttpOnlySecureCookie implemented, including the manual Cookie and Router::url('/sso') construction?


Question: Where is the existing SSO state-cookie creation and expiration behavior defined so the refactor retains its current expiry semantics?


Question: Where are SsoAzureService instances constructed by the Azure SSO actions, and how are their required AbstractSecureCookieService dependencies forwarded?


Question: Where is missing directorySync configuration handled, and how is the fieldsMapping repair made idempotent when migrations run more than once?


Question: Where does ContentSecurityPolicyMiddleware construct the default Content-Security-Policy header with default-src, script-src, style-src, img-src, frame-src, and the new frame-ancestors 'none' and form-action 'self' directives?


Question: Where can the EE WebInstaller query the Users table for the first existing admin when user.user_id is missing from the installer session?


Question: Where is the EE WebInstaller importSubscription step implemented, including the installer-session user.user_id lookup and subscription save?


Question: Where is the production PHP implementation of EditionManager, including its edition defaults, CE/Pro constant definitions, bootstrapper mapping, and isPro() logic?


Question: Where does the 500-error logging path pass the exception trace through context using JsonTraceFormatter::TRACE, while leaving API error responses unchanged?


Question: Where is DefaultLogger implemented or used as a thin wrapper around Cake\Log\Log::write, and what production code depends on it?


Question: Find the production code that creates secret access records from resource secret values and supports both Secret entities and array-access data.


Question: Where is the controller for POST /tags/{resourceId}.json that normalizes the request body, loads the resource and access control, validates tag data, and delegates tag addition?


Question: Where do resource tag patching and validation distinguish v4 cleartext and v5 encrypted tags so v4-only, v5-only, and mixed tag setups remain compatible?


Question: Where does the FoldersPlugin bootstrap register folder email redactors or digest templates so passbolt email_digest send can discover the folder digest?


Question: Where does EntitiesHistoryTable define associations or persistence handling for foreign_model and foreign_key records, including SecretRevisions?


Question: Where does EntitiesHistoryCreateService configure history entries for domain models, including the foreign_model, foreign_key, CRUD_CREATE, and action_log_id values needed for SecretRevisions?


Question: Where does ActionLogsModelListener register entity-history relationships for Resources, Secrets, and SecretsHistory, and how should SecretRevisions be registered alongside them?


Question: Where does ActionLogsUsernameQueryStrategy construct successful password_access entries from entity history, including the authenticated user context and resource ID, name, username, and URI?


Question: Where does ActionLogsUsernameQueryStrategy construct share entries from permissions history and format user and group permission descriptions in the context string?


Question: Where is AccountRecoverySetupComplete's production request validation implemented, including BadRequestException checks for mandatory policy, approved or rejected user status, and private-key/password backup data?


Question: Where does AccountRecoveryOrganizationPolicy interpret disabled and mandatory policy states, and where should dedicated isDisabled() and isMandatory() helpers replace raw constant comparisons?


Question: Where does AccountRecoveryRecoverStartService instantiate AccountRecoveryOrganizationPolicyGetService with ServerRequest, so that the request argument can be removed?


Question: Where does AbstractAccountRecoveryOrganizationPolicySetService instantiate AccountRecoveryOrganizationPolicyGetService, and how can it use the parameterless constructor instead of passing ServerRequest?


Question: Where is EditionManager implemented and where does it define or consume EditionManager::EDITION_CE and EditionManager::EDITION_PRO, so the edition literals can move to EditionDto?


Question: Where does SyncAction::formatDirectoryData convert directory_created and directory_modified values, and where should get_class() be guarded with an object check for ISO date strings or null?


Question: Where does GroupsCommand initialize $this->model before executing the directory sync action so error-suppression instructions use --model=Groups?


Question: Where does UsersCommand initialize $this->model before executing the directory sync action so error-suppression instructions use --model=Users?


Question: Find the production user share-search query behind `/share/search-users/resource/{id}.json?filter[search]=…` that applies a wildcard-wrapped, case-insensitive filter to `Users.username`, `Profiles.first_name`, and `Profiles.last_name`.


Question: Find the production group share-search code that filters `Groups.name` case-insensitively with the same `%term%` pattern.


Question: Where is the SMTP security configuration flow that treats an absent or empty passbolt.plugins.smtpSettings.security value as the default SSL settings rather than validating it as custom options?


Question: Where does CustomSslOptionsSmtpSettingsHealthcheck invoke custom SSL option retrieval and convert a BadRequestException into a failed ERROR-level healthcheck with an invalid custom SSL configuration message?


Question: Where is _logSecretAccesses implemented, and how does it consume the limited revision collection returned by the secret-revisions resource controller without assuming the full history is present?


Question: Where does SecretRevisionsSettings.maxRevisions get loaded and interpreted, including the semantics that 1 means active-only and larger values allow maxRevisions - 1 deleted revisions?


Question: Where is the /resources/{resourceId}/action-logs endpoint wired to the Pro AuditLog finder and results parser, and how are independently returned entries from the same action log preserved?


Question: Where is the production mapping from EntitiesHistory foreign_model and CRUD values to resource action-log timeline types implemented, including the coexistence of legacy secret-history events and new SecretRevisions events?


Question: Where does the Pro AuditLog resource action-log finder build and union the subqueries for permission histories, resource updates, secret accesses, and secret histories, and where should EntitiesHistory join SecretRevisions for the target resource?


Question: Where is pagination sorting for user last_logged_in implemented, including the remapping from the requested sort key to the computed Users__last_logged_in value?


Question: Where is GET /directorysync/settings.json implemented, including serialization that omits delete_user_behavior when no valid value is saved?


Question: Where is PUT /directorysync/settings.json handled, including validation of delete_user_behavior to only delete or disable and clearing the setting when the field is omitted?


Question: Where is the directory sync configuration mapped and persisted between the API field delete_user_behavior and the stored deleteUserBehavior value?


Question: Where is the production integration with the lorenzo/cakephp-email-queue plugin that controls email headers and disables automatic Message-ID generation?


Question: How do ResourcesShareService::share() and shareDryRun() share the common resource validation path so a missing or deleted resource type is rejected in both operations?


Question: Where does the metadata setup handler produce a JSON object containing only enable_encrypted_metadata_on_first_admin_account_activation?


Question: Where can production code query all users, including disabled and deleted users, and obtain their total count?


Question: Where are subscribed edition email redactors registered in EditionRedactorPool::getSubscribedRedactors(), and how is a new event listener wired into that pool?


Question: Where is the resources endpoint's `filter[has-parent]` implementation, including the query that selects resources belonging to a folder?


Question: Locate SmtpSettingsGetService::getSettings() and the logic that returns db, file, or env as the SMTP settings source.


Question: Where is the production implementation of `./bin/cake passbolt healthcheck --application` that emits `[WARN] Registration is open to everyone.` from `passbolt.registration.public`?


Question: Where does SubscriptionImportCommand load and validate subscription key data before performing the subscription import?


Question: Where is the Passbolt subscription_import CLI command defined, including the existing --file option and SubscriptionImportCommand handler?


Question: Where does JWT authentication invalidate active `AuthenticationToken` records of type `refresh_token` while leaving `login` tokens and already inactive tokens unchanged?


Question: Where does the JWT authentication plugin automatically register event listeners so edition-downgrade handling requires no manual wiring?


Question: Where is SecretRevisionsSettingsGetService::ORG_SETTING_PROPERTY declared and used to load the secret-revisions organization setting, and what production code should reuse that key for deletion?


Question: Which production handlers enforce administrator authorization and JSON requests for settings endpoints, including authentication, forbidden, and "not JSON" errors?


Question: Where are the web installer and administration-panel SMTP configuration forms defined, including the optional Client text field and its request mapping?


Question: Where are SMTP settings normalized and persisted alongside host, port, tls, username, and password, including defaulting a missing client key to null?


Question: Where does normal outgoing email construct the production SMTP transport from saved SMTP settings and pass client as the SMTP HELO or EHLO identity?


Question: Where does the Passbolt/Tags.ResourcesTags model register the named cleanup task for “Duplicated ResourcesTags”?


Question: Where is the organization account recovery policy update operation implemented, including transitions from a non-disabled policy such as opt-out to mandatory?


Question: Which production service or data-access code handles cleanup of stale rejected account recovery settings during organization policy updates?


Question: Where is the EditionOrganization setting represented and persisted, including its CE/PRO values and system zero-UUID authors?


Question: Where are version 5.13.0 migrations implemented so edition population can be invoked while errors are logged and upgrades continue?


Question: Where can the public registration endpoint return a 404 with an unavailable-registration message when passbolt.security.preventEmailEnumeration is enabled?


Question: Where is the production configuration and endpoint guard logic that can conditionally hide recovery-user existence without changing internal recovery-token generation?


Question: Where is POST /users/register.json implemented and routed, including the current public self-registration behavior?


Question: Where does the digest sender select and lock email records, then mark them sent or unlock and retry failed records while preserving transactional error handling?


Question: Where are metadata health checks defined with the metadata domain, error severity, and legacy key canDecryptMetadataPrivateKey, including the server metadata private-key success and failure messages?


Question: Where is the metadata health-check domain constant defined and how are domain checks exposed through both ./bin/cake passbolt healthcheck and the status page?


Question: Where is the latest non-deleted MetadataKeys record for a server private key selected using user_id NULL and then decrypted with the configured server GPG key?


Question: Find the metadata-domain healthcheck registration and wiring that makes a healthcheck visible through both the health endpoint and CLI.


Question: Where is SelfRegistrationBaseSettingsForm defined, including supported-provider validation, the messages “The provider should not be empty.” and “The data should not be empty.”, and execute() defaults for missing provider and data?


Question: Where is SelfRegistrationEmailDomainsSettingsForm defined, including allowed_domains validation for missing or empty lists, non-array input, and zero-based invalid-domain messages such as “The domain #1 should be a valid domain.”?


Question: Where does saveSettings() persist the OrganizationSetting and construct the successful response with id, provider, sanitized data, created, modified, created_by, and modified_by instead of returning the entity?


Question: Where is the service or endpoint implementation for POST /self-registration/settings.json that reads $data['provider'], selects SelfRegistrationEmailDomainsSettingsForm or the base fallback, and avoids BadRequestException for missing or unsupported providers?


Question: Where are database dump commands currently assembled with shell redirects, and how is the destination file opened so filenames are passed literally rather than interpreted by a shell?


Question: Where are the sql_export and mysql_export dump helpers wired to the database-specific dump functions and target filename handling?


Question: Where is CommandRunner::run implemented, including process execution and an optional callback for receiving stdout and stderr chunks incrementally?


Question: Where is the production code path that records an entity_history row when a resource update creates a secret revision, with foreign_model set to SecretRevisions and crud set to create?


Question: Where are the EntitiesHistory entity associations defined, and where should a belongsTo relationship to SecretRevisions be added for joining revision history data?


Question: Where does ActionLogsModelListener configure associations based on modelName, and where should SecretRevisions receive the same action-log association handling?


Question: Where are SecretRevisionsTable associations configured, and where should the named belongsTo Resources association SecretRevisionsResources be defined to avoid ambiguity in nested queries?


Question: Where is the EntitiesHistoryCreateService action-to-entity mapping for ResourcesAdd.addWithSecrets and other actions that create new secret revisions, including SecretRevisions alongside Secrets?


Question: Where are installer SMTP form values mapped into persisted email configuration, particularly preserving null credentials instead of empty strings for unauthenticated SMTP?


Question: Where is the web installer email form rendered with the SMTP fields and authentication method selector, including the field names and default username_and_password option?


Question: Where does the web installer EmailController process EmailConfigurationForm and apply the validate => 'webInstaller' validation set?


Question: Where is EmailConfigurationForm implemented, including ALLOWED_AUTH_METHODS and required validation of authentication_method, username, and password?


Question: Where is InstallationController's install action wired with its installer dependencies, and how can the permission service be supplied through dependency injection rather than created internally?


Question: Where does WebInstaller::install() invoke the config permission step in the installation sequence after config writing and cleanup?


Question: How does GaussianHMM construct and combine observation Gaussian potentials during log_prob, including event shapes and normalization terms for diagonal Normal observations?


Question: Where are Gaussian potential constructors and operations defined that support vector or diagonal parameters needed to make Independent(Normal, 1) numerically match a diagonal MultivariateNormal?


Question: Where is MultiViewTensor defined and consumed by the ELBO or trace machinery, and which production uses become obsolete after introducing plate-aware per-site log_r?


Question: Where is iarange_info recorded and propagated through trace construction so ordinary traces as well as trace-graph traces retain plate and subsampling metadata?


Question: Where does the production Trace_ELBO path handle parallelized iarange subsampling and propagate its score-function gradient through stochastic sites?


Question: Where is the state dictionary passed through model.init, model.step, and the corresponding guide methods, including validation that state tensors have a leading num_particles dimension?


Question: Where are get_values_and_log_weights() and get_empirical() implemented, including logic to report the current state keys rather than historical latent variables?


Question: Where does SMCFilter maintain the _values dictionary and resample particle state after each step so only current tensors are retained?


Question: Where should a standalone script under examples/ load the Efron–Morris baseball batting data and define complete-pooling, no-pooling, and partial-pooling hierarchical models?


Question: Where is TracePredictive used or implemented to generate posterior predictive samples and compute log predictive density?


Question: Where does Empirical finalize and expose stored samples and log weights, and where should a get_samples_and_weights method be added?


Question: Which existing Pyro examples demonstrate running hierarchical models with MCMC and NUTS and printing summary statistics for latent parameters and predictions?


Question: Find the OED EIG estimator implementations, including dons ker_varadhan_eig, that invoke EwmaLog or combine its state with model outputs on CPU and CUDA.


Question: Where is the shared einsum backend implemented, including cached transpose, tensordot, and einsum results returned as ordinary tensors?


Question: Where are tensor operands saved under a 'tensor' cache entry before hashing their id() values to prevent tensor-id recycling false cache hits?


Question: Where is `DiscreteHMM` implemented, especially its handling of homogeneous (`num_steps=1`) versus heterogeneous time-varying parameters, batch/event shapes, and parallel `log_prob`?


Question: Where is `_sequential_gaussian_tensordot` defined or used to parallelize exact Gaussian marginalization over time while retaining gradients through `log_normalizer`?


Question: Where do HMM distributions override `expand(batch_shape)` to expand only the initial factor while preserving optional time-varying transition and observation parameters?


Question: Where are `Gaussian` canonical-form operations for the affine map `y = x @ matrix + mvn.sample()` implemented, including block `precision`, `info_vec`, broadcasted batch shape, and `log_normalizer`, so `matrix_and_mvn_to_gaussian` can form a joint over `(x, y)`?


Question: Where should `GaussianHMM` combine `initial_dist`, `transition_matrix`, `transition_dist`, `observation_matrix`, and `observation_dist` with common batch broadcasting, optional leading time dimensions, event shape `(num_steps, obs_dim)`, and exact marginal `log_prob`?


Question: Where does `pyro.module()` register module parameters in the parameter store under namespaced keys, and where is the namespace divider defined?


Question: Where is `sync_module` defined, including its docstring, construction of the target module state, and return of the passed `nn.Module`?


Question: Where are parameter-store save, clear, and load operations implemented for restoring separately registered module parameters before `sync_module` is called?


Question: Where is the SVI-compatible `Trace_MMD` ELBO-style loss implemented, including standard ELBO constructor options and the `loss`, `differentiable_loss`, and `loss_and_grads` interface?


Question: Where do existing ELBO objectives call `get_importance_trace("flat", ...)` and use `model_site['is_observed']` to separate observed log likelihood from latent-site terms?


Question: Where should `_compute_mmd(X, Z, kernel)` evaluate `pyro.contrib.gp.kernels.Kernel` pairwise terms for `E[k(X,X)] + E[k(Z,Z)] - 2 E[k(X,Z)]`?


Question: Where are the ring operations used by ubersum implemented, especially Ring.global_local and its sumproduct calls that trigger tracer warnings?


Question: Where is the tensor dimension and index bookkeeping in ubersum defined, and how can it remain traceable without changing reduction behavior?


Question: Where do the cjs.py capture-recapture and hmm.py hidden Markov model examples define the --tmc and --tmc-num-samples command-line options and select between TraceEnum_ELBO and TraceTMC_ELBO?


Question: Where are `pyro.optim.ExponentialLR` and `pyro.optim.LambdaLR` wired to construct the wrapped PyTorch optimizer and `_LRScheduler` used by SVI?


Question: Where does `SVI.step()` dispatch gradients through `PyroOptim` or `PyroLRScheduler` and clear them after the parameter update?


Question: Where is detach_iterable defined and used in production inference code, and what code should migrate its tensor/list-only behavior to the general detach() helper?


Question: Where can pyro.module emit a UserWarning for each non-trainable parameter it skips?


Question: Where is the Pyro KL-registration layer for torch.distributions.kl_divergence, and how is it imported automatically when pyro.distributions is loaded?


Question: Where are existing custom expansion paths such as MaskedDistribution.expand implemented, and how can a default wrapper prefer them without changing their behavior?


Question: Where are to_event, independent, Independent, and OneHotCategorical shape transformations implemented so expansion after reshaping preserves batch and event shapes?


Question: Where is enumerate_support(expand=True) implemented for TorchDistribution and distribution wrappers so an expanded support has shape (enum_size,) plus batch_shape?


Question: Where is ScoreParts created and shaped so an expanded distribution broadcasts log_prob, score_function, and entropy_term to its batch shape?