Skip to content

ci+docs(wrappers): detect and fix variable metadata drift (closes #18)#40

Merged
dmchaledev merged 1 commit into
mainfrom
claude/merge-prs-recent-issues-xbozrp
Jun 26, 2026
Merged

ci+docs(wrappers): detect and fix variable metadata drift (closes #18)#40
dmchaledev merged 1 commit into
mainfrom
claude/merge-prs-recent-issues-xbozrp

Conversation

@dmchaledev

Copy link
Copy Markdown
Contributor

Implements issue #18.

Fix the drift

Synced every wrapper variable's description to its core module's verbatim430 descriptions updated across all 12 wrappers. This covers the 8 asm-aws-ha mismatches called out in the issue and corrects the factual error in schema_version_endpoint_path (now "Path on the SAT/ASM API…"). After this, descriptions, types, and defaults all match core.

Detect future drift

New, dependency-free .github/scripts/wrapper_drift_check.py:

  • Brace-aware parser (correctly skips nested validation { } blocks).
  • Compares each forwarded variable's description / type / default against the core module.
  • Emits GitHub ::warning:: annotations and always exits 0 — wired into the existing wrapper-forwarding job as a non-blocking step, per the issue's "start as warnings" guidance. Reports 0 warnings on this tree.

So the existing name-forwarding check stays a hard gate, while metadata drift now surfaces in the PR file view without breaking CI.

Verification (local)

terraform fmt -check, validate, and tflint pass on the wrappers; wrapper_drift_check.py0 warning(s).

🤖 Generated with Claude Code

https://claude.ai/code/session_01AFfgnPaoyGhp52vQL2PVU3


Generated by Claude Code

The wrapper-forwarding job only checked that wrappers expose the same variable
NAMES as their core modules; descriptions/types/defaults could silently diverge,
shipping truncated or wrong docs (and even a factual error: schema_version_
endpoint_path said "ASM API" when it applies to SAT too).

Fix the drift: sync every wrapper variable's description to its core module's
verbatim across all 12 wrappers (430 descriptions updated, including the 8
asm-aws-ha mismatches and the schema_version_endpoint_path correction). After
this, descriptions, types, and defaults all match core.

Add detection: a new, dependency-free .github/scripts/wrapper_drift_check.py
(brace-aware parser, handles validation blocks) compares each forwarded
variable's description/type/default against core and emits ::warning::
annotations. Wired into the wrapper-forwarding job as a NON-BLOCKING step so
future drift surfaces in the PR without breaking the build. Reports 0 warnings
on the current tree.

terraform fmt, validate, and tflint pass on the wrappers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFfgnPaoyGhp52vQL2PVU3
@dmchaledev dmchaledev merged commit 4c4bb4c into main Jun 26, 2026
45 checks passed
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