Skip to content

genome: CurriculumSynthesizer seam — teacher generalized over salient failures (#116) - #1731

Merged
joelteply merged 1 commit into
canaryfrom
feat/salience-curriculum-seam
Jul 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/salience-curriculum-seam

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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 the genome/teach command 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

  • New commands/genome/curriculum.rs:
    • trait CurriculumSynthesizer — records → RemediationCorpus, polymorphic so remediation (today) and expansion (frontier) share one seam.
    • Outlier A RemediationSynthesizer — wraps 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. Absence of a fitness gap is a legitimate outcome.
    • Teacher resolves explicit → local; fails loud if nothing serves (no silent skip).
    • Expansion (untestable episodes) is named as 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: commands → cognition only (cognition never imports commands).

Tests

3 tests, each with // what this catches: — select filters salient+testable, no-failure selects empty, stable provenance name. cargo check + cargo test green under metal,accelerate.

🤖 Generated with Claude Code

…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
@joelteply
joelteply merged commit 6dc0e67 into canary Jul 3, 2026
4 checks passed
@joelteply
joelteply deleted the feat/salience-curriculum-seam branch July 3, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant