Harness Intelligence Wiki
SpecsCLIIssue 69 Project Owned Wiki Sync

Implementation Notes

Implementation Notes

Summary

  • Issue #69 is complete: runUpdate preserves an existing project-owned apps/wiki/scripts/sync-content.mjs, reports and restores it when missing, and continues to manage other wiki scaffold drift. Operator docs and the routed runbook state that boundary; final tests, typecheck, and diff validation pass.

Execution Mode

  • sequential

Deviations From the Plan

  • None.

Surprises and Decisions

  • The GREEN fixture must create the existing project-owned script explicitly because update no longer creates that excluded file.
  • apps/wiki/package.json is the positive control because wiki alignment actively repairs its build script; a free-form source.config.ts edit is preserved by the staging path.
  • Structured autoreview found that unconditional ownership also hid a missing sync script. The accepted correction is existence-sensitive ownership: preserve a present custom script, but report and recreate an absent one.

Sanity Checks

CheckResultNotes
T1 REDExpected failureExact plan command exited 1 because cleanCheck.changedFiles included the customized sync script.
T1 RED, missing scriptExpected failureExact plan command exited 1 because deleting the script produced no missing-file drift.
T1 GREENPassedExact plan command passed: 1 test passed, 34 skipped.
T1 GREEN, missing scriptPassedExact plan command passed after existence-sensitive ownership: 1 test passed, 34 skipped.
Legacy alignment regressionPassedTargeted aligns existing wiki structure during update passed after asserting custom script preservation.
Full update test filePassed35 tests passed.
CLI typecheckPassedtsc --noEmit exited 0.
Scoped whitespacePassedgit diff --check reported no errors in the issue code/spec files.
T3 docs ingestPassedAll three docs surfaces agree; routed ingest bookkeeping and the cross-session gotcha note are current.
Final update test filePassed/opt/homebrew/bin/bun run --cwd apps/cli test src/update/run.test.ts passed 35/35.
Final CLI typecheckPassed/opt/homebrew/bin/bun run --cwd apps/cli check-types exited 0.
Final repository diff checkPassedgit diff --check exited 0.
Extra hi checkExternal noiseExited 1 after remote stable advanced to 2026.07.10-explicit-phase-invocation; it also reported intentional in-task managed docs/settings changes. No issue behavior failed.
  • Not applicable: CLI-only behavior change.

Visual Evidence Acceptance Map

  • Not applicable: CLI-only behavior change.

Acceptance Criteria Status

CriterionStatusNotes
1-4MetT1 proves clean check, positive managed drift, apply preservation, and revised legacy behavior.
5MetFocused/full update tests and CLI typechecking pass.
6MetT3 updated the root docs, operator runbook, and canonical routed runbook.

Manual Review Checklist

AreaCheckHow to performExpected result
CLI updateExisting project-authored sync scriptIn a disposable scaffold fixture, put a unique sentinel in apps/wiki/scripts/sync-content.mjs; run hi update --check; introduce managed wiki package drift and run hi update --write.The script is absent from changed/stale results, the sentinel survives write mode, and the other managed drift is repaired.
CLI updateMissing sync scriptIn the disposable fixture, delete apps/wiki/scripts/sync-content.mjs; run hi update --check, then hi update --write.Check reports the exact path as missing and non-clean; write mode recreates the default script.

Pre-existing Issues

  • None affecting issue #69 behavior or validation.

Out of Scope Observations

  • Remote stable advanced mid-task from the recorded 2026.07.09-backend-domain-guardrails baseline to 2026.07.10-explicit-phase-invocation. The resulting hi check failure is external scaffold/release drift plus intentional working-tree changes; remediation was deliberately skipped.

Remaining Work

  • None for issue #69.

Steering

DateFeedbackChanges
2026-07-10Execute T1 only in sequential mode.Limited work to the public regression, exact-path implementation, and T1 evidence.
2026-07-10Finalize closeout artifacts from parent T4 evidence.Recorded final validation, external hi check noise, acceptance audit, and no remaining issue-scoped work.

On this page