fix: preserve source task sections and explicit empty notes

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
tegwick 2026-09-10 15:11:03 +02:00
parent ccb285fc40
commit f767a1a245
4 changed files with 231 additions and 17 deletions

View file

@ -0,0 +1,64 @@
---
id: STATE-WP-0090
type: workplan
title: "Preserve task descriptions and explicit empty notes in Forge projection"
domain: infotech
repo: state-hub
status: active
owner: codex
topic_slug: infotech
created: "2026-09-10"
updated: "2026-09-10"
related: [STATE-WP-0086, RMGR-WP-0017, HFACT-WP-0001]
---
HFACT-WP-0001-T02 repeatedly repairs six of 24 selected task projections after
normal sync. Forge derivation truncates nested evidence and converts explicit
empty intervention notes into null, disagreeing with file-authoritative deep
consistency. Fix the original parser rather than applying another batch patch.
## Reproduce and correct task-field derivation
```task
id: STATE-WP-0090-T01
status: done
priority: high
```
Retain nested task sections, stop at the next peer/ancestor heading or task block,
match source-description cleanup and preserve absent/null/empty metadata meaning.
Keep task identity, status, collision and retirement rules unchanged. Test parity
with the existing consistency parser and real PostgreSQL/API convergence.
## Promote the verified correction and prove the selected chain
```task
id: STATE-WP-0090-T02
status: todo
priority: high
```
Run relevant projection/consistency/API regressions, commit/push, consume the
immutable CI image and prepare the existing Helm release with reused values and
atomic rollback. Verify the exact promoted image and healthy primary, then sync
the three selected repositories using RMGR-WP-0017 and read back all 24 task
fields with zero manual task PATCH repairs. Preserve unrelated untracked evidence.
## Retain evidence and close the bounded defect
```task
id: STATE-WP-0090-T03
status: todo
priority: medium
```
Record source/image/Helm revisions, test results and before/after convergence.
HFACT T02 retains other selected-backlog readiness work; native admission and
factory execution remain their existing owner tasks. Do not mark factory G1/G2
complete or introduce another synchronization service.
Validation: all five new parser cases fail on the previous derivation. The
corrected projection/consistency/API suite passes 242 tests on a disposable
PostgreSQL database. Actual selected-source comparison reproduces six drifted
tasks before the fix and zero afterward across 24 tasks. No production data
was used by the tests; live promotion and readback remain T02.