Skip to content

fix(backend): preserve generation lifecycle and knowledge source guards#12

Merged
ActiveInAI merged 1 commit into
mainfrom
fix/backend-generation-lifecycle-registry-guards
Apr 30, 2026
Merged

fix(backend): preserve generation lifecycle and knowledge source guards#12
ActiveInAI merged 1 commit into
mainfrom
fix/backend-generation-lifecycle-registry-guards

Conversation

@ActiveInAI

Copy link
Copy Markdown
Owner

Summary

This PR fixes two state invariant issues reported after PR #11:

  • Rejecting a generation job from pending_review now also rejects the linked lifecycle transaction.
  • Disabled knowledge sources can no longer be reactivated through ingest.
  • Candidate-only vendor sources remain candidate-only and cannot become production-enabled through ingest.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-targets --all-features
  • cargo build --release --bin insomeos-gateway
  • npx --yes @redocly/cli@2.30.0 lint 04-backend/openapi.yaml
  • npx --yes @openapitools/openapi-generator-cli@2.23.0 generate -i 04-backend/openapi.yaml -g typescript-fetch -o /tmp/architoken-sdk-ts
  • git diff --check

@ActiveInAI ActiveInAI merged commit 5e89776 into main Apr 30, 2026
6 checks passed
@ActiveInAI ActiveInAI deleted the fix/backend-generation-lifecycle-registry-guards branch April 30, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant