Lewati ke konten
AggregaAggrega
Pilih Bahasa: Bahasa Indonesia
Halaman ini diterjemahkan oleh mesin. Baca versi asli dalam bahasa Inggris.

Sentinel galat — referensi kanonis

Setiap penghentian fatal yang dikeluarkan kompilator menyebutkan sebuah kondisi, dan setiap kondisi membawa tiga pengenal, karena mengenali sebuah kondisi, mencatatnya, dan mengutipnya adalah tiga tugas yang berbeda. Sentinel adalah nilai Go yang dicocokkan oleh errors.Is, yang diperoleh dengan memanggil aksesor yang diekspor oleh paket yang mendeklarasikannya: pengenal yang dikenali oleh kode Go. Kode adalah string tempat kondisi tersebut didaftarkan: kode menamai kondisi itu sendiri dengan kata-kata, dan kode itulah yang tetap ketika paket-paket Go di sekitarnya berkembang — pengenal yang dicatat oleh sebuah program. Kode pendek adalah huruf E dan empat digit, cukup pendek untuk dibacakan, diketik dalam pencarian, atau ditempelkan ke dalam laporan: pengenal yang dikutip oleh seseorang. Satu kondisi, tiga pengenal — cocokkan sentinel untuk mengenali kondisi dari Go, baca kode ketika Anda perlu mencatat atau menjadikannya kunci, dan telusuri kode pendek pada tabel semua kondisi di bagian bawah halaman ini.

Diagnostik yang ditujukan kepada pengguna (pesan berawalan yang dikatalogkan dalam fatal-halts.md dan error-translation.md) membawa uraian yang ditujukan kepada pengembang; sentinel yang dibungkus adalah nilai yang dicocokkan oleh errors.Is dalam konsumen terprogram.

Halaman ini adalah tampilan katalog yang berkunci sentinel. Pemrogram yang menulis gerbang CI, integrasi IDE, atau kode orkestrasi build yang perlu membedakan jenis galat mencocokkan sentinel yang tercantum di sini dengan predikat standar errors.Is. Penulis yang men-debug build dengan membaca teks galat yang dikeluarkan biasanya memerlukan tampilan yang berkunci pesan — fatal-halts.md untuk galat yang menghentikan build, warnings.md untuk keluaran yang bersifat saran.

Setiap baris dalam tabel di bawah menyebutkan sebuah aksesor — fungsi tanpa argumen, yang diekspor dari paket yang disebutkan tabel, yang mengembalikan sentinel. Mengimpor paket tersebut dan memanggil aksesornya adalah permukaan integrasi yang didukung, itulah sebabnya tabel menuliskan masing-masing beserta tanda kurungnya — pemanggilan itulah yang menghasilkan nilai yang dapat dicocokkan oleh errors.Is, dan nama tanpa tanda kurung adalah sebuah fungsi, bukan galat:

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

Ketiga pengenal membawa stabilitasnya masing-masing secara terpisah, dan pemisahan itulah alasan sebuah kondisi memiliki ketiganya. Aksesor yang tercantum di bawah stabil di seluruh rilis patch; penggantian nama atau penghapusan diumumkan dalam entri changelog untuk rilis yang melakukannya, dan penambahan aksesor baru dalam sebuah paket bersifat aditif dan tidak merusak pencocok yang sudah ada. Sebuah kode bersifat tetap begitu kondisinya dipublikasikan, sehingga kode adalah pengenal yang dicatat di mana pun sebuah kondisi harus dinamai secara tahan lama: penggantian nama aksesor tidak memindahkan kode tempat kondisinya didaftarkan, dan kode yang telah Anda catat tetap berlaku melampaui refaktor permukaan Go. Kode pendek adalah yang paling tahan lama dari ketiganya: sebuah nomor diberikan sekali lalu bersifat tetap, dan nomor kondisi yang sudah dipensiunkan tetap pensiun alih-alih diberikan kepada kondisi lain, sehingga kode pendek yang dicatat dalam laporan lama tetap menamai kondisi yang dinamainya saat dicatat. Hal itu ditegakkan, bukan sekadar dimaksudkan — kondisi yang dideklarasikan dengan nomor yang sudah dipensiunkan ditolak sebelum kompilator membaca masukan apa pun, pada setiap eksekusi — dan setiap nomor yang dipensiunkan dipublikasikan di samping nomor yang aktif dalam tabel semua kondisi. Kolom kode di bawah memuat kode, dan kode itulah nilai yang dibaca oleh klien diagnostik terstruktur tanpa menautkan paket-paket ini. Kode dipublikasikan, bukan disimpulkan, karena kode tidak harus mengulang baris tempatnya berada — nama yang diekspor ulang melaporkan kode kondisi yang diteruskannya, dan kode sebuah aturan menamai aturan tersebut, bukan aksesornya. Kolom pesan adalah teks literal yang dirender oleh sentinel; diagnostik yang ditujukan kepada pengguna menempatkan kepala dalam kurung siku dan lokasi sumber di depan teks tersebut. Kepala itu membawa kode pendek kondisi, dengan kategori kemunculan di sampingnya jika kemunculan tersebut memilikinya, seperti dalam [DEVELOPER_ERROR E0007] — sehingga pembaca dapat menelusuri keduanya secara terpisah: kategori (DEVELOPER_ERROR / OPS_ERROR / CATALOG_ERROR / TRANSLATION_ERROR / FETCH_ERROR / POLICY_ERROR / TRUST_ERROR) dijelaskan dalam error-translation.md, dan kode pendek dapat ditelusuri dalam tabel semua kondisi di halaman ini. Jika sebuah plugin memunculkan kondisi tersebut, token kode dikualifikasi oleh plugin yang memunculkannya — [TRANSLATION_ERROR provider/example:1.0.0/E0007] — dan kode pendeknya adalah segmen terakhir; error-translation.md menjelaskan mengapa kualifikasi itu ada dan mengapa segmen terakhirlah yang harus ditelusuri.

Membaca kode suatu kondisi

Kode menamai kondisi dan tidak ada yang lain, dalam kebab-case — parameter-contract-violation, lockfile-drift. Kode tidak membawa prefiks: bukan paket yang mendeklarasikannya, bukan tahap yang memunculkannya, bukan pengelompokan dalam bentuk apa pun. Dengan demikian, kode tetap sama ketika kompiler direorganisasi di sekitarnya, dan kondisi yang dimunculkan di lebih dari satu titik dalam suatu kompilasi tetap memiliki satu nama. Nama setiap kondisi sudah berbeda dengan sendirinya, dan itulah yang membuat prefiks tidak diperlukan; dua kondisi tidak dapat didaftarkan dengan satu kode. Bacalah kode dari suatu error dengan CodeOf, dari github.com/aggrega-ai/aggrega-cli/pkg/errors, yang menelusuri rantai pembungkusan dengan cara yang sama seperti errors.Is, sehingga kode tetap bertahan berapa pun banyaknya frame yang membungkus error dalam perjalanannya kembali kepada Anda. Paket tersebut sendiri bernama errors, sehingga alias impor memisahkannya dari pustaka standar:

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 juga melaporkan apakah ada error dalam rantai yang membawa kode sama sekali; rantai yang tidak membawa kode adalah fakta tentang rantai tersebut, bukan suatu kegagalan. Jika Anda lebih suka mencocokkan antarmukanya sendiri, paket yang sama mengekspornya sebagai CodedError, dan errors.As menemukannya dalam penelusuran yang sama.

Kode berjalan satu arah. Kode adalah apa yang dilaporkan suatu kondisi, tidak pernah apa yang mengidentifikasinya bagi pencocok: menuliskan string tersebut ke dalam kode Anda sendiri hanya memberi Anda sebuah string, dan tidak ada jalan kembali dari string ke nilai yang dicocokkan oleh errors.Is. Cocokkan sentinel untuk mengenali suatu kondisi; baca kodenya untuk mencatatnya.

Kode yang dicetak aggrega di terminal adalah kode pendek, bukan kode ini. Diagnostik penghentian dibuka dengan kepala dalam kurung siku yang membawa kode pendek kondisi, dengan kategori kejadian di sampingnya jika kejadian tersebut memilikinya — [DEVELOPER_ERROR E0007], atau [TRANSLATION_ERROR provider/example:1.0.0/E0007] jika suatu plugin memunculkan kondisi tersebut dan kodenya dikualifikasi oleh plugin yang memunculkannya, atau [E0007] jika kegagalan tersebut tidak memiliki bidang perhatian untuk mengarahkan Anda — lalu lokasi sumber dan teks pesan yang dikatalogkan dalam fatal-halts.md. Kode deskriptif menamai kondisi dengan kata-kata dan terlalu lebar untuk posisi tersebut: pada kondisi terpanjang, kode itu akan memenuhi terminal yang sempit sebelum pesan dimulai, dan itulah satu-satunya alasan adanya pengenal kedua yang ringkas. Jadi, token yang menjadi pegangan ketika Anda hanya memiliki keluaran cetak adalah kode pendek, dan kode tersebut dapat dirujuk pada tabel setiap kondisi lebih lanjut di halaman ini: dari sebuah nomor yang dapat Anda bacakan lewat telepon, Anda sampai pada kondisi, aksesornya, dan teks pesannya. aggrega explain <code> melakukan perujukan tersebut di terminal — perintah ini menerima salah satu kode kondisi dan mencetak kondisi tersebut bersama entri yang mendokumentasikan perbaikan penulisannya, dan dijelaskan dalam aggrega explain. Tampilan berbasis pesan dalam fatal-halts.md tetap menjadi cara untuk bekerja dari kata-kata, bukan dari pengenal.

