Перейти до вмісту
AggregaAggrega
Обрати мову: Українська
Цю сторінку перекладено машинним способом. Читати оригінал англійською.

Сентинели помилок — канонічний довідник

Кожна фатальна зупинка, яку видає компілятор, називає умову, і кожна умова має три ідентифікатори, бо розпізнати умову, зафіксувати її та процитувати — три різні завдання. Сентинел — це значення Go, яке зіставляє errors.Is, отримане викликом функції доступу, яку експортує пакет, що його оголошує: ідентифікатор, який розпізнає код на Go. Код — це рядок, під яким умову зареєстровано: він називає саму умову словами і залишається незмінним, хоч би як змінювалися пакети Go довкола нього, — ідентифікатор, який фіксує програма. Короткий код — це літера E і чотири цифри, достатньо короткі, щоб їх прочитати вголос, ввести в пошук або вставити у звіт: ідентифікатор, який цитує людина. Одна умова, три ідентифікатори: зіставляйте сентинел, щоб розпізнати умову з Go, читайте код, коли потрібно його зафіксувати або використати як ключ, а короткий код шукайте в таблиці всіх умов нижче на цій сторінці.

Діагностика для користувача (повідомлення з префіксом, каталогізоване в fatal-halts.md та error-translation.md) містить текст для розробника; обгорнутий сентинел — це те, з чим зіставляє errors.Is у програмних споживачах.

Ця сторінка — подання каталогу за сентинелами. Програмісти, які пишуть перевірки CI, інтеграції з IDE або код оркестрації збірок, що має розрізняти види помилок, зіставляють із переліченими тут сентинелами за допомогою стандартного предиката errors.Is. Авторам, які налагоджують збірку, читаючи виведений текст помилки, зазвичай потрібні подання за повідомленнями — fatal-halts.md для помилок, що зупиняють збірку, warnings.md для попереджувального виводу.

Кожен рядок у таблицях нижче називає функцію доступу — функцію без аргументів, експортовану з пакета, який називає таблиця, що повертає сентинел. Імпорт цього пакета й виклик функції доступу — це підтримувана поверхня інтеграції, тому таблиці пишуть кожну з дужками: саме виклик дає значення, яке може зіставити errors.Is, а ім’я без дужок — це функція, а не помилка:

import (
"errors"
"github.com/aggrega-ai/aggrega-cli/pkg/resolver"
)
if errors.Is(err, resolver.ErrParameterContractViolation()) {
// handle parameter contract violations
}

Три ідентифікатори мають окрему стабільність, і саме це розділення є причиною, чому умова має всі три. Перелічені нижче функції доступу стабільні між патч-релізами; про перейменування чи вилучення повідомляє запис у журналі змін для релізу, який їх вносить, а додавання нової функції доступу в пакеті є адитивним і не ламає наявних зіставлень. Код незмінний, щойно його умову опубліковано, тож саме його слід фіксувати всюди, де умову треба назвати надовго: перейменування функції доступу не змінює коду, під яким зареєстровано її умову, і зафіксований вами код переживе рефакторинг поверхні Go. Короткий код найдовговічніший із трьох: номер видається один раз і потім не змінюється, а номер вилученої умови залишається вилученим і не передається іншій умові, тож короткий код, зафіксований у старому звіті, досі називає ту умову, яку називав на момент фіксації. Це забезпечується примусово, а не лише задумано: умову, оголошену під вилученим номером, відхиляють ще до того, як компілятор прочитає будь-які вхідні дані, під час кожного запуску, — і кожен вилучений номер опубліковано поруч із чинними в таблиці всіх умов. Стовпець коду нижче містить код, і це значення, яке клієнт структурованої діагностики читає, не компонуючи ці пакети. Його опубліковано, а не виведено, бо він не обов’язково повторює рядок, у якому стоїть: повторно експортоване ім’я повідомляє код умови, на яку переспрямовує, а код правила називає правило, а не функцію доступу. Стовпець повідомлення — це дослівний текст, який відображає сентинел; діагностика для користувача ставить перед цим текстом заголовок у квадратних дужках і місце в джерелі. Цей заголовок містить короткий код умови, а поруч — категорію випадку, якщо вона в нього є, як у [DEVELOPER_ERROR E0007], тож читач може розшифрувати кожне незалежно: категорії (DEVELOPER_ERROR / OPS_ERROR / CATALOG_ERROR / TRANSLATION_ERROR / FETCH_ERROR / POLICY_ERROR / TRUST_ERROR) пояснено в error-translation.md, а короткі коди розшифровуються в таблиці всіх умов на цій сторінці. Якщо умову викликав плагін, токен коду уточнюється плагіном, який її викликав, — [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. Зіставляйте сентинел, щоб розпізнати умову; зчитуйте код, щоб її записати.

Код, який aggrega друкує в терміналі, — короткий, а не цей. Діагностика зупинки починається із заголовка у квадратних дужках, що містить короткий код умови, а поруч — категорію випадку, якщо вона є: [DEVELOPER_ERROR E0007], або [TRANSLATION_ERROR provider/example:1.0.0/E0007], коли умову породив плагін і код уточнено плагіном, що її породив, або [E0007], коли збій не має сфери відповідальності, до якої вас скерувати, — а далі розташування в джерелі та текст повідомлення, каталогізований у fatal-halts.md. Описовий код називає умову словами і задовгий для цієї позиції: для найдовших умов він заповнив би вузький термінал ще до початку повідомлення, і саме тому існує другий, компактний ідентифікатор. Тож коли у вас є лише надрукований вивід, працюйте з коротким кодом, який розв’язується за таблицею всіх умов нижче на цій сторінці: від номера, який можна продиктувати телефоном, ви доходите до умови, її функції доступу та тексту повідомлення. aggrega explain <code> виконує це розв’язання в терміналі — команда приймає будь-який із двох кодів умови й друкує умову разом із записом, що документує виправлення для авторів; її описано в aggrega explain. Подання за повідомленнями у fatal-halts.md лишаються способом працювати від формулювання, а не від ідентифікатора.

Поза Go код потрапляє у структуровану діагностику, яку публікує демон компілятора-як-сервісу, як окреме поле code у кожному записі, а не як щось вбудоване в текст повідомлення, — тож розширення редактора чи будь-який інший клієнт цього протоколу розгалужується за тим, що повідомляє запис, не підключаючи цих пакетів і не розбираючи прозу. Цей один ключ містить машинно зіставний код, хоч би хто його призначив, а запис указує, який шар його породив. Код там має три джерела, і третє — причина, чому код, який можна знайти на цій сторінці, не є сам по собі ознакою того, що щось зазнало збою:

  • Код умови, яку називає збій, — саме їх каталогізує ця сторінка.
  • Код класу попередження про відрендерений вихід — unsupported-field є одним із них, і його описано у warnings.md. Його призначають там, де виникло попередження, а не реєструють як умову, тож рядка тут він не має.
  • Зареєстрований код попередження про авторські документи — назва, що на одну правку відрізняється від оголошеної, параметр, який ніщо не читає. Така знахідка називає умову в тій самій формі, що й збій, тож її код зареєстровано і він має рядок на цій сторінці, а прочитавши цей рядок, ви дізнаєтеся, про що знахідка.

Тож той самий код, який ви зчитали б із зупинки, може надійти й зі збірки, що завершилася, разом зі знахідкою, яка ніяк не змінила результату. Розрізняє їх отриманий вами результат і шар, який називає запис, — ніколи не форма самого коду і ніколи не те, чи розв’язується він тут. Поле відсутнє, коли ніщо, що створило запис, не призначило коду: збій, що не називає жодної власної умови Aggrega, і попередження, джерело якого коду не призначило. aggrega serve документує форму запису, ключ, що називає шар, і умови присутності поля.

Структурована діагностика містить обидва ідентифікатори умови, і розуміння, котрий є котрим, відрізняє ідентифікатор, з яким можна діяти, від того, з яким не можна. Ключ code вище призначено для програми: через дефіс і з назвою умови словами, тож розширення, що розгалужується за ним, читається так, як воно означає, і це значення, яке повідомляє CodeOf у Go. Ключ shortCode поруч призначено для людини — літера E і чотири цифри, той самий токен, який діагностика зупинки друкує в заголовку у квадратних дужках. Його диктують телефоном, вводять у пошук або вставляють у звіт про проблему, і саме за ним упорядковано таблицю всіх умов.

Жоден не є скороченням іншого, і жоден не є запасним варіантом для іншого. Зіставляйте за описовим кодом; показуйте читачеві короткий. Інтерфейс, що пропонував би лише описовий код, давав би авторові ідентифікатор, призначений для зіставлення, а той, що зіставляв би за коротким кодом, зіставляв би за номером, який нічого не каже про умову, — тому передаються обидва, а не обирається один.

Третій ключ, codeDescription, указує, де опубліковано умову, як посилання, яке можна відкрити, щоб дізнатися більше про діагностику. Його адреса веде до таблиці всіх умов на цій сторінці, тож читач, який переходить за ним із редактора, приходить із коротким кодом, за яким упорядковано таблицю. Запис містить короткий код і посилання разом або не містить жодного: обидва присутні саме тоді, коли запис називає зареєстровану умову — таку, що має рядок у цій таблиці, — і обидва відсутні, коли код називає клас попередження або ідентичність правила домовленостей із вашого власного лінтера, яке Aggrega не оголошує, бо для них немає номера і тут немає нічого, що їх описує.

У зворотному напрямку — від коду, який у вас є, до умови, яку він називає, — опублікованим списком є таблиці нижче. Кожен рядок містить код поруч із функцією доступу, яка дає ту саму умову в Go, тож код, зчитаний зі структурованої діагностики, розв’язується в назву, яку можна зіставити, і в текст, який виводить умова. Таблиці охоплюють умови, функцію доступу яких можна імпортувати, а два види кодів лишаються поза ними: код класу, що називає клас попередження, а не умову, і тому не має функції доступу, яку можна поставити поруч, і код, умову якого оголошено лише в пакеті, який не можна імпортувати, і ніде не реекспортовано, тож немає зіставної назви, яку можна поставити поруч. Другий вид усе одно називає умову, і ця умова все одно має короткий код — таблиця всіх умов нижче на цій сторінці впорядкована за коротким кодом, а не за імпортованою назвою, і тому охоплює й їх.

Поверхня для зіставлення за пакетом оголошення

Кожен розділ нижче — це один пакет, який можна імпортувати. Його заголовок — це шлях пакета відносно шляху модуля github.com/aggrega-ai/aggrega-cli, тож розділ із заголовком pkg/resolver імпортується як github.com/aggrega-ai/aggrega-cli/pkg/resolver.

Записи згруповано за пакетом, який оголошує сентинел, бо саме цей пакет імпортує код зіставлення. Де саме у збиранні виникає умова — окреме питання, і ця сторінка свідомо на нього не відповідає: один сентинел часто виникає з кількох місць, а кілька виникають лише з коду, який модуль не експортує, тож жодна відповідь для окремого запису не була б правдивою для кожного рядка. Представлення, впорядковані за повідомленнями, відповідають на питання «коли у збиранні» у термінах, які можна спостерігати, — насамперед fatal-halts.md.

Кілька імен трапляються в більш ніж одному пакеті. Це повторні експорти одного спільного значення, а не дві умови, тож зіставлення з будь-яким з імен буде успішним; таблиці зазначають це там, де обидва імені можна імпортувати. Обидва рядки мають однаковий код — це той самий факт, висловлений через ідентифікатор, який має клієнт поза Go: одна умова, один код, скільки б імен до неї не вело.

pkg/catalog

СентинелКодПовідомлення
ErrAllVersionsRetracted()all-versions-retractedevery published version this reference could select has been withdrawn
ErrAmbiguousImporterPlugin()ambiguous-importer-pluginformat is advertised by more than one importer plugin
ErrAmbiguousParserPlugin()ambiguous-parser-pluginformat is advertised by more than one parser plugin
ErrAmbiguousProviderPlugin()ambiguous-provider-plugincapability is served by more than one provider plugin; add a plugins.providers entry to select one
ErrAmbiguousTypeMapping()ambiguous-type-mappingmanifest maps multiple version-distinct keys to the same base type; the type-to-recipe lookup is ambiguous
ErrDuplicateEntityIdentity()duplicate-entity-identityduplicate entity identity within a single catalog directory
ErrImporterVersionUnsatisfiable()importer-version-unsatisfiableno importer plugin version satisfies the plugins.importer entry's version pin
ErrManifestImplementsMismatch()manifest-implements-mismatchmanifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key
ErrNameMappingMatchedNothing()name-mapping-matched-nothinga Manifest name mapping's key names no component instance or attachment in this build, so the entry binds nothing
ErrNoImporterForFormat()no-importer-for-formatno importer plugin advertises the requested format
ErrNoParserForFormat()no-parser-for-formatno parser plugin advertises the requested format
ErrNoRecipeResolved()no-recipe-resolvedno recipe resolved for component/feature instance: add an explicit Manifest mapping for its type
ErrProviderBindingCapabilityUnserved()provider-binding-capability-unservedplugins.providers entry names a capability no provider-rendering plugin the build reads serves
ErrProviderBindingUnsatisfied()provider-binding-unsatisfiedplugins.providers entry names a plugin no provider-rendering plugin serving the capability matches
ErrProviderVersionUnsatisfiable()provider-version-unsatisfiableno provider-rendering plugin version satisfies the recipe's provider version pin
ErrQualifiedPluginReference()plugin-reference-must-not-be-registry-qualifiedwasm plugin reference must be the plugin coordinate identity (<pluginType>/<name>:<version>), not a registry-qualified or artifact path
ErrUnknownCatalogDocumentKind()unknown-catalog-document-kindcatalog document declares a kind a catalog does not hold
ErrUnsatisfiableEntityVersion()unsatisfiable-entity-versionno catalog version satisfies the referenced version constraint
ErrUnscopedPluginReference()plugin-reference-must-be-scopedwasm plugin reference must carry a pluginType scope (<pluginType>/<name>); an empty scope cannot bind to an OCI location
ErrUnscopedRecipeReference()recipe-reference-must-be-scopedrecipe reference must be provider-scoped (<provider>/<name>); an empty provider cannot bind to an OCI location
ErrUnusableSchemaImport()unusable-schema-importa schema `$import:` could not be applied
  • ErrManifestImplementsMismatch() — це те саме значення, що й pkg/resolver.ErrManifestImplementsMismatch(), тож зіставлення з будь-яким з імен буде успішним.

pkg/closure

СентинелКодПовідомлення
ErrInvalidLibraryRef()invalid-library-refresolve: invalid library reference URI
ErrMVSConflict()version-selection-conflictresolve: minimal version selection conflict — incompatible library version requirements
ErrNoAggregateLoader()catalog-cannot-load-sub-aggregate-bodiesresolve: catalog lookup cannot load resolved sub-aggregate bodies
ErrNoRecipeLoader()catalog-cannot-load-recipe-bodiesresolve: catalog lookup cannot load resolved recipe and plugin bodies
ErrSourceTemplateAtLockTime()source-template-at-lock-timeresolve: source-template evaluation failure at lock time
ErrSourceTemplateParse()source-template-not-parsableresolve: source-template parse error
ErrSourceTemplateProvidesRef()source-template-provides-refresolve: source-template references .provides (invalid reverse reference)
ErrSubAggregateDepth()sub-aggregate-depthresolve: sub-aggregate inclusion depth exceeded
ErrUnresolvableURI()unresolvable-uriresolve: no entity in the catalog matches this URI

pkg/compactform

СентинелКодПовідомлення
ErrAmbiguousDispatch()ambiguous-dispatchcompactform: ambiguous dispatch — $mode required
ErrCircularRef()reference-cyclecircular reference expansion
ErrConstraintTypeMismatch()constraint-type-mismatchcompactform: constraint not valid for declared type
ErrEscapeContentInvalid()escape-content-invalidcompactform: $jsonschema content invalid
ErrHostInLibraryRef()host-in-library-refcompactform: cross-document $ref carries a registry host; reference the library by identity
ErrReferenceUnresolvable()reference-unresolvablecompactform: $ref unresolvable
ErrUnknownKeyword()unknown-keywordcompactform: unknown keyword
ErrUnresolvedSchemaLibraryRef()unresolved-schema-library-refcompactform: cross-document $ref target not found
  • ErrCircularRef() — це те саме значення, що й pkg/refcycle.ErrCycle(), тож зіставлення з будь-яким з імен буде успішним.

pkg/deprecation

СентинелКодПовідомлення
ErrDeprecatedEntity()deprecated-entitydeprecation: build consumes a deprecated entity

pkg/docscache

СентинелКодПовідомлення
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
ErrNotDocsBundle()not-docs-bundledocscache: artifact is not a documentation bundle
ErrPageNotFound()page-not-founddocscache: page not found in documentation bundle
  • ErrFetchNotFound() — це те саме значення, що й pkg/oci.ErrFetchNotFound(), тож зіставлення з будь-яким з імен буде успішним.

pkg/egress

СентинелКодПовідомлення
ErrNoAnswerInTime()no-answer-in-timeegress: the server did not answer in time
ErrOfflineEgress()offline-egressegress: 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

СентинелКодПовідомлення
ErrAcquisitionDisabled()acquisition-disabledexternalinputs: acquisition is disabled for unpinned inputs
ErrDigestMismatch()digest-mismatchexternalinputs: fetched bytes mismatch the pinned digest
ErrSchemeNotAllowed()scheme-not-allowedexternalinputs: URL scheme is not allowed
ErrStoreCorrupt()store-corruptexternalinputs: store blob mismatches its pinned record

pkg/lockfile

СентинелКодПовідомлення
ErrLockfileDrift()lockfile-driftlockfile: out of date; it no longer matches what its Release resolves to
ErrLockfileInvalid()lockfile-invalidlockfile: file failed schema validation
ErrSignatureNotRecorded()signature-not-recordedsigning: no verified signature is recorded for an artifact that requires one

pkg/oci

СентинелКодПовідомлення
ErrAmbiguousContentLayer()ambiguous-content-layeroci: manifest has multiple layers of the expected content media type
ErrBundleAmbiguousEntityDocument()bundle-ambiguous-entity-documentoci: published bundle carries more than one entity document
ErrBundleNoEntityDocument()bundle-no-entity-documentoci: published bundle carries no entity document
ErrBundleUnreadable()bundle-unreadableoci: published bundle cannot be unpacked
ErrCacheLocationOutsideCache()cache-location-outside-cachea value a cache location is built from would place cached files outside the place it names in the cache
ErrCachedManifestIntegrity()cached-manifest-integrityoci: cached manifest digest mismatch
ErrFetchIntegrity()fetch-integrityoci: content digest mismatch
ErrFetchNetworkUnreachable()fetch-network-unreachableoci: network unreachable
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
ErrFetchUnauthorized()fetch-unauthorizedoci: authentication required or failed
ErrImmutableTagConflict()immutable-tag-conflictoci: tag already published with different content
ErrNoContentLayer()no-content-layeroci: manifest has no layer of the expected content media type
ErrOCILocationCollision()oci-location-collisionoci: distinct catalog identities map to the same OCI repository location
ErrPublishedArtifactNotAnEntity()published-artifact-not-an-entityoci: published artifact is not an entity document
ErrReferrerDiscoveryUnavailable()referrer-discovery-unavailableoci: referrer discovery could not be completed
ErrRegistryTooBusy()registry-too-busyoci: the registry kept asking to slow down
ErrRetiredMediaType()retired-media-typeoci: artifact carries a media type this compiler no longer reads
ErrSignatureBundleDigestMismatch()signature-bundle-digest-mismatchcached signature bundle does not match its recorded digest
ErrSignatureForAnotherArtifact()signature-for-another-artifactsigning: the recorded signature was made for a different artifact
ErrUnknownEntityKind()unknown-entity-kindoci: unknown entity kind for mediatype dispatch

pkg/pathscope

СентинелКодПовідомлення
ErrNameWindowsCannotHold()name-windows-cannot-holda name this operation writes holds a path segment Windows cannot hold as written

pkg/pluginpath

СентинелКодПовідомлення
ErrPluginArtifactNotFound()plugin-artifact-not-foundplugin artifact not found on this machine
ErrPluginEntityNotFound()plugin-entity-not-foundplugin reference is not a Plugin entity

pkg/pluginstrust

СентинелКодПовідомлення
ErrVerdictAttachmentNotConfigured()verdict-attachment-not-configureda plugin recorded as trusted for an accept-or-reject verdict is no longer attached at any verdict role

pkg/plugintest

СентинелКодПовідомлення
ErrCommandsMismatch()wasm-command-set-mismatchwasm: recorded command mirror does not match plugin describe()
ErrContractMismatch()wasm-contract-mismatchwasm: entity contract claim does not match plugin describe()
ErrHostFunctionsMismatch()wasm-host-function-set-mismatchwasm: stamped host-function record does not match .wasm imports
ErrRejected()wasm-manifest-rejectedwasm: plugin rejected by the sandbox
ErrTypeMismatch()wasm-plugin-type-mismatchwasm: declared plugin type does not match plugin describe()

pkg/readscope

СентинелКодПовідомлення
ErrReadLeadsOutOfWorkspace()read-leads-out-of-workspacea file this operation reads leads through a link out of the directory it must stay inside
ErrReferenceLeadsOutOfWorkspace()reference-leads-out-of-workspacea reference a document makes to another file leads out of the directory it must stay inside

pkg/recipepin

СентинелКодПовідомлення
ErrEntityNotPinned()entity-not-pinnedan input the entity reads has no pin recorded for it in the entity.lock beside it
ErrLocalSourceContentMismatch()local-source-content-mismatchthe files of the entity's local source do not match the pins recorded for them in entity.lock

pkg/refcycle

СентинелКодПовідомлення
ErrCycle()reference-cyclecircular reference expansion

pkg/registrytrust

СентинелКодПовідомлення
ErrMalformedTrust()malformed-trust-policyregistrytrust: advertised trust config is malformed
ErrNoTrustAdvertised()no-trust-advertisedregistrytrust: registry advertises no trust config
ErrOfflineRegistrationWithoutTrustPolicy()offline-registration-without-trust-policya 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

СентинелКодПовідомлення
ErrAnnotationBindingPillarOverlap()annotation-binding-pillar-overlapannotation binding declares one path in both pillar lists
ErrAnnotationBindingTargetUnresolved()annotation-binding-target-unresolvedannotation binding does not resolve against its target Feature
ErrAnnotationScalarNotRoutable()annotation-scalar-not-routablea scalar annotation value does not route to exactly one path of its binding
ErrAnnotationSidePillarMismatch()annotation-side-pillar-mismatchannotation routes through a pillar its authoring side may not use
ErrAnnotationSubkeyNotBound()annotation-subkey-not-boundannotation subkey is not routed by the annotation's binding
ErrAnnotationSubkeyNotConforming()annotation-subkey-not-conformingannotation subkey does not conform to the target Feature's schema at the routed pillar
ErrAttachmentInjectValue()attachment-inject-valueinject 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-missattachment name is a near miss for a declared slot
ErrAttachmentSlotShape()attachment-slot-shapeattachment does not conform to its declared slot shape
ErrConnectionAttachmentSlotUndeclared()connection-attachment-slot-undeclareda connection carries an attachment under a name its socket declares no slot for
ErrDuplicateBoundaryComponent()duplicate-boundary-componentcomponent declared in more than one boundary: declare each component in exactly one boundary
ErrDuplicateTriadIdentity()duplicate-triad-identityduplicate Aggregate/Manifest identity (metadata.name) in the Release directory
ErrFeatureMergeConflict()feature-merge-conflictfeature merge conflict: reconcile the Aggregate and Release declarations for the feature
ErrGuardEntityViewInconsistency()internal-catalog-view-disagreementthe compiler's own views of the catalog disagree
ErrInheritedBoundaryDirectoryIsLiteral()inherited-boundary-directory-is-literalinherited boundary directory carries no template variable, so it resolves to the path the extended Release writes to
ErrInjectDeliveryShape()inject-delivery-shapeinject delivery: shape must be a list of entries, each `in:` with exactly one of `from:` or `value:`
ErrInjectEntryAmbiguous()inject-entry-ambiguousinject entry carries both `value:` and `from:`; schema requires exactly one
ErrInjectKeyCollision()inject-key-collisionduplicate delivery key across inject sources
ErrInvalidInjectKey()invalid-inject-keyinvalid inject key: the from-key must name a provides key its source publishes
ErrInvalidParameterRef()invalid-parameter-refinvalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template
ErrMalformedRecipeReference()malformed-recipe-referencemalformed recipe reference in a Manifest mapping value
ErrManifestCrossBindingPillarCollision()manifest-cross-binding-pillar-collisionmanifest annotation bindings collide on same Feature path+pillar
ErrManifestImplementsMismatch()manifest-implements-mismatchmanifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key
ErrManifestReservedPrefix()manifest-reserved-prefixmanifest annotation binding uses reserved prefix
ErrMisnamedSlotFill()misnamed-slot-fillattachment written under a name no slot declares fits a slot its component leaves empty
ErrMissingRequiredFeature()missing-required-featuremissing required feature: attach a Feature of the required type to the component
ErrMissingRequiredSocket()missing-required-socketrequired uses socket not populated
ErrParameterContractViolation()parameter-contract-violationparameter contract violated
ErrParameterMissing()parameter-missingrequired parameter not supplied
ErrProvidesKeyNotDeclared()provides-key-not-declaredRecipe publishes a provides key its Component does not declare
ErrReleaseChainComposesBothRoutingKeys()release-chain-composes-both-routing-keysrelease extends chain composes both named boundaries and top-level components: declare one routing shape across the chain, never both
ErrSchemaConformance()schema-conformanceauthored pillar does not conform to its declared schema
ErrSchemaContractCompileFailure()schema-contract-compile-failuredeclared 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-forbiddenself-inject on component without spec.inject allowlist
ErrTriadRefUnresolvable()triad-ref-unresolvableaggregate/manifest reference unresolvable
ErrUnknownUsesSocket()unknown-uses-socketunknown 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-formrelease reached resolve un-normalized (non-empty root components alongside a synthesized default boundary)
ErrUnreadParameter()unread-parameterdeclared parameter is read by no reference in the Aggregate
ErrUsesInjectValue()uses-inject-valueinject entry on a connection carries `value:`; a connection delivers the target's published keys, each named with `from:`
ErrUsesSocketNearMiss()uses-socket-near-missuses socket name is a near miss for a declared socket
ErrVerdictPluginTrustMismatch()verdict-plugin-trust-mismatchthe digest recorded as trusted for this plugin does not match the digest its cached manifest reports
ErrYAMLLoad()document-not-loadablefile load failed: the file could not be read, or its bytes did not parse

pkg/signing

СентинелКодПовідомлення
ErrKeylessLive()keyless-signing-requires-networksigning: keyless signing requires a live identity provider, Fulcio, and Rekor
ErrMixedSigningCredentials()mixed-signing-credentialssigning: the references named together need different signing credentials, so nothing was signed
ErrNoSignatureFound()no-signature-foundsigning: no signature found for an artifact that requires one
ErrNoTrustedIdentities()no-trusted-identitiessigning: keyless verification requires at least one trusted identity
ErrSignatureInvalid()signature-invalidsigning: signature does not verify
ErrSignatureVerificationFailed()signature-verification-failedsigning: signature bundle does not verify
ErrSigningPolicyRequiresSignature()signing-policy-requires-signaturesigning: signing policy requires a signature for this artifact kind; refusing to push unsigned content
ErrTrustRootLoad()trust-root-not-loadablesigning: cannot load pinned trust root
ErrUnsignedPushRefused()unsigned-push-refusedsigning: registry requires signatures; refusing to push unsigned content
ErrUnsupportedKey()unsupported-keysigning: unsupported held-key type
ErrUntrustedIdentity()untrusted-identitysigning: signature identity is not trusted for this registry

pkg/sourcecache

СентинелКодПовідомлення
ErrFetchIntegrity()fetch-integrityoci: content digest mismatch
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
  • ErrFetchIntegrity() — це те саме значення, що й pkg/oci.ErrFetchIntegrity(), тож зіставлення з будь-яким з імен буде успішним.
  • ErrFetchNotFound() — це те саме значення, що й pkg/oci.ErrFetchNotFound(), тож зіставлення з будь-яким з імен буде успішним.

pkg/sourcekind

СентинелКодПовідомлення
ErrUnknownKind()unknown-source-kindno source adapter serves the source kind

pkg/sourceresolver

СентинелКодПовідомлення
ErrFetchIntegrity()fetch-integrityoci: content digest mismatch
ErrFetchNetworkUnreachable()fetch-network-unreachableoci: network unreachable
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
ErrFetchUnauthorized()fetch-unauthorizedoci: authentication required or failed
ErrNoAdapterRegistered()source-adapter-not-registeredno 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

СентинелКодПовідомлення
ErrEmptyWorkspaceRoot()empty-workspace-rootcacheslot: empty workspaceRoot

pkg/sourceresolver/netrc

СентинелКодПовідомлення
ErrNetrcFileUnreadable()netrc-file-unreadablethe netrc file could not be read
ErrSourceURLCarriesCredential()source-url-carries-credentialthe source URL carries a credential

pkg/types

СентинелКодПовідомлення
ErrArtifactEntryShape()artifact-entry-shapeartifacts entry: shape must be a string scalar or {$import: <local-path>}
ErrArtifactLibraryEntryShape()artifact-library-entry-shapeartifactlibrary: entry must be a mapping of filename to a string body
ErrForbiddenKeyword()forbidden-keywordschemalibrary: forbidden JSON Schema keyword
ErrLibraryReferenceWhitespace()library-reference-whitespacelibrary reference: a reference to a library entry carries no whitespace or line break
ErrMalformedVersionPin()malformed-version-pinreference carries a malformed version pin
ErrMappingEntryNotScalar()mapping-entry-not-scalarmappinglibrary: entry body must be a string scalar
ErrOrderedMapDecodeDepthExceeded()document-nesting-depth-exceededa document nests too many levels deep
ErrParametersShape()parameters-shapeparameters: shape must be an inline object or {$import: <local-path>}
ErrTemplateNotFound()template-not-foundschemalibrary: template not found
ErrTemplateParamMissing()template-param-missingschemalibrary: template parameter missing
ErrTemplateParamTypeMismatch()template-param-type-mismatchschemalibrary: template parameter type mismatch
ErrValuesMappingShape()values-mapping-shapevaluesmapping: shape must be a string scalar or {$import: <path-or-library-identity>}
ErrWellKnownAnnotationScope()well-known-annotation-scopewellKnownAnnotations: a key is declared at a scope the provider's contract does not render
ErrWorkloadEntryNotScalar()workload-entry-not-scalarworkloadlibrary: entry body must be a string scalar
ErrWorkloadTemplateShape()workload-template-shapeworkload: shape must be a string scalar or {$import: <path-or-library-identity>}

pkg/usesedge

СентинелКодПовідомлення
ErrDanglingUsesTarget()dangling-uses-targetuses edge target does not exist
ErrReleaseEdgeRetarget()release-edge-retargetrelease edge retargets a developer-declared edge

pkg/validator

СентинелКодПовідомлення
ErrAssertionNameCollision()assertion-name-collisionassertion name declared twice across the extends chain
ErrCyclicExtension()cyclic-extensioncyclic extends chain
ErrDuplicateContainerEnvironmentVariable()duplicate-container-environment-variablea container declares one environment variable twice
ErrEmptySource()recipe-source-is-emptyrecipe source is an empty string, which names neither sourceless mode nor sourced mode
ErrExtendsChainTooDeep()extends-chain-too-deepextends chain exceeds maximum depth
ErrFeatureRecipeValuesMappingRequiresSource()feature-recipe-values-mapping-requires-sourceFeatureRecipe: valuesMapping requires source
ErrInheritanceMerge()extends-merge-failedinheritance merge failed
ErrRecipeFilenameCollisionAcrossInputKinds()recipe-filename-collision-across-input-kindsfilename collision across input kinds: two input-kind blocks produced a file under one output name
ErrRecipeNoInputKind()recipe-no-input-kindRecipe: at least one input kind required
ErrRecipeOutputComponentLabelCollision()recipe-output-component-label-collisionrecipe output-component-labels constraint: key is also declared in outputLabels
ErrRecipeOutputLabelReservedNamespace()recipe-output-label-reserved-namespacerecipe output-labels constraint: key uses a reserved namespace
ErrRecipeValuesMappingRequiresSource()recipe-values-mapping-requires-sourceRecipe: valuesMapping requires source
ErrSlotNotReferenceable()slot-not-referenceableworkload attachment slot is not referenceable
ErrUnknownSchemaPillar()unknown-schema-pillara schema block declares a key that names no data pillar
ErrWorkloadFeaturesSchema()workload-features-schemaworkload featuresSchema cross-check failed
ErrWorkloadValidation()workload-not-validworkload validation failed

pkg/validator/envelope

СентинелКодПовідомлення
ErrDuplicatePipelineStepID()duplicate-pipeline-step-ida pipeline declares one step id twice
ErrEntityEnvelope()entity-envelope-invaliddocument envelope validation failed
ErrRetiredABIVersion()retired-abi-versiona plugin declares a plugin ABI version this compiler no longer speaks
ErrRetiredAPIVersion()retired-api-versiona document declares an API version this compiler no longer reads

pkg/validator/jsonschema

СентинелКодПовідомлення
ErrExtensionEval()schema-extension-evaluation-failedvalidator/jsonschema: x-aggrega extension evaluation failed
ErrSchemaResolve()schema-not-resolvablevalidator/jsonschema: schema resolution failed

pkg/validator/merger

СентинелКодПовідомлення
ErrMergeInvalid()schema-merge-input-invalidmerger: invalid merge input

pkg/workspaceconfig

СентинелКодПовідомлення
ErrAmbiguousRegistryAlias()ambiguous-registry-aliasregistry alias matches more than one host
ErrCapabilityOnCrossCuttingSocket()capability-on-cross-cutting-socketa cross-cutting socket is bound by capability but attaches by uri
ErrColonInProviderBindingCapability()colon-in-provider-binding-capabilitya provider socket binding names a capability containing a colon, which no Recipe can select
ErrConfigInvalid()workspace-config-invalidworkspace configuration is invalid
ErrDuplicateImporterAttachment()duplicate-importer-attachmentimporter is attached by more than one plugins.importer entry
ErrDuplicateProviderTarget()duplicate-provider-targetcapability is bound to more than one provider plugin
ErrDuplicateRegistryAlias()duplicate-registry-aliasregistry alias is already used by another host
ErrGovernanceRoleInvalid()governance-role-invalida governance attachment declares no role or an unknown role
ErrInertFieldOnProviderSocket()inert-field-on-provider-socketa provider socket binding sets a field with no referent on that socket

pkg/writescope

СентинелКодПовідомлення
ErrWriteLeadsOutOfWorkspace()write-leads-out-of-workspacea path this operation writes or deletes leads through a link out of the directory it must stay inside

pkg/yamlpos

СентинелКодПовідомлення
ErrPositionOutOfRange()position-out-of-rangeposition out of range

Сентинели, що містять інший сентинел

ErrCacheMetadataInvalid (pkg/sourceresolver/metadata) повідомляє про пошкоджений слот кешу артефактів джерел. Його оголошено як обгортку навколо ErrFetchIntegrity(), а не як окрему ідентичність, тому він не з’являється в таблицях вище, і зіставлення з ErrFetchIntegrity() для нього також успішне. Оскільки він обгортає сентинел, а не оголошує власний, його експортовано як значення, а не як функцію: зіставляйте його як ErrCacheMetadataInvalid, без дужок. Зіставляйте обгортку, коли вам потрібна саме ця умова, і обгорнутий сентинел, коли вам потрібен увесь клас помилок цілісності.

Сентинели, доступні під другим іменем в одному пакеті

Коли пакет експортує два аксесори для однієї умови, і другий оголошено як переадресацію до першого, таблиці вище містять аксесор, що оголошує умову, а ім’я-переадресацію не наводять. Обидва імені експортуються з того самого пакета, тож імпорт, який дає доступ до одного з них, уже дає доступ і до іншого, а другий рядок перелічив би одну умову двічі під іменем, яке не зіставляється ні з чим новим. Зіставлення з будь-яким із двох імен успішне: переадресація повертає те саме значення, що й аксесор, який оголошує умову.

Це не випадок кількох пакетів. Сентинел, повторно експортований з іншого пакета, має рядок у таблиці кожного пакета, бо код зіставлення, що імпортує один із цих пакетів, не може дістатися до імені з іншого, не імпортувавши і той пакет; переадресація всередині одного пакета не потребує другого рядка, бо один імпорт дає доступ до обох імен.

ErrDuplicateRecipeIdentity() у pkg/catalog — саме така переадресація: вона повертає ErrDuplicateEntityIdentity(), і саме це ім’я наведено в таблиці для цього пакета.

Умови без сентинела, з яким можна зіставити

Деякі етапи компіляції оголошують свої сентинели в пакетах, які компілятор не експортує, тож errors.Is немає на що посилатися і жоден матчер не можна написати для них. Їх описано тут, а не зведено в таблицю, бо таблиця на цій сторінці — це обіцянка, що значення в лівому стовпці можна розіменувати.

Їхня діагностика доходить до вас повністю через виведений текст помилки та через подання, впорядковані за повідомленнями, — зокрема fatal-halts.md, — і це підтримуваний спосіб їх розпізнати:

  • Побудова топології (побудова графа та сплощення вкладених агрегатів) повідомляє про вкладений Aggregate, який не вдалося завантажити, називаючи недосяжний URI Aggregate; про оголошення uses:, структурна форма якого не відповідає схемі; про перевищення глибини вкладення; та про колізію ідентифікаторів вузлів після сплощення, коли два вкладені Aggregates компілюються в той самий ідентифікатор вузла і одне ім’я екземпляра треба перейменувати, щоб усунути неоднозначність.
  • Фіналізація графа (злиття Features між поверхнями Aggregate та Release) повідомляє про тип Feature, оголошений неузгоджено між ними.
  • Статичний аналіз (обчислення селекторів і перевірки типобезпеки між вузлами) повідомляє про порушення selector:; про невдалий пошук у каталозі, після якого він не може продовжити, називаючи недосяжну сутність; та про відхилення політикою, коли плагін, приєднаний у ролі вердикту керування, відхилив зібрану збірку. Відхилення політикою має категорію POLICY_ERROR, ім’я плагіна, що відхилив збірку, і повідомлення правила, яке надав плагін.
  • Рендеринг (диспетчеризація провайдерів і рендеринг для кожного провайдера) повідомляє про невідомого провайдера.
  • Вбудований завантажувач хоста Wasm видає власні захисні sentinel-значення — захисне обмеження відхилення маніфесту (плагін запросив можливість доступу до середовища виконання, яку забороняє бар’єр AOT-чистоти), відновлення після паніки гостьового модуля та детерміновану пастку виходу плагіна. Вони з’являються в діагностиці для користувача під час запуску плагіна (наприклад, через aggrega lint). Автори Plugins, які тестують гостьовий модуль на хості, отримують ті самі умови за іменами, що імпортуються, через pkg/plugintest, наведений вище.

Щоб зупиняти конвеєр саме на відхиленні політикою, зіставляйте префікс категорії POLICY_ERROR у діагностиці, а не сентинел; категорія — задокументована частина поверхні помилок, описана в error-translation.md.

Усі умови за коротким кодом

Таблиця нижче виконує пошук у зворотному напрямку: короткий код у лівому стовпці, а поруч із ним — умова, яку цей код позначає, і текст, який ця умова виводить. Вона охоплює кожну умову, про яку може повідомити aggrega, зокрема ті, яких розділи вище перелічити не можуть.

Це ширше охоплення — мета цієї таблиці, а не її випадковість. Розділи вище впорядковано за ім’ям, яке можна імпортувати, тож умова, оголошена лише в пакеті, який ви не можете імпортувати, і ніде не реекспортована туди, звідки ви можете імпортувати, не має що поставити в їхній лівий стовпець. Ця таблиця впорядкована за коротким кодом, а він є в кожної умови, тож жодна умова, про яку можна повідомити, не випадає з неї. Короткий код, який у вас є, знаходиться тут незалежно від того, чи має умова за ним також засіб доступу, який можна зіставити.

Місце в цій таблиці умова отримує тоді, коли компілятор справді може про неї повідомити. Рядки виводяться з коду, а не переписуються в нього: умова з’являється тут тому, що щось у компіляторі її породжує, тож кожен код у лівому стовпці — це код, який може вивести aggrega. Таку обіцянку дає таблиця, і саме вона дозволяє читати рядок як перевірку, що справді виконується.

Навмисний виняток — умова, оголошена раніше, ніж з’явився код, що про неї повідомляє, щоб код і формулювання були зафіксовані заздалегідь і ніколи не змінювалися для читача, який уже їх процитував. Про таку умову сказано в примітці безпосередньо під таблицею. Її перелічено, а не приховано — код, який у вас є, завжди має знаходитися, — і примітка біля неї прямо каже, що жодна збірка її ще не породжує і що мало б з’явитися, щоб це сталося.

Виведений з ужитку номер теж перелічено — в окремому наборі приміток під таблицею, — і він лишається в переліку назавжди. Умову зрідка вилучають — її замінює інша, ширша, або про неї ніщо ніколи не повідомляло, — і з цього моменту її номер виводиться з ужитку: його ніколи не передають іншій умові, тож короткий код, який ви цитуєте зі старого звіту, може позначати лише те, що він позначав на момент написання звіту. Ця обіцянка механічна, а не редакторська. Умову, оголошену під виведеним з ужитку номером, відхиляють ще до того, як компілятор прочитає будь-які вхідні дані, під час кожного запуску, тож жоден випуск не може її містити — це той самий клас відмови, який отримав би номер, що його спробували б поділити дві чинні умови, сформульований так, щоб ви могли розрізнити, з якою з двох зіткнулися. Примітка до виведеного з ужитку коду каже, що він позначав, якщо це записано під час виведення, і, якщо умову замінено, який код тепер повідомляє про цю ділянку.

Те, що номери ніколи не використовуються повторно, також дає послідовності постійні прогалини, а примітки роблять ці прогалини зрозумілими. Відсутній номер сам по собі нічого не доводить: він може бути виведений з ужитку, а може так само бути номером, до якого ще ніщо не дійшло. Примітки — це запис того, які номери виведено з ужитку і, де це записано, що кожен із них позначав, тож код, якому не відповідає ні рядок, ні примітка, — це код, якого цей компілятор ніколи не видавав.

Короткий код навмисно непрозорий: чотири цифри самі по собі нічого не кажуть про умову — це ціна ідентифікатора, достатньо короткого, щоб його можна було прочитати вголос, ввести в пошук або вставити у звіт. Використовувати його дає змогу відповідність нижче. Номер видається один раз, з єдиної зростаючої послідовності, і відтоді фіксований; він нічого не каже про умову, яку позначає. Тож короткий код — це ідентифікатор, і не більше: його значення не є класифікацією, і ні він, ні будь-яке групування, яке ви можете помітити в таблиці, не вказує, де умова розташована чи чого вона стосується.

У таблиці немає стовпця категорії, і це не недогляд: категорія — властивість конкретної помилки, а не умови за нею. Деякі умови належать до однієї категорії за побудовою. Для інших категорія випливає з виду сутності, якої стосується помилка, тож одна така умова, про яку повідомлено один раз щодо сутності Aggregate і один раз щодо сутності Release, щоразу має іншу категорію — і одне значення, записане тут біля умови, було б хибним для кожної умови цього другого виду.

Категорії пояснено в error-translation.md — кожну з них, що вона означає і де міститься її виправлення. Категорія і короткий код відповідають на різні запитання про ту саму помилку: категорія визначає поверхню, до якої належить виправлення, а короткий код — яка умова зупинила збірку. Жодне не можна вивести з іншого, тому в кожного є власний опублікований перелік — і тому помилка, для якої немає поверхні авторства, все одно має код, який можна знайти тут.

КодУмоваПовідомлення
E0001no-plugin-resolution-configuredcliplugin: no plugin resolver configured
E0003malformed-attachment-requirementmalformed attachment requirement
E0004overridden-annotationannotation contribution overridden by an explicit value
E0005policy-violationpolicy violation
E0006required-slot-unfilledrequired attachment slot unfilled
E0007selector-violationselector violation
E0008slot-selector-unsatisfiedattachment slot selector unsatisfied
E0009pipeline-contract-violationpipeline step typed-I/O contract violation
E0010pipeline-step-failedpipeline step failed
E0011pipeline-target-absentpipeline patch targets a document not present in the set
E0012pipeline-target-opaquepipeline patch targets an opaque (non-structured) unit
E0013feature-type-mismatchfeature type mismatch between Aggregate and Release
E0014inject-entry-ambiguousinject entry carries both `value:` and `from:`; schema requires exactly one
E0015uses-inject-forbiddenuses-edge inject dictates a delivery mechanism the socket does not permit
E0016patch-test-operation-failedjsonpatch: test operation failed
E0017annotation-injection-rejectedannotation-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
E0018policy-settings-invalidpolicy attachment settings do not satisfy the plugin's declared settings schema
E0019endpoint-requires-reference-formendpoint requires form: reference
E0020invalid-cron-scheduleschedule is not a valid cron expression
E0021persistent-template-requires-stateful-formpersistentTemplate volume requires form: stateful
E0022pipeline-patch-target-not-structuredpipeline PATCH target is not parseable structured YAML/JSON
E0023reference-form-requires-endpointform: reference requires an endpoint
E0024schedule-requires-scheduled-formschedule requires form: scheduled
E0025scheduled-form-requires-scheduleform: scheduled requires a schedule
E0026artifact-content-mismatchimported artifact content does not match the digest recorded for it in entity.lock
E0027artifact-import-shapeartifacts $import: is not a bare-name artifact-library reference (<Library>#/artifacts/<entry>)
E0028artifact-output-collisionartifacts output filename collision: two artifact outputs carry the same filename
E0029artifact-pillar-not-declaredartifact template references a pillar the Recipe does not declare
E0030artifact-library-entry-not-foundartifact-library import references a bundle not present in the ArtifactLibrary
E0031artifact-library-not-foundartifact-library import references an ArtifactLibrary not present in the catalog
E0032assembled-output-collisionassembled output collision: two contributors write the same output path
E0033authored-assertion-failedassertion failed
E0034attachment-inject-key-collisionduplicate delivery key across attachment-inject and another inject source
E0035boundary-assembly-not-providedprovider expected to assemble its dispatch group provides no boundary assembler
E0036chart-name-mismatchmerged-path assembly has conflicting assembly-name annotation values
E0037cross-provider-link-unsupportedcross-boundary link between endpoints rendered by different providers is not supported
E0038derived-key-collisionderived name collision: one name is derived more than once in one key space
E0039featurerecipe-template-invalid-fieldFeatureRecipe template references a per-component-only field with executionScope: boundary
E0040host-in-library-importlibrary $import: carries a registry host; reference the library by bare-name identity
E0041instance-id-collisionmultiple contributors share an instance ID at the same dispatch path
E0042locals-forward-referencelocals entry references a sibling defined later in the same block
E0043locals-unknown-referencetemplate references a key the locals block does not declare
E0044mapping-entry-not-foundmapping-library import references an entry not present in the MappingLibrary
E0045mapping-import-shapevaluesMapping $import: is not a bare-name mapping-library reference (<Library>#/mappings/<entry>)
E0046mapping-library-not-foundmapping-library import references a MappingLibrary not present in the catalog
E0047orphan-cross-boundary-link-placeholderassembled output retains an unresolved cross-boundary link placeholder
E0048path-collisiondispatch path produced multiple provider outputs
E0049path-template-invalid-fieldpath template references a field not in the documented allowlist
E0050pipeline-host-scope-unavailablepipeline /host operation from a step with no host component
E0051pipeline-patch-targets-unassembled-fragmentspipeline PATCH targets an assembler provider's pre-assembly fragments
E0052pipeline-target-not-emittedpipeline PATCH targets a document the node did not emit
E0053plugin-provider-incompatiblepipeline plugin is not compatible with the rendering provider
E0054provider-node-input-invalidprovider rejected node input
E0055provides-contract-unfulfilledRecipe or FeatureRecipe does not publish a provides key its abstract entity's schema.provides contract declares
E0056provides-evaluation-failedprovides template evaluation failed
E0057provides-self-containmentprovides block references a root outside the self-contained set
E0058render-nondeterministicprovider render is not deterministic
E0059self-inject-key-collisionduplicate delivery key across self-inject and uses-inject
E0060template-unknown-roottemplate references a root the render context does not define
E0061unknown-providerunknown provider
E0062custom-mechanism-has-no-mappingcustom inject mechanism has no matching key in injectMapping output; add the mechanism's key to the Recipe injectMapping
E0063workload-entry-not-foundworkload-library import references an entry not present in the WorkloadLibrary
E0064workload-import-shapeworkload $import: is not a bare-name workload-library reference (<Library>#/workloads/<entry>)
E0065workload-library-not-foundworkload-library import references a WorkloadLibrary not present in the catalog
E0066dangling-uses-targetuses edge target does not exist
E0067active-toggle-not-a-booleanactive toggle did not resolve to a boolean
E0068sub-aggregate-nesting-depth-exceededmax sub-aggregate nesting depth exceeded
E0069mutator-patch-rejectedmutator patch rejected
E0070reexport-cyclere-exported component alias forms a cycle
E0071release-edge-retargetrelease edge retargets a developer-declared edge
E0072sub-aggregate-not-loadablesub-aggregate load failed
E0073sub-aggregate-name-collisionflattened node ID collision: rename one of the colliding instances so their flattened IDs differ
E0074unbound-release-edge-configrelease per-edge configuration has no edge to apply to
E0075aggregate-not-in-canonical-formaggregate reached topology un-normalized (non-empty root components alongside a synthesized default subsystem)
E0076unplaced-sub-modulesub-module placed in no boundary: route it into a boundary under `aggregates`, or name its components there under `components`
E0077uses-target-not-activeuses edge target was pruned because its active toggle resolved to false
E0078wasm-nested-producer-consumption-deniedproducer-consumption re-entry denied: a producer reached through the host may not issue a further producer-consumption call
E0079wasm-command-set-mismatchwasm: recorded command mirror does not match plugin describe()
E0080wasm-contract-mismatchwasm: entity contract claim does not match plugin describe()
E0081wasm-diagnostic-severity-invalidwasm: guest plugin returned a diagnostic whose severity the contract does not declare
E0082wasm-guest-errorwasm: guest plugin reported an error
E0083wasm-guest-panicwasm: guest plugin panicked during call
E0084wasm-host-function-set-mismatchwasm: stamped host-function record does not match .wasm imports
E0085wasm-manifest-rejectedwasm: plugin rejected by the sandbox
E0086wasm-plugin-exitedwasm: plugin invoked proc_exit
E0087wasm-plugin-type-mismatchwasm: declared plugin type does not match plugin describe()
E0088wasm-plugin-version-mismatchwasm: entity metadata.version does not match plugin describe()
E0089all-versions-retractedevery published version this reference could select has been withdrawn
E0090ambiguous-importer-pluginformat is advertised by more than one importer plugin
E0091ambiguous-parser-pluginformat is advertised by more than one parser plugin
E0092ambiguous-provider-plugincapability is served by more than one provider plugin; add a plugins.providers entry to select one
E0093ambiguous-type-mappingmanifest maps multiple version-distinct keys to the same base type; the type-to-recipe lookup is ambiguous
E0094duplicate-entity-identityduplicate entity identity within a single catalog directory
E0095malformed-recipe-referencemalformed recipe reference in a Manifest mapping value
E0096manifest-implements-mismatchmanifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key
E0097no-importer-for-formatno importer plugin advertises the requested format
E0098no-parser-for-formatno parser plugin advertises the requested format
E0099no-recipe-resolvedno recipe resolved for component/feature instance: add an explicit Manifest mapping for its type
E0100provider-binding-unsatisfiedplugins.providers entry names a plugin no provider-rendering plugin serving the capability matches
E0101provider-version-unsatisfiableno provider-rendering plugin version satisfies the recipe's provider version pin
E0102plugin-reference-must-not-be-registry-qualifiedwasm plugin reference must be the plugin coordinate identity (<pluginType>/<name>:<version>), not a registry-qualified or artifact path
E0103unsatisfiable-entity-versionno catalog version satisfies the referenced version constraint
E0104plugin-reference-must-be-scopedwasm plugin reference must carry a pluginType scope (<pluginType>/<name>); an empty scope cannot bind to an OCI location
E0105recipe-reference-must-be-scopedrecipe reference must be provider-scoped (<provider>/<name>); an empty provider cannot bind to an OCI location
E0106invalid-library-refresolve: invalid library reference URI
E0107version-selection-conflictresolve: minimal version selection conflict — incompatible library version requirements
E0108catalog-cannot-load-sub-aggregate-bodiesresolve: catalog lookup cannot load resolved sub-aggregate bodies
E0109catalog-cannot-load-recipe-bodiesresolve: catalog lookup cannot load resolved recipe and plugin bodies
E0110source-template-at-lock-timeresolve: source-template evaluation failure at lock time
E0111source-template-not-parsableresolve: source-template parse error
E0112source-template-provides-refresolve: source-template references .provides (invalid reverse reference)
E0113sub-aggregate-depthresolve: sub-aggregate inclusion depth exceeded
E0114unresolvable-uriresolve: no entity in the catalog matches this URI
E0115ambiguous-dispatchcompactform: ambiguous dispatch — $mode required
E0116constraint-type-mismatchcompactform: constraint not valid for declared type
E0117escape-content-invalidcompactform: $jsonschema content invalid
E0118host-in-library-refcompactform: cross-document $ref carries a registry host; reference the library by identity
E0119reference-unresolvablecompactform: $ref unresolvable
E0120unknown-keywordcompactform: unknown keyword
E0121unresolved-schema-library-refcompactform: cross-document $ref target not found
E0122deprecated-entitydeprecation: build consumes a deprecated entity
E0123not-docs-bundledocscache: artifact is not a documentation bundle
E0124page-not-founddocscache: page not found in documentation bundle
E0125offline-egressegress: 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
E0126acquisition-disabledexternalinputs: acquisition is disabled for unpinned inputs
E0127digest-mismatchexternalinputs: fetched bytes mismatch the pinned digest
E0128scheme-not-allowedexternalinputs: URL scheme is not allowed
E0129store-corruptexternalinputs: store blob mismatches its pinned record
E0130lockfile-driftlockfile: out of date; it no longer matches what its Release resolves to
E0131lockfile-invalidlockfile: file failed schema validation
E0132ambiguous-content-layeroci: manifest has multiple layers of the expected content media type
E0133cached-manifest-integrityoci: cached manifest digest mismatch
E0135fetch-integrityoci: content digest mismatch
E0136fetch-network-unreachableoci: network unreachable
E0137fetch-not-foundoci: artifact not found at remote source
E0138fetch-unauthorizedoci: authentication required or failed
E0139immutable-tag-conflictoci: tag already published with different content
E0140no-content-layeroci: manifest has no layer of the expected content media type
E0141oci-location-collisionoci: distinct catalog identities map to the same OCI repository location
E0142referrer-discovery-unavailableoci: referrer discovery could not be completed
E0143unknown-entity-kindoci: unknown entity kind for mediatype dispatch
E0144signature-bundle-digest-mismatchcached signature bundle does not match its recorded digest
E0145plugin-entity-not-foundplugin reference is not a Plugin entity
E0146reference-cyclecircular reference expansion
E0147malformed-trust-policyregistrytrust: advertised trust config is malformed
E0148no-trust-advertisedregistrytrust: registry advertises no trust config
E0149attachment-slot-near-missattachment name is a near miss for a declared slot
E0150attachment-slot-shapeattachment does not conform to its declared slot shape
E0151duplicate-boundary-componentcomponent declared in more than one boundary: declare each component in exactly one boundary
E0152duplicate-triad-identityduplicate Aggregate/Manifest identity (metadata.name) in the Release directory
E0153feature-merge-conflictfeature merge conflict: reconcile the Aggregate and Release declarations for the feature
E0154internal-catalog-view-disagreementthe compiler's own views of the catalog disagree
E0155inject-key-collisionduplicate delivery key across inject sources
E0156invalid-inject-keyinvalid inject key: the from-key must name a provides key its source publishes
E0158invalid-parameter-refinvalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template
E0160manifest-cross-binding-pillar-collisionmanifest annotation bindings collide on same Feature path+pillar
E0161manifest-reserved-prefixmanifest annotation binding uses reserved prefix
E0162missing-required-featuremissing required feature: attach a Feature of the required type to the component
E0163missing-required-socketrequired uses socket not populated
E0164parameter-contract-violationparameter contract violated
E0165parameter-missingrequired parameter not supplied
E0167provides-key-not-declaredRecipe publishes a provides key its Component does not declare
E0168schema-conformanceauthored pillar does not conform to its declared schema
E0169self-inject-forbiddenself-inject on component without spec.inject allowlist
E0170triad-ref-unresolvableaggregate/manifest reference unresolvable
E0171unknown-uses-socketunknown 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
E0172release-not-in-canonical-formrelease reached resolve un-normalized (non-empty root components alongside a synthesized default boundary)
E0173unread-parameterdeclared parameter is read by no reference in the Aggregate
E0174uses-socket-near-missuses socket name is a near miss for a declared socket
E0175document-not-loadablefile load failed: the file could not be read, or its bytes did not parse
E0176keyless-signing-requires-networksigning: keyless signing requires a live identity provider, Fulcio, and Rekor
E0177no-signature-foundsigning: no signature found for an artifact that requires one
E0178no-trusted-identitiessigning: keyless verification requires at least one trusted identity
E0179signature-invalidsigning: signature does not verify
E0180signature-verification-failedsigning: signature bundle does not verify
E0181signing-policy-requires-signaturesigning: signing policy requires a signature for this artifact kind; refusing to push unsigned content
E0182trust-root-not-loadablesigning: cannot load pinned trust root
E0183unsigned-push-refusedsigning: registry requires signatures; refusing to push unsigned content
E0184unsupported-keysigning: unsupported held-key type
E0185untrusted-identitysigning: signature identity is not trusted for this registry
E0186unknown-source-kindno source adapter serves the source kind
E0187empty-workspace-rootcacheslot: empty workspaceRoot
E0188artifact-entry-shapeartifacts entry: shape must be a string scalar or {$import: <local-path>}
E0189artifact-library-entry-shapeartifactlibrary: entry must be a mapping of filename to a string body
E0190forbidden-keywordschemalibrary: forbidden JSON Schema keyword
E0191mapping-entry-not-scalarmappinglibrary: entry body must be a string scalar
E0192document-nesting-depth-exceededa document nests too many levels deep
E0193parameters-shapeparameters: shape must be an inline object or {$import: <local-path>}
E0194template-not-foundschemalibrary: template not found
E0195template-param-missingschemalibrary: template parameter missing
E0196template-param-type-mismatchschemalibrary: template parameter type mismatch
E0197values-mapping-shapevaluesmapping: shape must be a string scalar or {$import: <path-or-library-identity>}
E0198well-known-annotation-scopewellKnownAnnotations: a key is declared at a scope the provider's contract does not render
E0199workload-entry-not-scalarworkloadlibrary: entry body must be a string scalar
E0200workload-template-shapeworkload: shape must be a string scalar or {$import: <path-or-library-identity>}
E0201assertion-name-collisionassertion name declared twice across the extends chain
E0202cyclic-extensioncyclic extends chain
E0204feature-recipe-values-mapping-requires-sourceFeatureRecipe: valuesMapping requires source
E0205extends-merge-failedinheritance merge failed
E0207recipe-output-component-label-collisionrecipe output-component-labels constraint: key is also declared in outputLabels
E0208recipe-output-label-reserved-namespacerecipe output-labels constraint: key uses a reserved namespace
E0209recipe-values-mapping-requires-sourceRecipe: valuesMapping requires source
E0210recipe-no-input-kindRecipe: at least one input kind required
E0211recipe-filename-collision-across-input-kindsfilename collision across input kinds: two input-kind blocks produced a file under one output name
E0212slot-not-referenceableworkload attachment slot is not referenceable
E0213workload-features-schemaworkload featuresSchema cross-check failed
E0214workload-not-validworkload validation failed
E0215entity-envelope-invaliddocument envelope validation failed
E0216schema-extension-evaluation-failedvalidator/jsonschema: x-aggrega extension evaluation failed
E0218schema-not-resolvablevalidator/jsonschema: schema resolution failed
E0220extends-chain-too-deepextends chain exceeds maximum depth
E0221schema-merge-input-invalidmerger: invalid merge input
E0222ambiguous-registry-aliasregistry alias matches more than one host
E0223capability-on-cross-cutting-socketa cross-cutting socket is bound by capability but attaches by uri
E0224workspace-config-invalidworkspace configuration is invalid
E0225duplicate-provider-targetcapability is bound to more than one provider plugin
E0226duplicate-registry-aliasregistry alias is already used by another host
E0227governance-role-invalida governance attachment declares no role or an unknown role
E0228inert-field-on-provider-socketa provider socket binding sets a field with no referent on that socket
E0229position-out-of-rangeposition out of range
E0246verdict-plugin-trust-mismatchthe digest recorded as trusted for this plugin does not match the digest its cached manifest reports
E0247verdict-attachment-not-configureda plugin recorded as trusted for an accept-or-reject verdict is no longer attached at any verdict role
E0248wasm-output-shapewasm: guest plugin returned an output that is not the shape the socket reads
E0250nest-segment-not-one-directoryprovider named a directory for each contributor's own sub-directory that is not a single directory name
E0251recipe-source-is-emptyrecipe source is an empty string, which names neither sourceless mode nor sourced mode
E0252artifact-library-file-escapes-keyartifact-library bundle file name does not name a file of its own beneath the artifacts key its output is nested under
E0253annotation-binding-target-unresolvedannotation binding does not resolve against its target Feature
E0254annotation-subkey-not-conformingannotation subkey does not conform to the target Feature's schema at the routed pillar
E0255annotation-side-pillar-mismatchannotation routes through a pillar its authoring side may not use
E0256annotation-binding-pillar-overlapannotation binding declares one path in both pillar lists
E0257schema-contract-compile-failuredeclared 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
E0259boundary-scope-attachment-not-declared-at-a-boundaryattachment binds a FeatureRecipe with executionScope: boundary and no boundary holding the component declares it
E0260unplaced-componentcomponent placed in no boundary: name it under a boundary's `components`, or place the sub-module that contributes it under `aggregates`
E0261unresolved-boundary-componentboundary names a component the composition does not hold: correct the name, or remove the entry
E0262unusable-component-identitycomponent identity cannot be the name its emitted resources are stamped with: rename the component
E0263component-identity-target-refusesthe target will not accept a name derived from this component's authored identity: rename the component
E0264provider-refused-every-component-identityprovider guest never accepted a component identity the compiler composed for it
E0265unsupported-input-kindprovider does not support the node's input kind
E0266unusable-schema-importa schema `$import:` could not be applied
E0267unknown-schema-pillara schema block declares a key that names no data pillar
E0268pipeline-patch-unit-not-carvedreassemble names a patched unit token the carve did not produce; a conforming codec carves and reassembles a file under the same tokens
E0269provider-render-duplicate-pathprovider guest returned two output files under one path; a conforming guest returns each output path at most once
E0270link-patch-file-not-emittedlink patch names an output file the dispatch group did not emit; a conforming link patch names a file the group's own render returned
E0271pipeline-emit-file-absentemit_file side effect carries no file; a conforming emit_file side effect carries a file with its path and content
E0272pipeline-side-effect-kind-undefinedside effect declares a kind the plugin contract does not define; a conforming side effect declares emit_file or emit_crd
E0273rendered-name-unavailabletemplate 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
E0274verdict-plugin-identity-changedthe plugin identity recorded as trusted no longer matches what this resolution reports
E0275edit-refused-invalid-resultthe edit was refused because the resulting document would not be valid, and nothing was written
E0276schema-evolutionthe version being published changes the published predecessor in a way the documented evolution rubric objects to
E0277annotation-prefixan annotation key on the entity uses a prefix the platform reserves
E0278name-shapethe entity's name does not follow the documented name shape for its kind
E0279dynamic-refsa schema in the entity uses a dynamic reference construct that cross-document reference resolution cannot follow
E0280id-overridesa schema in the entity declares an identifier of its own, where the platform owns that schema's identity
E0281category-matches-directorythe entity's category label does not match the category directory the entity is filed under
E0282x-aggrega-discouragementthe entity writes an Aggrega schema extension directly into schema content instead of declaring it under usesSchema or featuresSchema
E0283plugin-default-limitsthe Plugin entity declares no runtime resource cap of its own, so the platform defaults apply
E0284secret-slot-declares-sensitivean attachment slot admits only secret material and does not declare that it handles it
E0285provides-declared-by-componentthe Recipe publishes a provides key the Component it implements does not declare, so a consumer wiring that key is refused
E0286publish-bump-below-classificationthe version bump being published is smaller than the evolution check's classification of the change requires
E0287import-halting-diagnosticthe importer reported a diagnostic that stops the import, so the source was not fully turned into draft authoring files
E0288plugin-cannot-express-inputa plugin has no expression for a construct this build declares
E0289plugin-required-input-unresolveda plugin could not resolve something it requires to exactly one value
E0290plugin-output-name-collisiontwo things a plugin produced occupy one name in its output
E0291plugin-value-not-representablea plugin has no representation for a value it was given
E0292plugin-failure-unclassifieda plugin reported a failure that none of the declared kinds names
E0293wasm-guest-condition-undeclaredwasm: guest plugin named a condition the socket does not declare
E0294subsystem-component-identity-collisioncomponents in different subsystems take the same identity: rename one of them, since a subsystem contributes nothing to a component's identity
E0295library-reference-whitespacelibrary reference: a reference to a library entry carries no whitespace or line break
E0296release-chain-composes-both-routing-keysrelease extends chain composes both named boundaries and top-level components: declare one routing shape across the chain, never both
E0297inherited-boundary-directory-is-literalinherited boundary directory carries no template variable, so it resolves to the path the extended Release writes to
E0298bundle-no-entity-documentoci: published bundle carries no entity document
E0299bundle-ambiguous-entity-documentoci: published bundle carries more than one entity document
E0300bundle-unreadableoci: published bundle cannot be unpacked
E0301published-artifact-not-an-entityoci: published artifact is not an entity document
E0302entity-not-pinnedan input the entity reads has no pin recorded for it in the entity.lock beside it
E0303entity-shares-its-directorythe entity shares its directory with another entity, and an entity of its kind has a directory of its own
E0304content-outside-entity-directorya path names content outside the entity's own directory
E0305local-source-content-mismatchthe files of the entity's local source do not match the pins recorded for them in entity.lock
E0306plugin-artifact-not-foundplugin artifact not found on this machine
E0307cache-location-outside-cachea value a cache location is built from would place cached files outside the place it names in the cache
E0308conflicting-features-reach-one-componenta Feature reaches a component alongside a Feature it declares a conflict with
E0309symbolic-link-in-entity-filesa symbolic link sits among the files an entity carries
E0310offline-registration-without-trust-policya 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>`
E0311malformed-version-pinreference carries a malformed version pin
E0312colon-in-provider-binding-capabilitya provider socket binding names a capability containing a colon, which no Recipe can select
E0313provider-binding-capability-unservedplugins.providers entry names a capability no provider-rendering plugin the build reads serves
E0314plugin-built-from-uncommitted-changesplugin was built from a working tree with uncommitted changes, so no commit reproduces the version it reports
E0315connection-attachment-slot-undeclareda connection carries an attachment under a name its socket declares no slot for
E0316connection-attachment-written-off-its-connectiona Release attachment takes the name of an attachment one of a component's connections carries
E0317release-connection-attachment-untypeda Release connection attachment names no Feature type, and the type is required for an attachment only the Release makes
E0318attachment-inject-mapping-key-collisionduplicate delivery key across two attachments: an attachment's FeatureRecipe writes a delivery key another attachment already delivered
E0319duplicate-connection-aliasconnection alias is already used by another connection of the same component
E0320write-leads-out-of-workspacea path this operation writes or deletes leads through a link out of the directory it must stay inside
E0321read-leads-out-of-workspacea file this operation reads leads through a link out of the directory it must stay inside
E0323caller-render-facts-not-declaredtemplate reads its callers' render facts, but the FeatureRecipe does not set readsCallerRenderFacts
E0324reference-leads-out-of-workspacea reference a document makes to another file leads out of the directory it must stay inside
E0325provider-render-fact-not-listprovider 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
E0326pipeline-step-reads-caller-render-factspipeline 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
E0327index-of-absent-map-keytemplate indexes a map with a key the map does not hold
E0328misnamed-slot-fillattachment written under a name no slot declares fits a slot its component leaves empty
E0329connection-credential-matches-target-keya connection and the target it reaches do not name one key: they write different locators for it, or only one of them names one
E0330mixed-signing-credentialssigning: the references named together need different signing credentials, so nothing was signed
E0331signature-not-recordedsigning: no verified signature is recorded for an artifact that requires one
E0332signature-for-another-artifactsigning: the recorded signature was made for a different artifact
E0333recorded-signature-out-of-datesigning: a recorded signature is not the one a pull would record
E0334omit-matched-nothingan omits entry left out nothing the source rendered
E0335unsupported-omitsprovider does not support omits
E0336omit-report-mismatcha provider's omitted counts do not match the omits entries it was handed
E0337importer-version-unsatisfiableno importer plugin version satisfies the plugins.importer entry's version pin
E0338duplicate-importer-attachmentimporter is attached by more than one plugins.importer entry
E0339ambiguous-import-formatmore than one importer recognises the source
E0340name-windows-cannot-holda name this operation writes holds a path segment Windows cannot hold as written
E0341importer-declares-no-file-patternsthe importer serving the source's format declares no file patterns, so it reads one file and cannot read a directory
E0342import-directory-matched-nothingno file in the directory matches the file patterns the importer serving the source's format declares
E0343import-source-name-collisiona file read from the directory and a file named in the importer's `with.sources` have the same name
E0344windows-unusable-entryan entry this publication carries cannot be used on Windows
E0345duplicate-container-environment-variablea container declares one environment variable twice
E0346metrics-credential-annotation-matches-providesa Component's annotation stating how its metrics authenticate disagrees with whether it declares the provides key saying an instance's metrics need a credential
E0347target-render-facts-not-declaredtemplate reads the render facts of a component its host is wired to, but the FeatureRecipe does not set readsTargetRenderFacts
E0348pipeline-step-reads-target-render-factspipeline 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
E0349import-target-unboundno Recipe in the workspace's catalog binds to the capability the import's target names
E0350unrecognised-import-formatno importer recognises the source
E0351unsupported-boundary-artifactsprovider does not support boundary artifacts
E0352boundary-directory-not-beneath-output-rootboundary output directory does not name a directory beneath the output root
E0353boundary-feature-name-not-a-directoryboundary-level Feature instance name is not a directory name
E0354cross-boundary-link-value-not-copieda template does more than copy a value it reads off a cross-boundary link
E0355inject-delivery-shapeinject delivery: shape must be a list of entries, each `in:` with exactly one of `from:` or `value:`
E0356suspend-requires-scheduled-formsuspend requires form: scheduled
E0357name-mapping-matched-nothinga Manifest name mapping's key names no component instance or attachment in this build, so the entry binds nothing
E0358uses-target-not-exporteduses edge target names a component its module does not export
E0359source-adapter-not-registeredno source adapter is registered in this program for the source kind
E0360netrc-file-unreadablethe netrc file could not be read
E0361source-url-carries-credentialthe source URL carries a credential
E0362uses-inject-valueinject entry on a connection carries `value:`; a connection delivers the target's published keys, each named with `from:`
E0363annotation-subkey-not-boundannotation subkey is not routed by the annotation's binding
E0364value-template-execution-faileda value template failed while it ran
E0365boundary-contribution-not-assembledboundary-level Feature's output is routed to a dispatch path nothing assembles
E0366inject-mapping-output-not-parsableFeatureRecipe injectMapping output could not be read as a dictionary of deliveries
E0367annotation-scalar-not-routablea scalar annotation value does not route to exactly one path of its binding
E0368inject-mapping-output-key-not-deliveredFeatureRecipe injectMapping output writes a key no delivery mechanism of the host reads
E0369absent-path-read-and-iteratedtemplate reads a path as a value and iterates it, and the data holds nothing at that path
E0370duplicate-pipeline-step-ida pipeline declares one step id twice
E0371unknown-catalog-document-kindcatalog document declares a kind a catalog does not hold
E0372attachment-inject-valueinject 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
E0373retired-api-versiona document declares an API version this compiler no longer reads
E0374retired-abi-versiona plugin declares a plugin ABI version this compiler no longer speaks
E0375retired-media-typeoci: artifact carries a media type this compiler no longer reads
E0376no-answer-in-timeegress: the server did not answer in time
E0377repository-listing-too-longregistry: the repository listing did not end in time
E0378registry-too-busyoci: the registry kept asking to slow down
  • E0002 виведено з ужитку: тепер ніщо про нього не повідомляє, і цей номер ніколи не передається іншій умові. Він позначав пошук у каталозі, що завершується невдачею під час перевірки статичних контрактів графа, — помилку компілятора, а не авторського документа, — і тепер про цей стан повідомляє умова, що виникає, коли збірка розв’язує тип компонента, для якого каталог, що вона тоді читає, не має запису; її код — E0154.
  • E0134 виведено з ужитку: тепер ніщо про нього не повідомляє, і цей номер ніколи не передається іншій умові. Він позначав сутність, придатну до публікації, чий каталог не був названий за версією, яку оголошує сутність; публікація не оцінює назву каталогу, а умова, що виникає, коли сутність ділить каталог з іншою сутністю там, де її вид має власний каталог, — це E0303.
  • E0157 виведено з ужитку: тепер ніщо про нього не повідомляє, і цей номер ніколи не передається іншій умові. Він позначав ключ сутності Aggregate — ім’я екземпляра компонента, функції, підсистеми або вкладеного модуля, — що не відповідав шаблону авторського імені. Кожну з цих поверхонь ключів обмежує тим самим написанням схема Aggregate, яка відхиляє документ під час перевірки його оболонки й повідомляє про проблемний ключ із рядком і стовпцем; код цієї умови — E0215.
  • E0159 виведено з ужитку: тепер ніщо про нього не повідомляє, і цей номер ніколи не передається іншій умові. Він позначав посилання на ціль, сегменти якого, розділені крапками, не всі відповідали шаблону імені екземпляра, і жодна збірка не повідомила про нього до вилучення умови.
  • E0166 виведено з ужитку: тепер ніщо про нього не повідомляє, і цей номер ніколи не передається іншій умові. Він позначав файл, на який указує parameters: { $import: … } сутності Release, коли цей файл не вдавалося прочитати або його байти не розбиралися; файл, що не дає документа, — це одна умова, хоч би де було записано шлях, і її код — E0175.
  • E0203 виведено з ужитку: тепер ніщо про нього не повідомляє, і цей номер ніколи не передається іншій умові. Він позначав FeatureRecipe на можливості eval, що оголошував джерело, накладку values, робоче навантаження або артефакти; цю можливість вилучено, і тепер про цей стан ніщо не повідомляє.
  • E0206 виведено з ужитку: тепер ніщо про нього не повідомляє, і цей номер ніколи не передається іншій умові. Він позначав Recipe на можливості eval, що оголошував джерело, робоче навантаження, артефакти або накладку values; цю можливість вилучено, а 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, прикріплена до межі, доставляє в компонент лише через injectMapping свого FeatureRecipe, а про зіставлення, що записує ключ, доставлений іншим прикріпленням, повідомляється під E0318.

Рекомендації щодо зіставлення

Предикат errors.Is проходить ланцюжок обгорток, тому зіставлення з сентинелом працює навіть тоді, коли помилку обгорнуто кілька разів на шляху назад до вас. Зіставляйте з помилкою, яку повернула експортована функція:

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, компонується з цими пакетами, зіставляє сентинели й може прочитати будь-який із кодів з будь-якої помилки, яку вона має. Перевірка, побудована навколо команди, має код завершення та надрукований текст — а надрукований текст називає умову, бо короткий код стоїть у заголовку в квадратних дужках. Тож така перевірка орієнтується на цей короткий код, а не на формулювання повідомлення, а подання за повідомленнями лишаються способом відновити умову за вже наявним формулюванням. Зіставляйте сентинел із Go; орієнтуйтеся на короткий код навколо команди; читайте описовий код зі структурованої діагностики там, де клієнт підтримує цей протокол.

Сентинели, оголошені в різних пакетах з однаковою короткою назвою, — це різні умови, а не два написання однієї: 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.