Repository navigation
Support approved paired baseline privacy redactions - #61
Conversation
agent-redline❗ RED — Red-zone files changed.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 17 minutes. View limit details
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Migration contract and approved scope .agent-workflow/tasks/*, docs/DECISIONS.md, docs/SPEC.md, docs/ENFORCEMENT.md, docs/agent-workflow/*, core/templates/*, .claude/skills/agent-workflow/templates/* |
The migration contract documents v1 source-only receipts and v2 paired replacements for source, constraints, and completion_criteria. It specifies approval, history, preservation, and validation requirements. Task records describe the bound migration and its remaining review and delivery gates. |
Receipt parsing and raw field extraction core/work_record/*, .claude/skills/agent-workflow/scripts/agent-workflow-check.py, tests/work-record/* |
The parsers accept versions 1 and 2, validate each version’s required replacement keys, and retain the validated version and replacements. A new function extracts raw requirement-history headers and values. Tests cover receipt parsing, round-trips, and raw field extraction. |
History validation and end-to-end coverage core/checker/predicates.py, .claude/skills/agent-workflow/scripts/agent-workflow-check.py, tests/checker/test_baseline_history_e2e.py |
The checkers retain v1 transition checks and add v2 checks for paired baseline/current values, existing behavior-change history, atomic receipt introduction, merge-parent agreement, and preservation of unrelated raw fields. End-to-end tests cover valid migrations, invalid transitions, and retained history. |
Estimated code review effort: 4 (Complex) | ~45 minutes
Change: Feature
Sequence Diagram(s)
sequenceDiagram
participant WorkRecord
participant parse_baseline_privacy_migration
participant privacy_baseline
participant extract_raw_requirement_history_fields
WorkRecord->>parse_baseline_privacy_migration: receipt data
parse_baseline_privacy_migration->>privacy_baseline: parsed version and replacements
privacy_baseline->>extract_raw_requirement_history_fields: parent and introduction record text
extract_raw_requirement_history_fields-->>privacy_baseline: raw headers and values
Possibly related PRs
- rore/agent-workflow#59: Introduces the v1 source-only receipt and history checks that this change extends.
- rore/agent-workflow#60: Records partial privacy cleanup and is referenced by the updated privacy task records.
Merge Risk: 
Minimal · previous review 56cb2
-
No code issue identified here blocks merging. Current-head CI and the required human approval remain to be completed.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 15 functions across 7 files. (20 skipped: 20 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
|
| Rule | Source |
|---|---|
workrecord.exists |
core |
workrecord.markers_present |
core |
risk.declared |
core |
complexity.declared |
core |
workrecord.shape_matches_classification |
core |
workrecord.expanded_fields_present |
core |
workrecord.state_valid |
core |
workrecord.relationships_valid |
core |
risk.redline_findings_available |
default |
risk.boundary_violation_absent |
default |
risk.declared_not_below_detected |
default |
review.checkpoints_satisfied |
default |
requirements.baseline_present |
core |
requirements.baseline_unchanged |
core |
requirements.behavior_changes_well_formed |
core |
requirements.task_context_traceable |
core |
requirements.requirement_changes_authorized |
core |
exceptions.well_formed |
core |
exceptions.not_against_boundary |
core |
exceptions.not_expired |
core |
approval.elevated_clean_context_review_present |
core |
approval.high_clean_context_review_present |
core |
approval.high_risk_approval_recorded |
core |
approval.clean_context_does_not_satisfy_human |
core |
review.agent_result_review_present |
core |
evidence.criteria_have_methods |
core |
evidence.failure_not_claimed_as_success |
core |
workrecord.commit_order |
core |
paired-baseline-privacy
- ✅ Work Record structure — 7 checks, all passed
- ✅ Risk classification — 5 checks, all passed
- ✅ Required reviews — 2 checks, all passed
- ✅ Other checks — 5 checks, all passed
- ✅ Exceptions — 3 checks, all passed
- ✅ Plan approvals — 4 checks, all passed
- ✅ Verification plan — 2 checks, all passed
Effective rules (28)
| Rule | Source |
|---|---|
workrecord.exists |
core |
workrecord.markers_present |
core |
risk.declared |
core |
complexity.declared |
core |
workrecord.shape_matches_classification |
core |
workrecord.expanded_fields_present |
core |
workrecord.state_valid |
core |
workrecord.relationships_valid |
core |
risk.redline_findings_available |
default |
risk.boundary_violation_absent |
default |
risk.declared_not_below_detected |
default |
review.checkpoints_satisfied |
default |
requirements.baseline_present |
core |
requirements.baseline_unchanged |
core |
requirements.behavior_changes_well_formed |
core |
requirements.task_context_traceable |
core |
requirements.requirement_changes_authorized |
core |
exceptions.well_formed |
core |
exceptions.not_against_boundary |
core |
exceptions.not_expired |
core |
approval.elevated_clean_context_review_present |
core |
approval.high_clean_context_review_present |
core |
approval.high_risk_approval_recorded |
core |
approval.clean_context_does_not_satisfy_human |
core |
review.agent_result_review_present |
core |
evidence.criteria_have_methods |
core |
evidence.failure_not_claimed_as_success |
core |
workrecord.commit_order |
core |
public-record-privacy
⚠️ Work Record structure — 7 checks, 1 advisory⚠️ workrecord.commit_order— advisory — Work Record was committed AFTER the first code commit on this branch (WR: 447285d, first code: d840b5b). The WR was likely written retroactively; if the session had been killed mid-task, the WR would not have served as recovery state. Non-blocking; treat as a signal to check whether plan-first discipline held.
- ✅ Risk classification — 5 checks, all passed
- ✅ Required reviews — 2 checks, all passed
- ✅ Other checks — 5 checks, all passed
- ✅ Exceptions — 3 checks, all passed
- ✅ Plan approvals — 4 checks, all passed
- ✅ Verification plan — 2 checks, all passed
Effective rules (28)
| Rule | Source |
|---|---|
workrecord.exists |
core |
workrecord.markers_present |
core |
risk.declared |
core |
complexity.declared |
core |
workrecord.shape_matches_classification |
core |
workrecord.expanded_fields_present |
core |
workrecord.state_valid |
core |
workrecord.relationships_valid |
core |
risk.redline_findings_available |
default |
risk.boundary_violation_absent |
default |
risk.declared_not_below_detected |
default |
review.checkpoints_satisfied |
default |
requirements.baseline_present |
core |
requirements.baseline_unchanged |
core |
requirements.behavior_changes_well_formed |
core |
requirements.task_context_traceable |
core |
requirements.requirement_changes_authorized |
core |
exceptions.well_formed |
core |
exceptions.not_against_boundary |
core |
exceptions.not_expired |
core |
approval.elevated_clean_context_review_present |
core |
approval.high_clean_context_review_present |
core |
approval.high_risk_approval_recorded |
core |
approval.clean_context_does_not_satisfy_human |
core |
review.agent_result_review_present |
core |
evidence.criteria_have_methods |
core |
evidence.failure_not_claimed_as_success |
core |
workrecord.commit_order |
core |
Updated against commit 457534e5.
The known public Work Record contains private provenance in both its source and functional constraints/completion text. Version 1 can redact only source, so it cannot complete this cleanup.
Version 2 reuses the existing receipt for exactly source, constraints and completion_criteria. It replaces source and both baseline/current functional pairs atomically, preserves every other raw marker field and the existing raw chain, and retains the same historical owners, reviewers, holds and obligations. V1 and the existing bounded history/retention checks remain unchanged.
Ordinary Plan/Plan-review metadata redactions precede the bound migration in separate commits. Original evidence remains private; current-content cleanup does not remove historical public exposure.
Required delivery: normal merge commit. Do not squash or rebase. Combining the metadata cleanup with receipt introduction changes unrelated raw fields at that transition and invalidates it. Preserve both reviewed transitions and the original anchor.
Verification:
All three required CI checks passed at final approval-record head
457534e5e197f1ecb5c6b7279c3c5dd301e1ce10. The substantive CodeRabbit review reported no actionable comments; its approval-only follow-up was neutral. There are no inline review threads.High plan and exact replacement wording were explicitly approved. Separate final human result and SPEC architecture approval was received on 2026-10-31 for head
56cb20369000a486ac4cd76798f8cfc0ae8b9d34(verbatim: “approved”). The architecture checkpoint is recorded. Approval-record-only CI passed, and the required normal merge completed. No live/global/configuration changes, consumer takeover, general exception, private evidence publication or shared-history rewrite.Delivered by normal merge
00cf3a4cee15f1a276933c159552ac2e123f56c9. Both reviewed transitions and the original receipt anchor are retained; the merged tree exactly matches the final tested head. Source and standalone checkers validate all three reconciled records with the merged commit as trusted base/head (exit 0), and the known target current-content privacy scan passes. Historical exposure remains; original evidence stays private.