Repository navigation
genome: CurriculumSynthesizer seam — teacher generalized over salient failures (#116) - #1731
Merged
Merged
Conversation
…alient failures Task #116 last piece. The afferent nerve (cognition::experience: SalienceDetector/ExperienceRecord/salient_teach_set) and the efferent organ (commands::genome::teach: synthesize_remediation/RemediationCorpus) existed, but the only thing that drove synthesis was the genome/teach command over a *static gym file*. This is the polymorphic seam between them. - New commands/genome/curriculum.rs: `trait CurriculumSynthesizer` (records → RemediationCorpus) + outlier A `RemediationSynthesizer` wrapping the reusable synthesize_remediation core. `select()` sub-step exposed for deterministic unit testing without a live teacher. Empty/no-salient-failure → honest empty corpus (no teacher round-trip), never an error. Teacher resolves explicit → local, fail-loud if nothing serves. - Expansion (untestable episodes) named as the frontier outlier B, NOT faked — an unvalidatable "lesson" is exactly the failure the measurement spine forbids. - teach.rs: DEFAULT_MAX_FIX_ITERS / DEFAULT_TEMPERATURE → pub(crate) so the synthesizer single-sources them instead of re-hardcoding 4/0.2. - Layering respected: commands → cognition (cognition never imports commands). 3 tests (select filters salient+testable, empty selects empty, stable name), each with `// what this catches:`. cargo check + tests green, metal,accelerate. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
What
Finishes task #116 — the salience → curriculum seam. The afferent nerve (
cognition::experience:SalienceDetector/ExperienceRecord/salient_teach_set) and the efferent organ (commands::genome::teach:synthesize_remediation/RemediationCorpus) already existed, but nothing connected them except thegenome/teachcommand running over a static gym file. This adds the polymorphic seam so the self-improvement loop drives synthesis over a persona's own salience-selected failures.Changes
commands/genome/curriculum.rs:trait CurriculumSynthesizer—records → RemediationCorpus, polymorphic so remediation (today) and expansion (frontier) share one seam.RemediationSynthesizer— wraps the reusablesynthesize_remediationcore;select()sub-step exposed for deterministic unit testing without a live teacher.teach.rs:DEFAULT_MAX_FIX_ITERS/DEFAULT_TEMPERATURE→pub(crate)so the synthesizer single-sources them instead of re-hardcoding 4/0.2.Tests
3 tests, each with
// what this catches:— select filters salient+testable, no-failure selects empty, stable provenance name.cargo check+cargo testgreen undermetal,accelerate.🤖 Generated with Claude Code