Skip to content

fix(events): add minimal SDLC lifecycle event registry - #2059

Open
xielixing wants to merge 1 commit into
GCWing:mainfrom
xielixing:fix/issue-1136-sdlc-event-registry
Open

fix(events): add minimal SDLC lifecycle event registry#2059
xielixing wants to merge 1 commit into
GCWing:mainfrom
xielixing:fix/issue-1136-sdlc-event-registry

Conversation

@xielixing

Copy link
Copy Markdown

Summary

Add a minimal SDLC lifecycle event registry as specified in the P-1 deliverable of docs/sdlc-harness/implementation-plan.md.

This implements the "最小事件注册表" (minimal event registry) from issue #1136 — 8 event types with dot-notation names for traceability of development tasks without depending on the full evidence graph.

Changes

  • New file src/crates/contracts/events/src/sdlc_lifecycle.rs: SdlcLifecycleEvent enum with 8 variants, each #[serde(rename = "dot.notation")]:

    • project.profiled.light — lightweight project profiling result
    • task.started — development task started
    • task.completed — development task completed
    • policy.decided — policy decision recorded
    • security.decided — security prompt decision
    • tool.completed — tool execution completed
    • verification.completed — verification step completed
    • confidence.summary.generated — confidence summary generated
  • Modified src/crates/contracts/events/src/lib.rs: added pub mod sdlc_lifecycle; and pub use sdlc_lifecycle::SdlcLifecycleEvent; re-export.

Validation

  • cargo check -p bitfun-events — passed (exit 0)
  • cargo test -p bitfun-events -- sdlc_lifecycle — 4 tests passed
  • cargo clippy -p bitfun-events — no warnings

Closes #1136

Add SdlcLifecycleEvent enum with 8 dot-notation event types for
traceability of development tasks, tool completions, verification
summaries, and confidence reports, as specified in the P-1
deliverable of docs/sdlc-harness/implementation-plan.md.

Each variant serializes with a stable string tag (e.g.
"project.profiled.light") so external consumers can route events
without matching on Rust enum variants.

Refs: GCWing#1136
@xielixing
xielixing force-pushed the fix/issue-1136-sdlc-event-registry branch from bc94f4e to 9ba16bd Compare August 5, 2026 06:24
xielixing pushed a commit to xielixing/BitFun that referenced this pull request Aug 5, 2026
Three afternoon PRs ballooned to ~8.8k added lines because the agent
branched its fix worktrees from the host checkout's HEAD, which sat on
the in-flight feature branch; the whole feature diff rode along into
each PR. The preamble now requires basing every fix branch on
origin/<default> after a fetch, never on the host checkout's current
branch. The three contaminated branches were rebased onto origin/main
and force-pushed (PRs GCWing#2058/GCWing#2059/GCWing#2060 now carry only their own fix).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

规划 BitFun 可配置开发体验与工程治理能力建设

1 participant