Перейти к содержимому
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, нет. Сопоставляйте sentinel, чтобы распознать условие; читайте код, чтобы его записать.

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

За пределы Go код выходит в структурированной диагностике, которую публикует демон «компилятор как сервис», — как отдельное поле code у каждой записи, а не как часть текста сообщения, — поэтому расширение редактора или любой другой клиент этого протокола ветвится по тому, что сообщает запись, не связываясь с этими пакетами и не разбирая прозу. Этот один ключ несёт машинно сопоставимый код, кто бы его ни присвоил, а запись указывает, какой уровень его вызвал. У кода там три источника, и третий — причина, по которой код, который можно найти на этой странице, сам по себе не означает, что что-то завершилось сбоем:

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

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

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

Ни один из них не является сокращением другого, и ни один не служит запасным вариантом для другого. Сопоставляйте по описательному коду; показывайте читателю короткий. Интерфейс, предлагающий только описательный код, вручал бы автору идентификатор, предназначенный для сопоставителя, а интерфейс, сопоставляющий по короткому коду, сопоставлял бы по номеру, который ничего не говорит об условии, — поэтому передаются оба, а не выбирается один.

Третий ключ, codeDescription, указывает, где опубликовано условие, — как ссылку, которую можно открыть, чтобы узнать больше о диагностике. Его адрес ведёт к таблице всех условий на этой странице, поэтому читатель, перешедший по нему из редактора, приходит с коротким кодом, по которому построена таблица. Запись несёт короткий код и ссылку вместе или не несёт ни того, ни другого: оба присутствуют ровно тогда, когда запись называет зарегистрированное условие — имеющее строку в этой таблице, — и оба отсутствуют, когда код называет класс предупреждения или идентификатор правила соглашений из вашего собственного линтера, которое Aggrega не объявляет, потому что для них нет номера и здесь нет ничего, что их описывает.

В обратном направлении — от имеющегося у вас кода к условию, которое он называет, — опубликованным списком служат таблицы ниже. В каждой строке код стоит рядом с accessor, дающим то же условие в Go, поэтому код, прочитанный из структурированной диагностики, разрешается в имя, по которому можно сопоставлять, и в текст, который выводит условие. Таблицы охватывают условия, accessor которых можно импортировать, а два вида кодов остаются за их пределами: код класса, который называет класс предупреждения, а не условие, и поэтому не имеет accessor, и код, условие которого объявлено только в пакете, недоступном для импорта, и нигде не реэкспортируется, так что рядом нечего поставить. Второй вид всё же называет условие, и у этого условия всё же есть короткий код: таблица всех условий ниже на этой странице построена по короткому коду, а не по импортируемому имени, и поэтому охватывает и их.

Сопоставляемая поверхность по объявляющему пакету

Каждый раздел ниже — это один пакет, который можно импортировать. Его заголовок — путь пакета относительно пути модуля 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(), и именно это имя приведено в таблице для этого пакета.

Условия без сопоставимого sentinel-значения

Некоторые этапы компиляции объявляют свои sentinel-значения в пакетах, которые компилятор не экспортирует, поэтому errors.Is не на что сослаться и написать для них сопоставление невозможно. Они описаны здесь, а не сведены в таблицу, потому что таблица на этой странице — это обещание, что значение из левого столбца можно разыменовать.

Их диагностика доходит до вас полностью через выводимый текст ошибки и через представления, упорядоченные по сообщениям, — в частности fatal-halts.md, — и это поддерживаемый способ их распознавать:

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

Чтобы остановить конвейер именно при отклонении политикой, сопоставляйте префикс категории POLICY_ERROR в диагностике, а не sentinel-значение; категория — документированная часть поверхности ошибок, описанная в 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 обходит цепочку обёрток, поэтому сопоставление с sentinel-ошибкой работает, даже если ошибка была обёрнута несколько раз на пути обратно к вам. Сопоставляйте с ошибкой, которую вернула экспортируемая функция:

package release
import (
"errors"
"fmt"
"github.com/aggrega-ai/aggrega-cli/pkg/resolver"
"github.com/aggrega-ai/aggrega-cli/pkg/validator/envelope"
)
// Load reads a Release and reports the distinct failures a caller handles
// differently.
func Load(path string) error {
_, err := resolver.LoadRelease(path)
switch {
case errors.Is(err, envelope.ErrEntityEnvelope()):
return fmt.Errorf("%s is not a Release: %w", path, err)
case errors.Is(err, resolver.ErrYAMLLoad()):
return fmt.Errorf("%s could not be read as YAML: %w", path, err)
case err != nil:
return err
}
return nil
}

Экспортируемой точки входа, которая выполняет всю сборку, нет, поэтому сопоставление через errors.Is применимо к коду, который вызывает эти пакеты напрямую. Чтобы ставить проверку CI на сборку, запустите aggrega build и прочитайте её код завершения и диагностику: текст их сообщений перечислен в fatal-halts.md, их категория — в error-translation.md, а короткий код в их заголовке в квадратных скобках можно найти в таблице всех условий на этой странице.

Два пути проверки существуют потому, что три идентификатора доступны на разном расстоянии. Проверка, написанная на Go, компонуется с этими пакетами, сопоставляет sentinel-ошибки и может прочитать любой из кодов с любой ошибки, которая у неё есть. Проверке, построенной вокруг команды, доступны код завершения и выведенный текст — а выведенный текст называет условие, потому что короткий код стоит в заголовке в квадратных скобках. Поэтому такая проверка опирается на этот короткий код, а не на формулировку сообщения, а представления, упорядоченные по сообщениям, остаются способом вернуться назад от уже имеющейся формулировки. Из Go сопоставляйте sentinel-ошибку; вокруг команды опирайтесь на короткий код; описательный код читайте из структурированной диагностики там, где клиент поддерживает этот протокол.

Sentinel-ошибки, объявленные в разных пакетах с одним и тем же коротким именем, — это разные условия, а не два написания одного: errors.Is различает их по идентичности, поэтому сопоставление с одной не совпадает с другой. Исключение составляют реэкспорты, отмеченные в таблицах, и отмечены они именно потому, что это тот случай, когда два имени действительно совпадают. Сопоставляйте с именем в том пакете, под которым оно указано в таблицах, а короткое имя само по себе считайте неоднозначным.

Каталог диагностики для пользователей (сообщения, которые разработчики видят в терминале, когда сборка останавливается) см. в fatal-halts.md. Каталог предупреждений (не останавливающий сборку вывод warning:, lint: и notice:) см. в warnings.md. Таксономию префиксов категорий ([DEVELOPER_ERROR] / [OPS_ERROR] / [CATALOG_ERROR] / [TRANSLATION_ERROR] / [FETCH_ERROR] / [POLICY_ERROR] / [TRUST_ERROR]) см. в error-translation.md.