Tempat kode memang berjalan di luar Go adalah diagnostik terstruktur yang diterbitkan daemon compiler-as-service, sebagai bidang code tersendiri pada setiap entri, bukan sesuatu yang dilipat ke dalam teks pesan — sehingga ekstensi editor, atau klien lain dari protokol tersebut, bercabang berdasarkan apa yang dilaporkan suatu entri tanpa menautkan paket-paket ini dan tanpa mengurai prosa. Satu kunci tersebut membawa kode yang dapat dicocokkan mesin siapa pun yang menetapkannya, dan entri menyebutkan lapisan mana yang memunculkannya. Kode di sana memiliki tiga asal, dan asal ketiga adalah alasan mengapa kode yang dapat Anda cari di halaman ini bukan dengan sendirinya tanda bahwa ada yang gagal:

  • Kode kondisi yang dinamai suatu kegagalan, yang dikatalogkan oleh halaman ini.
  • Kode kelas dari suatu peringatan tentang output yang dirender — unsupported-field adalah salah satunya, dan warnings.md menjelaskannya. Kode ini ditetapkan di mana pun peringatan tersebut dimunculkan, alih-alih didaftarkan sebagai kondisi, sehingga tidak memiliki baris di sini.
  • Kode terdaftar dari suatu peringatan tentang dokumen yang ditulis — nama yang berjarak satu suntingan dari nama yang dideklarasikan, parameter yang tidak dibaca apa pun. Temuan semacam itu menamai kondisi dalam bentuk yang sama seperti kegagalan, sehingga kodenya terdaftar dan memiliki baris di halaman ini, dan membaca baris tersebut memberi tahu Anda tentang apa temuan itu.

Jadi, kode yang sama yang akan Anda baca dari suatu penghentian juga dapat sampai kepada Anda dari build yang selesai, dibawa oleh temuan yang tidak mengubah apa pun pada hasilnya. Yang membedakan keduanya adalah hasil yang Anda terima dan lapisan yang dinamai entri — tidak pernah bentuk kode itu sendiri, dan tidak pernah apakah kode tersebut dapat dirujuk di sini. Bidang tersebut dihilangkan jika tidak ada yang menghasilkan entri tersebut yang menetapkan kode: kegagalan yang tidak menamai kondisi milik Aggrega sendiri, dan peringatan yang pemunculnya tidak menetapkan kode. aggrega serve mendokumentasikan bentuk entri, kunci yang menamai lapisan, dan kapan bidang tersebut ada.

Diagnostik terstruktur membawa kedua pengenal suatu kondisi, dan mengetahui mana yang mana adalah perbedaan antara pengenal yang dapat Anda tindak lanjuti dan yang tidak. Kunci code di atas ditujukan untuk program: menggunakan tanda hubung dan menamai kondisi dengan kata-kata, sehingga ekstensi yang bercabang berdasarkan kunci itu terbaca sesuai maknanya, dan kunci itu adalah nilai yang dilaporkan CodeOf di Go. Kunci shortCode di sampingnya ditujukan untuk manusia — huruf E dan empat digit, token yang sama yang dicetak diagnostik penghentian di kepala dalam kurung sikunya. Inilah yang Anda bacakan lewat telepon, ketik ke kotak pencarian, atau tempel ke dalam issue, dan inilah token yang menjadi kunci tabel setiap kondisi.

Tidak ada yang merupakan singkatan dari yang lain, dan tidak ada yang menjadi cadangan bagi yang lain. Cocokkan berdasarkan kode deskriptif; tunjukkan kode pendek kepada pembaca. Permukaan yang hanya menawarkan kode deskriptif akan memberi penulis pengenal yang ditujukan bagi pencocok, dan permukaan yang mencocokkan berdasarkan kode pendek akan mencocokkan berdasarkan nomor yang tidak mengatakan apa pun tentang kondisinya — itulah sebabnya keduanya dibawa, alih-alih memilih salah satunya.

Kunci ketiga, codeDescription, membawa tempat kondisi tersebut diterbitkan, sebagai referensi yang dapat dibuka untuk informasi lebih lanjut tentang diagnostik tersebut. Alamatnya merujuk ke tabel setiap kondisi di halaman ini, sehingga pembaca yang mengikutinya dari editor tiba dengan memegang kode pendek yang menjadi kunci tabel tersebut. Suatu entri membawa kode pendek dan referensi tersebut bersama-sama, atau tidak membawa keduanya: keduanya ada tepat ketika entri menamai kondisi terdaftar — yang memiliki baris di tabel tersebut — dan keduanya tidak ada ketika kode menamai kelas peringatan atau identitas aturan konvensi dari linter milik Anda sendiri yang tidak dideklarasikan Aggrega, karena tidak ada nomor untuk dikutip bagi hal-hal tersebut dan tidak ada apa pun di sini yang menjelaskannya.

