|
1 | 1 | # Working Memory |
2 | 2 |
|
3 | | -## Active tasks |
| 3 | +## Active task |
4 | 4 |
|
5 | | -- Task: Plan for dynamically embedding awesome-modeling-practices README into a Hugo page |
6 | | -- Current status: Plan written (see .agent/working-memory/plan-awesome-list.md) |
7 | | -- Open questions: None at this stage; ready to implement on request |
8 | | -- Next actions: Implement plan steps on user approval |
| 5 | +- awesome-modeling-practices embed plan is ready: `.agent/working-memory/plan-awesome-list.md`. |
| 6 | +- Next step on request: implement the planned integration. |
9 | 7 |
|
10 | | -## Deployment context (updated 2026-03-28) |
| 8 | +## Notes by date (newest first) |
11 | 9 |
|
12 | | -- Workflow: `.github/workflows/gh-pages.yml` |
13 | | -- Trigger: push to `develop` branch |
14 | | -- Build: containerized via Docker Compose (`docker compose build hugo` + `docker compose run hugo hugo build --gc --minify`), mirroring local deployment toolchain and image |
15 | | -- Deploy method: `actions/upload-pages-artifact` + `actions/deploy-pages` (OIDC, no branch write) |
16 | | -- **No `main` branch is used for deployment.** The old `peaceiris/actions-gh-pages` approach that pushed to `main` has been replaced. The `main` branch is obsolete. |
17 | | -- Required repo setting: Settings → Pages → Source must be **GitHub Actions** (not "Deploy from a branch"). |
| 10 | +### 2026-03-31 |
18 | 11 |
|
19 | | -## CI troubleshooting (updated 2026-03-29) |
| 12 | +- `Makefile` maintenance completed: fixed `make shell`, refactored shared Docker Compose flags, removed global `.NOTPARALLEL`, and simplified `clean` with a merged `find`. |
| 13 | +- Validation: `make -n` checks passed for `build`, `serve`, `render`, `shell`, `stop`, and `clean`. |
20 | 14 |
|
21 | | -- Hugo module/cache paths inside the container must resolve to absolute directories for the current CI image/version. |
22 | | -- For Docker Compose workflows, use separate variables for host and container cache paths: |
23 | | - - host path for GitHub Actions cache: `./.hugo_cache` |
24 | | - - container path for Hugo `--cacheDir`: `/src/.hugo_cache` |
25 | | -- Running the container as `--user "$(id -u):$(id -g)"` avoids root-owned workspace files, but it also means default cache locations like `/cache/modules` may be unwritable. |
| 15 | +### 2026-03-29 |
26 | 16 |
|
27 | | -## Shared build entrypoint planning (updated 2026-03-29) |
| 17 | +- CI/cache troubleshooting: keep host cache at `./.hugo_cache` and container cache at `/src/.hugo_cache`; `--user "$(id -u):$(id -g)"` avoids root-owned files. |
| 18 | +- Shared build entrypoint plan: `.agent/working-memory/plan-shared-build-entrypoint.md`. |
| 19 | +- Checkpoint: `.agent/checkpoints/checkpoint-20260329-0824.md`. |
28 | 20 |
|
29 | | -- Plan created: `.agent/working-memory/plan-shared-build-entrypoint.md` |
30 | | -- Objective: route local production render, htmltest render, and GitHub Pages build through one repository-owned build script. |
31 | | -- Preferred shape: keep workflow orchestration in YAML, move only the canonical Hugo build logic into a shared container-executed shell script. |
| 21 | +### 2026-03-28 |
32 | 22 |
|
33 | | -## Checkpoint and docs sync (updated 2026-03-29) |
34 | | - |
35 | | -- Checkpoint added: `.agent/checkpoints/checkpoint-20260329-0824.md`. |
36 | | -- Contributor docs synced: `README.md` now documents shared build entrypoint and `make render`. |
37 | | -- Agent docs synced: `AGENTS.md` now references `.github/scripts/build-site.sh` and local production-style render guidance. |
38 | | -- Repo hygiene: `.gitignore` now ignores generated `/.hugo_cache/` and `/dist/` build outputs. |
| 23 | +- Deployment workflow: `.github/workflows/gh-pages.yml` on `develop`. |
| 24 | +- Build/deploy path: Docker Compose `hugo` service + `.github/scripts/build-site.sh`, then `actions/upload-pages-artifact` and `actions/deploy-pages`. |
| 25 | +- Pages source requirement: GitHub Actions (not branch deployment); no `main` branch publishing. |
0 commit comments