Repository navigation
feat(config): add reusable named replacement dictionaries (#522) - #1052
Merged
Merged
Conversation
This was referenced Nov 9, 2026
athvin
force-pushed
the
issue/522-named-replacements
branch
from
November 9, 2026 14:55
4dccca3 to
042ebc4
Compare
athvin
marked this pull request as ready for review
November 9, 2026 14:55
athvin
force-pushed
the
issue/522-named-replacements
branch
from
November 9, 2026 15:02
042ebc4 to
462048f
Compare
14 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #522
What
Add reusable named directed replacement dictionaries to the versioned configuration, reference them from preprocessing rules, and manage both in Config studio.
Why
#1047 completed ignore-word management, but #522 still lacks a reusable replacement registry. Inline exact-value maps do not cover that requirement.
Proof
make check,make check-e2e,make frontend,make frontend-auditand the real PostgreSQL frontend driver tier pass. Named mappings are exercised in real DuckDB, DuckLake and Postgres; 662 browser cases pass (133 existing skips), and Linux comparison/Config studio axe pass (67, 2 existing mobile skips). One unchanged Safari checkbox test failed in the first full run and passed in both subsequent full runs without assertion changes.Rebased onto
06bc5f0dafter the gates finished and peer infrastructure PRs landed. Rust/frontend/entity trees are byte-identical to the tested tree;make skills-checkpasses on the refreshed base. Five independent house reviews (backend/frontend instrumentation and reuse, plus execution placement) found no candidates. The reviewed production diff remains byte-identical across the rebase; all 15 live required contexts and all four detect jobs passed on462048f4; the refreshed branch merged after checking thatmainstill matched its base.Risk & rollback
Dictionary contents affect the configuration hash and require a full rebuild. Existing configuration publication permissions and workflow remain authoritative. Revert the published configuration to undo an edit; revert the code merge to remove the feature after removing its new config fields.
Post-merge ledger
Closed by: Codex · session
01a1be1b-0c92-7703-a4c2-25cb2c999baaonMac-28.lan· 2026-11-09T15:42:54.892297+00:00 — ledger reconciled with the dev runtime-read item explicitly blocked.mainis green with this change on it — mergedf7fb8b4c2bf3fb72180e5c9a9b3dc40a5bb43001at 15:12:15Z; ancestry and the landed named-registry code verified. Rust 42642270239, frontend 42642270203, infra 42642270207 and devcontainer 42642270236 succeeded. The 30-minute watch completed at 15:42:17Z with no new main-workflow failure. Public availability exceptions are recorded below.images— 42642270269 built both web and API images forf7fb8b4c.deployconverged — runtime gap resolved at 2026-11-09T22:22:21Z using the independently recorded evidence in PR #1062’s post-merge ledger. Its deploy 42706442649 names0a208d9c8c6cd8e9275ec4e6da7bc1fd4e0145ae, verified locally to descend from this PR’s mergef7fb8b4c2bf3fb72180e5c9a9b3dc40a5bb43001. The peer verified the production API’ser-server listeningline at 21:52:51.130164Z and dev startup at 21:55:09.394202Z, with both live pods at zero restarts; its ledger records live selectors/replicas and explains dev’s replacement as node eviction of the same ReplicaSet. This is attributed peer runtime evidence, not an inference from workflow success or a fresh AWS read by this session.Specific to this change
ready=true; the subsequent status-only watch collected 57 additional HTTP 200/ready=true samples from 2026-11-09T15:32:49.280775+00:00 through 2026-11-09T15:42:15.235794+00:00, with no failed sample. Sampling does not prove uninterrupted availability between requests.Context — plan, discoveries, measurements, files
Plan
er-config::Configwith an optional, canonically ordered named replacement registry, omitted when empty so existing config hashes remain unchanged. Add an additivenamed_dictionarytransform referencing a name with explicit whole-value or whole-word matching. Matching is case-sensitive, directed and non-recursive within one dictionary; unmatched and NULL values pass through.make check,make check-e2e,make frontend,make frontend-auditand applicable generation gates. Record exact scope and usage in repository design references.Discoveries
The current standardizer already renders inline dictionary CASE expressions from config transforms. Config studio already owns draft/publish/rebuild actions, so named mappings can reuse that versioned boundary rather than introduce a second persistence path. The existing ignore-word editor remains a distinct stop-word capability.
The SQL analyzer lacked
array_to_string. The required upstream change landed in athvin/feather-flow#1, taggeder-entity-v0.1.5at2a643bc55528; this PR updates the dependency withcargo add. Its new test first failed on the missing function, then the complete ff-analysis test suite and strict Clippy passed. Planning retains the token input and strips only the literal-only generated lambda; real DuckDB tests execute the original SQL.Existing
transformschanges were absent from tier C. Both transformations and the new registry now queue training plus full rebuild, independently verified through the real Postgres router. No new public route, mutable dictionary store, or cloud mutation is introduced.Commit audit
Final branch commits after refreshing twice over peer infrastructure changes:
4bbc49f64d76a76a79819016fce6125472e8a147— visible claim for E6 — Dictionaries and preprocessing #522.695ce2d4a14a8c5863d53fc6c47cc2d2a29e8bc0— implementation and regression coverage.10f03f357eb3b32a7a9fe4bf51c750da830ad8d0— faithful frontend mock tier-C classification.63907cf46703920a3e9d31716b99647b87108e86— precise failed-read copy.462048f4cda197c063c1c77d8bef418a9ac3b94a— planner support reference.f7fb8b4c2bf3fb72180e5c9a9b3dc40a5bb43001.Upstream feather-flow#1:
b85437f3894cd8a93684e450299995ae958b4c48adds the planner stub and negative/positive regression;ff7ac3dfb2b752030763561002341d7e1a115b2frepairs the adjacent function documentation; merge2a643bc55528a15985e4208404af15bcadf54cda, taggeder-entity-v0.1.5.Measurements
Files