Skip to content

feat(error): bounded application error context facade #218

Closed

Description

@zackees

Goal

Allow consumer applications to replace direct anyhow use with a kernal-api-owned, bounded error context type while preserving fail-loud diagnostics.

Consumer

zackees/fastled-wasm currently uses anyhow::{Result, Context, bail} across archive, install, build, project, cache, runtime, and viewer business logic. Clap and serde have already been removed from that application in favor of kernal-api facades.

Acceptance criteria

  • Public opt-in error-context feature that does not pull application-specific dependencies.
  • Owned Error type supporting static/dynamic messages, Display, std::error::Error, and source chaining for standard errors.
  • Result<T> alias plus ergonomic context and construction helpers sufficient for the FastLED migration.
  • Bounded formatting / no accidental input echo policy documented and covered by contract tests.
  • FastLED can remove its direct anyhow manifest dependency and preserve its existing user-facing error context.

Refs #215.

Activity

  1. zackees commented on Sep 16, 2026

    @zackees
    CollaboratorAuthor

    Complete and adopted on both sides; closing with the evidence rather than leaving it open.

    kernal-api — gated behind error-context, implemented in src/error.rs.. It landed with #220's application-foundations rebase.

    FastLED — adopted through the pinned release tag: crates/fastled-cli/src/error_compat.rs: pub(crate) use kernal_api::error::{message, Context, Error, Result};

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions