feat(M018/S02): ChunkRef dependency encoding — add depends_on field #4

Merged
wollax merged 2 commits from kata/root/M018/S02 into main 2026-04-01 14:39:39 +00:00
Owner

Summary

Adds depends_on: Vec<String> to ChunkRef in assay-types, enabling milestone chunks to declare scheduling constraints for Smelt-driven manifest generation.

Slice: S02 — ChunkRef dependency encoding
Milestone: M018 — Single-Agent Harness + Smelt Manifest Generation
Linear: WOL-161

Changes

  • ChunkRef gains #[serde(default, skip_serializing_if = "Vec::is_empty")] pub depends_on: Vec<String>
  • order doc-comment updated: cosmetic/display-only; use depends_on for scheduling
  • Both chunk-ref and milestone insta schema snapshots regenerated
  • All existing ChunkRef { slug, order } struct literals updated with depends_on: vec![] across 9 files (2 source + 7 test)

Verification

  • chunk_ref_depends_on_roundtrip — non-empty deps serialize/round-trip
  • chunk_ref_depends_on_absent_omitted — empty deps omitted; backward compat with existing TOML
  • chunk_ref_deny_unknown_fields regression
  • Schema snapshots committed
  • just ready green (1583 tests)

Forward compatibility

Existing .assay/milestones/<slug>.toml files without depends_on continue to deserialize correctly. Field is omitted from serialized output when empty. This is the data-layer foundation for S03 manifest generation.

## Summary Adds `depends_on: Vec<String>` to `ChunkRef` in `assay-types`, enabling milestone chunks to declare scheduling constraints for Smelt-driven manifest generation. **Slice:** S02 — ChunkRef dependency encoding **Milestone:** M018 — Single-Agent Harness + Smelt Manifest Generation **Linear:** WOL-161 ## Changes - `ChunkRef` gains `#[serde(default, skip_serializing_if = "Vec::is_empty")] pub depends_on: Vec<String>` - `order` doc-comment updated: cosmetic/display-only; use `depends_on` for scheduling - Both `chunk-ref` and `milestone` insta schema snapshots regenerated - All existing `ChunkRef { slug, order }` struct literals updated with `depends_on: vec![]` across 9 files (2 source + 7 test) ## Verification - `chunk_ref_depends_on_roundtrip` — non-empty deps serialize/round-trip ✅ - `chunk_ref_depends_on_absent_omitted` — empty deps omitted; backward compat with existing TOML ✅ - `chunk_ref_deny_unknown_fields` regression ✅ - Schema snapshots committed ✅ - `just ready` green (1583 tests) ✅ ## Forward compatibility Existing `.assay/milestones/<slug>.toml` files without `depends_on` continue to deserialize correctly. Field is omitted from serialized output when empty. This is the data-layer foundation for S03 manifest generation.
feat(S02/T01): add depends_on field to ChunkRef for chunk scheduling constraints
All checks were successful
CI / Validate plugins (pull_request) Successful in 2s
CI / Check (stable) (pull_request) Successful in 3m13s
ca8a42deb1
fix(S02): address PR review — fix stale doc, add JSON roundtrip test, clarify slug scope
Some checks failed
CI / Validate plugins (pull_request) Successful in 2s
CI / Check (stable) (pull_request) Failing after 4m19s
f2e2ce03c7
wollax merged commit 1600c0a9b5 into main 2026-04-01 14:39:39 +00:00
wollax deleted branch kata/root/M018/S02 2026-04-01 14:39:39 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
wollax/assay!4
No description provided.