Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 3.66 KB

AGENTS.md

File metadata and controls

40 lines (32 loc) · 3.66 KB

Project working agreements

Scope and documentation

  • This repository hosts Jichen's Blog at https://Antidington.github.io/.
  • Read the relevant active implementation plan before changing the site. Plans are the source of truth for scope, decisions, milestones, and acceptance criteria; do not duplicate them here.
  • Active plans: docs/enginnering/active_plan/.
  • Archived plans: docs/enginnering/archived_plan/.
  • Current migration plan: Hexo to Hugo PaperMod.
  • Authoring, content organization, and local commands: writing guide.
  • Production setup and rollback: deployment guide.
  • Keep the requested directory spelling enginnering; do not rename it as incidental cleanup.

Change boundaries

  • Inspect the working tree and preserve unrelated changes before editing.
  • Implement only the authorized scope. A stored plan does not by itself authorize implementation, publication, or remote configuration changes.
  • Preserve original writing. Fix migration compatibility problems, but flag substantive corrections or missing content instead of silently rewriting or inventing text.
  • Preserve existing Git history and a recoverable baseline before replacing generated site files. Do not force-push or remove history as part of migration.
  • Keep local preparation separate from the production switch. Publishing, pushing, or changing GitHub Pages settings requires authorization for that action and target.
  • Update only documentation invalidated by the current change. Do not create a larger documentation framework unless needed for authorized work.

Plan lifecycle

  • Store each implementation plan as YYYY-MM-DD-short-name.md in active_plan/.
  • Include status, last-verified date, objective, scope and exclusions, settled decisions, dependency-ordered steps, validation, risks, and remaining approvals or blockers.
  • Keep incomplete plans active. Update checkboxes and evidence when work actually passes verification; distinguish planned commands from executed checks.
  • After completion and acceptance, move the plan to archived_plan/ without discarding its decisions or validation evidence, and update links that pointed to its old location.
  • A cancelled or superseded plan may also be archived, but must explicitly record that disposition and any replacement plan. Archival does not imply successful implementation.
  • Do not edit archived history to make past results appear current. Record later work in a new active plan.

Validation

  • For documentation-only work, check referenced paths, Markdown structure, and the final diff; no site rebuild is necessary when site files have not changed.
  • The working tree is now a Hugo source project. The original Hexo output remains recoverable from the baseline commit recorded in the deployment guide.
  • For implementation, follow the active plan's content and rendering checks, and record the actual commands and results.
  • Run PYTHON_BIN=.venv/bin/python scripts/build.sh for the production build and content/link checks after preparing the environment described in the writing guide. Keep public/ untracked.
  • scripts/check_migration.py is a one-time comparison against the original selected content, not a permanent prohibition on future writing or edits.
  • Keep local and CI Hugo versions aligned and pin the PaperMod revision. Keep generated output separate from authored content and engineering documentation.
  • Report remaining limitations and unexecuted checks explicitly. Do not equate a passing build with complete content migration or a verified production deployment.