Untuk arah sebaliknya — dari kode yang Anda pegang ke kondisi yang dinamainya — tabel-tabel di bawah ini adalah daftar yang diterbitkan. Setiap baris membawa kode di samping aksesor yang menghasilkan kondisi yang sama di Go, sehingga kode yang dibaca dari diagnostik terstruktur merujuk ke nama yang dapat Anda cocokkan dan ke teks yang dirender kondisi tersebut. Tabel-tabel tersebut mencakup kondisi yang aksesornya dapat Anda impor, dan ada dua jenis kode yang berada di luarnya: kode kelas, yang menamai kelas peringatan alih-alih kondisi sehingga tidak memiliki aksesor untuk diletakkan di sampingnya, dan kode yang kondisinya hanya dideklarasikan dalam paket yang tidak dapat Anda impor dan tidak diekspor ulang di mana pun, sehingga tidak ada nama yang dapat dicocokkan untuk diletakkan di sampingnya. Jenis kedua tersebut tetap menamai suatu kondisi, dan kondisi itu tetap memiliki kode pendek — tabel setiap kondisi, lebih lanjut di halaman ini, dikunci berdasarkan kode pendek alih-alih nama yang dapat diimpor, sehingga mencakup kondisi-kondisi tersebut juga.

Permukaan yang dapat dicocokkan, menurut paket yang mendeklarasikan

Setiap bagian di bawah ini adalah satu paket yang dapat Anda impor. Judulnya adalah path paket relatif terhadap path modul github.com/aggrega-ai/aggrega-cli, sehingga bagian berjudul pkg/resolver diimpor sebagai github.com/aggrega-ai/aggrega-cli/pkg/resolver.

Entri dikelompokkan menurut paket yang mendeklarasikan sentinel, karena paket itulah yang diimpor oleh pencocok. Di mana dalam build kondisi tersebut dimunculkan adalah pertanyaan terpisah, dan halaman ini sengaja tidak menjawabnya: satu sentinel sering dimunculkan dari beberapa tempat, dan beberapa sentinel hanya dimunculkan dari kode yang tidak diekspor oleh modul, sehingga tidak ada jawaban per entri yang akan benar untuk setiap baris. Tampilan yang berkunci pesan menjawab pertanyaan kapan-dalam-build dengan istilah yang dapat Anda amati — terutama fatal-halts.md.

Beberapa nama muncul di lebih dari satu paket. Nama-nama tersebut adalah ekspor ulang dari satu nilai bersama, bukan dua kondisi, sehingga mencocokkan nama mana pun akan berhasil; tabel menyatakannya di mana kedua nama dapat diimpor. Kedua baris membawa kode yang sama, yang merupakan fakta yang sama yang dinyatakan pada pengenal yang dipegang klien di luar Go: satu kondisi, satu kode, berapa pun banyaknya nama yang mencapainya.

pkg/catalog

SentinelKodePesan
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() adalah nilai yang sama dengan pkg/resolver.ErrManifestImplementsMismatch(), sehingga pencocokan terhadap nama mana pun akan berhasil.

pkg/closure

SentinelKodePesan
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

SentinelKodePesan
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() adalah nilai yang sama dengan pkg/refcycle.ErrCycle(), sehingga pencocokan terhadap nama mana pun akan berhasil.

pkg/deprecation

SentinelKodePesan
ErrDeprecatedEntity()deprecated-entitydeprecation: build consumes a deprecated entity

pkg/docscache

SentinelKodePesan
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() adalah nilai yang sama dengan pkg/oci.ErrFetchNotFound(), sehingga pencocokan terhadap nama mana pun akan berhasil.

pkg/egress

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
ErrNameWindowsCannotHold()name-windows-cannot-holda name this operation writes holds a path segment Windows cannot hold as written

pkg/pluginpath

SentinelKodePesan
ErrPluginArtifactNotFound()plugin-artifact-not-foundplugin artifact not found on this machine
ErrPluginEntityNotFound()plugin-entity-not-foundplugin reference is not a Plugin entity

pkg/pluginstrust

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
ErrCycle()reference-cyclecircular reference expansion

pkg/registrytrust

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
ErrFetchIntegrity()fetch-integrityoci: content digest mismatch
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
  • ErrFetchIntegrity() adalah nilai yang sama dengan pkg/oci.ErrFetchIntegrity(), sehingga pencocokan terhadap nama mana pun akan berhasil.
  • ErrFetchNotFound() adalah nilai yang sama dengan pkg/oci.ErrFetchNotFound(), sehingga pencocokan terhadap nama mana pun akan berhasil.

pkg/sourcekind

SentinelKodePesan
ErrUnknownKind()unknown-source-kindno source adapter serves the source kind

pkg/sourceresolver

SentinelKodePesan
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() adalah nilai yang sama dengan pkg/oci.ErrFetchIntegrity(), sehingga pencocokan terhadap nama mana pun akan berhasil.
  • ErrFetchNetworkUnreachable() adalah nilai yang sama dengan pkg/oci.ErrFetchNetworkUnreachable(), sehingga pencocokan terhadap nama mana pun akan berhasil.
  • ErrFetchNotFound() adalah nilai yang sama dengan pkg/oci.ErrFetchNotFound(), sehingga pencocokan terhadap nama mana pun akan berhasil.
  • ErrFetchUnauthorized() adalah nilai yang sama dengan pkg/oci.ErrFetchUnauthorized(), sehingga pencocokan terhadap nama mana pun akan berhasil.

pkg/sourceresolver/cacheslot

SentinelKodePesan
ErrEmptyWorkspaceRoot()empty-workspace-rootcacheslot: empty workspaceRoot

pkg/sourceresolver/netrc

SentinelKodePesan
ErrNetrcFileUnreadable()netrc-file-unreadablethe netrc file could not be read
ErrSourceURLCarriesCredential()source-url-carries-credentialthe source URL carries a credential

pkg/types

SentinelKodePesan
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

SentinelKodePesan
ErrDanglingUsesTarget()dangling-uses-targetuses edge target does not exist
ErrReleaseEdgeRetarget()release-edge-retargetrelease edge retargets a developer-declared edge

pkg/validator

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
ErrExtensionEval()schema-extension-evaluation-failedvalidator/jsonschema: x-aggrega extension evaluation failed
ErrSchemaResolve()schema-not-resolvablevalidator/jsonschema: schema resolution failed

pkg/validator/merger

SentinelKodePesan
ErrMergeInvalid()schema-merge-input-invalidmerger: invalid merge input

pkg/workspaceconfig

SentinelKodePesan
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

SentinelKodePesan
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

SentinelKodePesan
ErrPositionOutOfRange()position-out-of-rangeposition out of range

Sentinel yang membawa sentinel lain

ErrCacheMetadataInvalid (pkg/sourceresolver/metadata) melaporkan slot cache artefak sumber yang rusak. Sentinel ini dideklarasikan sebagai pembungkus di sekitar ErrFetchIntegrity(), bukan sebagai identitas tersendiri, sehingga tidak muncul dalam tabel di atas dan pencocokan terhadap ErrFetchIntegrity() juga berhasil untuknya. Karena sentinel ini membungkus sebuah sentinel alih-alih mendeklarasikannya, sentinel ini diekspor sebagai nilai, bukan sebagai fungsi: cocokkan sebagai ErrCacheMetadataInvalid, tanpa tanda kurung. Cocokkan pembungkusnya jika Anda menginginkan kondisi spesifik tersebut, dan sentinel yang dibungkus jika Anda menginginkan seluruh kelas integritas.

Sentinel yang dapat dijangkau dengan nama kedua dalam satu paket

Jika sebuah paket mengekspor dua accessor untuk satu kondisi — yang kedua dideklarasikan sebagai penerusan ke yang pertama — tabel di atas memuat accessor yang mendeklarasikan dan tidak mencantumkan nama penerusnya. Kedua nama diekspor dari paket yang sama, sehingga impor yang menjangkau salah satunya sudah menjangkau yang lain, dan baris kedua akan mencantumkan satu kondisi dua kali dengan nama yang tidak mencocokkan hal baru apa pun. Pencocokan dengan nama mana pun berhasil: penerusan mengembalikan nilai yang sama dengan yang dikembalikan oleh accessor yang mendeklarasikan.

Ini bukan kasus lintas paket. Sentinel yang diekspor ulang dari paket lain memiliki baris di tabel setiap paket, karena pencocok yang mengimpor salah satu paket tersebut tidak dapat menjangkau nama milik paket lainnya tanpa juga mengimpor paket itu; penerusan di dalam satu paket tidak memerlukan baris kedua, karena satu impor menjangkau kedua nama.

ErrDuplicateRecipeIdentity() di pkg/catalog adalah penerusan semacam itu: fungsi ini mengembalikan ErrDuplicateEntityIdentity(), yaitu nama yang dimuat oleh tabel untuk paket tersebut.

Kondisi tanpa sentinel yang dapat dicocokkan

Beberapa tahap kompilasi mendeklarasikan sentinel-nya dalam paket yang tidak diekspor oleh compiler, sehingga tidak ada yang dapat dirujuk oleh errors.Is dan tidak ada pencocok yang dapat ditulis terhadapnya. Kondisi-kondisi tersebut dijelaskan di sini alih-alih ditabulasikan, karena tabel di halaman ini merupakan janji bahwa kolom kirinya dapat didereferensikan.

Diagnostiknya sampai kepada Anda secara lengkap melalui teks error yang dikeluarkan dan melalui tampilan yang berkunci pesan — khususnya fatal-halts.md — yang merupakan cara yang didukung untuk mengenalinya:

  • Konstruksi topologi (konstruksi graf dan perataan sub-aggregate) melaporkan sub-Aggregate yang tidak dapat dimuat, dengan menyebutkan URI Aggregate yang tidak dapat dijangkau; deklarasi uses: yang bentuk strukturalnya tidak sesuai dengan skema; kedalaman penyarangan yang terlampaui; dan tabrakan ID node hasil perataan, yaitu ketika dua sub-Aggregates dikompilasi ke ID node yang sama dan satu nama instans harus diganti untuk membedakannya.
  • Finalisasi graf (penggabungan Feature di seluruh permukaan Aggregate dan Release) melaporkan tipe Feature yang dideklarasikan secara tidak konsisten di antara keduanya.
  • Analisis statis (evaluasi selector dan pemeriksaan keamanan tipe lintas node) melaporkan pelanggaran selector:; kegagalan resolusi katalog yang tidak dapat dilewatinya, dengan menyebutkan entitas yang tidak dapat dijangkau; dan penolakan kebijakan, yaitu ketika plugin yang dipasang pada peran putusan tata kelola menolak build yang telah dirakit. Penolakan kebijakan membawa kategori POLICY_ERROR, nama plugin yang menolak, dan pesan aturan yang diberikan oleh plugin tersebut.
  • Rendering (dispatch provider dan rendering per provider) melaporkan provider yang tidak dikenal.
  • Pemuat host Wasm tertanam memancarkan sentinel pengamannya sendiri — pengaman penolakan manifest (sebuah plugin meminta kapabilitas akses runtime yang ditolak oleh firewall kemurnian AOT), pemulihan panic guest, dan trap keluar plugin yang deterministik. Kondisi ini muncul dalam diagnostik yang ditampilkan kepada pengguna saat menjalankan plugin (misalnya melalui aggrega lint). Plugin authors yang menguji guest terhadap host menjangkau kondisi yang sama berdasarkan nama yang dapat diimpor melalui pkg/plugintest, yang tercantum di atas.

Untuk menahan pipeline khusus pada penolakan kebijakan, cocokkan prefiks kategori POLICY_ERROR dalam diagnostik alih-alih sentinel; kategori tersebut merupakan bagian terdokumentasi dari permukaan error, yang dijelaskan dalam error-translation.md.

Setiap kondisi, menurut kode pendek

Tabel di bawah menjalankan pencarian ke arah sebaliknya: kode pendek di kolom kiri, dan di sampingnya kondisi yang dinamai oleh kode tersebut serta teks yang dihasilkan kondisi itu. Tabel ini mencakup setiap kondisi yang dapat dilaporkan oleh aggrega, termasuk kondisi yang tidak dapat dicantumkan oleh bagian-bagian di atas.

Cakupan yang lebih luas itu adalah tujuan tabel ini, bukan kebetulan. Bagian-bagian di atas berkunci pada nama yang dapat Anda impor, sehingga kondisi yang hanya dideklarasikan dalam paket yang tidak dapat Anda impor — dan tidak diekspor ulang di mana pun yang dapat Anda impor — tidak memiliki apa pun untuk dimasukkan ke kolom kirinya. Tabel ini berkunci pada kode pendek, dan setiap kondisi memilikinya, sehingga tidak ada kondisi yang dapat dilaporkan berada di luarnya. Kode pendek yang Anda pegang dapat ditemukan di sini, baik kondisi di baliknya juga memiliki aksesor yang dapat Anda cocokkan maupun tidak.

Yang membuat sebuah kondisi layak masuk tabel ini adalah bahwa compiler benar-benar dapat melaporkannya. Baris-barisnya diturunkan dari kode, bukan disalin ke dalamnya: sebuah kondisi muncul di sini karena ada sesuatu di compiler yang memunculkannya, sehingga setiap kode di kolom kiri adalah kode yang dapat dicetak oleh aggrega. Itulah janji tabel ini, dan itulah yang memungkinkan Anda membaca sebuah baris sebagai pemeriksaan yang benar-benar dijalankan.

Pengecualian yang disengaja adalah kondisi yang dideklarasikan sebelum kode yang melaporkannya ada, agar kode dan susunan katanya ditetapkan sejak awal dan tidak pernah berubah bagi pembaca yang sudah mengutipnya. Kondisi seperti itu menyatakannya dalam catatan tepat di bawah tabel. Kondisi tersebut dicantumkan, bukan disembunyikan — kode yang Anda pegang harus selalu dapat ditemukan — dan catatan di sampingnya memberi tahu Anda dengan jelas bahwa belum ada build yang memunculkannya, serta apa yang harus ada sebelum ada build yang memunculkannya.

Nomor yang dipensiunkan juga dicantumkan, dalam kumpulan catatannya sendiri di bawah tabel, dan tetap tercantum secara permanen. Sesekali sebuah kondisi ditarik — digantikan oleh kondisi yang mencakup lebih luas, atau tidak pernah ada yang melaporkannya — dan sejak saat itu nomornya dipensiunkan: nomor itu tidak pernah diberikan ke kondisi lain, sehingga kode pendek yang Anda kutip dari laporan lama hanya dapat menamai apa yang dinamainya saat laporan itu ditulis. Janji itu bersifat mekanis, bukan editorial. Kondisi yang dideklarasikan dengan nomor yang dipensiunkan ditolak sebelum compiler membaca masukan apa pun, pada setiap eksekusi, sehingga tidak ada rilis yang dapat memuatnya — jenis penolakan yang sama dengan yang akan dihadapi nomor yang coba digunakan bersama oleh dua kondisi aktif, dengan susunan kata yang memungkinkan Anda mengetahui mana dari keduanya yang Anda alami. Catatan untuk kode yang dipensiunkan memberi tahu Anda, jika pemensiunannya mencatatnya, apa yang dinamai kode itu dan, jika kondisinya digantikan, kode mana yang kini melaporkan cakupan tersebut.

