Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Trigger field transforms on field updates - #2

Merged
shiba4life merged 1 commit into
transformersfrom
codex/trigger-dependent-transformer-on-schema-update
May 17, 2025
Merged

Trigger field transforms on field updates#2
shiba4life merged 1 commit into
transformersfrom
codex/trigger-dependent-transformer-on-schema-update

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

  • wire transform manager into field and collection managers
  • execute registered field transforms automatically when fields are changed
  • share transform manager via Arc
  • provide missing transform module re-export
  • copy test helper data for integration tests

Testing

  • cargo test --quiet

@shiba4life
shiba4life merged commit 74e5adb into transformers May 17, 2025
@shiba4life
shiba4life deleted the codex/trigger-dependent-transformer-on-schema-update branch May 24, 2025 23:52
shiba4life added a commit that referenced this pull request Apr 13, 2026
Round 4 item #2: the 5 remaining raw namespace getters
(metadata_store, permissions_store, public_keys_store, idempotency_store,
process_results_store) on DbOperations are replaced by two new domain
stores whose namespace fields are private:

- PermissionsStore: permissions + public_keys namespaces. Owns
  trust-map persistence, audit log, and system public-key storage.
- MetadataStore: metadata + idempotency + process_results namespaces.
  Owns node_id, idempotency cache, and process-result bookkeeping.

Accessors `DbOperations::permissions()` and `DbOperations::metadata()`
join the existing `schemas()`, `atoms()`, `views()` set. Existing
delegator methods on DbOperations (get_node_id, load_trust_map,
get_system_public_key, etc.) are kept for backward compatibility and
now forward into the domain stores. `raw_metadata_store()` remains as
a public escape hatch for fold_db_node callers that need generic KV
access.

Internal callers in fold_db_core (mutation_manager, process_results
subscriber) and org_operations are updated to go through the new
accessors. Pure refactor; no behavior changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
shiba4life added a commit that referenced this pull request Apr 13, 2026
)

Round 4 item #2: the 5 remaining raw namespace getters
(metadata_store, permissions_store, public_keys_store, idempotency_store,
process_results_store) on DbOperations are replaced by two new domain
stores whose namespace fields are private:

- PermissionsStore: permissions + public_keys namespaces. Owns
  trust-map persistence, audit log, and system public-key storage.
- MetadataStore: metadata + idempotency + process_results namespaces.
  Owns node_id, idempotency cache, and process-result bookkeeping.

Accessors `DbOperations::permissions()` and `DbOperations::metadata()`
join the existing `schemas()`, `atoms()`, `views()` set. Existing
delegator methods on DbOperations (get_node_id, load_trust_map,
get_system_public_key, etc.) are kept for backward compatibility and
now forward into the domain stores. `raw_metadata_store()` remains as
a public escape hatch for fold_db_node callers that need generic KV
access.

Internal callers in fold_db_core (mutation_manager, process_results
subscriber) and org_operations are updated to go through the new
accessors. Pure refactor; no behavior changes.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant