Skip to content

[docs] Capture session lessons into pr-workflow / memory-rules / conftest notes#48

Merged
trilamsr merged 1 commit into
mainfrom
feat/learn-session-lessons
May 15, 2026
Merged

[docs] Capture session lessons into pr-workflow / memory-rules / conftest notes#48
trilamsr merged 1 commit into
mainfrom
feat/learn-session-lessons

Conversation

@trilamsr

Copy link
Copy Markdown
Contributor

Problem

Four durable lessons surfaced during the M5b chart work (PR #29 +
follow-up #36) were not recorded in repo-resident notes.

Impact

Without anchors in docs/notes/, the next contributor re-discovers
the same patterns: PR bodies drift across review rounds, memory-rule
collisions get relitigated, rego rules fire on non-pod documents,
iterative reviews repeat prior findings.

Solution

Three new topic notes under docs/notes/, each with anchors that
catch regression:

  • pr-workflow.md — body-sync per review round + iterative-review
    prompt discipline.
  • memory-rules.md — forward-only compliance as the resolution for
    rule collisions.
  • conftest.mdinput.spec.template.spec guard on every rego
    deny rule that references pod-spec fields.

AGENTS.md topic index gains one line per new note. Captured via the
learn-from-mistakes skill — banned-vocabulary check clean, AI
attribution clean, anchors present, AGENTS.md at 55/150 lines.

This PR replaces #41, which was opened off a now-stale base. Closing
#41 in favor of this branch keeps history append-only per the
project's no-rebase-after-push rule.

Test plan

  • make doc-check clean post-rebase (202 markdown links resolve).
  • pr-lint green.
  • verify job unchanged.
[docs] Three new topic notes (`pr-workflow`, `memory-rules`, `conftest`) capture lessons from the M5b chart work; `AGENTS.md` topic index extended.

…test notes

Four lessons surfaced during the M5b chart work that are durable enough
to outlive the session. Each lands in a new topic note with an anchor
the next contributor can grep for to catch regression:

- pr-workflow: update the PR body each review round (not just at open),
  because the squash-merge body is what becomes permanent on main;
  iterative reviews need each round's prompt to enumerate prior-round
  artifacts so the next pass surfaces residual gaps rather than
  re-reporting closed findings.
- memory-rules: when a memory rule tightens and collides with an
  existing constraint (e.g. AI-trailer cleanup vs. no-history-rewrites
  on already-pushed commits), name forward-only compliance as the
  resolution in the offending file so the next contributor does not
  relitigate.
- conftest: rego deny rules that reference `pod_spec.<field>` fire on
  non-pod documents (ConfigMap, ServiceAccount, Secret) unless guarded
  with `input.spec.template.spec`, because rego's undefined-propagation
  rules make `not pod_spec.x == true` evaluate true when pod_spec is
  absent.

AGENTS.md topic index gains three pointers (one per new note). Skill
format check clean: no banned vocabulary, no AI attribution, anchors
present on every entry, AGENTS.md at 36 lines (cap 150).

Signed-off-by: Tri Lam <trilamsr@gmail.com>
@trilamsr trilamsr enabled auto-merge (squash) May 15, 2026 13:07
@trilamsr trilamsr merged commit c3b28d6 into main May 15, 2026
5 checks passed
@trilamsr trilamsr deleted the feat/learn-session-lessons branch May 15, 2026 13:11
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