Skip to content

fix(agent-context): tighten metaobjects-audit drift, status-guard and eject-history checks - #551

Merged
dmealing merged 1 commit into
mainfrom
fm/mo-audit-skill-feedback
Nov 11, 2026
Merged

dmealing merged 1 commit into
mainfrom
fm/mo-audit-skill-feedback

Conversation

@dmealing

Copy link
Copy Markdown
Member

What Changed

  • Adds drift signature 13 (drift-signatures.md): an enum member or event name typed as a hand string beside the generated constant is drift. Calibration exempts literals at positions the type checker already verifies. Adds G3 to surface-review-axes.md, which requires every write to a status-like enum column to be conditional on the current value, with the fix going through the port's ORM and generated constants, never raw SQL.
  • Stale-copy rule (SKILL.md, owned-generator check): a copy with lines of its own no longer counts as customized. The history check now runs on every DIFFERS row, and the report separates lines behind the reference from lines of the project's own. A copy stale by version is reported as owned-generator-stale.
  • prompt-anti-patterns.md and calibration.md: include-only templates (bodies that are only {{> partial }} includes) are exempt from the byte-identical template-duplication finding.
  • Mirrors the same changes into the per-language references (typescript, java, kotlin, python, csharp) and the agent-context-conformance expected fixtures.
Validation

Risk Assessment

✅ Low: Docs-only edits to the audit skill and its byte-identical conformance fixture copies. All four feedback items are implemented as the intent requires, and I found no contradictions or defects.

Testing

  • ⏭️ Test - skipped

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⏭️ **Test** - skipped

Step was skipped.

⏭️ **Document** - skipped

Step was skipped.

⏭️ **Lint** - skipped

Step was skipped.

✅ **Push** - passed

✅ No issues found.

…d check, stale-copy and include-only fixes

Four fixes from the audit skill's first run on an adopter project:
- drift signature 13: an enum member or event name typed as a hand string beside the generated constant
- axis G3: every write to a status-like enum column is conditional on the current value; the fix uses the port's ORM with generated constants, never raw SQL
- an owned generator copy with lines of its own is not proof of a customization: DIFFERS also marks a copy stale by version, so check history and report lines behind and lines of the project's own separately
- exempt include-only templates from the byte-identical template duplication rule

Per-port files and the regenerated agent-context conformance goldens updated to match.
@dmealing
dmealing merged commit 52627cc into main Nov 11, 2026
9 checks passed
@dmealing
dmealing deleted the fm/mo-audit-skill-feedback branch November 11, 2026 04:41
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