Skip to content

Add shared GTM audit, background monitoring, and candidate optimization - #7

Draft
jhillbht wants to merge 1 commit into
mainfrom
codex/reuse-gtm-autoresearch
Draft

jhillbht wants to merge 1 commit into
mainfrom
codex/reuse-gtm-autoresearch

Conversation

@jhillbht

@jhillbht jhillbht commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The marketplace advertised GTM Audit Pro without an implementation, and Fix Your Tracking referenced an absent loop engine. This adds a shared Node.js 22 runtime and bundles it into Fix Your Tracking, GTM AI, and the standalone GTM Audit Pro plugin.

An opt-in background watcher polls a complete export or read-only GTM API source, waits for stable changes, then reruns the audit. With optimization enabled, a configured model proposes names and folder organization; the runtime keeps only candidates that improve its static score without dimension regressions. Candidates stay local and are never imported or published.

Includes persistent completion state, per-target locking, bounded retries, start/status/stop controls, paginated API reads, setup instructions, and a bundle parity checker. Audit coverage is explicitly six heuristic configuration dimensions; live firing, consent behavior, platform delivery, and the previously advertised 72-checkpoint audit remain outside this implementation.

Validation: 20 Node tests passed, including real background-process lifecycle and file-change detection, restart deduplication, failure status, pagination mocks, mutation constraints, and keep/revert behavior. Bundle parity and diff checks passed. Codex plugin/skill validation and Claude plugin validation passed; the existing GTM AI plugin retains warnings about older frontmatter and descriptive hook names. Architecture review findings were fixed and covered by tests.

Live Google OAuth/API access and a real model adapter have not been exercised. Background operation requires an awake host and a separately configured renewable token provider. This draft does not enable a watcher or change a live container.

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