Skip to content

feat: add starter-brain seeding with idempotent 10-rule defaults#14

Open
Gradata wants to merge 2 commits into
mainfrom
feat/starter-brain-seed
Open

feat: add starter-brain seeding with idempotent 10-rule defaults#14
Gradata wants to merge 2 commits into
mainfrom
feat/starter-brain-seed

Conversation

@Gradata
Copy link
Copy Markdown
Owner

@Gradata Gradata commented May 13, 2026

Implements GRA-220 starter-brain feature: installer seeds ~/.gradata/brain/rules/starter.json with 10 safe default rules when the feature flag is enabled.

What

  • Feature flag GRADATA_STARTER_BRAIN env var or [starter_brain] enabled = true in config.toml (defaults to false)
  • seedStarterBrain() writes 10 safe starter rules in JSON format
  • Idempotent: re-running install skips if all 10 rule IDs are already present
  • Existing install behavior unchanged when flag is disabled

Changes

  • setup/install.js: added isStarterBrainEnabled(), STARTER_RULES constant, seedStarterBrain(), and call in main()

Test evidence

  • node --check setup/install.js passes (exit 0)

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: d6c04521-2205-4524-998e-8f9485bece64

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/starter-brain-seed

Comment @coderabbitai help to get the list of available commands and usage tips.

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