Skip to content

Add LoRA artifact, resume, merge/export, and callback drift canaries #1529

@Zigfreidish

Description

@Zigfreidish

This was generated by AI during triage.

Parent

What to build

Add focused correctness canaries for LoRA training artifacts, resume metadata, merge/export drift, callback/API drift, and teacher-forced round-trip behavior.

This slice should prove that saved artifacts remain loadable and semantically aligned with the base tokenizer and training API, without duplicating generic M-Courtyard provenance/export smoke work.

Acceptance criteria

  • Tokenizer EOS preservation is checked and recorded for saved adapters.
  • Resume metadata captures tokenizer/config/processor state needed to restart training safely.
  • Adapter checkpoint canaries detect missing base config, missing tokenizer fields, and incompatible auxiliary module state.
  • Merge/export canaries detect drift before publishing an unusable artifact.
  • Callback/API drift evidence and teacher-forced round-trip smoke receipts are saved with the training run.

Governing docs

Expected receipt fields

  • source_eos_token
  • saved_eos_token
  • tokenizer_config_path
  • base_config_present
  • processor_resume_mode
  • aux_modules_restored
  • merge_export_canary_result
  • callback_api_drift_result
  • completion_loss
  • round_trip_passed
  • grad_norm

Focused tests

  • Tokenizer/processor EOS fixtures.
  • Processor-backed resume fixture.
  • CPU merge/export static canaries.
  • Callback arity drift test.
  • Teacher-forced round-trip smoke test.

Blocked by

None - can start immediately. Coordinate with #1503/#1508 when artifact provenance or export smoke surfaces overlap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrun-evidenceRun evidence, manifests, and reportsruntime-healthRuntime health and recovery behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions