Skip to content

docs(agent-context): harden skills+audit for ADR-0039 own-accessor discipline#137

Merged
dmealing merged 1 commit into
mainfrom
feat/own-rule-skills
Jul 1, 2026
Merged

docs(agent-context): harden skills+audit for ADR-0039 own-accessor discipline#137
dmealing merged 1 commit into
mainfrom
feat/own-rule-skills

Conversation

@dmealing

@dmealing dmealing commented Jul 1, 2026

Copy link
Copy Markdown
Member

Adds the ADR-0039 rule to the codegen skill (never read metadata via own*(); per-port own↔resolving map + TS/Python naming inversion), reinforces it in authoring, and adds an active correctness-defect check (audit axis G2) flagging own-reads of effective properties / own member iteration in generators/runtime. Agent-context conformance/drift/grounding all green.

🤖 Generated with Claude Code

Teach the agent-context skills that own*() accessors break extends
inheritance and must not be the default — resolving/effective accessors
are the default everywhere.

- codegen skill: prominent rule + per-port own↔resolving mapping table +
  the Python(attr=own)/TS(attr=resolves) naming inversion; own is only for
  emitting a generated subclass's own members (ownFields).
- authoring skill: brief reinforcement for adopters writing custom
  generators/providers — extends-inherited properties are real; consume
  via resolving accessors, never own*().
- audit skill: new axis G2 active check (correctness defect, not advisory)
  flagging own-only reads of effective properties / own-only member
  iteration in generators + runtime paths, with the sanctioned
  subclass-emit / own-serializer / @dbColumnType exceptions; plus a drift
  signature entry.

Regenerated the agent-context conformance goldens; conformance (4/4),
drift (4/4), and capability-grounding (5/5) gates all green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GF9xLEQZaPus5Y6opk398n
@dmealing
dmealing merged commit 999269c into main Jul 1, 2026
@dmealing
dmealing deleted the feat/own-rule-skills branch July 1, 2026 01:32
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.

2 participants