Skip to content

Drop nvisy-engine's Error type, rename CI workflows#326

Merged
martsokha merged 2 commits into
mainfrom
refactor/drop-error-type
Jul 11, 2026
Merged

Drop nvisy-engine's Error type, rename CI workflows#326
martsokha merged 2 commits into
mainfrom
refactor/drop-error-type

Conversation

@martsokha

@martsokha martsokha commented Jul 11, 2026

Copy link
Copy Markdown
Member

Summary

Two grouped cleanups:

Error type consolidation. Delete nvisy_engine::{Error, ErrorKind, ErrorSource, Result}. The type carried write-only capabilities (retryable, component, kind field, 8 of 10 per-kind shorthands never read), and nothing outside the crate matches on our ErrorKind. Most internal modules already used elide_core::Error directly — this drops the last 5 exceptions in pipeline/{mod,report}.rs. Net −310 lines. Re-export Error, ErrorKind, Result, Scope, Entity, and AuthenticatedProvider/UnauthenticatedProvider at the appropriate module roots so callers embedding this crate don't have to depend on elide-* directly to use its public API. Shortens `PatternGuardrails` rustdoc summary so it fits on one rendered line.

CI workflow rename. Rename `rs-{build,release,security}.yml` → `runtime-.yml` and `py-{build,release,security}.yml` → `inference-.yml`. Update workflow display names, path filters, dependabot-regen comment, and badge URLs in every crate/package README. Makefile Python targets (`py-lint`, `py-test`, etc.) are unchanged — those name the tooling, not the CI pipeline.

Test plan

  • `make rust-ci` passes
  • `RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc --workspace --all-features --no-deps` passes
  • `cargo test --workspace --all-features` passes
  • Runtime Build workflow runs on this PR (validates rename)
  • Update any branch-protection rules referencing old `Rs Build` / `Py Build` check names before merge

🤖 Generated with Claude Code

Our Error/ErrorKind/Result carried write-only capabilities: the
retryable flag, component tag, kind field, and 8 of 10 per-kind
shorthands were never read anywhere. Nothing outside the crate
matches on our ErrorKind. Every internal module except
pipeline/{mod,report}.rs already used elide_core::Error directly.

- Delete crates/nvisy-engine/src/error.rs (~230 lines).
- Rewrite the 5 remaining sites in pipeline/{mod,report}.rs to use
  elide_core::Error::new(kind, msg) directly, with the message
  composed inline where an underlying source was previously
  chained via with_source.
- Re-export elide's Error/ErrorKind/Result at the crate root so
  callers stay decoupled from elide-* crates. Also re-export
  Scope, Entity, and the LLM provider variants that leak through
  public struct fields on AnalyzedDocument, EntityRecord, and
  LlmSource.
- Shorten PatternGuardrails' rustdoc summary so it fits on one
  rendered line.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@martsokha martsokha added refactor code restructuring without behavior change engine redaction engine, pipeline runtime, orchestration, configuration labels Jul 11, 2026
@martsokha martsokha self-assigned this Jul 11, 2026
- Rename workflow files: rs-{build,release,security}.yml →
  runtime-*.yml, py-{build,release,security}.yml → inference-*.yml.
- Update workflow display names: "Rs Build" → "Runtime Build" etc.
- Update path filters inside each workflow to match the new names.
- Fix badge URLs in every crate/package README that pointed at the
  old filenames.
- Update the dependabot-regen.yml comment referencing "Py Build".

Makefile Python targets (py-lint, py-test, etc.) are unchanged —
those name the tooling (ruff, pytest), not the CI pipeline.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@martsokha martsokha changed the title Drop nvisy-engine's Error type, re-export elide's directly Drop nvisy-engine's Error type, rename CI workflows Jul 11, 2026
@martsokha
martsokha merged commit 176de81 into main Jul 11, 2026
9 of 10 checks passed
@martsokha
martsokha deleted the refactor/drop-error-type branch July 11, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine redaction engine, pipeline runtime, orchestration, configuration refactor code restructuring without behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant