KB-69DB

IU Core 6000x-authority-closeout — Final Report

4 min read Revision 1
iu-core6000x-authority-closeoutfinal-reportpartial-with-exact-gapnuxt-pr-openmac-cron-pilotretention-dry-run

6000x-authority-closeout — Final report

Verdict: IU_CORE_6000X_AUTHORITY_CLOSEOUT_PARTIAL_WITH_EXACT_GAP Date: 2026-05-24 Repo: /Users/nmhuyen/iu-cutter-build/repo/iu-cutter (commit 4fb380e, clean at start; b478822 after KB commit) Branch: main

One-paragraph summary

The 6000x-authority-closeout macro re-entered the rollout with three explicit user authorities granted: open (but not merge) a Nuxt PR on Huyen1974/web-test, install user-level cron on the iu-cutter Mac host, and re-verify retention without flipping the gate. All three executed cleanly. PR #669 was opened against web-test@main; user crontab now runs the healthcheck every 10 minutes (logged to ~/.iu-core-health/log/healthcheck.jsonl); retention dry-run again reported 0 rows_eligible across all 3 policies and the gate stayed false. The auto-refresh production pilot's durable audit row (id 18, from 6000x) and the DIEU-35 real-corpus invariants were both re-verified non-mutating. Remaining gaps are: PR merge (frontend/DevOps owns the live incomex-nuxt deploy), retention enable (explicit user deferral — 0 eligible rows makes it a no-op anyway), and DIEU-35 Qdrant onboarding (independent of this macro).

Authority granted (this macro, recorded verbatim)

  1. Nuxt PR — Open PR, do not merge.
  2. Cron install — User-level crontab only on this Mac, no sudo, no systemd. Mac cron is a monitoring pilot, not final production-grade VPS monitoring.
  3. Retention — Keep gate false, dry-run only.

Durable changes

  • GitHub: PR https://github.com/Huyen1974/web-test/pull/669 OPEN/MERGEABLE; branch feat/iu-core-three-axis-envelope commit e6a5659.
  • macOS user crontab (this Mac): */10 * * * * iu_core_healthcheck_wrapper.sh >/dev/null installed; reversible.
  • PG: no mutation. Retention dry-run only.

Live state at macro end

DOT:               144/144 (unchanged)
Tests:             1163/1163 PASS in 0.70s
Healthcheck:       7/7 GREEN (overall_ok=true)
Envelope:          163 rows · in_sync=true
Qdrant:            61 sync_points / 60 unique
Auto-refresh log:  6 rows (id 18 durable — actor=iu_lifecycle_trigger, outcome=skipped_in_sync)
Trigger errors:    0
Gates:             all 6 IU Core write gates inert; retention also false
PR open:           Huyen1974/web-test #669 (awaiting owner)
Mac cron:          installed; first wrapper run logged exit 0

Lessons

  1. Authority discovery is real verification, not paperwork. Token had admin/push on web-test; ask the user for scope rather than assume.
  2. PR-on-push triggers ≠ PR-on-merge deploys. deploy-vps.yml is gated by workflow_run on main — push to feat branch + open PR is structurally safe.
  3. Mac user-cron is a pilot ceiling. Survives logout but not Mac sleep/offline. Pair with Linux user-systemd or Cloud-Run probe for durable production observability.
  4. Dry-run is the right shape for "almost free" production probes. Retention exercise lit every code path without deleting a row.

Next-macro options

  • 6500x — frontend/DevOps merges PR #669 → image rebuild → incomex-nuxt restart.
  • 6600x — VPS-side ops install on long-running Linux operator host.
  • 6700x — paired retention enable + monitoring after operator-host cron is in place.
  • 6800x — DIEU-35 Qdrant onboarding (independent of UI deploy).

Constitutional close-out

  • No hardcode; DOT 144/144 unchanged; five-layer boundary intact; everything reversible.
  • 7 AgentData reports under …/v0.6-iu-core-6000x-authority-closeout-open-goal/.
  • No secret logged; no merge / tag / release; no fake PASS.

End state: production rolls forward by one merge (PR #669) and one host-owner cron install away from "fully live"; retention is a deliberate deferral. No unsafe state remains.

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/v0.6-iu-core-6000x-authority-closeout-open-goal/01-final-report.md