Tidak pernah menggunakan ulang nomor juga yang membuat urutannya memiliki celah permanen, dan catatan-catatan itulah yang membuat celah tersebut dapat dibaca. Nomor yang hilang, dengan sendirinya, bukan bukti apa pun: nomor itu mungkin dipensiunkan, dan mungkin juga belum pernah dicapai. Catatan-catatan itu adalah rekaman nomor mana yang dipensiunkan dan, jika tercatat, apa yang dinamai masing-masing, sehingga kode yang tidak ditemukan di baris maupun di catatan adalah kode yang tidak pernah diterbitkan oleh compiler ini.

Kode pendek sengaja dibuat buram: empat digit tidak mengatakan apa pun tentang sebuah kondisi dengan sendirinya, yang merupakan harga dari pengenal yang cukup pendek untuk dibacakan, diketik ke pencarian, atau ditempelkan ke laporan. Korespondensi di bawah inilah yang membuatnya dapat digunakan. Sebuah nomor diberikan satu kali, dari satu urutan menaik, dan tetap sejak saat itu; nomor itu tidak mengatakan apa pun tentang kondisi yang dinamainya. Jadi kode pendek adalah pengenal dan tidak lebih — nilainya bukan klasifikasi, dan baik kode itu maupun pengelompokan apa pun yang mungkin Anda perhatikan di tabel bukan petunjuk tentang di mana sebuah kondisi berada atau tentang apa kondisi itu.

Tabel ini tidak memiliki kolom kategori, dan itu bukan kelalaian: kategori adalah sifat dari kegagalan tertentu, bukan dari kondisi di baliknya. Sebagian kondisi termasuk dalam satu kategori secara konstruksi. Untuk yang lain, kategorinya mengikuti jenis entitas yang menjadi pokok kegagalan, sehingga satu kondisi seperti itu yang dilaporkan sekali terhadap sebuah Aggregate dan sekali terhadap sebuah Release memiliki kategori yang berbeda setiap kali — dan satu nilai yang ditulis di samping kondisi di sini akan salah untuk setiap kondisi jenis kedua tersebut.

Kategori-kategori diajarkan di error-translation.md — masing-masing, artinya, dan di mana perbaikannya berada. Kategori dan kode pendek menjawab pertanyaan yang berbeda tentang kegagalan yang sama: kategori mengidentifikasi permukaan tempat perbaikan itu berada, dan kode pendek mengidentifikasi kondisi mana yang menghentikan build. Keduanya tidak dapat diturunkan satu dari yang lain, itulah sebabnya masing-masing memiliki daftar terbitnya sendiri — dan mengapa kegagalan yang tidak memiliki permukaan penulisan untuk disebut tetap memiliki kode yang dapat Anda cari di sini.

KodeKondisiPesan
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 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai pencarian katalog yang gagal saat kontrak statis graf diperiksa — kesalahan pada compiler, bukan pada dokumen yang ditulis — dan kondisi yang dimunculkan ketika sebuah build me-resolve tipe komponen yang tidak memiliki entri di katalog yang dibacanya kini melaporkan keadaan tersebut, dan kodenya adalah E0154.
  • E0134 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai entitas yang dapat dipublikasikan yang direktorinya tidak dinamai sesuai versi yang dideklarasikan entitas tersebut; publikasi tidak menilai nama direktori, dan kondisi yang dimunculkan ketika sebuah entitas berbagi direktori dengan entitas lain padahal jenisnya memiliki direktori sendiri adalah E0303.
  • E0157 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai kunci Aggregate — nama instans komponen, fitur, subsistem, atau modul bersarang — yang tidak cocok dengan pola nama yang ditulis. Setiap permukaan kunci tersebut dibatasi pada ejaan yang sama oleh skema Aggregate, yang menolak dokumen saat memvalidasi amplopnya dan melaporkan kunci yang bermasalah beserta baris dan kolomnya; kode kondisi tersebut adalah E0215.
  • E0159 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai referensi target yang segmen-segmennya yang dipisahkan titik tidak semuanya cocok dengan pola nama instans, dan tidak ada build yang melaporkannya sebelum kondisi tersebut ditarik.
  • E0166 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai file yang dirujuk oleh parameters: { $import: … } milik sebuah Release ketika file itu tidak dapat dibaca atau byte-nya tidak dapat di-parse; file yang tidak menghasilkan dokumen adalah satu kondisi di mana pun path-nya ditulis, dan kodenya adalah E0175.
  • E0203 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai FeatureRecipe pada kapabilitas eval yang mendeklarasikan sumber, overlay values, workload, atau artefak; kapabilitas itu telah ditarik, dan kini tidak ada yang melaporkan keadaan ini.
  • E0206 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai Recipe pada kapabilitas eval yang mendeklarasikan sumber, workload, artefak, atau overlay values; kapabilitas itu telah ditarik, dan Recipe yang tidak mendeklarasikan satu pun dari itu ditolak pada setiap kapabilitas dengan E0210.
  • E0217 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai kegagalan validasi skema yang tidak dapat dilaporkan terhadap field tertentu, dan tidak ada build yang melaporkannya sebelum kondisi tersebut ditarik.
  • E0219 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai rantai extends yang siklik, yang dilaporkan oleh penelusuran rantai yang terpisah dari langkah penggabungan dalam penggabungan skema; satu penelusuran rantai melaporkan setiap rantai siklik, dan kodenya adalah E0202.
  • E0230 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0231 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0232 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0233 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0234 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Nomor ini menamai sumber Recipe berupa string kosong, yang dilaporkan saat merender melalui provider compose; kini satu kondisi yang mencakup setiap provider melaporkan hal itu, dan kodenya adalah E0251.
  • E0235 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0236 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0237 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0238 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0239 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0240 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0241 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0242 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Nomor ini menamai sumber Recipe berupa string kosong, yang dilaporkan saat merender melalui provider Helm; kini satu kondisi yang mencakup setiap provider melaporkan hal itu, dan kodenya adalah E0251.
  • E0243 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0244 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0245 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0249 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0258 sudah dipensiunkan: tidak ada lagi yang melaporkannya, dan nomor tersebut tidak pernah diberikan kepada kondisi lain. Kondisi yang dinamai nomor ini telah ditarik, dan tidak ada build yang melaporkannya.
  • E0322 dipensiunkan: tidak ada yang melaporkannya sekarang, dan nomor ini tidak pernah diberikan ke kondisi lain. Kode ini menamai nilai yang dihitung oleh Feature yang dilampirkan ke boundary untuk lingkungan sebuah komponen di bawah kunci yang sudah dikirim oleh lampiran lain. Feature yang dilampirkan ke boundary mengirim ke komponen hanya melalui injectMapping milik FeatureRecipe-nya, dan pemetaan yang menulis kunci yang telah dikirim lampiran lain dilaporkan dengan E0318.

