[GOV]: sync governance to v9.0 + 2026-10-24 findings; stage GAP-077/067 prompts
Some checks failed
CI Build & Test / Build & Test (Windows) (push) Has been cancelled
CI Build & Test / Build & Test (Linux/mono) (push) Has been cancelled

This commit is contained in:
2026-10-26 08:12:20 -04:00
parent bf7acbb94a
commit 5907e9cc54
16 changed files with 4728 additions and 22 deletions

View File

@@ -0,0 +1,58 @@
# TASK: P0-E / N-04 — Reconcile the dirty working tree; commit GAP-064 FileLog fix and the governance sync
# Staged: 2026-10-24 — DEC-20261024-02
# Sprint: Stage 0 — restore trust in the artifact
# Owner: Kilocode
# Deploy: NONE. Git only. Do NOT run deploy-to-nt8.bat. Do NOT push (push is operator task P0-D).
## WHY THIS RUNS FIRST
HEAD has been `186e1dd` since 2026-08-26. The tree has been dirty since 2026-09-08 (4 modified,
5 untracked as of 2026-09-22). GAP-077, GAP-066 and GAP-067 all edit `NT8StrategyBase.cs` /
`SimpleORBNT8.cs`. Landing them on an uncommitted diff makes each of their diffs unreviewable and
unrevertable. Every later Stage 0 task assumes this one has produced a clean tree.
A governance sync was applied on 2026-10-24: `docs/00-governance/decisions.md` gained
`DEC-20260904-01`, `DEC-20260908-01`, `DEC-20260922-01` (previously only in the Claude Project) and
`DEC-20261024-01/02/03`; `SPRINT_BOARD.md`, `active_work.md` and `current_status.md` gained a
2026-10-24 header block; this `NEXT_PROMPT.md` was rewritten.
## STEPS
0. **Extract prompts.** Copy Appendix A, B and C of `NEXT_PROMPT.md`, verbatim (from the `# TASK:` line
to the end of that appendix, excluding the `# APPENDIX` heading), into
`TASK_P0E_TREE_RECONCILE_PROMPT.md`, `TASK_GAP077_BACKTEST_HISTORICAL_GUARD_PROMPT.md` and
`TASK_GAP067_SHADOWED_PROPERTIES_PROMPT.md` at the repo root. Then delete the three appendices from
`NEXT_PROMPT.md` and replace the `> Kilocode, read this first` note with a one-line pointer to the
three files.
1. `git status --porcelain` and `git diff --stat`. Paste both, verbatim, into the report.
2. For **every** modified and untracked path, classify it as one of:
- **(a) GAP-064 FileLog fix** — the one-line `SDK ONBARUPDATE FAILED: {ExceptionType}: {message}`
`FileLog` in `NT8StrategyBase.OnBarUpdate()`'s catch block, plus
`tests/NT8.Core.Tests/Adapters/NT8StrategyBaseOnBarUpdateVisibilityTests.cs` and the three
date-brittle test fixes verified in `DEC-20260908-01`.
- **(b) Governance sync / staged prompts** — `docs/00-governance/*.md`, `SPRINT_BOARD.md`,
`NEXT_PROMPT.md`, `TASK_*.md`, `docs/NT8_SDK_Master_Document_v9.0_Complete.*`.
- **(c) Anything else** — list it with a one-line description of the diff. **Do not commit (c)
items.** Stop and report them; the operator decides.
3. Verify (a) is exactly what `DEC-20260908-01` describes. In `NT8StrategyBase.cs` the diff must be
the single `FileLog` line and nothing else. If the file carries any other change, stop and report.
4. `verify-build.bat` must be green before committing (a). Report the test count.
5. Commit in this order, as separate commits:
- `[GAP-064]: OnBarUpdate catch-block FileLog + visibility regression test` — category (a) only.
- `[GOV]: sync governance to v9.0 + 2026-10-24 findings; stage GAP-077/067 prompts` — (b) only.
6. `git status --porcelain` again. Report what remains (should be only (c) items, or nothing).
7. Check for a stale `.git/index.lock` before and after; it has recurred twice before. Report, do not
delete without saying so.
## DO NOT
- Do not modify any source file in this task. Commit only what is already there.
- Do not squash (a) and (b) together.
- Do not commit generated files, `bin/`, `obj/`, logs, or anything under `deployment/backups/`.
- Do not push. Do not deploy.
## GOVERNANCE
Update `DEC-20261024-02` with both commit SHAs and the final `git status`. Mark N-04 / P0-E done in
`SPRINT_BOARD.md` and `docs/00-governance/active_work.md` (amend the `[GOV]` commit or add a third
small `[GOV]` commit — your call, say which).