[Phase 16] S9 — Compliance evidence integrity and GDPR erasure completeness
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with _artefact_targets_for_run and the _legacy_staging_owned_by marker pattern in _purge.py, then trace how generate_training_manifest() and export_compliance_artifacts() name the bundle files. The first step is a writer-to-reader integration test that exports a real bundle and purges by run id. Done means the matching run's bundle is fully removed, a wrong run id removes nothing, and pipeline_manifest.json and audit_log.jsonl survive.
由索引模型根据 Issue 内容生成。
描述
Roadmap · Phase 16, step S9 · size L · 5 unit(s) · planned in
docs/roadmap/phase-16-trust-surface-hardening.md:553-581
Summary
The compliance surface claims a stronger evidentiary state than it holds. purge --kind artefacts cannot find the compliance bundle ForgeLM itself writes: the exporter emits fixed basenames while the resolver looks for file names that embed the run id. It fails safe (deletes nothing, emits data.erasure_failed with NoMatchingArtefacts, exits 1), so the defect is completeness, not destruction. The trainer also writes data_governance_report.json there, and the pipeline writes compliance/pipeline_manifest.json, which belongs to the whole pipeline and must not be deleted by one run's purge.
Units
| Unit | Tracked by (October 2026 review) |
|---|---|
F-W20260729-TRUST-02 |
#101 · #102 · #477 · #554 · #635 |
F-W20260729-TRUST-13, F-W20260729-TRUST-01 |
#386 · #651 |
F-W20260729-TRUST-14 |
#386 · #554 |
F-W20260729-TRUST-07 |
#386 · #679 · #680 · #681 · #715 |
Plan
- Rewrite
_artefact_targets_for_runto the allow-list + ownership-proof model the design document already specifies, mirroring the_legacy_staging_owned_bymarker pattern in the same file. - Breaking changes planned here:
AuditLogger.log_eventbecomes fail-closed;reverse-piiandpurgemove to non-zero exits on states that returned 0.
Exit criteria
- A real bundle produced by
generate_training_manifest()+export_compliance_artifacts()is fully removed by a matching run id and untouched by a wrong one, whilepipeline_manifest.jsonandaudit_log.jsonlsurvive — a writer → reader integration test, not a synthetic-filename fixture; the fabricated docstring examples in_purge.pyare deleted. - A malformed line sharing an identifier blocks the completion record.
-
reverse-piireturns non-zero whenAuditLoggerinitialisation raises. - An
OSErrorinjected separately at the manifestopen,fsyncandos.replacesteps never yields silent success. - A
required → rejected → requiredchain is served by one shared ordered-state helper across the listing and mutation surfaces.
How to deliver
- One root-cause family, committed on its own; then an Opus review round and a Sonnet review round, each with verified findings fixed and committed before the next step begins.
- A reproducer that is red before the fix and green after; the full gauntlet from
CLAUDE.mdpasses under./.venv/bin/python. - Every English documentation edit ships with its Turkish mirror in the same commit; a new or renamed audit event gets its EN and TR catalog rows in the same PR.
- A step that grows a deferred module carries its
budget_historyjustification in the same diff; a widened guard rolls out non-strict first, then flips. - Commit bodies cite
Absorbs F-W20260729-…; the CHANGELOG[Unreleased]section gets an entry only for a change a user or library consumer can observe (decision C-20).
Planned in docs/roadmap/phase-16-trust-surface-hardening.md (read at f94595f). Unit IDs (F-W20260729-…) come from the 2026-07-29/30 full-project review; the issue numbers next to them are the October 2026 review's records of the same defects.
- 主要语言
- Python
- 星标
- 9
- 派生
- 1
- 平均合并
- 17 小时 14 分钟
- 30 天内合并 PR
- 17
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
HodeTech/ForgeLM 的其他 Issue
-
area: site bug good first issue severity: low wave: 4
难度 2/5 1-3 小时 新手友好度 75/100
HodeTech/ForgeLM#961 · 1 条评论 ·
维护者通常 1 天内回复
-
area: dev-tooling bug severity: low source: roadmap wave: 4
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
documentation good first issue severity: low source: review-2026-09 wave: 4
难度 1/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
documentation severity: medium source: review-2026-09 wave: 3
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
documentation good first issue severity: medium source: review-2026-09 wave: 3
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
相似的 Issue
-
`lvm_compact` has no self-hosted twin, and `docs/158` §5 says every language-face component must未关闭bug sev-3 vm
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 82/100
sierra-research/tau2-bench#635 ·
维护者通常 1 天内回复
-
The add-ssm-model skill requires a Cython simulator; the contributing guide allows Python ones可能已有人在做 @fmuia 今天认领。 未关闭documentation skill
难度 2/5 1-3 小时 新手友好度 83/100
lnccbrown/ssm-simulators#406 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 95/100
btclib-org/btclib-ecc#309 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
autowarefoundation/autoware_carla_scenario#281 ·
维护者通常 1 天内回复