Skip to content

drafts: separate workspace projection ownership - #193

Merged
fieldmouseworks-steward[bot] merged 2 commits into
mainfrom
issue-58-draft-workspace
Nov 8, 2026
Merged

fieldmouseworks-steward[bot] merged 2 commits into
mainfrom
issue-58-draft-workspace

Conversation

@fieldmouseworks-workers

@fieldmouseworks-workers fieldmouseworks-workers Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #58

Separate draft workspace projection from lifecycle transitions. The programs slice was completed in #63; #34 is closed and merged, with no active overlapping PR.

Ownership plan recorded before broad edits: move workspace and its response types intact into evaluation_drafts/workspace.rs. Keep record loading, status derivation, and contributor-event appending as explicit crate-visible interfaces owned by the lifecycle module, alongside create/transfer/submit. Re-export existing public workspace names from evaluation_drafts so callers retain their imports. Update the development source map.

Impact: no service/refusal, authorization, transaction, serialization, schema, canonical/export-byte, or public signature changes. No migration or ADR is needed for this ownership-only extraction. Rung 1: one owning module for workspace projection; compatible re-exports introduce no duplicate implementation.

Plan and acceptance: integrator owns extraction and verification, authorized by the owner's issue #58 assignment; no numeric effort budget. First extract without body changes, then compare moved text against base, run programs/programs_api/enrollments/evaluation_drafts/draft_review and affected finalization/export suites, then all CONTRIBUTING gates including all browser scenarios. Next action: perform extraction. Local and hosted evidence will be recorded separately here.

Implementation complete at 14f9808646a153eb71c9787ec0e1e908982afff5: lifecycle owner is 658 lines; workspace owner is 379 lines. Compared every moved response type and the entire workspace function against origin/main (929531e): identical except the leading separator blank line removed by formatting. All existing public names are re-exported; no caller changes.

Local checks passed: cargo fmt --check, scripts/check-guidance-names.sh (12 files), git diff --check, extraction comparison. The first strict extraction comparison detected that single leading blank line; the inspected unified diff and corrected comparison confirm no moved-body edits.

Local proof is blocked before execution: heavy -- cargo test -p consolebook-server --test programs --test programs_api --test enrollments --test evaluation_drafts --test draft_review --test finalization --test record_export --test amendments --test trainee_packet --test installation_export --test export_stream_bytes exited because heavy: cannot open /run/burrow-heavy/slot1: No such file or directory (os error 2). No integration test ran and no full local gate receipt is claimed. Heavy work was not run outside the required limiter. Hosted flake and pr-gate checks cover the Rust integration suites and full browser suite; their results remain pending on the final head.

Next action: inspect exact-head hosted verification and review, address findings, and reconcile acceptance before completion.

Hosted verification observed on head 14f9808646a153eb71c9787ec0e1e908982afff5: pr-gate passed web install/check/build, all workspace Rust tests (including the named integration suites), binary build, and 70 browser scenarios. Flake gate passed; both release architecture builds and CodeQL passed. These are hosted results, not a local proof receipt. The review found no defects, and the independent judgment recommends landing. Next action: await steward merge.

@fieldmouseworks-steward fieldmouseworks-steward Bot added the waiting: review Its reviewers, or a Claude job judging it, are looking at this head label Nov 8, 2026

@fieldmouseworks-steward fieldmouseworks-steward Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex review of 14f9808: nothing found.

No merge-blocking defects found in the workspace ownership extraction.

@fieldmouseworks-steward fieldmouseworks-steward Bot added waiting: CI Reviewed clean; waits for its CI to finish waiting: review Its reviewers, or a Claude job judging it, are looking at this head and removed waiting: review Its reviewers, or a Claude job judging it, are looking at this head waiting: CI Reviewed clean; waits for its CI to finish labels Nov 8, 2026
@fieldmouseworks-workers

Copy link
Copy Markdown
Contributor Author

Judgment: land.

What I checked, against main's rules (origin/main:AGENTS.md and CONTRIBUTING.md; this is the only AGENTS.md in the tree), on head 14f9808, base main at 929531e:

  • The move is exact. I compared lines 651–1021 of evaluation_drafts.rs on main with the body of the new evaluation_drafts/workspace.rs (after its 10-line header of module docs and imports). They're identical except for the dropped // ---- read separator comment and the blank line after it. Lines 1–650 of the parent are unchanged apart from the module doc and the new mod workspace; / pub use block. No logic, signature, serialization or SQL changes.
  • Public surface is kept. All 8 public items that moved (ContributorEventRow, CoveredSession, SnapshotMeta, EligibleRecipient, ReviewDecisionRow, DraftDetail, DraftWorkspace, workspace) are re-exported from evaluation_drafts, so callers didn't need to change. load_record, status_of, RecordRow and append_event were already pub(crate) on main; their visibility is unchanged, and the child reaches them through super::.
  • Size rule. The 1,021-line owner splits into 658 (lifecycle) and 379 (workspace) along the boundary refactor(rust): separate program and draft workspace ownership #58 names. This is an ownership split, not a cut by line count. docs/development.md's source map has the new owner. No migration, ADR, persisted or behavior change, so none of the P1 review rules apply. Everything is Rust.
  • CI on this head is green: fmt-clippy-test (on main's pr-gate, that's web check/build, cargo test --workspace, the binary build and the full npm run e2e browser suite), build-x86_64, build-aarch64, check / check, CodeQL, and the house checks.
  • Description. It's accurate about the code. It openly says local integration tests didn't run because the heavy slot was unavailable, and claims no local receipt, which is the honest report the house rules ask for. The hosted checks it was waiting on have since passed. One small inaccuracy: it says only "the leading separator blank line" was removed, but the // ---- read separator comment went with it. That's cosmetic and doesn't make the description wrong about what the PR does.
  • Fixes #58. The programs half of refactor(rust): separate program and draft workspace ownership #58 is on main (programs.rs is 389 lines, with programs/content.rs and programs/persistence.rs). This PR does the drafts half, so closing the issue is right.

It's a pure refactor that a revert can undo, so it lands.

@fieldmouseworks-steward fieldmouseworks-steward Bot added waiting: merge Settled and green: being merged by the steward, GitHub or its dependency bot and removed waiting: review Its reviewers, or a Claude job judging it, are looking at this head labels Nov 8, 2026
@fieldmouseworks-steward
fieldmouseworks-steward Bot merged commit 3ac3e98 into main Nov 8, 2026
24 checks passed
@fieldmouseworks-steward
fieldmouseworks-steward Bot deleted the issue-58-draft-workspace branch November 8, 2026 21:39
@fieldmouseworks-steward fieldmouseworks-steward Bot removed the waiting: merge Settled and green: being merged by the steward, GitHub or its dependency bot label Nov 8, 2026
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.

refactor(rust): separate program and draft workspace ownership

1 participant