Include failed-load source lookup in A1
This commit is contained in:
@@ -22,7 +22,7 @@ as well.
|
||||
| D6 (including N4) | Replace `Resolution.Record` with the two intent-specific methods below and remove `CodeResolveInvalidKind` once its public trigger is eliminated. Retain `ChangeKind` and its inspection constants. |
|
||||
| D7 | Rename `LoadSecretsDir` to `LoadSecretsIntoEnvironment`, making process-environment mutation explicit. Preserve its signature apart from the name, report-plus-error behavior, and existing bootstrap semantics. |
|
||||
| D8 | Remove `CodeOptionsUnavailable` after confirming there is no intentional supported role. Do not introduce a failure merely to give the code a producer; a concrete reason to retain it should be brought back for discussion. |
|
||||
| A1 | Add `Result.Source(id)` for direct lookup of acquired-source evidence, alongside ordered `Sources()` enumeration and passive `SourceContext(id)` resource access. |
|
||||
| A1 (including N5) | Add `Result.Source(id)` and `LoadError.Source(id)` for direct lookup of source evidence on successful and failed loads, alongside their existing `Sources()` enumeration. Keep source evidence distinct from passive resource access through `SourceContext(id)`. |
|
||||
| N1 | Rename `Paths(paths ...string) Search` to `SearchPaths(paths ...string) Search`, replacing the old name outright. Preserve literal file candidates, ordering, deferred acquisition, and selection/failure behavior. Leave semantic `Path` APIs and `Searches` unchanged. |
|
||||
| N2 | Replace `LayerBase = "base"` with `LayerMain = "main"`, without a compatibility alias. Update Go references and affected string comparisons, serialization, and rendered labels. Preserve the existing main-tier category, imported contributions' owning tiers, precedence, and acquisition order. |
|
||||
| N3 | Replace `CodeExplainLimitExceeded = "explain.limit_exceeded"` with `CodeHistoryLimitExceeded = "history.limit_exceeded"`, without a compatibility alias. Update Go references and affected diagnostic-code consumers. Preserve the existing quota, retained-node accounting, failure conditions, diagnostic locations, and admission timing before effective secret lookup and application validation. |
|
||||
@@ -70,6 +70,7 @@ Document the modes together, preserving these distinctions:
|
||||
|
||||
```go
|
||||
func (r *Result[T]) Source(id string) (SourceInfo, bool)
|
||||
func (e *LoadError) Source(id string) (SourceInfo, bool)
|
||||
```
|
||||
|
||||
Look up an acquired source by its load-local ID, returning the same information
|
||||
@@ -78,6 +79,12 @@ false. The query performs no source acquisition, filesystem access, or credentia
|
||||
lookup. Reuse existing source lookup and conversion machinery where practical;
|
||||
no public registry, indexing strategy, or constant-time guarantee is required.
|
||||
|
||||
The failed-load lookup returns records from `LoadError.Sources()`'s partial
|
||||
inventory and returns false for nil or zero-valued errors as well. Preserve
|
||||
existing failed-load redaction and the evidence available at failure, including
|
||||
incomplete placement information. Lookup neither completes acquisition nor
|
||||
promises a record for every attempted source. This incorporates N5 into A1.
|
||||
|
||||
## Scope And Follow-Up
|
||||
|
||||
Implement the selected changes with corresponding declaration comments, owning
|
||||
|
||||
Reference in New Issue
Block a user