feat(init): add --template with a Gittensor (SN74) starter pack - #131
Merged
Conversation
Release/0.1.0
generalize init seeding into a named-template registry and ship a gittensor (SN74) starter pack as the first non-default template. complements gittensory rather than cloning its live-data signals.
generalize init seeding into a small in-code template registry. default 'starter' is unchanged; new 'gittensor' template seeds a cited, approved pack (1 source, 1 entity, 4 claims) about SN74 contribution scoring so a fresh kb in a gittensor repo has retrievable context immediately. unknown --template gives a clean error listing available packs. complements gittensory's live-data signals rather than cloning them.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
# Conflicts: # src/vouch/cli.py
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.
Summary
Generalizes
vouch init's seeding into a small in-code template registry and shipsgittensoras the first non-default template, so a fresh KB inside a Gittensor repo has retrievable, cited context on day one instead of starting empty.What changed
--templateflag onvouch init(defaultstarter). The default path and its output are unchanged.gittensortemplate seeds a small, cited, already-approved pack about SN74 contribution scoring — 1 source, 1 entity, 4 claims:Each claim cites the seeded
Gittensor SN74source and links thegittensor-sn74entity.Registry, not a one-off:
TEMPLATESmaps name → seed function, so future packs (research-notes,codebase-audit, …) plug in the same way.available_templates()drives help + error messages.Unknown
--template→ cleanError: unknown template 'x' (available: gittensor, starter).Why this shape
It complements
gittensoryrather than cloning it. Gittensory is the live-data decision layer (scores, queues, collisions); this pack is static, cited domain facts — vouch's lane (durable reviewed memory). No live Gittensor data is fetched.Design notes
seed_starter_kb— bootstrap content, not the review queue.initcreates nothing new.templates/<name>/files and no dependency onvouch ingest.Tests
tests/test_templates.py(test-first):available_templates()lists bothseed_gittensor_kb: creates source + entity + 4 cited, entity-linked claims; second call is a no-op (idempotent)init --template gittensorseeds the pack + prints the summary;--template bogus→ clean errorstarter/inittests untouched and still green.Verification
mypy src: cleanruff: cleanvouch init --template gittensor→ "Seeded gittensor template: 6 artifact(s)";vouch search "how are contributions scored"returns the cited SN74 claimNot included
--templateon commands other thaninitDesign spec:
docs/superpowers/specs/2026-05-27-init-templates-design.md