fix(events): add minimal SDLC lifecycle event registry - #2059
Open
xielixing wants to merge 1 commit into
Open
Conversation
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
force-pushed
the
fix/issue-1136-sdlc-event-registry
branch
from
August 5, 2026 06:24
bc94f4e to
9ba16bd
Compare
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:SdlcLifecycleEventenum with 8 variants, each#[serde(rename = "dot.notation")]:project.profiled.light— lightweight project profiling resulttask.started— development task startedtask.completed— development task completedpolicy.decided— policy decision recordedsecurity.decided— security prompt decisiontool.completed— tool execution completedverification.completed— verification step completedconfidence.summary.generated— confidence summary generatedModified
src/crates/contracts/events/src/lib.rs: addedpub mod sdlc_lifecycle;andpub use sdlc_lifecycle::SdlcLifecycleEvent;re-export.Validation
cargo check -p bitfun-events— passed (exit 0)cargo test -p bitfun-events -- sdlc_lifecycle— 4 tests passedcargo clippy -p bitfun-events— no warningsCloses #1136