[Backend] Custom Steps Enhancement - Usage Tracking #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enhance session custom_steps JSONB field to track step library usage and enable future save session as tree feature.
Design Document: docs/plans/2026-02-07-foundational-schema-design.md (Part 2)
JSONB Enhancement (No Migration Required)
Add optional fields to custom_steps array for tracking:
Pydantic Schema Update
Add fields to CustomStepSchema with defaults for backward compatibility
Usage Tracking Logic
When engineer inserts library step into session:
Step Library Reference Handling
Acceptance Criteria
Related: Issues #4-#7 partial, foundational schema work
Completed in PR #39.
CustomStepSchemaupdated withsource(ad-hoc/step-library/forked-tree),source_step_id,inserted_at, andinserted_after_node_idfields. Backward compatible with existing session JSONB data.