Skip to content

M-11: Edit Story #23

@spuentesp

Description

@spuentesp

Category: manage | Epic: 6 | Priority: medium

Summary

Modify an existing Story's metadata including title, theme, premise,
and status. Cannot modify story type after creation.

Acceptance Criteria

  • neo4j_update_story updates specified fields only
  • Story type cannot be changed after creation
  • Status transitions validated (e.g., can't go from archived to active)
  • updated_at timestamp set on modification
  • CLI supports interactive and flag-based editing

Dependencies

This use case depends on:

  • DL-4
  • M-10

Implementation

Layer: 3

Files to modify:

  • packages/cli/src/monitor_cli/commands/manage/story.py

NEO4J Operations:

  • neo4j_get_story (authority: *)
  • neo4j_update_story (authority: CanonKeeper)

Notes:

  • Status transitions should be validated
  • Consider adding story_type migration for campaigns

Testing Requirements

Minimum coverage: 80%

Unit tests:

  • test_edit_story_title: title updates
  • test_edit_story_status: status transitions work
  • test_edit_story_invalid_transition: bad transition rejected
  • test_edit_story_type_immutable: type change rejected

Integration tests:

  • test_edit_story_cli: CLI edit flow works

References

Documentation:


Generated from /home/sebas/monitor2/docs/use-cases/manage/M-11.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedBlocked by unfinished dependenciesmanageWorld administration (M-*)

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions