Skip to content

feat: add console projection helpers#276

Merged
spytensor merged 1 commit into
mainfrom
feat/v0.8-247-console-projections
May 23, 2026
Merged

feat: add console projection helpers#276
spytensor merged 1 commit into
mainfrom
feat/v0.8-247-console-projections

Conversation

@spytensor
Copy link
Copy Markdown
Owner

Linked Issue

Closes #247

Scope

Implemented:

  • Added console_projection helpers for WorkOrder rows, gate rows, evidence closure rows, and source health rows.
  • Work rows preserve phase, epic, GitHub issue, branch, PR, CI state, evidence state, tracker state, lifecycle, and source citations.
  • Gate rows preserve current phase, blocker, missing reviews, stale plan SHA, and signoff readiness.
  • Evidence rows distinguish complete, incomplete, missing, unverified, rollback, and tracker update state.
  • Source rows project drift, missing source, trust change, and visibility denial states.
  • Added projection fixture cases for healthy, blocked, failed CI, and merged-tracker-stale work.

Not implemented:

  • No live GitHub polling.
  • No UI rendering.
  • No completion inference from prose.

Acceptance Criteria

  • AC-1: Add projection models for WorkOrder rows, gate pipeline, evidence closure, source health, and PR/CI status.
  • AC-2: Work rows preserve phase, epic, issue, branch, PR, CI, evidence, tracker, lifecycle, and source citations.
  • AC-3: Gate projection identifies current phase, blocked reason, missing review, stale plan SHA, and signoff readiness.
  • AC-4: Evidence projection identifies complete, incomplete, missing, unverified items, rollback, and tracker update state.
  • AC-5: Source projection identifies stale, missing, trust-changed, visibility-denied, and relevant WorkOrder/source relationships.
  • AC-6: Tests cover healthy, blocked, failed CI, source drift, and merged-tracker-stale rows.

Changed Files

  • src/console_projection.rs
  • src/lib.rs
  • tests/console_projection_test.rs
  • tests/fixtures/console_projection_cases.toml

Validation

Local commands executed:

cargo fmt --all -- --check
cargo test --test console_projection_test --quiet
cargo test --test console_snapshot_test --quiet
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-features --locked --quiet

Results:

  • format: pass
  • console projection tests: pass, 4 tests
  • console snapshot tests: pass, 3 tests
  • clippy: pass
  • full test suite: pass, ignored smoke tests unchanged

Evidence Packet

Tracker Update

Risk

Low to medium. Projection helpers are additive, but future console rows should use them instead of ad hoc state mapping.

Rollback

Revert this PR. No runtime behavior or migration is included.

@spytensor spytensor merged commit 8d98438 into main May 23, 2026
5 checks passed
@spytensor spytensor deleted the feat/v0.8-247-console-projections branch May 23, 2026 21:03
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.

v0.8: Work, gate, evidence, and source projection models

1 participant