feat: compile default feature catalog into binary, auto-seed on startup - #6
Merged
Merged
Conversation
Co-authored-by: jabbott-iii <84321953+jabbott-iii@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replace runtime CSV-based feature seeding with Go-defined catalog
feat: compile default feature catalog into binary, auto-seed on startup
Aug 27, 2026
jabbott-iii
approved these changes
Aug 27, 2026
jabbott-iii
left a comment
Owner
There was a problem hiding this comment.
File modifications are in-scope and efficiently implemented.
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.
table.csvwas required at runtime for the feature catalog to populate — end users had to manually runrete features seed --file table.csvor the TUI/features listshowed nothing.Changes
internal/feature_catalog.go— new file withDefaultFeatureCatalog(all 23 entries as a[]CatalogEntry),SeedDefaultFeatures(idempotent upsert of every entry), andEnsureDefaultFeatures(no-ops if catalog already populated).main.go— callsEnsureDefaultFeaturesat startup; fresh databases are seeded automatically.internal/logic-cli.go—features seednow requires--file(no default path), re-scoped to admin/custom CSV imports. Empty-catalog message no longer referencestable.csv.internal/database.go/ui-form.go— removed staletable.csvreferences from comments and help text.README.md— features section updated;table.csvno longer described as a prerequisite.internal/feature_catalog_test.go— new tests covering seeding, idempotency (EnsureDefaultFeaturesno-ops on a populated DB), and category count.