錯誤 sentinel——標準參考
編譯器發出的每個致命中止都指名一個條件,而每個條件帶有三個識別碼,因為辨識條件、記錄條件與引用條件是三件不同的工作。sentinel 是 errors.Is 所比對的 Go 值,透過呼叫宣告它的套件所匯出的存取函式取得:Go 程式碼用來辨識的識別碼。代碼是條件註冊時所用的字串:它以文字指名條件本身,並且在周圍的 Go 套件演進時保持固定——程式所記錄的識別碼。簡短代碼是字母 E 加四位數字,短到可以念出來、輸入搜尋或貼進報告:人所引用的識別碼。一個條件,三個識別碼——要在 Go 中辨識條件就比對 sentinel,需要記錄或以之為鍵時就讀取代碼,並對照本頁下方所有條件的表格來解析簡短代碼。
使用者面向的診斷(fatal-halts.md 與 error-translation.md 中所編目的帶前綴訊息)帶有面向開發者的說明文字;被包裝的 sentinel 則是程式化使用端中 errors.Is 所比對的對象。
本頁是條件彙編中以 sentinel 為鍵的檢視。撰寫 CI 關卡、IDE 整合,或需要區分錯誤種類的建置編排程式碼的程式設計師,以標準的 errors.Is 述詞比對此處所列的 sentinel。藉由閱讀所發出錯誤文字來除錯建置的撰寫者,通常想要以訊息為鍵的檢視——fatal-halts.md 用於中止建置的錯誤,warnings.md 用於提示輸出。
下表中的每一列都指名一個存取函式——一個不帶引數、由該表所指名的套件匯出、回傳 sentinel 的函式。匯入該套件並呼叫存取函式是受支援的整合介面,這也是為什麼表格把每一個都寫成帶括號——呼叫才會產生 errors.Is 可以比對的值,不帶括號的名稱是函式而不是錯誤:
import ( "errors"
"github.com/aggrega-ai/aggrega-cli/pkg/resolver")
if errors.Is(err, resolver.ErrParameterContractViolation()) { // handle parameter contract violations}三個識別碼各自帶有其穩定性,而這種分離正是條件同時擁有三者的原因。下方所列的存取函式在修補版本之間是穩定的;更名或移除會在使其發生的發行版本的變更記錄項目中公告,而在套件中新增存取函式是附加性的,不會破壞既有的比對程式。代碼在其條件發布後就固定,因此在任何需要持久地指名條件之處,它是該記錄的識別碼:重新命名存取函式不會移動其條件註冊時所用的代碼,而你所記錄的代碼會比 Go 介面的重構活得更久。簡短代碼是三者中最持久的:數字只發出一次然後就固定,已停用條件的數字保持停用,而不會被發給不同的條件,因此舊報告中記錄的簡短代碼仍然指名記錄當時所指名的條件。這是被強制執行的,而不只是意圖——以已停用數字宣告的條件,在編譯器讀取任何輸入之前就被拒絕,每次執行皆然——而且每個已停用的數字都與仍在使用的數字一起發布在所有條件的表格中。下方的代碼欄帶有代碼,它是結構化診斷的用戶端不需連結這些套件就能讀取的值。它是被發布的而不是推斷的,因為它不必重述其所在的列——重新匯出的名稱回報的是它所轉發的條件的代碼,而規則的代碼指名的是規則而不是存取函式。訊息欄是 sentinel 所呈現的字面文字;使用者面向的診斷會把方括號開頭與來源位置放在該文字之前。該開頭帶有條件的簡短代碼,並在該次發生有類別時把類別放在旁邊,如 [DEVELOPER_ERROR E0007]——因此讀者可以各自獨立解析:類別(DEVELOPER_ERROR / OPS_ERROR / CATALOG_ERROR / TRANSLATION_ERROR / FETCH_ERROR / POLICY_ERROR / TRUST_ERROR)教學於 error-translation.md,而簡短代碼則在本頁的所有條件的表格中解析。當由外掛程式引發條件時,代碼 token 會以引發它的外掛程式限定——[TRANSLATION_ERROR provider/example:1.0.0/E0007]——而簡短代碼是最後一個區段;error-translation.md 說明了為什麼有該限定詞,以及為什麼最後一個區段才是要解析的。
讀取條件的代碼
代碼只指稱條件本身,別無其他,採用 kebab-case——parameter-contract-violation、lockfile-drift。它不帶任何前綴:既不是宣告它的套件,也不是引發它的階段,更不是任何形式的分組。因此,當編譯器圍繞它重新整理時,代碼仍保持不變,而在編譯過程中多處引發的條件仍只有一個名稱。每個條件的名稱本身就是獨一無二的,這正是前綴沒有必要的原因,而且兩個條件不能以同一個代碼註冊。請使用 CodeOf 從錯誤中讀取代碼,它來自 github.com/aggrega-ai/aggrega-cli/pkg/errors,其走訪包裝鏈的方式與 errors.Is 相同,因此無論錯誤在回到你手上的途中被包裝了多少層,代碼都會保留。該套件本身就叫 errors,因此要以匯入別名將它與標準程式庫區分開來:
package release
import ( "log"
aggregaerrors "github.com/aggrega-ai/aggrega-cli/pkg/errors" "github.com/aggrega-ai/aggrega-cli/pkg/resolver")
// Load reads a Release and reports the code of whatever condition halted it.func Load(path string) error { _, err := resolver.LoadRelease(path) if err == nil { return nil } if code, ok := aggregaerrors.CodeOf(err); ok { // code names the condition in words, such as parameter-contract-violation. log.Printf("%s halted: %s", path, code) } return err}CodeOf 也會回報鏈中是否有任何錯誤帶有代碼;沒有代碼的鏈是關於該鏈的事實,而不是失敗。若你寧願自己比對介面,同一個套件把它匯出為 CodedError,而 errors.As 會在同一次走訪中找到它。
代碼只往一個方向走。 它是條件所回報的,絕不是向比對者辨識條件的方式:把字串寫進你自己的程式碼只會得到字串,而從字串沒有路徑可回到 errors.Is 所比對的值。比對 sentinel 以辨識條件;讀取代碼以記錄條件。
aggrega 在終端機印出的代碼是簡短代碼,不是這一個。 中止的診斷以方括號開頭,帶有條件的簡短代碼,並在該次發生有類別時把類別放在旁邊——[DEVELOPER_ERROR E0007],或在由外掛程式引發條件且代碼以引發它的外掛程式限定時為 [TRANSLATION_ERROR provider/example:1.0.0/E0007],或在失敗沒有可供導向的關注對象時為 [E0007]——然後是來源位置,以及 fatal-halts.md 中所編目的訊息文字。描述性代碼以文字指名條件,對那個位置來說寬得太多:在最長的條件上,它會在訊息開始之前就填滿窄的終端機,這正是需要第二個精簡識別碼的全部原因。因此當你只有印出的輸出時,要用的 token 是簡短代碼,它會對照本頁下方的所有條件的表格解析:從可以在電話上念出的數字,你就能找到條件、其存取函式與其訊息文字。aggrega explain <code> 在終端機進行這項解析——它接受條件的任一個代碼,並印出條件以及記載撰寫修正方式的項目——說明於 aggrega explain。fatal-halts.md 中以訊息為鍵的檢視仍是從措辭而不是識別碼著手的方式。
代碼在 Go 之外的傳遞之處,是編譯器即服務常駐程式所發布的結構化診斷,作為每個項目上自己的 code 欄位,而不是折進訊息文字的東西——因此編輯器擴充功能或該通訊協定的任何其他用戶端,不需連結這些套件、也不需剖析文字,就能依項目所回報的內容分支。那一個鍵帶有可由機器比對的代碼,無論由誰指派,而項目會說明由哪一層引發。那裡的代碼有三種來源,而第三種正是你在本頁查得到的代碼本身並不代表有任何東西失敗的原因:
- 失敗所指名的條件的代碼,也就是本頁所編目的內容。
- 關於渲染輸出的提示之類別代碼——
unsupported-field就是一個,warnings.md 有說明。它是在提示被引發之處指派的,而不是註冊為條件,因此在此沒有列。 - 關於撰寫文件的提示之已註冊代碼——與已宣告名稱只差一次編輯的名稱、沒有任何東西讀取的參數。這樣的發現以與失敗相同的形式指名條件,因此其代碼是已註冊的,並且在本頁有一列,讀該列就能知道該發現是關於什麼。
因此你會從中止所讀到的同一個代碼,也可能從已完成的建置到達你,由一個沒有改變結果的發現所攜帶。區分兩者的是你得到的結果以及項目所指名的層——絕不是代碼本身的形式,也絕不是它是否在此解析。當產生項目的東西都沒有指派代碼時,該欄位會被省略:失敗並未指名 Aggrega 自己的任何條件,以及引發者沒有指派代碼的提示。aggrega serve 記載項目的形狀、指名該層的鍵,以及該欄位何時出現。
結構化診斷同時帶有條件的兩個識別碼,而知道哪個是哪個,是你能據以行動的識別碼與不能的識別碼之間的差別。 上方的 code 鍵是給程式的:以連字號連接並以文字指名條件,因此在其上分支的擴充功能讀起來就是它的意思,且它是 CodeOf 在 Go 中回報的值。旁邊的 shortCode 鍵是給人的——字母 E 加四位數字,與中止的診斷在其方括號開頭所印出的同一個 token。它是你在電話上念出、輸入搜尋框或貼進議題的東西,也是所有條件的表格所依據的 token。
兩者都不是對方的縮寫,也都不是對方的後備。比對描述性代碼;顯示給讀者看簡短代碼。只提供描述性代碼的介面,是把為比對者設計的識別碼交給撰寫者;而依簡短代碼比對則是比對一個對條件什麼都沒說的數字——這就是為什麼兩者都傳遞,而不是只選一個。
第三個鍵 codeDescription 帶有條件發布之處,作為可開啟以了解更多診斷資訊的參照。其位址解析到本頁所有條件的表格,因此從編輯器跟著它的讀者到達時,手上已有該表所依據的簡短代碼。項目同時帶有簡短代碼與參照,或兩者皆無:兩者恰好在項目指名已註冊條件——在該表中有一列的條件——時都存在,而當代碼指名的是一類提示,或是來自你自己的、Aggrega 未宣告的 linter 的慣例規則身分時兩者都不存在,因為那些沒有數字可引用,這裡也沒有任何東西描述它們。
反過來——從你手上的代碼到它所指名的條件——下方的表格是已發布的清單。 每一列把代碼與在 Go 中產生同一條件的存取函式放在一起,因此從結構化診斷讀到的代碼,解析到你可以比對的名稱以及條件所呈現的文字。這些表格涵蓋其存取函式可匯入的條件,而有兩種代碼在其外:類別代碼,指名的是一類提示而不是條件,因此沒有存取函式可以放在旁邊;以及其條件只宣告在你無法匯入的套件中、且不在任何地方重新匯出的代碼,那裡沒有可比對的名稱可以放在旁邊。第二種仍然指名條件,而該條件仍然有簡短代碼——本頁更下方所有條件的表格是以簡短代碼而不是可匯入的名稱為鍵,因此也涵蓋這些。
依宣告套件列出的可比對介面
下方每一節都是一個你可以匯入的套件。其標題是相對於模組路徑 github.com/aggrega-ai/aggrega-cli 的套件路徑,因此標題為 pkg/resolver 的一節,其匯入路徑是 github.com/aggrega-ai/aggrega-cli/pkg/resolver。
條目是依宣告 sentinel 的套件分組,因為那是比對者所匯入的套件。條件在建置中的何處引發是另一個問題,而本頁刻意不回答:單一 sentinel 常從多處引發,而有些只從模組未匯出的程式碼引發,因此沒有任何每項的答案會對每一列都成立。以訊息為鍵的檢視以你可以觀察的詞彙回答建置中何時的問題——首先是 fatal-halts.md。
少數名稱出現在多個套件中。那些是同一個共用值的重新匯出,而不是兩個條件,因此比對任一個名稱都會成功;當兩個名稱都可匯入時,表格會這麼說明。兩列帶有相同的代碼,那是在 Go 之外的用戶端所持有的識別碼上陳述的同一個事實:一個條件,一個代碼,無論有多少名稱通向它。
pkg/catalog
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrAllVersionsRetracted() | all-versions-retracted | every published version this reference could select has been withdrawn |
ErrAmbiguousImporterPlugin() | ambiguous-importer-plugin | format is advertised by more than one importer plugin |
ErrAmbiguousParserPlugin() | ambiguous-parser-plugin | format is advertised by more than one parser plugin |
ErrAmbiguousProviderPlugin() | ambiguous-provider-plugin | capability is served by more than one provider plugin; add a plugins.providers entry to select one |
ErrAmbiguousTypeMapping() | ambiguous-type-mapping | Manifest maps multiple version-distinct keys to the same base type; the type-to-recipe lookup is ambiguous |
ErrConflictingVersionConstraints() | conflicting-version-constraints | no version of a component or feature type satisfies every constraint declared on the instance |
ErrDuplicateEntityIdentity() | duplicate-entity-identity | duplicate entity identity within a single catalog directory |
ErrImporterVersionUnsatisfiable() | importer-version-unsatisfiable | no importer plugin version satisfies the plugins.importer entry's version pin |
ErrManifestImplementsMismatch() | manifest-implements-mismatch | Manifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key |
ErrNameMappingMatchedNothing() | name-mapping-matched-nothing | a Manifest name mapping's key names no component instance or attachment in this build, so the entry binds nothing |
ErrNoImporterForFormat() | no-importer-for-format | no importer plugin advertises the requested format |
ErrNoParserForFormat() | no-parser-for-format | no parser plugin advertises the requested format |
ErrNoRecipeResolved() | no-recipe-resolved | no recipe resolved for component/feature instance: add an explicit Manifest mapping for its type |
ErrProviderBindingCapabilityUnserved() | provider-binding-capability-unserved | plugins.providers entry names a capability no provider-rendering plugin the build reads serves |
ErrProviderBindingUnsatisfied() | provider-binding-unsatisfied | plugins.providers entry names a plugin no provider-rendering plugin serving the capability matches |
ErrProviderVersionUnsatisfiable() | provider-version-unsatisfiable | no provider-rendering plugin version satisfies the recipe's provider version pin |
ErrQualifiedPluginReference() | plugin-reference-must-not-be-registry-qualified | wasm plugin reference must be the plugin coordinate identity (<pluginType>/<name>:<version>), not a registry-qualified or artifact path |
ErrUnknownCatalogDocumentKind() | unknown-catalog-document-kind | catalog document declares a kind a catalog does not hold |
ErrUnsatisfiableEntityVersion() | unsatisfiable-entity-version | no catalog version satisfies the referenced version constraint |
ErrUnscopedPluginReference() | plugin-reference-must-be-scoped | wasm plugin reference must carry a pluginType scope (<pluginType>/<name>); an empty scope cannot bind to an OCI location |
ErrUnscopedRecipeReference() | recipe-reference-must-be-scoped | recipe reference must be provider-scoped (<provider>/<name>); an empty provider cannot bind to an OCI location |
ErrUnusableSchemaImport() | unusable-schema-import | a schema `$import:` could not be applied |
ErrManifestImplementsMismatch()與pkg/resolver.ErrManifestImplementsMismatch()是同一個值,因此比對任一個名稱都會成功。
pkg/closure
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrInvalidLibraryRef() | invalid-library-ref | resolve: invalid library reference URI |
ErrMVSConflict() | version-selection-conflict | resolve: consumers of one library require versions in incompatible majors |
ErrNoAggregateLoader() | catalog-cannot-load-sub-aggregate-bodies | resolve: catalog lookup cannot load resolved sub-aggregate bodies |
ErrNoRecipeLoader() | catalog-cannot-load-recipe-bodies | resolve: catalog lookup cannot load resolved recipe and plugin bodies |
ErrSourceTemplateAtLockTime() | source-template-at-lock-time | resolve: source-template evaluation failure at lock time |
ErrSourceTemplateParse() | source-template-not-parsable | resolve: source-template parse error |
ErrSourceTemplateProvidesRef() | source-template-provides-ref | resolve: source-template references .provides (invalid reverse reference) |
ErrSubAggregateDepth() | sub-aggregate-depth | resolve: sub-aggregate inclusion depth exceeded |
ErrUnresolvableURI() | unresolvable-uri | resolve: no entity in the catalog matches this URI |
pkg/compactform
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrAmbiguousDispatch() | ambiguous-dispatch | compactform: ambiguous dispatch — $mode required |
ErrCircularRef() | reference-cycle | circular reference expansion |
ErrConstraintTypeMismatch() | constraint-type-mismatch | compactform: constraint not valid for declared type |
ErrEscapeContentInvalid() | escape-content-invalid | compactform: $jsonschema content invalid |
ErrHostInLibraryRef() | host-in-library-ref | compactform: cross-document $ref carries a registry host; reference the library by identity |
ErrReferenceUnresolvable() | reference-unresolvable | compactform: $ref unresolvable |
ErrUnknownKeyword() | unknown-keyword | compactform: unknown keyword |
ErrUnresolvedSchemaLibraryRef() | unresolved-schema-library-ref | compactform: cross-document $ref target not found |
ErrCircularRef()與pkg/refcycle.ErrCycle()是同一個值,因此比對任一個名稱都會成功。
pkg/deprecation
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrDeprecatedEntity() | deprecated-entity | deprecation: build consumes a deprecated entity |
pkg/docscache
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrFetchNotFound() | fetch-not-found | oci: artifact not found at remote source |
ErrNotDocsBundle() | not-docs-bundle | docscache: artifact is not a documentation bundle |
ErrPageNotFound() | page-not-found | docscache: page not found in documentation bundle |
ErrFetchNotFound()與pkg/oci.ErrFetchNotFound()是同一個值,因此比對任一個名稱都會成功。
pkg/egress
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrNoAnswerInTime() | no-answer-in-time | egress: the server did not answer in time |
ErrOfflineEgress() | offline-egress | egress: network access refused because the workspace is offline; remediation: pass `--offline=false` to allow the network for this one run, or clear the top-level `offline` key in the configuration file (or AGGREGA_OFFLINE) to allow it from now on; where the work is a build that needs content the machine does not have, run `aggrega pull --release <release>` from a connected environment first to populate the cache |
pkg/externalinputs
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrAcquisitionDisabled() | acquisition-disabled | externalinputs: acquisition is disabled for unpinned inputs |
ErrDigestMismatch() | digest-mismatch | externalinputs: fetched bytes mismatch the pinned digest |
ErrSchemeNotAllowed() | scheme-not-allowed | externalinputs: URL scheme is not allowed |
ErrStoreCorrupt() | store-corrupt | externalinputs: store blob mismatches its pinned record |
pkg/lockfile
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrLockfileDrift() | lockfile-drift | lockfile: out of date; it no longer matches what its Release resolves to |
ErrLockfileInvalid() | lockfile-invalid | lockfile: file failed schema validation |
ErrSignatureNotRecorded() | signature-not-recorded | signing: no verified signature is recorded for an artifact that requires one |
pkg/oci
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrAmbiguousContentLayer() | ambiguous-content-layer | oci: manifest has multiple layers of the expected content media type |
ErrBundleAmbiguousEntityDocument() | bundle-ambiguous-entity-document | oci: published bundle carries more than one entity document |
ErrBundleNoEntityDocument() | bundle-no-entity-document | oci: published bundle carries no entity document |
ErrBundleUnreadable() | bundle-unreadable | oci: published bundle cannot be unpacked |
ErrCacheLocationOutsideCache() | cache-location-outside-cache | a value a cache location is built from would place cached files outside the place it names in the cache |
ErrCachedManifestIntegrity() | cached-manifest-integrity | oci: cached manifest digest mismatch |
ErrFetchIntegrity() | fetch-integrity | oci: content digest mismatch |
ErrFetchInterrupted() | fetch-interrupted | oci: the transfer from the registry broke off |
ErrFetchNetworkUnreachable() | fetch-network-unreachable | oci: network unreachable |
ErrFetchNotFound() | fetch-not-found | oci: artifact not found at remote source |
ErrFetchServerError() | fetch-server-error | oci: the registry answered with a server error |
ErrFetchUnauthorized() | fetch-unauthorized | oci: authentication required or failed |
ErrImmutableTagConflict() | immutable-tag-conflict | oci: tag already published with different content |
ErrNoContentLayer() | no-content-layer | oci: manifest has no layer of the expected content media type |
ErrOCILocationCollision() | oci-location-collision | oci: distinct catalog identities map to the same OCI repository location |
ErrPublishedArtifactNotAnEntity() | published-artifact-not-an-entity | oci: published artifact is not an entity document |
ErrReferrerDiscoveryUnavailable() | referrer-discovery-unavailable | oci: referrer discovery could not be completed |
ErrRegistryTooBusy() | registry-too-busy | oci: the registry kept asking to slow down |
ErrRetiredMediaType() | retired-media-type | oci: artifact carries a media type this compiler no longer reads |
ErrSignatureBundleDigestMismatch() | signature-bundle-digest-mismatch | cached signature bundle does not match its recorded digest |
ErrSignatureForAnotherArtifact() | signature-for-another-artifact | signing: the recorded signature was made for a different artifact |
ErrUnknownEntityKind() | unknown-entity-kind | oci: unknown entity kind for mediatype dispatch |
pkg/pathscope
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrNameWindowsCannotHold() | name-windows-cannot-hold | a name this operation writes holds a path segment Windows cannot hold as written |
pkg/pluginpath
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrPluginArtifactNotFound() | plugin-artifact-not-found | plugin artifact not found on this machine |
ErrPluginEntityNotFound() | plugin-entity-not-found | plugin reference is not a Plugin entity |
pkg/pluginstrust
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrVerdictAttachmentNotConfigured() | verdict-attachment-not-configured | a plugin recorded as trusted for an accept-or-reject verdict is no longer attached at any verdict role |
pkg/plugintest
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrCommandsMismatch() | wasm-command-set-mismatch | wasm: recorded command mirror does not match plugin describe() |
ErrContractMismatch() | wasm-contract-mismatch | wasm: entity contract claim does not match plugin describe() |
ErrHostFunctionsMismatch() | wasm-host-function-set-mismatch | wasm: stamped host-function record does not match .wasm imports |
ErrRejected() | wasm-manifest-rejected | wasm: plugin rejected by the sandbox |
ErrTypeMismatch() | wasm-plugin-type-mismatch | wasm: declared plugin type does not match plugin describe() |
pkg/readscope
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrReadLeadsOutOfWorkspace() | read-leads-out-of-workspace | a file this operation reads leads through a link out of the directory it must stay inside |
ErrReferenceLeadsOutOfWorkspace() | reference-leads-out-of-workspace | a reference a document makes to another file leads out of the directory it must stay inside |
pkg/recipepin
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrEntityNotPinned() | entity-not-pinned | an input the entity reads has no pin recorded for it in the entity.lock beside it |
ErrLocalSourceContentMismatch() | local-source-content-mismatch | the files of the entity's local source do not match the pins recorded for them in entity.lock |
pkg/refcycle
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrCycle() | reference-cycle | circular reference expansion |
pkg/registrytrust
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrMalformedTrust() | malformed-trust-policy | registrytrust: advertised trust config is malformed |
ErrNoTrustAdvertised() | no-trust-advertised | registrytrust: registry advertises no trust config |
ErrOfflineRegistrationWithoutTrustPolicy() | offline-registration-without-trust-policy | a registry other than the official hub is not registered offline without a trust policy supplied by hand, because the policy it advertises cannot be fetched; register it once while online, or pin its trust by hand with `aggrega registry add <host> --identity <identity>=<issuer>` or `--key <public-key-file>` |
pkg/resolver
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrAnnotationBindingPillarOverlap() | annotation-binding-pillar-overlap | annotation binding declares one path in both pillar lists |
ErrAnnotationBindingTargetUnresolved() | annotation-binding-target-unresolved | annotation binding does not resolve against its target Feature |
ErrAnnotationScalarNotRoutable() | annotation-scalar-not-routable | a scalar annotation value does not route to exactly one path of its binding |
ErrAnnotationSidePillarMismatch() | annotation-side-pillar-mismatch | annotation routes through a pillar its authoring side may not use |
ErrAnnotationSubkeyNotBound() | annotation-subkey-not-bound | annotation subkey is not routed by the annotation's binding |
ErrAnnotationSubkeyNotConforming() | annotation-subkey-not-conforming | annotation subkey does not conform to the target Feature's schema at the routed pillar |
ErrAttachmentInjectValue() | attachment-inject-value | inject entry on an attachment carries `value:`; an attachment delivers the keys its FeatureRecipe publishes, each named with `from:`, and a literal belongs in the component's own inject block |
ErrAttachmentSlotNearMiss() | attachment-slot-near-miss | attachment name is a near miss for a declared slot |
ErrAttachmentSlotShape() | attachment-slot-shape | attachment does not conform to its declared slot shape |
ErrConnectionAttachmentSlotUndeclared() | connection-attachment-slot-undeclared | a connection carries an attachment under a name its socket declares no slot for |
ErrDuplicateBoundaryComponent() | duplicate-boundary-component | component declared in more than one boundary: declare each component in exactly one boundary |
ErrDuplicateTriadIdentity() | duplicate-triad-identity | duplicate Aggregate/Manifest identity (metadata.name) in the Release directory |
ErrFeatureMergeConflict() | feature-merge-conflict | feature merge conflict: reconcile the Aggregate and Release declarations for the feature |
ErrGuardEntityViewInconsistency() | internal-catalog-view-disagreement | the compiler's own views of the catalog disagree |
ErrInheritedBoundaryDirectoryIsLiteral() | inherited-boundary-directory-is-literal | inherited boundary directory carries no template variable, so it resolves to the path the extended Release writes to |
ErrInjectDeliveryShape() | inject-delivery-shape | inject delivery: shape must be a list of entries, each `in:` with exactly one of `from:` or `value:` |
ErrInjectEntryAmbiguous() | inject-entry-ambiguous | inject entry carries both `value:` and `from:`; schema requires exactly one |
ErrInjectKeyCollision() | inject-key-collision | duplicate delivery key across inject sources |
ErrInvalidInjectKey() | invalid-inject-key | invalid inject key: the from-key must name a provides key its source publishes |
ErrInvalidParameterRef() | invalid-parameter-ref | invalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template |
ErrMalformedRecipeReference() | malformed-recipe-reference | malformed recipe reference in a Manifest mapping value |
ErrManifestCrossBindingPillarCollision() | manifest-cross-binding-pillar-collision | Manifest annotation bindings collide on same Feature path+pillar |
ErrManifestImplementsMismatch() | manifest-implements-mismatch | Manifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key |
ErrManifestReservedPrefix() | manifest-reserved-prefix | Manifest annotation binding uses reserved prefix |
ErrMisnamedSlotFill() | misnamed-slot-fill | attachment written under a name no slot declares fits a slot its component leaves empty |
ErrMissingRequiredFeature() | missing-required-feature | missing required feature: attach a Feature of the required type to the component |
ErrMissingRequiredSocket() | missing-required-socket | required uses socket not populated |
ErrParameterContractViolation() | parameter-contract-violation | parameter contract violated |
ErrParameterMissing() | parameter-missing | required parameter not supplied |
ErrProvidesKeyNotDeclared() | provides-key-not-declared | Recipe publishes a provides key its Component does not declare |
ErrReleaseChainComposesBothRoutingKeys() | release-chain-composes-both-routing-keys | release extends chain composes both named boundaries and top-level components: declare one routing shape across the chain, never both |
ErrSchemaConformance() | schema-conformance | authored pillar does not conform to its declared schema |
ErrSchemaContractCompileFailure() | schema-contract-compile-failure | declared schema contract could not be compiled into a usable schema, so nothing was validated against it: correct the contract where it is declared, or remove it if the configuration it covers needs no validation |
ErrSelfInjectForbidden() | self-inject-forbidden | self-inject on component without spec.inject allowlist |
ErrTriadRefUnresolvable() | triad-ref-unresolvable | Aggregate/Manifest reference unresolvable |
ErrUnknownUsesSocket() | unknown-uses-socket | unknown uses socket: name a socket the entity declares in its usesSchema — only a component's own uses block may name one the catalog did not declare |
ErrUnnormalizedRelease() | release-not-in-canonical-form | release reached resolve un-normalized (non-empty root components alongside a synthesized default boundary) |
ErrUnreadParameter() | unread-parameter | declared parameter is read by no reference in the Aggregate |
ErrUsesInjectValue() | uses-inject-value | inject entry on a connection carries `value:`; a connection delivers the target's published keys, each named with `from:` |
ErrUsesSocketNearMiss() | uses-socket-near-miss | uses socket name is a near miss for a declared socket |
ErrVerdictPluginTrustMismatch() | verdict-plugin-trust-mismatch | the digest recorded as trusted for this plugin does not match the digest its cached manifest reports |
ErrYAMLLoad() | document-not-loadable | file load failed: the file could not be read, or its bytes did not parse |
pkg/signing
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrKeylessLive() | keyless-signing-requires-network | signing: keyless signing requires a live identity provider, Fulcio, and Rekor |
ErrMixedSigningCredentials() | mixed-signing-credentials | signing: the references named together need different signing credentials, so nothing was signed |
ErrNoSignatureFound() | no-signature-found | signing: no signature found for an artifact that requires one |
ErrNoTrustedIdentities() | no-trusted-identities | signing: keyless verification requires at least one trusted identity |
ErrSignatureInvalid() | signature-invalid | signing: signature does not verify |
ErrSignatureVerificationFailed() | signature-verification-failed | signing: signature bundle does not verify |
ErrSigningPolicyRequiresSignature() | signing-policy-requires-signature | signing: signing policy requires a signature for this artifact kind; refusing to push unsigned content |
ErrTrustRootLoad() | trust-root-not-loadable | signing: cannot load pinned trust root |
ErrUnsignedPushRefused() | unsigned-push-refused | signing: registry requires signatures; refusing to push unsigned content |
ErrUnsupportedKey() | unsupported-key | signing: unsupported held-key type |
ErrUntrustedIdentity() | untrusted-identity | signing: signature identity is not trusted for this registry |
pkg/sourcecache
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrFetchIntegrity() | fetch-integrity | oci: content digest mismatch |
ErrFetchNotFound() | fetch-not-found | oci: artifact not found at remote source |
ErrFetchIntegrity()與pkg/oci.ErrFetchIntegrity()是同一個值,因此比對任一個名稱都會成功。ErrFetchNotFound()與pkg/oci.ErrFetchNotFound()是同一個值,因此比對任一個名稱都會成功。
pkg/sourcekind
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrOCIModuleSourceMalformed() | oci-module-source-malformed | the source does not name one artifact of its OCI module kind |
ErrUnknownKind() | unknown-source-kind | no source adapter serves the source kind |
pkg/sourceresolver
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrFetchIntegrity() | fetch-integrity | oci: content digest mismatch |
ErrFetchNetworkUnreachable() | fetch-network-unreachable | oci: network unreachable |
ErrFetchNotFound() | fetch-not-found | oci: artifact not found at remote source |
ErrFetchUnauthorized() | fetch-unauthorized | oci: authentication required or failed |
ErrNoAdapterRegistered() | source-adapter-not-registered | no source adapter is registered in this program for the source kind |
ErrFetchIntegrity()與pkg/oci.ErrFetchIntegrity()是同一個值,因此比對任一個名稱都會成功。ErrFetchNetworkUnreachable()與pkg/oci.ErrFetchNetworkUnreachable()是同一個值,因此比對任一個名稱都會成功。ErrFetchNotFound()與pkg/oci.ErrFetchNotFound()是同一個值,因此比對任一個名稱都會成功。ErrFetchUnauthorized()與pkg/oci.ErrFetchUnauthorized()是同一個值,因此比對任一個名稱都會成功。
pkg/sourceresolver/cacheslot
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrEmptyWorkspaceRoot() | empty-workspace-root | cacheslot: empty workspaceRoot |
pkg/sourceresolver/netrc
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrNetrcFileUnreadable() | netrc-file-unreadable | the netrc file could not be read |
ErrSourceURLCarriesCredential() | source-url-carries-credential | the source URL carries a credential |
pkg/types
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrArtifactEntryShape() | artifact-entry-shape | artifacts entry: shape must be a string scalar or {$import: <local-path>} |
ErrArtifactLibraryEntryShape() | artifact-library-entry-shape | artifactlibrary: entry must be a mapping of filename to a string body |
ErrForbiddenKeyword() | forbidden-keyword | schemalibrary: forbidden JSON Schema keyword |
ErrLibraryReferenceWhitespace() | library-reference-whitespace | library reference: a reference to a library entry carries no whitespace or line break |
ErrMalformedVersionPin() | malformed-version-pin | reference carries a malformed version pin |
ErrMappingEntryNotScalar() | mapping-entry-not-scalar | mappinglibrary: entry body must be a string scalar |
ErrOrderedMapDecodeDepthExceeded() | document-nesting-depth-exceeded | a document nests too many levels deep |
ErrParametersShape() | parameters-shape | parameters: shape must be an inline object or {$import: <local-path>} |
ErrTemplateNotFound() | template-not-found | schemalibrary: template not found |
ErrTemplateParamMissing() | template-param-missing | schemalibrary: template parameter missing |
ErrTemplateParamTypeMismatch() | template-param-type-mismatch | schemalibrary: template parameter type mismatch |
ErrValuesMappingShape() | values-mapping-shape | valuesmapping: shape must be a string scalar or {$import: <path-or-library-identity>} |
ErrWellKnownAnnotationScope() | well-known-annotation-scope | wellKnownAnnotations: a key is declared at a scope the provider's contract does not render |
ErrWorkloadEntryNotScalar() | workload-entry-not-scalar | workloadlibrary: entry body must be a string scalar |
ErrWorkloadTemplateShape() | workload-template-shape | workload: shape must be a string scalar or {$import: <path-or-library-identity>} |
pkg/usesedge
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrDanglingUsesTarget() | dangling-uses-target | uses edge target does not exist |
ErrReleaseEdgeRetarget() | release-edge-retarget | release edge retargets a developer-declared edge |
pkg/validator
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrAssertionNameCollision() | assertion-name-collision | assertion name declared twice across the extends chain |
ErrCyclicExtension() | cyclic-extension | cyclic extends chain |
ErrDuplicateContainerEnvironmentVariable() | duplicate-container-environment-variable | a container declares one environment variable twice |
ErrEmptySource() | recipe-source-is-empty | recipe source is an empty string, which names neither sourceless mode nor sourced mode |
ErrExtendsChainTooDeep() | extends-chain-too-deep | extends chain exceeds maximum depth |
ErrFeatureRecipeValuesMappingRequiresSource() | feature-recipe-values-mapping-requires-source | FeatureRecipe: valuesMapping requires source |
ErrInheritanceMerge() | extends-merge-failed | inheritance merge failed |
ErrRecipeFilenameCollisionAcrossInputKinds() | recipe-filename-collision-across-input-kinds | filename collision across input kinds: two input-kind blocks produced a file under one output name |
ErrRecipeNoInputKind() | recipe-no-input-kind | Recipe: at least one input kind required |
ErrRecipeOutputComponentLabelCollision() | recipe-output-component-label-collision | recipe output-component-labels constraint: key is also declared in outputLabels |
ErrRecipeOutputLabelReservedNamespace() | recipe-output-label-reserved-namespace | recipe output-labels constraint: key uses a reserved namespace |
ErrRecipeValuesMappingRequiresSource() | recipe-values-mapping-requires-source | Recipe: valuesMapping requires source |
ErrSlotNotReferenceable() | slot-not-referenceable | workload attachment slot is not referenceable |
ErrUnknownSchemaPillar() | unknown-schema-pillar | a schema block declares a key that names no data pillar |
ErrWorkloadFeaturesSchema() | workload-features-schema | workload featuresSchema cross-check failed |
ErrWorkloadValidation() | workload-not-valid | workload validation failed |
pkg/validator/envelope
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrDuplicatePipelineStepID() | duplicate-pipeline-step-id | a pipeline declares one step id twice |
ErrEntityEnvelope() | entity-envelope-invalid | document envelope validation failed |
ErrRetiredABIVersion() | retired-abi-version | a plugin declares a plugin ABI version this compiler no longer speaks |
ErrRetiredAPIVersion() | retired-api-version | a document declares an API version this compiler no longer reads |
pkg/validator/jsonschema
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrExtensionEval() | schema-extension-evaluation-failed | validator/jsonschema: x-aggrega extension evaluation failed |
ErrSchemaResolve() | schema-not-resolvable | validator/jsonschema: schema resolution failed |
pkg/validator/merger
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrMergeInvalid() | schema-merge-input-invalid | merger: invalid merge input |
pkg/workspaceconfig
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrAmbiguousRegistryAlias() | ambiguous-registry-alias | registry alias matches more than one host |
ErrCapabilityOnCrossCuttingSocket() | capability-on-cross-cutting-socket | a cross-cutting socket is bound by capability but attaches by uri |
ErrColonInProviderBindingCapability() | colon-in-provider-binding-capability | a provider socket binding names a capability containing a colon, which no Recipe can select |
ErrConfigInvalid() | workspace-config-invalid | workspace configuration is invalid |
ErrDuplicateImporterAttachment() | duplicate-importer-attachment | importer is attached by more than one plugins.importer entry |
ErrDuplicateProviderTarget() | duplicate-provider-target | capability is bound to more than one provider plugin |
ErrDuplicateRegistryAlias() | duplicate-registry-alias | registry alias is already used by another host |
ErrGovernanceRoleInvalid() | governance-role-invalid | a governance attachment declares no role or an unknown role |
ErrInertFieldOnProviderSocket() | inert-field-on-provider-socket | a provider socket binding sets a field with no referent on that socket |
pkg/writescope
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrWriteLeadsOutOfWorkspace() | write-leads-out-of-workspace | a path this operation writes or deletes leads through a link out of the directory it must stay inside |
pkg/yamlpos
| Sentinel | 代碼 | 訊息 |
|---|---|---|
ErrPositionOutOfRange() | position-out-of-range | position out of range |
攜帶另一個 sentinel 的 sentinel
ErrCacheMetadataInvalid(pkg/sourceresolver/metadata)回報損毀的來源成品快取槽位。它被宣告為 ErrFetchIntegrity() 的包裝,而不是自己的身分,因此它不會出現在上方的表格中,而對 ErrFetchIntegrity() 的比對對它也會成功。由於它包裝 sentinel 而不是宣告 sentinel,它被匯出為值而不是函式:以 ErrCacheMetadataInvalid 比對它,不帶括號。想要該特定條件時比對包裝,想要整個完整性類別時比對被包裝的 sentinel。
在單一套件中以第二個名稱可達的 sentinel
當套件為同一個條件匯出兩個存取函式——第二個被宣告為對第一個的轉發——上方的表格會列出宣告的存取函式,而省略轉發的名稱。兩個名稱都是從同一個套件匯出的,因此匯入到達其中一個就已經到達另一個,而第二列只會把一個條件以不符任何新東西的名稱列兩次。比對任一個名稱都會成功:轉發回傳的值與宣告的存取函式所回傳的相同。
這不是跨套件的情況。從另一個套件重新匯出的 sentinel 會在每個套件的表格中各有一列,因為匯入其中一個套件的比對者,不匯入另一個套件就無法到達其名稱;單一套件內的轉發不需要第二列,因為一次匯入就到達兩個名稱。
pkg/catalog 中的 ErrDuplicateRecipeIdentity() 就是這樣的轉發:它回傳 ErrDuplicateEntityIdentity(),也就是該套件的表格所列的名稱。
Conditions with no matchable sentinel(沒有可比對 sentinel 的條件)
某些編譯階段會在編譯器不匯出的套件中宣告其 sentinel,因此 errors.Is 沒有東西可以參照,也無法針對它們撰寫比對程式。這裡以描述而非表格的方式列出它們,因為本頁的表格是一項承諾:左欄必須能夠被解參照。
它們的診斷會透過所發出的錯誤文字,以及依訊息編排的檢視——尤其是 fatal-halts.md——完整呈現給你,這也是辨識它們的受支援方式:
- 拓撲建構(圖的建構與子 Aggregate 的攤平)會回報:無法載入的子 Aggregate,並指出無法連到的 Aggregate URI;其結構形狀與結構描述不符的
uses:宣告;巢狀深度超出上限;以及攤平後的節點 ID 衝突,也就是兩個子 Aggregate 編譯成相同的節點 ID,必須重新命名其中一個實例名稱才能區分。 - 圖的定案(跨 Aggregate 與 Release 兩個介面的 Feature 合併)會回報:某個 Feature 型別在兩者之間的宣告不一致。
- 靜態分析(選取器評估與跨節點型別安全檢查)會回報:違反
selector:的情況;無法繼續進行的目錄解析落空,並指出無法連到的實體;以及原則拒絕,也就是掛載在治理判定角色上的外掛程式拒絕了已組裝的建置。原則拒絕會帶有POLICY_ERROR類別、拒絕的外掛程式名稱,以及外掛程式所提供的規則訊息。 - 渲染(提供者分派與各提供者的渲染)會回報:未知的提供者。
- 內嵌的 Wasm 主機載入器會發出它自己的護欄 sentinel——被資訊清單拒絕的護欄(某個外掛程式要求了 AOT 純粹性防火牆所拒絕的執行階段存取能力)、客體 panic 復原,以及確定性的外掛程式結束陷阱。這些會在執行外掛程式時(例如透過
aggrega lint)出現在面向使用者的診斷中。Plugin 作者針對主機測試客體時,可透過pkg/plugintest以可匯入的名稱觸及相同的條件,已列於上方。
若要專門針對原則拒絕來把關管線,請比對診斷中的 POLICY_ERROR 類別前綴,而不是比對 sentinel;類別是錯誤介面中有文件記載的一部分,說明於 error-translation.md。
Every condition, by short code(依簡短代碼列出所有條件)
下表反過來進行查詢:左欄是簡短代碼,旁邊是該代碼所指稱的條件,以及該條件所呈現的文字。它涵蓋 aggrega 能回報的每一個條件,包括上方各節無法列出的那些。
這種更廣的涵蓋範圍正是此表的重點,而非附帶的結果。上方各節是以你可以匯入的名稱為鍵,因此,只在你無法匯入的套件中宣告、且在你可匯入的任何地方都沒有重新匯出的條件,在它們的左欄中就沒有東西可放。此表是以簡短代碼為鍵,而且每個條件都有一個簡短代碼,所以沒有任何可回報的條件會落在它之外。無論該條件背後是否也有你能比對的存取函式,你手上的簡短代碼都能在這裡解析。
能在此表佔有一席之地的條件,必須是編譯器真的能回報的條件。 這些列是從程式碼推導而來,而不是抄寫進去的:某個條件出現在這裡,是因為編譯器中有東西會引發它,所以左欄中的每個代碼都是 aggrega 能印出的。這就是此表做出的承諾,也讓你能把每一列視為一項確實會執行的檢查。
刻意的例外是:某個條件在回報它的程式碼存在之前就已宣告,使得代碼與措辭預先固定,不會在已引用它們的讀者眼前改變。這樣的條件會在表格正下方的註記中說明這一點。它會被列出而不是隱藏——你手上的代碼應該永遠能解析——而旁邊的註記會明白告訴你,目前沒有任何建置會引發它,以及在有建置引發它之前必須先有什麼存在。
已停用的編號也會列出,放在表格下方它自己的一組註記中,而且會永久保留在清單上。 條件偶爾會被撤回——被涵蓋範圍更廣的條件取代,或是從來沒有任何東西回報過它——從那一刻起,它的編號就已停用:絕不會再交給不同的條件,因此你從舊報告中引用的簡短代碼,永遠只會指稱撰寫該報告時它所指稱的東西。這項承諾是機械式的,而不是編輯式的。在已停用編號之下宣告的條件,會在編譯器讀取任何輸入之前就被拒絕,每次執行都是如此,所以沒有任何發行版本能夠帶有這樣的條件——這與兩個現存條件試圖共用同一個編號時所遇到的拒絕屬於同一類,措辭上則能讓你分辨自己遇到的是哪一種。已停用代碼的註記會告訴你,在紀錄了停用原因的情況下,該代碼指稱的是什麼;若該條件已被取代,則會告訴你現在由哪個代碼回報那一部分範圍。
絕不重複使用編號,也使得序列出現永久性的空缺,而註記正是讓這些空缺可讀的依據。缺少一個編號,本身並不能證明任何事: 它可能已停用,也可能只是還沒有任何東西用到。註記記錄了哪些編號已停用,以及在有紀錄的情況下每個編號指稱的是什麼,所以,若一個代碼既不對應任何一列也不對應任何註記,就是此編譯器從未發出過的代碼。
簡短代碼刻意設計成不透明:四位數字本身並不會透露條件的任何資訊,這是為了得到一個短到可以念出來、輸入到搜尋、或貼進報告的識別碼所付出的代價。下方的對應關係讓它得以使用。編號只會從單一遞增序列中發出一次,此後即固定不變;它對所指稱的條件不透露任何資訊。所以,簡短代碼只是識別碼,別無其他——它的值不是分類,它與你可能在表中注意到的任何分組,也都不是條件所在位置或內容的指引。
此表沒有類別欄,這不是疏漏:類別是特定失敗的屬性,而不是其背後條件的屬性。 有些條件依其構造就屬於某一個類別。對其他條件而言,類別取決於失敗所涉及的實體種類,因此同一個這樣的條件,一次針對 Aggregate 回報、一次針對 Release 回報,每次都會帶有不同的類別——而在此把單一值寫在條件旁邊,對第二種條件中的每一個都會是錯的。
類別的教學位置在 error-translation.md——每一種類別、它的意義,以及其修正方式所在之處。類別與簡短代碼回答的是關於同一個失敗的不同問題:類別指出修正應該落在哪個介面上,簡短代碼則指出是哪一個條件中止了建置。兩者都無法由對方推導出來,這就是它們各有自己公開清單的原因——也是沒有撰寫介面可指的失敗,仍然帶有你可以在這裡查到的代碼的原因。
| 代碼 | 條件 | 訊息 |
|---|---|---|
E0001 | no-plugin-resolution-configured | cliplugin: no plugin resolver configured |
E0003 | malformed-attachment-requirement | malformed attachment requirement |
E0004 | overridden-annotation | annotation contribution overridden by an explicit value |
E0005 | policy-violation | policy violation |
E0006 | required-slot-unfilled | required attachment slot unfilled |
E0007 | selector-violation | selector violation |
E0008 | slot-selector-unsatisfied | attachment slot selector unsatisfied |
E0009 | pipeline-contract-violation | pipeline step typed-I/O contract violation |
E0010 | pipeline-step-failed | pipeline step failed |
E0011 | pipeline-target-absent | pipeline patch targets a document not present in the set |
E0012 | pipeline-target-opaque | pipeline patch targets an opaque (non-structured) unit |
E0013 | feature-type-mismatch | feature type mismatch between Aggregate and Release |
E0014 | inject-entry-ambiguous | inject entry carries both `value:` and `from:`; schema requires exactly one |
E0015 | uses-inject-forbidden | uses-edge inject dictates a delivery mechanism the socket does not permit |
E0016 | patch-test-operation-failed | jsonpatch: test operation failed |
E0017 | annotation-injection-rejected | annotation-transform plugin output was rejected: an injection targets a component coordinate the host did not supply, or carries a value that is not a string or an object of subkeys |
E0018 | policy-settings-invalid | policy attachment settings do not satisfy the plugin's declared settings schema |
E0019 | endpoint-requires-reference-form | endpoint requires form: reference |
E0020 | invalid-cron-schedule | schedule is not a valid cron expression |
E0021 | persistent-template-requires-stateful-form | persistentTemplate volume requires form: stateful |
E0022 | pipeline-patch-target-not-structured | pipeline PATCH target is not parseable structured YAML/JSON |
E0023 | reference-form-requires-endpoint | form: reference requires an endpoint |
E0024 | schedule-requires-scheduled-form | schedule requires form: scheduled |
E0025 | scheduled-form-requires-schedule | form: scheduled requires a schedule |
E0026 | artifact-content-mismatch | imported artifact content does not match the digest recorded for it in entity.lock |
E0027 | artifact-import-shape | artifacts $import: is not a bare-name artifact-library reference (<Library>#/artifacts/<entry>) |
E0028 | artifact-output-collision | artifacts output filename collision: two artifact outputs carry the same filename |
E0029 | artifact-pillar-not-declared | artifact template references a pillar the Recipe does not declare |
E0030 | artifact-library-entry-not-found | artifact-library import references a bundle not present in the ArtifactLibrary |
E0031 | artifact-library-not-found | artifact-library import references an ArtifactLibrary not present in the catalog |
E0032 | assembled-output-collision | assembled output collision: two contributors write the same output path |
E0033 | authored-assertion-failed | assertion failed |
E0034 | attachment-inject-key-collision | duplicate delivery key across attachment-inject and another inject source |
E0035 | boundary-assembly-not-provided | provider expected to assemble its dispatch group provides no boundary assembler |
E0036 | chart-name-mismatch | merged-path assembly has conflicting assembly-name annotation values |
E0037 | cross-provider-link-unsupported | cross-boundary link between endpoints rendered by different providers is not supported |
E0038 | derived-key-collision | derived name collision: one name is derived more than once in one key space |
E0039 | featurerecipe-template-invalid-field | FeatureRecipe template references a per-component-only field with executionScope: boundary |
E0040 | host-in-library-import | library $import: carries a registry host; reference the library by bare-name identity |
E0041 | instance-id-collision | multiple contributors share an instance ID at the same dispatch path |
E0042 | locals-forward-reference | locals entry references a sibling defined later in the same block |
E0043 | locals-unknown-reference | template references a key the locals block does not declare |
E0044 | mapping-entry-not-found | mapping-library import references an entry not present in the MappingLibrary |
E0045 | mapping-import-shape | valuesMapping $import: is not a bare-name mapping-library reference (<Library>#/mappings/<entry>) |
E0046 | mapping-library-not-found | mapping-library import references a MappingLibrary not present in the catalog |
E0047 | orphan-cross-boundary-link-placeholder | assembled output retains an unresolved cross-boundary link placeholder |
E0048 | path-collision | dispatch path produced multiple provider outputs |
E0049 | path-template-invalid-field | path template references a field not in the documented allowlist |
E0050 | pipeline-host-scope-unavailable | pipeline /host operation from a step with no host component |
E0051 | pipeline-patch-targets-unassembled-fragments | pipeline PATCH targets an assembler provider's pre-assembly fragments |
E0052 | pipeline-target-not-emitted | pipeline PATCH targets a document the node did not emit |
E0053 | plugin-provider-incompatible | pipeline plugin is not compatible with the rendering provider |
E0054 | provider-node-input-invalid | provider rejected node input |
E0055 | provides-contract-unfulfilled | Recipe or FeatureRecipe does not publish a provides key its abstract entity's schema.provides contract declares |
E0056 | provides-evaluation-failed | provides template evaluation failed |
E0057 | provides-self-containment | provides block references a root outside the self-contained set |
E0058 | render-nondeterministic | provider render is not deterministic |
E0059 | self-inject-key-collision | duplicate delivery key across self-inject and uses-inject |
E0060 | template-unknown-root | template references a root the render context does not define |
E0061 | unknown-provider | unknown provider |
E0062 | custom-mechanism-has-no-mapping | custom inject mechanism has no matching key in injectMapping output; add the mechanism's key to the Recipe injectMapping |
E0063 | workload-entry-not-found | workload-library import references an entry not present in the WorkloadLibrary |
E0064 | workload-import-shape | workload $import: is not a bare-name workload-library reference (<Library>#/workloads/<entry>) |
E0065 | workload-library-not-found | workload-library import references a WorkloadLibrary not present in the catalog |
E0066 | dangling-uses-target | uses edge target does not exist |
E0067 | active-toggle-not-a-boolean | active toggle did not resolve to a boolean |
E0068 | sub-aggregate-nesting-depth-exceeded | max sub-aggregate nesting depth exceeded |
E0069 | mutator-patch-rejected | mutator patch rejected |
E0070 | reexport-cycle | re-exported component alias forms a cycle |
E0071 | release-edge-retarget | release edge retargets a developer-declared edge |
E0072 | sub-aggregate-not-loadable | sub-aggregate load failed |
E0073 | sub-aggregate-name-collision | flattened node ID collision: rename one of the colliding instances so their flattened IDs differ |
E0074 | unbound-release-edge-config | release per-edge configuration has no edge to apply to |
E0075 | aggregate-not-in-canonical-form | aggregate reached topology un-normalized (non-empty root components alongside a synthesized default subsystem) |
E0076 | unplaced-sub-module | sub-module placed in no boundary: route it into a boundary under `aggregates`, or name its components there under `components` |
E0077 | uses-target-not-active | uses edge target was pruned because its active toggle resolved to false |
E0078 | wasm-nested-producer-consumption-denied | producer-consumption re-entry denied: a producer reached through the host may not issue a further producer-consumption call |
E0079 | wasm-command-set-mismatch | wasm: recorded command mirror does not match plugin describe() |
E0080 | wasm-contract-mismatch | wasm: entity contract claim does not match plugin describe() |
E0081 | wasm-diagnostic-severity-invalid | wasm: guest plugin returned a diagnostic whose severity the contract does not declare |
E0082 | wasm-guest-error | wasm: guest plugin reported an error |
E0083 | wasm-guest-panic | wasm: guest plugin panicked during call |
E0084 | wasm-host-function-set-mismatch | wasm: stamped host-function record does not match .wasm imports |
E0085 | wasm-manifest-rejected | wasm: plugin rejected by the sandbox |
E0086 | wasm-plugin-exited | wasm: plugin invoked proc_exit |
E0087 | wasm-plugin-type-mismatch | wasm: declared plugin type does not match plugin describe() |
E0088 | wasm-plugin-version-mismatch | wasm: entity metadata.version does not match plugin describe() |
E0089 | all-versions-retracted | every published version this reference could select has been withdrawn |
E0090 | ambiguous-importer-plugin | format is advertised by more than one importer plugin |
E0091 | ambiguous-parser-plugin | format is advertised by more than one parser plugin |
E0092 | ambiguous-provider-plugin | capability is served by more than one provider plugin; add a plugins.providers entry to select one |
E0093 | ambiguous-type-mapping | Manifest maps multiple version-distinct keys to the same base type; the type-to-recipe lookup is ambiguous |
E0094 | duplicate-entity-identity | duplicate entity identity within a single catalog directory |
E0095 | malformed-recipe-reference | malformed recipe reference in a Manifest mapping value |
E0096 | manifest-implements-mismatch | Manifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key |
E0097 | no-importer-for-format | no importer plugin advertises the requested format |
E0098 | no-parser-for-format | no parser plugin advertises the requested format |
E0099 | no-recipe-resolved | no recipe resolved for component/feature instance: add an explicit Manifest mapping for its type |
E0100 | provider-binding-unsatisfied | plugins.providers entry names a plugin no provider-rendering plugin serving the capability matches |
E0101 | provider-version-unsatisfiable | no provider-rendering plugin version satisfies the recipe's provider version pin |
E0102 | plugin-reference-must-not-be-registry-qualified | wasm plugin reference must be the plugin coordinate identity (<pluginType>/<name>:<version>), not a registry-qualified or artifact path |
E0103 | unsatisfiable-entity-version | no catalog version satisfies the referenced version constraint |
E0104 | plugin-reference-must-be-scoped | wasm plugin reference must carry a pluginType scope (<pluginType>/<name>); an empty scope cannot bind to an OCI location |
E0105 | recipe-reference-must-be-scoped | recipe reference must be provider-scoped (<provider>/<name>); an empty provider cannot bind to an OCI location |
E0106 | invalid-library-ref | resolve: invalid library reference URI |
E0107 | version-selection-conflict | resolve: consumers of one library require versions in incompatible majors |
E0108 | catalog-cannot-load-sub-aggregate-bodies | resolve: catalog lookup cannot load resolved sub-aggregate bodies |
E0109 | catalog-cannot-load-recipe-bodies | resolve: catalog lookup cannot load resolved recipe and plugin bodies |
E0110 | source-template-at-lock-time | resolve: source-template evaluation failure at lock time |
E0111 | source-template-not-parsable | resolve: source-template parse error |
E0112 | source-template-provides-ref | resolve: source-template references .provides (invalid reverse reference) |
E0113 | sub-aggregate-depth | resolve: sub-aggregate inclusion depth exceeded |
E0114 | unresolvable-uri | resolve: no entity in the catalog matches this URI |
E0115 | ambiguous-dispatch | compactform: ambiguous dispatch — $mode required |
E0116 | constraint-type-mismatch | compactform: constraint not valid for declared type |
E0117 | escape-content-invalid | compactform: $jsonschema content invalid |
E0118 | host-in-library-ref | compactform: cross-document $ref carries a registry host; reference the library by identity |
E0119 | reference-unresolvable | compactform: $ref unresolvable |
E0120 | unknown-keyword | compactform: unknown keyword |
E0121 | unresolved-schema-library-ref | compactform: cross-document $ref target not found |
E0122 | deprecated-entity | deprecation: build consumes a deprecated entity |
E0123 | not-docs-bundle | docscache: artifact is not a documentation bundle |
E0124 | page-not-found | docscache: page not found in documentation bundle |
E0125 | offline-egress | egress: network access refused because the workspace is offline; remediation: pass `--offline=false` to allow the network for this one run, or clear the top-level `offline` key in the configuration file (or AGGREGA_OFFLINE) to allow it from now on; where the work is a build that needs content the machine does not have, run `aggrega pull --release <release>` from a connected environment first to populate the cache |
E0126 | acquisition-disabled | externalinputs: acquisition is disabled for unpinned inputs |
E0127 | digest-mismatch | externalinputs: fetched bytes mismatch the pinned digest |
E0128 | scheme-not-allowed | externalinputs: URL scheme is not allowed |
E0129 | store-corrupt | externalinputs: store blob mismatches its pinned record |
E0130 | lockfile-drift | lockfile: out of date; it no longer matches what its Release resolves to |
E0131 | lockfile-invalid | lockfile: file failed schema validation |
E0132 | ambiguous-content-layer | oci: manifest has multiple layers of the expected content media type |
E0133 | cached-manifest-integrity | oci: cached manifest digest mismatch |
E0135 | fetch-integrity | oci: content digest mismatch |
E0136 | fetch-network-unreachable | oci: network unreachable |
E0137 | fetch-not-found | oci: artifact not found at remote source |
E0138 | fetch-unauthorized | oci: authentication required or failed |
E0139 | immutable-tag-conflict | oci: tag already published with different content |
E0140 | no-content-layer | oci: manifest has no layer of the expected content media type |
E0141 | oci-location-collision | oci: distinct catalog identities map to the same OCI repository location |
E0142 | referrer-discovery-unavailable | oci: referrer discovery could not be completed |
E0143 | unknown-entity-kind | oci: unknown entity kind for mediatype dispatch |
E0144 | signature-bundle-digest-mismatch | cached signature bundle does not match its recorded digest |
E0145 | plugin-entity-not-found | plugin reference is not a Plugin entity |
E0146 | reference-cycle | circular reference expansion |
E0147 | malformed-trust-policy | registrytrust: advertised trust config is malformed |
E0148 | no-trust-advertised | registrytrust: registry advertises no trust config |
E0149 | attachment-slot-near-miss | attachment name is a near miss for a declared slot |
E0150 | attachment-slot-shape | attachment does not conform to its declared slot shape |
E0151 | duplicate-boundary-component | component declared in more than one boundary: declare each component in exactly one boundary |
E0152 | duplicate-triad-identity | duplicate Aggregate/Manifest identity (metadata.name) in the Release directory |
E0153 | feature-merge-conflict | feature merge conflict: reconcile the Aggregate and Release declarations for the feature |
E0154 | internal-catalog-view-disagreement | the compiler's own views of the catalog disagree |
E0155 | inject-key-collision | duplicate delivery key across inject sources |
E0156 | invalid-inject-key | invalid inject key: the from-key must name a provides key its source publishes |
E0158 | invalid-parameter-ref | invalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template |
E0160 | manifest-cross-binding-pillar-collision | Manifest annotation bindings collide on same Feature path+pillar |
E0161 | manifest-reserved-prefix | Manifest annotation binding uses reserved prefix |
E0162 | missing-required-feature | missing required feature: attach a Feature of the required type to the component |
E0163 | missing-required-socket | required uses socket not populated |
E0164 | parameter-contract-violation | parameter contract violated |
E0165 | parameter-missing | required parameter not supplied |
E0167 | provides-key-not-declared | Recipe publishes a provides key its Component does not declare |
E0168 | schema-conformance | authored pillar does not conform to its declared schema |
E0169 | self-inject-forbidden | self-inject on component without spec.inject allowlist |
E0170 | triad-ref-unresolvable | Aggregate/Manifest reference unresolvable |
E0171 | unknown-uses-socket | unknown uses socket: name a socket the entity declares in its usesSchema — only a component's own uses block may name one the catalog did not declare |
E0172 | release-not-in-canonical-form | release reached resolve un-normalized (non-empty root components alongside a synthesized default boundary) |
E0173 | unread-parameter | declared parameter is read by no reference in the Aggregate |
E0174 | uses-socket-near-miss | uses socket name is a near miss for a declared socket |
E0175 | document-not-loadable | file load failed: the file could not be read, or its bytes did not parse |
E0176 | keyless-signing-requires-network | signing: keyless signing requires a live identity provider, Fulcio, and Rekor |
E0177 | no-signature-found | signing: no signature found for an artifact that requires one |
E0178 | no-trusted-identities | signing: keyless verification requires at least one trusted identity |
E0179 | signature-invalid | signing: signature does not verify |
E0180 | signature-verification-failed | signing: signature bundle does not verify |
E0181 | signing-policy-requires-signature | signing: signing policy requires a signature for this artifact kind; refusing to push unsigned content |
E0182 | trust-root-not-loadable | signing: cannot load pinned trust root |
E0183 | unsigned-push-refused | signing: registry requires signatures; refusing to push unsigned content |
E0184 | unsupported-key | signing: unsupported held-key type |
E0185 | untrusted-identity | signing: signature identity is not trusted for this registry |
E0186 | unknown-source-kind | no source adapter serves the source kind |
E0187 | empty-workspace-root | cacheslot: empty workspaceRoot |
E0188 | artifact-entry-shape | artifacts entry: shape must be a string scalar or {$import: <local-path>} |
E0189 | artifact-library-entry-shape | artifactlibrary: entry must be a mapping of filename to a string body |
E0190 | forbidden-keyword | schemalibrary: forbidden JSON Schema keyword |
E0191 | mapping-entry-not-scalar | mappinglibrary: entry body must be a string scalar |
E0192 | document-nesting-depth-exceeded | a document nests too many levels deep |
E0193 | parameters-shape | parameters: shape must be an inline object or {$import: <local-path>} |
E0194 | template-not-found | schemalibrary: template not found |
E0195 | template-param-missing | schemalibrary: template parameter missing |
E0196 | template-param-type-mismatch | schemalibrary: template parameter type mismatch |
E0197 | values-mapping-shape | valuesmapping: shape must be a string scalar or {$import: <path-or-library-identity>} |
E0198 | well-known-annotation-scope | wellKnownAnnotations: a key is declared at a scope the provider's contract does not render |
E0199 | workload-entry-not-scalar | workloadlibrary: entry body must be a string scalar |
E0200 | workload-template-shape | workload: shape must be a string scalar or {$import: <path-or-library-identity>} |
E0201 | assertion-name-collision | assertion name declared twice across the extends chain |
E0202 | cyclic-extension | cyclic extends chain |
E0204 | feature-recipe-values-mapping-requires-source | FeatureRecipe: valuesMapping requires source |
E0205 | extends-merge-failed | inheritance merge failed |
E0207 | recipe-output-component-label-collision | recipe output-component-labels constraint: key is also declared in outputLabels |
E0208 | recipe-output-label-reserved-namespace | recipe output-labels constraint: key uses a reserved namespace |
E0209 | recipe-values-mapping-requires-source | Recipe: valuesMapping requires source |
E0210 | recipe-no-input-kind | Recipe: at least one input kind required |
E0211 | recipe-filename-collision-across-input-kinds | filename collision across input kinds: two input-kind blocks produced a file under one output name |
E0212 | slot-not-referenceable | workload attachment slot is not referenceable |
E0213 | workload-features-schema | workload featuresSchema cross-check failed |
E0214 | workload-not-valid | workload validation failed |
E0215 | entity-envelope-invalid | document envelope validation failed |
E0216 | schema-extension-evaluation-failed | validator/jsonschema: x-aggrega extension evaluation failed |
E0218 | schema-not-resolvable | validator/jsonschema: schema resolution failed |
E0220 | extends-chain-too-deep | extends chain exceeds maximum depth |
E0221 | schema-merge-input-invalid | merger: invalid merge input |
E0222 | ambiguous-registry-alias | registry alias matches more than one host |
E0223 | capability-on-cross-cutting-socket | a cross-cutting socket is bound by capability but attaches by uri |
E0224 | workspace-config-invalid | workspace configuration is invalid |
E0225 | duplicate-provider-target | capability is bound to more than one provider plugin |
E0226 | duplicate-registry-alias | registry alias is already used by another host |
E0227 | governance-role-invalid | a governance attachment declares no role or an unknown role |
E0228 | inert-field-on-provider-socket | a provider socket binding sets a field with no referent on that socket |
E0229 | position-out-of-range | position out of range |
E0246 | verdict-plugin-trust-mismatch | the digest recorded as trusted for this plugin does not match the digest its cached manifest reports |
E0247 | verdict-attachment-not-configured | a plugin recorded as trusted for an accept-or-reject verdict is no longer attached at any verdict role |
E0248 | wasm-output-shape | wasm: guest plugin returned an output that is not the shape the socket reads |
E0250 | nest-segment-not-one-directory | provider named a directory for each contributor's own sub-directory that is not a single directory name |
E0251 | recipe-source-is-empty | recipe source is an empty string, which names neither sourceless mode nor sourced mode |
E0252 | artifact-library-file-escapes-key | artifact-library bundle file name does not name a file of its own beneath the artifacts key its output is nested under |
E0253 | annotation-binding-target-unresolved | annotation binding does not resolve against its target Feature |
E0254 | annotation-subkey-not-conforming | annotation subkey does not conform to the target Feature's schema at the routed pillar |
E0255 | annotation-side-pillar-mismatch | annotation routes through a pillar its authoring side may not use |
E0256 | annotation-binding-pillar-overlap | annotation binding declares one path in both pillar lists |
E0257 | schema-contract-compile-failure | declared schema contract could not be compiled into a usable schema, so nothing was validated against it: correct the contract where it is declared, or remove it if the configuration it covers needs no validation |
E0259 | boundary-scope-attachment-not-declared-at-a-boundary | attachment binds a FeatureRecipe with executionScope: boundary and no boundary holding the component declares it |
E0260 | unplaced-component | component placed in no boundary: name it under a boundary's `components`, or place the sub-module that contributes it under `aggregates` |
E0261 | unresolved-boundary-component | boundary names a component the composition does not hold: correct the name, or remove the entry |
E0262 | unusable-component-identity | component identity cannot be the name its emitted resources are stamped with: rename the component |
E0263 | component-identity-target-refuses | the target will not accept a name derived from this component's authored identity: rename the component |
E0264 | provider-refused-every-component-identity | provider guest never accepted a component identity the compiler composed for it |
E0265 | unsupported-input-kind | provider does not support the node's input kind |
E0266 | unusable-schema-import | a schema `$import:` could not be applied |
E0267 | unknown-schema-pillar | a schema block declares a key that names no data pillar |
E0268 | pipeline-patch-unit-not-carved | reassemble names a patched unit token the carve did not produce; a conforming codec carves and reassembles a file under the same tokens |
E0269 | provider-render-duplicate-path | provider guest returned two output files under one path; a conforming guest returns each output path at most once |
E0270 | link-patch-file-not-emitted | link patch names an output file the dispatch group did not emit; a conforming link patch names a file the group's own render returned |
E0271 | pipeline-emit-file-absent | emit_file side effect carries no file; a conforming emit_file side effect carries a file with its path and content |
E0272 | pipeline-side-effect-kind-undefined | side effect declares a kind the plugin contract does not define; a conforming side effect declares emit_file or emit_crd |
E0273 | rendered-name-unavailable | template reads the name the target gives the resources it renders for the node, and this node's provider reports no such name; a conforming template reads a value the node's own provider supplies |
E0274 | verdict-plugin-identity-changed | the plugin identity recorded as trusted no longer matches what this resolution reports |
E0275 | edit-refused-invalid-result | the edit was refused because the resulting document would not be valid, and nothing was written |
E0276 | schema-evolution | the version being published changes the published predecessor in a way the documented evolution rubric objects to |
E0277 | annotation-prefix | an annotation key on the entity uses a prefix the platform reserves |
E0278 | name-shape | the entity's name does not follow the documented name shape for its kind |
E0279 | dynamic-refs | a schema in the entity uses a dynamic reference construct that cross-document reference resolution cannot follow |
E0280 | id-overrides | a schema in the entity declares an identifier of its own, where the platform owns that schema's identity |
E0281 | category-matches-directory | the entity's category label does not match the category directory the entity is filed under |
E0282 | x-aggrega-discouragement | the entity writes an Aggrega schema extension directly into schema content instead of declaring it under usesSchema or featuresSchema |
E0283 | plugin-default-limits | the Plugin entity declares no runtime resource cap of its own, so the platform defaults apply |
E0284 | secret-slot-declares-sensitive | an attachment slot admits only secret material and does not declare that it handles it |
E0285 | provides-declared-by-component | the Recipe publishes a provides key the Component it implements does not declare, so a consumer wiring that key is refused |
E0286 | publish-bump-below-classification | the version bump being published is smaller than the evolution check's classification of the change requires |
E0287 | import-halting-diagnostic | the importer reported a diagnostic that stops the import, so the source was not fully turned into draft authoring files |
E0288 | plugin-cannot-express-input | a plugin has no expression for a construct this build declares |
E0289 | plugin-required-input-unresolved | a plugin could not resolve something it requires to exactly one value |
E0290 | plugin-output-name-collision | two things a plugin produced occupy one name in its output |
E0291 | plugin-value-not-representable | a plugin has no representation for a value it was given |
E0292 | plugin-failure-unclassified | a plugin reported a failure that none of the declared kinds names |
E0293 | wasm-guest-condition-undeclared | wasm: guest plugin named a condition the socket does not declare |
E0294 | subsystem-component-identity-collision | components in different subsystems take the same identity: rename one of them, since a subsystem contributes nothing to a component's identity |
E0295 | library-reference-whitespace | library reference: a reference to a library entry carries no whitespace or line break |
E0296 | release-chain-composes-both-routing-keys | release extends chain composes both named boundaries and top-level components: declare one routing shape across the chain, never both |
E0297 | inherited-boundary-directory-is-literal | inherited boundary directory carries no template variable, so it resolves to the path the extended Release writes to |
E0298 | bundle-no-entity-document | oci: published bundle carries no entity document |
E0299 | bundle-ambiguous-entity-document | oci: published bundle carries more than one entity document |
E0300 | bundle-unreadable | oci: published bundle cannot be unpacked |
E0301 | published-artifact-not-an-entity | oci: published artifact is not an entity document |
E0302 | entity-not-pinned | an input the entity reads has no pin recorded for it in the entity.lock beside it |
E0303 | entity-shares-its-directory | the entity shares its directory with another entity, and an entity of its kind has a directory of its own |
E0304 | content-outside-entity-directory | a path names content outside the entity's own directory |
E0305 | local-source-content-mismatch | the files of the entity's local source do not match the pins recorded for them in entity.lock |
E0306 | plugin-artifact-not-found | plugin artifact not found on this machine |
E0307 | cache-location-outside-cache | a value a cache location is built from would place cached files outside the place it names in the cache |
E0308 | conflicting-features-reach-one-component | a Feature reaches a component alongside a Feature it declares a conflict with |
E0309 | symbolic-link-in-entity-files | a symbolic link sits among the files an entity carries |
E0310 | offline-registration-without-trust-policy | a registry other than the official hub is not registered offline without a trust policy supplied by hand, because the policy it advertises cannot be fetched; register it once while online, or pin its trust by hand with `aggrega registry add <host> --identity <identity>=<issuer>` or `--key <public-key-file>` |
E0311 | malformed-version-pin | reference carries a malformed version pin |
E0312 | colon-in-provider-binding-capability | a provider socket binding names a capability containing a colon, which no Recipe can select |
E0313 | provider-binding-capability-unserved | plugins.providers entry names a capability no provider-rendering plugin the build reads serves |
E0314 | plugin-built-from-uncommitted-changes | plugin was built from a working tree with uncommitted changes, so no commit reproduces the version it reports |
E0315 | connection-attachment-slot-undeclared | a connection carries an attachment under a name its socket declares no slot for |
E0316 | connection-attachment-written-off-its-connection | a Release attachment takes the name of an attachment one of a component's connections carries |
E0317 | release-connection-attachment-untyped | a Release connection attachment names no Feature type, and the type is required for an attachment only the Release makes |
E0318 | attachment-inject-mapping-key-collision | duplicate delivery key across two attachments: an attachment's FeatureRecipe writes a delivery key another attachment already delivered |
E0319 | duplicate-connection-alias | connection alias is already used by another connection of the same component |
E0320 | write-leads-out-of-workspace | a path this operation writes or deletes leads through a link out of the directory it must stay inside |
E0321 | read-leads-out-of-workspace | a file this operation reads leads through a link out of the directory it must stay inside |
E0323 | caller-render-facts-not-declared | template reads its callers' render facts, but the FeatureRecipe does not set readsCallerRenderFacts |
E0324 | reference-leads-out-of-workspace | a reference a document makes to another file leads out of the directory it must stay inside |
E0325 | provider-render-fact-not-list | provider guest reported a render fact whose value is not a list; a conforming guest reports every render fact's value as a JSON array, even with one entry |
E0326 | pipeline-step-reads-caller-render-facts | pipeline step reads its callers' render facts, but a pipeline step does not read the components connecting to its host; it reads only the host's own render facts |
E0327 | index-of-absent-map-key | template indexes a map with a key the map does not hold |
E0328 | misnamed-slot-fill | attachment written under a name no slot declares fits a slot its component leaves empty |
E0329 | connection-credential-matches-target-key | a connection and the target it reaches do not name one key: they write different locators for it, or only one of them names one |
E0330 | mixed-signing-credentials | signing: the references named together need different signing credentials, so nothing was signed |
E0331 | signature-not-recorded | signing: no verified signature is recorded for an artifact that requires one |
E0332 | signature-for-another-artifact | signing: the recorded signature was made for a different artifact |
E0333 | recorded-signature-out-of-date | signing: a recorded signature is not the one a pull would record |
E0334 | omit-matched-nothing | an omits entry left out nothing the source rendered |
E0335 | unsupported-omits | provider does not support omits |
E0336 | omit-report-mismatch | a provider's omitted counts do not match the omits entries it was handed |
E0337 | importer-version-unsatisfiable | no importer plugin version satisfies the plugins.importer entry's version pin |
E0338 | duplicate-importer-attachment | importer is attached by more than one plugins.importer entry |
E0339 | ambiguous-import-format | more than one importer recognises the source |
E0340 | name-windows-cannot-hold | a name this operation writes holds a path segment Windows cannot hold as written |
E0341 | importer-declares-no-file-patterns | the importer serving the source's format declares no file patterns, so it reads one file and cannot read a directory |
E0342 | import-directory-matched-nothing | no file in the directory matches the file patterns the importer serving the source's format declares |
E0343 | import-source-name-collision | a file read from the directory and a file named in the importer's `with.sources` have the same name |
E0344 | windows-unusable-entry | an entry this publication carries cannot be used on Windows |
E0345 | duplicate-container-environment-variable | a container declares one environment variable twice |
E0346 | metrics-credential-annotation-matches-provides | a Component's annotation stating how its metrics authenticate disagrees with whether it declares the provides key saying an instance's metrics need a credential |
E0347 | target-render-facts-not-declared | template reads the render facts of a component its host is wired to, but the FeatureRecipe does not set readsTargetRenderFacts |
E0348 | pipeline-step-reads-target-render-facts | pipeline step reads the render facts of a component its host is wired to, but a pipeline step reads only the host's own render facts |
E0349 | import-target-unbound | no Recipe in the workspace's catalog binds to the capability the import's target names |
E0350 | unrecognised-import-format | no importer recognises the source |
E0351 | unsupported-boundary-artifacts | provider does not support boundary artifacts |
E0352 | boundary-directory-not-beneath-output-root | boundary output directory does not name a directory beneath the output root |
E0353 | boundary-feature-name-not-a-directory | boundary-level Feature instance name is not a directory name |
E0354 | cross-boundary-link-value-not-copied | a template does more than copy a value it reads off a cross-boundary link |
E0355 | inject-delivery-shape | inject delivery: shape must be a list of entries, each `in:` with exactly one of `from:` or `value:` |
E0356 | suspend-requires-scheduled-form | suspend requires form: scheduled |
E0357 | name-mapping-matched-nothing | a Manifest name mapping's key names no component instance or attachment in this build, so the entry binds nothing |
E0358 | uses-target-not-exported | uses edge target names a component its module does not export |
E0359 | source-adapter-not-registered | no source adapter is registered in this program for the source kind |
E0360 | netrc-file-unreadable | the netrc file could not be read |
E0361 | source-url-carries-credential | the source URL carries a credential |
E0362 | uses-inject-value | inject entry on a connection carries `value:`; a connection delivers the target's published keys, each named with `from:` |
E0363 | annotation-subkey-not-bound | annotation subkey is not routed by the annotation's binding |
E0364 | value-template-execution-failed | a value template failed while it ran |
E0365 | boundary-contribution-not-assembled | boundary-level Feature's output is routed to a dispatch path nothing assembles |
E0366 | inject-mapping-output-not-parsable | FeatureRecipe injectMapping output could not be read as a dictionary of deliveries |
E0367 | annotation-scalar-not-routable | a scalar annotation value does not route to exactly one path of its binding |
E0368 | inject-mapping-output-key-not-delivered | FeatureRecipe injectMapping output writes a key no delivery mechanism of the host reads |
E0369 | absent-path-read-and-iterated | template reads a path as a value and iterates it, and the data holds nothing at that path |
E0370 | duplicate-pipeline-step-id | a pipeline declares one step id twice |
E0371 | unknown-catalog-document-kind | catalog document declares a kind a catalog does not hold |
E0372 | attachment-inject-value | inject entry on an attachment carries `value:`; an attachment delivers the keys its FeatureRecipe publishes, each named with `from:`, and a literal belongs in the component's own inject block |
E0373 | retired-api-version | a document declares an API version this compiler no longer reads |
E0374 | retired-abi-version | a plugin declares a plugin ABI version this compiler no longer speaks |
E0375 | retired-media-type | oci: artifact carries a media type this compiler no longer reads |
E0376 | no-answer-in-time | egress: the server did not answer in time |
E0377 | repository-listing-too-long | registry: the repository listing did not end in time |
E0378 | registry-too-busy | oci: the registry kept asking to slow down |
E0379 | oci-module-source-malformed | the source does not name one artifact of its OCI module kind |
E0380 | fetch-server-error | oci: the registry answered with a server error |
E0381 | fetch-interrupted | oci: the transfer from the registry broke off |
E0382 | conflicting-version-constraints | no version of a component or feature type satisfies every constraint declared on the instance |
E0002已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱在檢查圖的靜態契約時發生的目錄查詢失敗——這是編譯器本身的錯誤,而不是撰寫的文件之錯;而當建置解析某個元件型別、但其所讀取的目錄中沒有它的項目時所引發的條件,現在回報的就是該狀態,其代碼為E0154。E0134已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱某個可發布實體的目錄,並未以該實體所宣告的版本來命名;發布並不會判斷目錄的名稱,而當實體在其種類有專屬目錄的情況下,卻與另一個實體共用目錄時所引發的條件是E0303。E0157已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱某個 Aggregate 鍵——元件、功能、子系統或巢狀模組的實例名稱——不符合撰寫名稱模式。這些鍵介面每一個都被 Aggregate 結構描述限制為同樣的拼法,結構描述會在驗證封套時拒絕該文件,並以行與欄回報有問題的鍵;該條件的代碼為E0215。E0159已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱某個目標參照,其以點分隔的區段並非全部符合實例名稱模式,而在該條件被撤回之前,沒有任何建置回報過它。E0166已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱 Release 的parameters: { $import: … }所指向的檔案無法讀取、或其位元組無法剖析的情況;無論路徑寫在哪裡,產生不出文件的檔案都屬於同一個條件,其代碼為E0175。E0203已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱某個在eval能力上的 FeatureRecipe 宣告了來源、值覆蓋層、工作負載或成品;該能力已被撤回,現在沒有任何東西會回報此狀態。E0206已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱某個在eval能力上的 Recipe 宣告了來源、工作負載、成品或值覆蓋層;該能力已被撤回,而不宣告上述任何一項的 Recipe,在每一種能力上都會依E0210被拒絕。E0217已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱無法針對特定欄位回報的結構描述驗證失敗,而在該條件被撤回之前,沒有任何建置回報過它。E0219已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱循環的extends鏈,由與結構描述合併的組合步驟分開的鏈走訪所回報;單一一次鏈走訪會回報每一條循環鏈,其代碼為E0202。E0230已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0231已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0232已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0233已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0234已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱某個 Recipe 來源是空字串,於透過 compose 提供者渲染時回報;現在由涵蓋所有提供者的單一條件回報,其代碼為E0251。E0235已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0236已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0237已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0238已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0239已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0240已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0241已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0242已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱某個 Recipe 來源是空字串,於透過 Helm 提供者渲染時回報;現在由涵蓋所有提供者的單一條件回報,其代碼為E0251。E0243已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0244已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0245已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0249已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0258已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。這個編號所指稱的條件已被撤回,沒有任何建置會回報它。E0322已停用:目前沒有任何東西會回報它,而且這個編號絕不會再交給不同的條件。它曾指稱附加到邊界的 Feature 為元件環境計算出的值,其鍵已由另一個附加項目傳遞過。附加到邊界的 Feature 只會透過其 FeatureRecipe 的 injectMapping 傳遞到元件中,而寫入另一個附加項目已傳遞之鍵的對應,會依E0318回報。
Matching guidance(比對指引)
errors.Is 述詞會走訪包裝鏈,因此即使錯誤在回到你手上的途中被包裝了好幾次,sentinel 比對仍然有效。請針對匯出函式所回傳的錯誤進行比對:
package release
import ( "errors" "fmt"
"github.com/aggrega-ai/aggrega-cli/pkg/resolver" "github.com/aggrega-ai/aggrega-cli/pkg/validator/envelope")
// Load reads a Release and reports the distinct failures a caller handles// differently.func Load(path string) error { _, err := resolver.LoadRelease(path) switch { case errors.Is(err, envelope.ErrEntityEnvelope()): return fmt.Errorf("%s is not a Release: %w", path, err) case errors.Is(err, resolver.ErrYAMLLoad()): return fmt.Errorf("%s could not be read as YAML: %w", path, err) case err != nil: return err } return nil}沒有任何匯出的進入點會執行整個建置,因此 errors.Is 比對只適用於直接呼叫這些套件的程式碼。若要以建置來把關 CI,請執行 aggrega build,並讀取其結束狀態與診斷:其訊息文字已列於 fatal-halts.md,其類別在 error-translation.md,而其括號開頭中的簡短代碼,可在本頁的所有條件表中解析。
之所以有這兩條把關途徑,是因為三個識別碼能觸及的距離不同。以 Go 撰寫的把關會連結這些套件、比對 sentinel,並能從手上的任何錯誤讀取任一個代碼。圍繞命令撰寫的把關則只有結束狀態與印出的文字——而印出的文字會指明條件,因為簡短代碼就在括號開頭中。所以這樣的把關應以該簡短代碼為鍵,而不是以訊息措辭為鍵,而依訊息編排的檢視仍是從已有的措辭回頭查詢的方式。在 Go 中比對 sentinel;在命令周圍以簡短代碼為鍵;若用戶端使用該通訊協定,則從結構化診斷讀取描述性代碼。
在不同套件中宣告、但簡稱相同的哨兵是不同的條件,而不是同一個條件的兩種拼法:errors.Is 以身分區分它們,因此與其中一個相符並不表示與另一個相符。表格中特別指出的重新匯出是例外,而它們之所以被特別指出,正是因為它們是兩個名稱確實相符的情況。請針對表格所列的套件中的名稱進行比對,並把單獨的簡稱視為含糊不清。
關於面向使用者的診斷目錄(開發者在建置中止時於終端機看到的訊息),請見 fatal-halts.md。關於提示性警告目錄(不會中止的 warning:、lint: 與 notice: 輸出),請見 warnings.md。關於類別前綴分類([DEVELOPER_ERROR] / [OPS_ERROR] / [CATALOG_ERROR] / [TRANSLATION_ERROR] / [FETCH_ERROR] / [POLICY_ERROR] / [TRUST_ERROR]),請見 error-translation.md。