feat(ext): single callable binding, provider v2 CLI, capability handlers, stdlib aliases
Implements RFC-EXT-0001 PR-00..PR-07 first pass: - CallSiteKey/CallBindingTable + one frontend binding pass; runtime dispatch by identity - prepare composition root shared by check/run/inspect/Analysis; exact plugin reconciliation - provider.json v2 --provider/--allow-provider worker CLI with fail-closed verification - capability handler registry with real fs.read and audit - verified stdlib public aliases replace print_override/AST scan - docs: specs, ADR-0054/0055/0057/0058, README, CI/release gates, evidence PR-04 extension selection/lock v4 and final frozen-binary evidence remain.
This commit is contained in:
1 parent
9aa536c2c9
commit
1f6fd644a0
54 files changed
+8710
-828
No files matched your search
@@ -81,6 +81,34 @@ pub mod codes {
|
||||
pub const PROJECT_LOCK: &str = "project.lock";
|
||||
/// Dependency resolution failed.
|
||||
pub const PROJECT_DEPENDENCY: &str = "project.dependency";
|
||||
/// A statically visible callable export is declared more than once
|
||||
/// (RFC-EXT-0001 §16.1).
|
||||
pub const EXT_DUPLICATE_CALLABLE: &str = "ext.duplicate_callable";
|
||||
/// An import alias collides with a builtin or plugin dotted namespace.
|
||||
pub const EXT_IMPORT_NAMESPACE_CONFLICT: &str = "ext.import_namespace_conflict";
|
||||
/// A loaded plugin's exports/signature/owner/artifact digest do not exactly
|
||||
/// match the statically prepared descriptors.
|
||||
pub const EXT_PLUGIN_BINDING_MISMATCH: &str = "ext.plugin_binding_mismatch";
|
||||
/// Two resource providers try to register the same non-reserved kind.
|
||||
pub const EXT_DUPLICATE_PROVIDER_KIND: &str = "ext.duplicate_provider_kind";
|
||||
/// A legacy/future provider manifest is passed to the v2-only CLI entry.
|
||||
pub const EXT_UNSUPPORTED_PROVIDER_SCHEMA: &str = "ext.unsupported_provider_schema";
|
||||
/// No provider artifact matches the current host target triple.
|
||||
pub const EXT_NO_MATCHING_ARTIFACT: &str = "ext.no_matching_artifact";
|
||||
/// A provider artifact differs from its declared sha256, escapes its
|
||||
/// bundle, is not a regular file or is an unallowed symlink.
|
||||
pub const EXT_ARTIFACT_INTEGRITY: &str = "ext.artifact_integrity";
|
||||
/// The matching provider worker/helper program is missing or cannot start.
|
||||
pub const EXT_WORKER_UNAVAILABLE: &str = "ext.worker_unavailable";
|
||||
/// The current platform explicitly does not support the requested
|
||||
/// extension transport.
|
||||
pub const EXT_PLATFORM_UNSUPPORTED: &str = "ext.platform_unsupported";
|
||||
/// A locked extension identity does not match the actual manifest or
|
||||
/// artifact on disk.
|
||||
pub const EXT_EXTENSION_LOCK_MISMATCH: &str = "ext.extension_lock_mismatch";
|
||||
/// An extension is explicitly selected but is not part of the project lock
|
||||
/// (development-only use; release mode rejects it).
|
||||
pub const EXT_UNLOCKED_EXTENSION: &str = "ext.unlocked_extension";
|
||||
/// Internal invariant violation; never expected in normal operation.
|
||||
pub const INTERNAL: &str = "internal.error";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user