Skip to content

fix: correct draft-post content path to src/content/posts/ - #19

Merged
dmserrano merged 1 commit into
mainfrom
fix/draft-post-content-path
Sep 8, 2026
Merged

fix: correct draft-post content path to src/content/posts/#19
dmserrano merged 1 commit into
mainfrom
fix/draft-post-content-path

Conversation

@dmserrano

Copy link
Copy Markdown
Owner

The workflow instructions were self-contradictory: step 2 correctly read
frontmatter from `src/content/posts/*.md`, but steps 4 and the constraints
told the agent to write to `content/posts/.md` (missing `src/`).

The live test (#6 -> PR #12) happened to write to the correct path anyway
— the agent inferred it from the files it read rather than following the
literal (wrong) instruction — but the ambiguity was worth fixing before it
caused a real failure. Recompiled and linted clean.

Note: I found this as an uncommitted local change already sitting in the
working tree before I started on #17 — I didn't make this edit myself this
session. Fixing it properly here since it's clearly correct and was at
risk of being lost.

The workflow instructions were self-contradictory: step 2 correctly read
frontmatter from src/content/posts/*.md, but steps 4 and the constraints
told the agent to write the new file to content/posts/<slug>.md (missing
src/). The live test (issue #6 -> PR #12) happened to write to the
correct path anyway, since the agent inferred it from the files it read
in step 2 rather than following the literal (wrong) instruction — but the
ambiguity was worth fixing before it caused a real failure.

Recompiled via `gh aw compile` and verified with `gh aw lint` (0 issues).
@dmserrano
dmserrano merged commit 943ad84 into main Sep 8, 2026
2 checks passed
@dmserrano
dmserrano deleted the fix/draft-post-content-path branch September 8, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant