PlotDirector/Docs/Codex/RetentionReconciliation-20261130.md

6.4 KiB

Application repository reconciliation — 30 November 2026

Origin and ownership

The five uncommitted retention files came from the completed Atlas chat “Recover Atlas storage” (01a22cba-996e-71f0-aebe-b12058142a9f), not an unfinished CYJ task. That authorised storage recovery installed Development retention and explicitly left its source uncommitted for review. The original files' 13:57:58 modification times agree with the completed operation. Its report is /home/nick/atlas-storage-recovery-20261130/report.json.

Atlas chat history and live processes were checked: this reconciliation was the only active interactive PlotDirector session; there was no automatic Codex child. The controller's existing repository advisory lock was held throughout review, testing and commit so that making Git clean could not dispatch a concurrent writer. No existing work was discarded, branch changed, push performed or task claimed.

Review and fixes

Preserved the activation hook, storage warning and documented retention policy. Fixed ancestor symlink traversal, same-device bind mounts, case-insensitive nested source/evidence protection, named restore packages, dangling retention markers, receipt ordering across timezone offsets, snapshot metadata validation and stale cleanup plans. Removal now anchors every parent with no-follow directory file descriptors and uses Python's symlink-resistant recursive removal. Pins must be trusted administrator configuration. Unavailable process or registered-worktree protection fails closed. Git worktree metadata is inspected unprivileged in Atlas's existing secret-free namespace; its fixed /input ownership exception applies only within that isolated command and does not change host Git configuration.

Added missing initial-provisioning dependencies: retention module, administrator launcher and empty pin configuration only when absent. Existing pins are preserved; no new sudo authority was added. Added fixture regression tests for the protections, apply/dry-run/idempotence and activation failure/validation behavior.

Installed only the reviewed retention module under the existing Development activation lock. The previous module is backed up under /root/plotdirector-retention-reconciliation-20261130. Its installed/source SHA256 is 10679e53faba9620a97decd48dbdd8d5ef445e2a8946fec6ef9ae38dc85d8362. The hardened installed publisher/release modules were not overwritten. No application deployment, database operation or real cleanup was performed.

Verification

  • python3 -m unittest discover -s Tools/Deployment -p 'test_*.py': 110 tests passed.
  • dotnet build PlotLine.slnx: passed, zero warnings and zero errors.
  • dotnet run --project PlotLine.Tests/PlotLine.Tests.csproj: exit 0, 897 PASS lines, zero FAIL lines; build and harness ran serially.
  • Node scene-create and Development acceptance helper tests: five passed.
  • Timeline scene-drop browser test against the isolated Razor fixture: passed themes, responsive layout, cancellation, confirmation, errors and restoration; save transport was mocked, with no database writes.
  • Python compilation, launcher shell syntax and git diff --check: passed.
  • Installed administrator retention dry run: exit 0, 106 retained entries, zero planned removals, zero cleanup performed. Storage: approximately 77% free on /srv, 54% free on the Development root filesystem.

Logs are /tmp/plotdirector-deployment-review-tests.log, /tmp/plotdirector-reconciliation-build.log, /tmp/plotdirector-reconciliation-regression.log, /tmp/plotdirector-browser-unit-review-tests.log, /tmp/plotdirector-timeline-browser-review-tests.log and /tmp/plotdirector-retention-live-dry-run.log.

Eleven existing unpublished commits

All were authored on 29 November under the configured Nick Beckley identity. The branch remains codex/application-website-separation-20261127; its remote tracking tip was independently checked against origin at 2725e5143f65ecfb3dd775295b38066f1b4b61a9.

Commit Reviewed scope
a5f9a3da Automatic controller claim ownership instructions
7c313d98 Application worker operating procedure
8c273475 Historical manuscript/Context audit documentation
b5672f20 Timeline character/location confirmation dialogs and tests
9133e520 Isolated unattended Development builds and receipt capture
299500f9 Reusable authenticated Development acceptance fixtures
aa839d3b Dedicated scene creation and workspace handoff
6416a01c Persisted scene current-focus handoff
cbb818a1 Scene creation layout and contextual actions
7dacca5c Preserve unsaved changes after canceled validation
ae321684 Verify scene purpose in the rendered acceptance workspace

The history is coherent and the current combined application/tooling gates pass. It is preserved as a feature branch for owner review, not merged or rebased. No standing remote publication authority or enforced PR workflow was established, so nothing was pushed. A full deployment-tool publication/reinstall also needs separate reconciliation of Atlas's installed security hardening with its older repository publisher/release source. Those installed protections remain in force; this review does not certify overwriting them from this branch. The source is locally verified, but an unconditional operational publication sign-off is withheld for that specific reason. It does not prevent the configured controller using its already-hardened installed tools on the clean local branch.

Controlled handover

CYJ's read-only task query confirms task 65 “Reconcile remaining Writer and Context panel backlog” is Ready, assigned to Application resource 7, without dependencies, assistance, prior execution sessions or recorded effort. Its brief is findings-only. The controller has a persistent repository_conflict history entry, so merely committing cannot resume dispatch. The supported acknowledge-recovery command requires the controller stopped and refuses a usable lease; it does not claim tasks or bypass CYJ eligibility. Both controller workers were idle before handover.

After this commit and a clean check, use the documented stop/acknowledge/start recovery under the held repository lock. Finish all interactive repository writes before releasing that lock. Subsequently inspect controller/CYJ read-only for the fresh automatic claim and the worker's explicit InProgress update. Record actual handover evidence separately; this committed report does not assert future execution.