Panduan pencocokan

Predikat errors.Is menelusuri rantai pembungkusan, sehingga pencocokan sentinel tetap berfungsi bahkan ketika error dibungkus beberapa kali dalam perjalanannya kembali kepada Anda. Cocokkan terhadap error yang dikembalikan oleh fungsi yang diekspor:

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
}

Tidak ada titik masuk yang diekspor yang menjalankan seluruh build, sehingga pencocokan errors.Is berlaku untuk kode yang memanggil paket-paket ini secara langsung. Untuk menjadikan build sebagai gerbang CI, jalankan aggrega build lalu baca status keluarnya dan diagnostiknya: teks pesannya dikatalogkan di fatal-halts.md, kategorinya di error-translation.md, dan kode pendek di bagian kepala dalam kurung sikunya dapat ditelusuri di tabel setiap kondisi pada halaman ini.

Kedua jalur gerbang ini ada karena ketiga pengenal menjangkau sejauh yang berbeda. Gerbang yang ditulis dalam Go menautkan paket-paket ini, mencocokkan sentinel, dan dapat membaca kode mana pun dari error apa pun yang dipegangnya. Gerbang yang ditulis di sekitar perintah memiliki status keluar dan teks yang dicetak — dan teks yang dicetak menyebutkan kondisinya, karena kode pendek berada di bagian kepala dalam kurung siku. Jadi gerbang semacam itu berpatokan pada kode pendek tersebut, bukan pada susunan kata pesan, dan tampilan berbasis pesan tetap menjadi cara untuk menelusuri balik dari susunan kata yang sudah dimilikinya. Cocokkan sentinel dari Go; berpatokan pada kode pendek di sekitar perintah; baca kode deskriptif dari diagnostik terstruktur jika klien menggunakan protokol tersebut.

Sentinel yang dideklarasikan di paket berbeda dengan nama pendek yang sama adalah kondisi yang berbeda, bukan dua ejaan dari satu kondisi: errors.Is membedakannya berdasarkan identitas, sehingga pencocokan terhadap yang satu tidak cocok dengan yang lain. Ekspor ulang yang disebutkan dalam tabel adalah pengecualiannya, dan disebutkan justru karena itulah kasus ketika dua nama memang cocok. Cocokkan terhadap nama di paket tempat tabel mencantumkannya, dan anggap nama pendek saja sebagai ambigu.

Untuk katalog diagnostik yang dilihat pengguna (pesan yang dilihat pengembang di terminal mereka ketika build berhenti), lihat fatal-halts.md. Untuk katalog peringatan advisori (keluaran warning:, lint: dan notice: yang tidak menghentikan build), lihat warnings.md. Untuk taksonomi prefiks kategori ([DEVELOPER_ERROR] / [OPS_ERROR] / [CATALOG_ERROR] / [TRANSLATION_ERROR] / [FETCH_ERROR] / [POLICY_ERROR] / [TRUST_ERROR]), lihat error-translation.md.