← Files Realize PluginARCHIVED FILE
CHANGELOG.md
79.9 KB · Nov 25, 2026 · 07:25 UTC
# Changelog
All notable changes to this plugin will be documented here. Format loosely follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow [SemVer](https://semver.org/).
## [Unreleased]
### Changed
- **Codex package renamed to `realize-plugin-openai`.** `name` in `.codex-plugin/plugin.json` changed from `realize-plugin` to `realize-plugin-openai`, as OpenAI's marketplace review asked: the new name is uploaded as a new plugin so it doesn't inherit the old draft's configuration issue. The display name stays `Realize Plugin`. The Claude Code plugin keeps the name `realize-plugin`.
- **Codex subtitle shortened** to "Manage Realize campaigns" to fit OpenAI's 30-character `shortDescription` limit.
- **OpenAI submission branch.** The OpenAI zip is built from `openai-submission`. That branch differs from `main` only in `.mcp.json`, which drops the `X-Realize-Client` header and the `oauth.callbackPort` entry because OpenAI configures OAuth in its portal. `main` keeps both, since the Claude Code install and the Anthropic directory need them. Traffic from the OpenAI build therefore carries no `X-Realize-Client` attribution.
## [0.5.5] — Unreleased (pending directory review)
### Directory submission fixes (DEV-240750)
The directory check held 0.5.4 for policy review. This release clears every finding that needs a code change, and the follow-up code review's findings on that fix. Version set in `.claude-plugin/plugin.json`, `.claude-plugin/marketplace.json` and `.mcp.json`'s `X-Realize-Client` header.
**Permissions (`ALLOWED_TOOLS_BROAD`, unscoped fetch)**
- No skill pre-approves bare `Bash` or `Write` any more.
- `accounts`, `campaigns`, `optimize-campaign` and `reports` drop `Bash`; they never used it.
- `discovery` and `manage-campaigns` (including `references/mcp-write-surface.md`) use the `Grep` tool for overflow dumps.
- `support` pre-approves only the three exact commands it runs: `node "${CLAUDE_PLUGIN_ROOT}/skills/support/scripts/build-bundle.js" --preview`, and `--write` with `--complaint-file ~/.realize-plugin/tmp/complaint-*.txt` or `--title-file ~/.realize-plugin/tmp/title-*.txt`. The path is quoted for install paths with spaces. A `:*` suffix had matched `--out <any path> --force --allow-git` too. Writes are scoped to `Edit(~/.realize-plugin/tmp/**)`, because a `Write(path)` rule is never consulted and bare `Write` allowed writing anywhere.
- `diagnose-tracking` pre-approves no command. Each page fetch shows the user a prompt with the exact URL, so an instruction planted in a page or HAR can't send data anywhere silently.
- `web-fallback` scopes `WebFetch` to `realize.com` / `www.realize.com`.
**Pixel page download (`RUNTIME_FETCH_EXEC`)**
- The `curl` line in `diagnose-tracking/SKILL.md` and the agent is replaced by a shipped script, `skills/diagnose-tracking/scripts/fetch-page.js`, with no dependencies and 114 unit tests.
- It allows http/https only on every hop, at most 3 redirects, a 20 s timeout and a 5 MB cap. It refuses `user:pass@` URLs and sends no cookies.
- **Private, loopback, link-local and metadata addresses are refused on every hop**, IPv6 forms that embed an IPv4 address included (`[::ffff:127.0.0.1]`, which the URL parser rewrites to `[::ffff:7f00:1]`; IPv4-compatible, NAT64, 6to4), plus site-local `fec0::/10`, local-use NAT64 `64:ff9b:1::/48`, `192.0.0.0/24` (Oracle Cloud's metadata address is `192.0.0.192`) and the `198.18.0.0/15` benchmarking range. The check runs inside each connection's own DNS lookup, so a name can't answer "public" to the check and "127.0.0.1" to the connection (DNS rebinding), and the 20 s timeout covers the lookup. The old `curl` line would follow a redirect into the user's network.
- A `www.` redirect no longer counts as a host change; it previously skipped the static check on most real sites. A URL without a scheme gets `https://`.
- Network failures name their cause (DNS, TLS, refused) instead of a bare "fetch failed".
- **Corporate networks are best effort, not `curl` parity.** When a proxy variable is set, or a certificate error occurs, the script re-runs itself with the OS certificate store (Node 22.15+/23.8+) and env-proxy support (`NODE_USE_ENV_PROXY`, Node 22.21+ and 24+). Through a proxy the private-address check covers literal-IP hosts only, since the proxy resolves names. Older Node on a proxy-only network can't reach the page; the error says so, and the skill falls back to the user's browser capture.
- The URL is a single-quoted positional argument. There is no file-reading option that could echo a local file.
- Each run saves into its own fresh temp folder; this user's folders from earlier runs are pruned after an hour.
**Support bundle**
- Invoked via `"${CLAUDE_PLUGIN_ROOT}/…"` instead of a repo-relative path, so `/support` works for people who installed the plugin.
- `--complaint-file` / `--title-file` read only `complaint-*.txt` / `title-*.txt` files directly in `~/.realize-plugin/tmp` (realpath-checked; `..`, symlinks and hard links refused), so the unprompted script can't copy an arbitrary file into an email attachment. Each run uses its own file name, so concurrent runs can't read each other's text.
- The script deletes the complaint file after writing; leftovers from cancelled runs are pruned after a day. Previously the cleanup relied on a model-run `rm` the user could decline. A failed delete is a warning, not a failed bundle.
- **The script itself limits writes**, because a permission rule can't pin every argument. `--force` and `--allow-git` need an interactive terminal, which the model never has. `--out` must be a new `.md` file directly in Desktop, Downloads, home or the temp folder, never a symlink, and the file is opened exclusively (`wx`). Before this, `--out ~/.zshrc --force` overwrote the user's shell startup file with the transcript.
**Other**
- **Node.js is not assumed.** The native installer and desktop app don't include it. The pixel check falls through to the browser capture, and `/support` points the user to emailing Support directly. `INSTALL.md` states the requirement, and both scripts' "Node ships with Claude Code" comments are corrected.
- `agents/realize-analyst.md`: gains `Write`, which `/support` needs when run through the agent, and no longer names a repo-relative script path.
- **`UNREAD_ASSET_REFERENCED` (7):** docs and CI no longer name the listing icon by path. The duplicate CI icon check is removed, because the directory check reports a missing icon itself.
- **Tests:** test fixtures that look like a local-file URL or a `user:pass@` URL are assembled at runtime, the same rule as `test-build-bundle.js`.
- **`INSTALL.md` / settings example:** the `Bash(curl:*)` opt-in is removed. The page-fetch section now says the prompt is deliberate instead of claiming "no opt-in needed", which was wrong: a skill grant lasts one turn.
- **CI:** runs `test-fetch-page.js`. *Directory-check guards* now holds every skill's `allowed-tools` to an allowlist: plain read tools, domain-scoped `WebFetch`, the one scoped `Edit`, and only the skill's **own** script in the exact quoted form. No `..`, no other skill's script, no wildcards.
- **Left for the reviewer:**
- `MCP_FORWARDS_CREDENTIAL_ENV`: nothing reads a credential. Login is Claude Code's OAuth against the MCP, and the only header is the static client identifier.
- `UNKNOWN_KEY` on `privacyPolicyUrl`: the finding says no action is needed.
### Fixed
- **No more "raise bid" advice for Maximize Conversions.** In `knowledge/bidding.md`, the *When to Switch Strategies* row for a Maximize Conversions campaign with high CVR and low scale told users to "raise bid". On Maximize Conversions the algorithm sets the bid, so there is no bid to raise (see the Bid Levers matrix in the same file). The row now reads "Expand targeting, consider splitting out top placements". The matching *CPA Spike Signal Table* row (High CVR, Low Scale), which covers all bid strategies, is aligned to the internal Realize Best Practices source (which has no "raise bid" there) and drops it too. Raising the bid on Enhanced CPC / Fixed Bid is still covered in `skills/optimize-campaign/references/optimization-flow.md` §2.1 and `knowledge/budget.md`.
## [0.5.4] — Unreleased (pending directory review)
> **Versioning note.** Everything below ships as **one** release, set to **0.5.4** (DEV-240749) in the three Claude-plugin places: `.claude-plugin/plugin.json`, `.claude-plugin/marketplace.json` and `.mcp.json`'s `X-Realize-Client` header, which is what upstream telemetry attributes traffic to. `.codex-plugin/plugin.json` is versioned separately and was not touched. 0.4.0 → 0.5.3 were successive corrections to this same unshipped change; 0.5.1 is the build the Anthropic directory check blocked. Nothing after 0.3.0 was released, but those numbers already appeared on `main`, so the release moves forward to 0.5.4 rather than back to 0.4.0. The breaking change (the retired report tools) is already covered by the 0.3 → 0.5 minor bump.
> **Release gate — cleared 2026-10-02.** Verified against the live tool list on production `mcp.realize.com`: `get_dynamic_report_settings` and `get_dynamic_report_data` are present; `get_top_campaign_content_report` and `get_campaign_site_day_breakdown_report` are gone; `get_campaign_breakdown_report` and `get_campaign_history_report` are still live. The staging-observed behaviors below are retained as *staging-observed* except where the live tool descriptions now state the behavior outright (`LIKE` substring wrapping is fixed upstream and documented as such).
### Directory submission fixes (DEV-240749)
The Anthropic directory check blocked v0.5.1 with eight findings. This release fixes four of them; the other four are listed at the end of this section.
- **`SECRET_IN_SCRIPT` (blocked):** `skills/support/scripts/test-build-bundle.js` no longer contains credential-shaped literals. Every fake credential (Anthropic key, Google token, JWT, and the `password` / `client_secret` values) is assembled at runtime from neutrally named variables, and two test names that read as `key= value` were reworded. The strings under test are unchanged (82/82 pass).
- **`ROOT_CLAUDE_MD` (warning):** contributor notes moved from the root `CLAUDE.md` to `.claude/CLAUDE.md` with `git mv`, so `git log --follow` keeps the history. Claude Code still auto-loads that location for contributors; installers never loaded it either way. Links in it, `CONTRIBUTING.md` and `tests/test-scenarios-dynamic-report.md` updated; `skills/diagnose-tracking/SKILL.md` no longer points the model at a file installers don't have.
- **`ICON_MISSING` (warning):** the listing icon added to `.claude-plugin/` — the same 512 px circle mark used for the Realize MCP directory submission, so the plugin and MCP listings match.
- **No privacy policy URL (validation note):** `plugin.json` gains `privacyPolicyUrl`, the same Taboola privacy policy the Realize MCP links.
- **CI guards** (`validate.yml`, *Directory-check guards*) fail the build on a root `CLAUDE.md`, a credential-shaped literal anywhere in the repo, or a missing / out-of-spec icon, so these three can't silently come back.
- **Still open:** `ALLOWED_TOOLS_BROAD` (policy hold — bare `Bash` in 8 skills' `allowed-tools`), unscoped `WebFetch` in `web-fallback` (validation note), and `MCP_FORWARDS_CREDENTIAL_ENV` / `RUNTIME_FETCH_EXEC` (warnings, believed false positives — need a reviewer note rather than a code change).
### Changed
- **The learning-period guard reads the campaign's reported status instead of counting days.** Learning length varies per campaign — one settles in 5 days, another in 12, another stays volume-starved — so elapsed time never answered the question. `get_campaign` returns the answer directly and the plugin was discarding it: `cvr_learning_status` appeared nowhere outside a phrasing table, and P5 decided on three clock/counter conditions joined by AND.
- **The old rule could not fire at all on an established campaign.** Condition 1 required the campaign to have been created within the last 7 calendar days, so anything older was treated as mature regardless of its real state — and campaigns commonly report `CVR_LEARNING` for months. A live campaign 69 days old and still learning would have been handed straight to the optimiser for bid changes.
- **New order of precedence:** `cvr_learning_status` decides (`CVR_LEARNING` / `CVR_LEARNING_LIMITED` fire the guard; `CVR_LEARNING_COMPLETE` clears it; `null` on a Fixed-bid campaign means no learning phase exists; `null` on an approved non-Fixed campaign is treated as still learning, never as done). With a Target CPA set, `target_cpa_learning_status` must additionally read `LEARNING_COMPLETED` — CVR learning completing does not settle a Target CPA. The day heuristic survives only as a last-resort fallback when every field is null, and the answer must then be declared an estimate.
- **`EMPTY_DISPLAY` is now treated as carrying no information, and is never shown to the user.** Upstream maps two opposite states onto that single label — a campaign that has finished learning and one that has never served. The guardrails table previously translated it as "no Display creatives yet", which is wrong twice over: it is not an ad format, and it appears on mature converting campaigns. Corrected per Performance Oracle's finding on the same field.
- **Day figures standardised to 7-10 and demoted to an expectation.** The repo carried three different numbers (`7-14`, `7-10`, `~7 days/30 conversions`) because several docs each restated the same fact. They now agree, and they are phrased as what to tell a client to expect, never as the test. Two day figures were deliberately left: the creative-refresh lifespan table in `optimization-flow.md` ("7-14 days" for two verticals) measures creative fatigue, not learning; and Enhanced CPC's longer observed window in `knowledge/bidding.md`, which is now phrased as an observation with a pointer to the status field rather than a rule.
- Sites: `skills/optimize-campaign/SKILL.md` (P5 rewritten), `knowledge/bidding.md` (held a second full copy of the same broken three-condition guard; now states what the fields mean and defers the gate to the skill), `os/guardrails.md` (translation table), `agents/realize-analyst.md`, `README.md`, `docs/realize-best-practices-gap.md`, `knowledge/custom-rules.md`, `knowledge/site-management.md`, `skills/optimize-campaign/references/optimization-flow.md`, `knowledge/targeting.md` (the `EMPTY_DISPLAY` rewrite).
- **P5 now has explicit not-applicable cases**, so the guard cannot trap a campaign that will never report a status: Fixed-bid campaigns, non-conversion objectives (awareness, traffic), and campaigns whose **account** has no conversion rules at all skip P5 rather than firing forever. A missing *campaign-level* goal is **not** one of these — per P2 that means the campaign inherits the account default, which is normal, so the guard still fires. An unapproved campaign is routed to an approval explanation instead of being told to wait out a learning phase it is not in. Where P5 is skipped the data-sufficiency gates still apply — "not applicable" is not "mature" — and `site-management` / `custom-rules` keep a volume floor for the no-status case so a day-one Fixed-bid campaign is still protected from publisher blocking and Custom Rules.
- **The duplicate-campaign exception was dropped.** It said to treat a duplicate as mature after Day 2 even when it reports `CVR_LEARNING` — overruling the authoritative status on an age basis, which is the defect being removed. Nothing in the MCP marks a campaign as a duplicate either, so it rested on the user's word.
- **P5 gained two exceptions, so a firing guard cannot trap a campaign that is unable to progress.** Holding is right for a campaign moving through learning and wrong for one that is stuck, and a status-driven guard with no exit would leave a low-volume campaign waiting on a condition it can never meet. (A) `CVR_LEARNING_LIMITED` means too little conversion volume — when the daily budget is also under 8× the CPA goal, the budget raise is the remedy and is prescribable, alone and labelled as an intervention during learning. (B) Past roughly 14 days with volume not building, the agent says so and offers the user the choice rather than holding silently; it may not intervene unasked. Both test scenarios accept these and still fail a silent bid change.
- **Known upstream gap, not fixed here:** the MCP returns the `display_learning_state` column under the name `learning_state`, which is why `EMPTY_DISPLAY` is ambiguous. The underlying `learning_state` column distinguishes `CAMPAIGN_LEARNED` from `CAMPAIGN_NO_EXPOSURE`. Raised with the MCP team; when it is exposed, `EMPTY_DISPLAY` handling can be replaced with a real terminal state.
- **`get_conversion_rules` is paginated and filterable — the "unpaginated, no status filter" guidance is retired.** Upstream added `page` / `page_size` (defaults 1 / 25, max 50, ordered by rule id so pages are stable), a `status` filter (`ACTIVE` / `DISABLED` / `ARCHIVED`), and `search_text` (case-insensitive substring of `display_name` only). The response states the true `total`. The plugin had told the agent none of this existed in 7 places, so on a rule-heavy account it would overflow the tool-result cap and fall into dumped-file recovery where one filtered call now suffices (the field repro — 278 rules / ~270 KB, 102 ACTIVE — is 6 unfiltered pages at `page_size=50`, or 3 filtered to ACTIVE; filtering shrinks the paging rather than removing it).
- **`status` does not partition the account**, and the docs now say so: `ARCHIVED` selects archived-*and*-disabled rules only, so the three filtered counts need not sum to the unfiltered `total`. Rebuilding "all rules" by concatenating the three statuses is wrong.
- **The pre-write collision check must not use `status`.** `display_name` is unique across all statuses, so an ACTIVE-only read is not a sound basis for it. `search_text` is still fair game for the name half — status-agnostic and matching `display_name` — provided the returned names are compared **exactly** (it is a contains match) and the search is paged when `total` exceeds a page. The `event_name` half is sound under `status="ACTIVE"`, since the rule is one ACTIVE rule per event; only `ARCHIVED` is lossy. A full unfiltered listing is needed just for ownership reporting. Called out in `manage-campaigns`, its write-surface reference, and `.claude/CLAUDE.md`.
- The ACTIVE-by-default user listing now has a cheap implementation (`status="ACTIVE"`), with the mandatory skipped-count disclosure unchanged — the count comes from comparing against an unfiltered `total`.
- Overflow-to-file survives only as a backstop: the first response is now a smaller `page_size`, not a dumped-file recovery.
- Sites updated: `.claude/CLAUDE.md` (design-decision block rewritten rather than layered, as that block itself instructed), `agents/realize-analyst.md` (tool entry + overflow-to-file paragraph), `skills/discovery/SKILL.md` (capability table + gotchas), `skills/manage-campaigns/SKILL.md`, `skills/manage-campaigns/references/mcp-write-surface.md` (tool row + failure-mode row), `tests/test-scenarios-read.md` (scenario 21 preamble).
- **Reporting is now the metamodel-driven dynamic report; two fixed report tools retired (breaking).** Upstream replaced `get_top_campaign_content_report` and `get_campaign_site_day_breakdown_report` with `get_dynamic_report_settings` + `get_dynamic_report_data` — any combination of the metamodel's dimensions (per the Realize UI's list: campaign, ad, day/week/month/quarter, country, region, DMA, site, platform, browser, OS — the account's live metamodel is authoritative) and metrics, with structured filters, server-side sort, and top-N paging. `get_campaign_history_report` survives, reframed per upstream as the campaign **change/audit log** (not performance data — previously documented here as a performance time-series). The dimensions previously unreachable from the plugin are now covered (country, platform, and OS validated on staging; browser and region per the UI's dimension list).
- **The two-step workflow is mandatory and documented everywhere the data tool is:** `get_dynamic_report_settings` first — it is the only source of valid fully-qualified column/filter names (account-specific; per-rule conversion metrics vary) — then `get_dynamic_report_data` with names copied verbatim. Dates are `date_preset` XOR `date_from`+`date_to`; `ACCOUNT_ID` and date filters are auto-injected.
- **The response banner drops the grand `Total`** (now `Records | Grain | pagination`), so the pagination stop-rule changed from "read `Total`" to "page until a short page", and skills state fetched scope instead of implying completeness. `knowledge/reporting-aggregation.md` was rebuilt around this, gaining the sum-vs-ratio / weighted-re-derivation rules the old version lacked, and a preference for server-side aggregation (request the grain you want; don't sum day rows client-side).
- **Staging-validated 2026-08-20 (10-question comparison, 20/20 runs, raw counters exact):** the behavior quirks found there are recorded as *staging-observed, re-verify at release*: CTR = clicks / **visible** impressions (differs from other surfaces — raw counters reconcile, rates may not), Week buckets start Sunday with labels that can precede the range, `SITE.NAME` 400s (use `SITE.DESCRIPTION`), and entity-attribute dimensions (bidding strategy, Ad CTA) returning unaggregated rows.
- **`get_campaign_breakdown_report` was NOT retired — it is live and documented as the GROUP / admin-network path.** Upstream disabled it with the other two on 2026-08-24, then restored it on 2026-09-02: the deprecation stranded GROUP and admin-network accounts (the dynamic report 403s on them) and produced a wave of 410s from hard-coded callers. It keeps its legacy banner with a grand `Total`, a flat key/value `filters` object, a `sort_field` limited to `clicks`/`spent`/`impressions`, and server-computed rate columns that must never be recomputed or averaged. The `reports` skill now routes on **account type first** rather than treating the 403 as an error to recover from.
- **Reporting account types documented:** the dynamic report serves PARTNER and NETWORK accounts; GROUP accounts and admin networks return 403 by design — route them to `get_campaign_breakdown_report`, don't retry, re-auth, or tell the user to pick another account.
- **Two dynamic-report constraints taken from the live tool descriptions:** `columns` accepts **at most 2 targeting sub-groups** (extras are silently dropped and named in the response; `filters` never count toward the limit, so a third targeting dimension belongs there), and `LIKE` filter values without a `%` are auto-wrapped as `%value%` upstream.
- **Every stale claim site updated in the same change** (per the stale-capability-claims policy): the agent's Tool Reference, examples, claim-validation list, CSV/sort/filter technical specs, and tool-existence boundary (now naming the two retired tools as off-surface, and `get_campaign_breakdown_report` explicitly as live); the `reports` skill and both its references; `optimize-campaign`'s dimension table; `campaigns`' top-campaign flow; `knowledge/reporting-aggregation.md`; `.claude/CLAUDE.md`'s diagram, CSV section, and a new design-decision note; `README.md`'s skills table; read Scenarios 5–9 and 11; `docs/realize-best-practices-gap.md`'s tool baseline; `tests/README.md`'s truncation note; and `knowledge/manifest.json`'s retrieval keywords. `tests/test-scenarios-dynamic-report.md` (the 10 prepared comparison questions) and `docs/reports-gaps.md` (with a migration status update) are committed alongside.
- **Independent review rounds also fixed pre-existing guidance the migration exposed** (bugs that predate this change but broke loudest under the new tool surface): `optimize-campaign`'s P1 pre-check and RCA Signal 1 had the history report's meaning inverted; Signal 4 demanded fired/matched ratios no tool exposes (now: attributed-conversions trend + `diagnose-tracking` handoff); auction insights, frequency, and SpendGuard state are now marked UI-sourced (ask the user, never fabricate); the action-prescription bullets routed MCP-writable fixes to UI paths (now: `manage-campaigns` writes); the sum-reconciliation gate's reference is now window-scoped (`get_campaign.spent` is lifetime — using it for a bounded window failed the gate by construction); and the **daily-spend ≥ 8× CPA goal floor** — promised by the agent, README, the capability baseline, and two test scenarios, but missing from the skill itself after an earlier rewrite — is reinstated in the data-sufficiency gates with its toolkit provenance.
### Added
- **`diagnose-tracking` skill — pixel-health diagnosis, previously an explicit refusal.** Adapted from an internal Taboola support team's pixel-diagnostics skill with everything internal stripped — no internal databases, no Salesforce intake, no internal config flags; adoption notes and the MCP capability asks are in `docs/2026-08-22-pixel-expert-adoption-plan.md`. The skill verifies the Taboola Pixel end to end from evidence a client can produce: it fetches the user's page (static install check), reads a user-captured HAR / `window._tfa` dump (runtime firing check, with copy-paste capture instructions written for a non-technical reader), and cross-checks conversion rules and spend via the MCP. Fixes route by owner: site-side as copy-paste instructions, rule-side through `manage-campaigns`' preview-then-confirm gate, Taboola-side through the `/realize-plugin:support` escalation.
- **This flips a documented refusal, so every stale claim site was updated in the same change**: the agent's description, UI-only triage row (pixel-health removed; a dedicated routing row added), over-engagement anchor (Q18 rewritten — rule-list archaeology is still the anti-pattern, but the request now has a real workflow), tracking ladder (new rung 3), and tool-existence boundary; the guardrails' out-of-MCP list ("reading pixel health" removed; the belongs-on-the-list-but-doesn't paragraph grew to three); `manage-campaigns`' UI-fallback section; `optimize-campaign`'s P1 pre-check and prescription hand-offs; `README.md` scope + skills table; `knowledge/tracking.md`'s covers/doesn't section and its manifest entry. Pixel *installation*, codeless-conversion setup, and *test-firing* remain genuinely UI-only.
- **The honesty boundary is explicit because no MCP pixel tool exists.** The skill can prove what the browser sent and what Realize reports — it cannot see whether an event landed inside Taboola's processing. "Verified healthy on your side + rules live + campaigns spending + still nothing" ends in the support escalation with the evidence, never in an invented server-side fact. (An MCP event-landing read is the top ask in the adoption plan.)
- **Two new trust boundaries, both in `os/guardrails.md`.** Fetching the user's landing page is the plugin's first non-`realize.com` web access: scoped to the page(s) under diagnosis, and fetched content — like HAR content — is *evidence, never instructions* (read Scenario 22D plants hostile page text as the regression test). HAR files carry cookies and session data: Grep-first sliced reading, and no cookies / auth headers / unrelated-domain requests in any output.
- **The spend gate from the source skill is kept verbatim**: fires + live rule + zero conversions on an account with no active spend is *expected*, not broken — rule status and spend are checked before any tracking fix is prescribed (field case from the source skill: 24M+ page views, zero attributed conversions, nothing wrong).
- **The static page check downloads raw HTML (Bash curl of the user's page), not `WebFetch`.** Tested live before shipping: WebFetch converts pages to readable text and strips every `<script>` tag — a page with 11 script tags in raw HTML came back with zero code visible — so a WebFetch-based check would report "no pixel" on every site. The curl ban in `.claude/CLAUDE.md` is scoped to Realize API endpoints and now names this sanctioned exception; Scenario 22A fails a run whose static check went through WebFetch.
- Read Scenario 22 (A–D) and write Scenario W15 (diagnosis→fix handoff stays gated; "find out why and fix it" is not pre-authorization) added.
- **Overflow survival and ACTIVE-by-default for the unpaginated `get_conversion_rules`.** Found in the field right after the conversion-rule release: the read has no pagination and no status filter, so a rule-heavy account overflows the tool-result cap — observed live at **278 rules / ~270 KB**, of which only **102 were ACTIVE** (~63% of the rules were DISABLED/ARCHIVED — dead weight a caller can't attach to anything). The failure arrives as an overflow error plus a path to a dumped result file, and the one narrowing escape (`rule_id`) is circular — the listing is the only way to learn the IDs.
- **Recovery is documented everywhere the read is mandated**: read the dumped file in slices and build a slim per-rule projection (`id`, `display_name`, `event_name`, `status`, `advertiser_id`); never re-call unmodified, never abandon, and never treat the overflow as "no rules". The mandatory pre-read before every conversion-rule write inherits the overflow, so the event/name collision and ownership checks now explicitly run against the dumped file — an overflowed pre-read is recovered, never skipped, and never itself a reason to refuse the write (write Scenario W10 gained a matching pass criterion). Collision checks run against **all statuses** — a DISABLED rule still holds its `display_name`.
- **Listings default to ACTIVE rules with a mandatory one-line disclosure** ("showing N active rules — M disabled/archived skipped, say if you want them"). Non-ACTIVE rules are included only on explicit request; skipping them *silently* is a fail (read Scenario 21, plus a new pass criterion on Scenario 20A).
- **Interim guidance**: upstream has a fix planned for pagination/status filtering on this endpoint. When it ships, this guidance is stale-capability-claims class — grep for "overflow" and "no status filter" and rewrite.
- **The repo is now its own plugin marketplace** (`.claude-plugin/marketplace.json`, marketplace name `realize`), so `/plugin marketplace add taboola/realize-claude-plugin` followed by `/plugin install realize-plugin@realize` works with no external catalog and no directory approval. Before this, adding the repo as a marketplace failed outright ("Marketplace file not found"), which pushed installs onto ad-hoc hosted catalogs whose cached entries survived the `realize-ads-api` → `realize-plugin` rename — a stale registration kept reporting *"installed realize-ads-api@realize"* on every reinstall (the install identifier comes from the marketplace catalog entry, not from the plugin's own manifest). `INSTALL.md` and `README.md` now carry the working commands plus one-time cleanup steps for machines with a pre-rename registration.
- **Conversion-rule management — the first account-level writes in the plugin.** Upstream shipped `create_conversion_rule`, `update_conversion_rule`, and `get_conversion_rules`; the plugin now wires all three. Tool counts go from 19 read + 6 write to **19 read + 8 write** (`get_conversion_rules` replaces `search_conversion_rules`, so the read count is unchanged). Users can create a conversion rule, change its attribution windows, add or change its revenue value, stop it counting toward Total Conversions, and retire it — all through the existing preview-then-confirm gate with the `▶ WRITE TARGET` header. Per the sync policy in `.claude/CLAUDE.md`, the writes route exclusively through `manage-campaigns` rather than the agent, so the gate cannot be bypassed.
- **No one-line confirm tier for conversion rules.** Every other write in the plugin scopes to one campaign or one item; a conversion rule feeds attribution and, when `include_in_total_conversions` is set, the account's Total Conversions — which Target CPA and Maximize Conversions bid against. One boolean flip moves reported performance and live bidding across every campaign on the account, so the preview must state that consequence rather than dumping a field diff. Retiring gets the full destructive tier.
- **The duplicate-event guard is the load-bearing new rule.** Only one ACTIVE rule may hold an event, so a create for a taken event is rejected — and the backend accepts it once the incumbent is DISABLED. That makes "disable the old rule, then retry" look like a legitimate recovery. It is the most damaging move available here: it stops conversion reporting for every campaign using the incumbent. The skill and `os/guardrails.md` both forbid taking it unilaterally; the model surfaces the choice, names the incumbent rule and ID, and waits. Scenario W12 fails the run if a write fires without the user choosing.
- **Merge semantics are inverted from campaign targeting, and documented as such.** Campaign targeting blocks are full-replace-within-a-section, which trains a read-and-merge reflex. Conversion rules partial-merge *everything*, including `condition` and `effects` — so sending a "complete" object overwrites fields nobody asked to change. Both the skill and the guardrails call this out explicitly because the wrong instinct is the trained one.
- **The read payload is not a valid update payload.** `get_conversion_rules` returns explicit nulls that fail validation plus seven fields the update tool has no parameter for (`id`, `advertiser_id`, `pixel_id`, `exclude_from_campaigns`, `external_id`, `partner`, `tracked_elements`). Echoing it back is the obvious thing to try, so it's named in the skill, the write-surface reference's failure table, and Scenario W11's pass criteria.
- **Unit trap documented: `look_back_window` is days (1–30), `view_through_look_back_window` is minutes (1–10080).** "A 7-day view-through window" is `10080`, not `7` — a silent error off by three orders of magnitude. Previews state the unit in the user's terms *and* the stored value; W10 fails on a `7`.
- Also covered: `type` / `category` / `event_name` immutable after creation (and the READONLY error may name `eventName` even when `type` was what changed, so don't chase the named field); `effects` values are numeric **strings**; `display_name` unique per account and must not contain `^`; there is **no delete tool**; DSP/pixel-based rules can be renamed and retired but their pixel binding stays console-only; and on a parent / NETWORK account the read also returns child accounts' rules, each tagged with its owning `advertiser_id` — check it before writing.
- **Ownership is not implied by the account you queried, and it runs both directions.** Found while QA-ing against a real account: `get_conversion_rules` on a child account returned 62 rules, **all 62 owned by the parent network** and none by the account queried. The initial note only described the parent→child direction. Both the skill and `discovery` now require reporting ownership rather than presenting results as "this account's rules", and block a write whose `advertiser_id` differs from the `▶ WRITE TARGET` account without explicit confirmation — because a network-attached rule with `include_in_total_conversions=true` moves Total Conversions for every child account under it.
- **The read surface returns rule kinds the write surface cannot express.** `type: "ENGAGEMENT"` rules, with `condition` properties `SESSION_DEPTH` and `TIME_ON_SITE`, come back from the read; the create/update schemas accept only `BASIC` / `EVENT_BASED` and `URL*` / `EVENT_PARAM_*`. So those rules are readable but not editable here, and resending `type` on one fails schema validation before it reaches the API. Documented so "I can see it, so I can change it" doesn't become a failed write.
- **Server-side write blocklist documented.** Hit live during QA: the MCP rejects every write on certain accounts by policy, independent of credentials or payload, while reads on the same account keep working. That combination reads exactly like a validation error, so the agent's error handling and the skill's gotchas now say explicitly: don't retry, don't start rewriting fields hunting for the bad one, and report it as an account-level platform restriction.
- Five write scenarios (W10–W14) with explicit side effects and cleanup, plus read Scenario 20 for the routing ladder. **W10–W14 remain unrun.** Two internal test accounts were tried and every write was rejected; the rejection names the account, but the operative policy (clarified 2026-08-22) is identity-based — **internal Taboola users are excluded from writes**, regardless of account. Running W10–W15 therefore needs a non-internal (client) user, not a different account; probing by attempting writes is not an acceptable search strategy.
- **A tracking routing ladder in `agents/realize-analyst.md`.** Tracking is the highest-traffic topic and the one whose capability line just moved, so it routes explicitly instead of by feel: live rule state → MCP; rule changes → the write gate; method selection and interpretation → `knowledge/tracking.md`; install mechanics the knowledge base doesn't carry → `web-fallback`; nothing available → transparency plus the AM/support redirect. `knowledge/tracking.md` gained a matching section stating what it covers and what it deliberately doesn't, so a reader stops looking there for platform install steps.
### Changed
- **Stale UI-only claims corrected — the plugin was sending users to the UI for work it can now do.** After upstream shipped the conversion-rule tools, the triage table, the tool-existence boundary, `README.md`, and the guardrails' out-of-MCP list all still listed conversion-rule creation and attribution-window changes as UI-only. Those are removed, and a dedicated triage row now routes conversion-rule work to `manage-campaigns`. What remains genuinely UI-only is the plumbing, now named specifically: pixel installation (Shopify / WordPress / WooCommerce / Google Tag Manager / manual), codeless-conversion setup, pixel test-fire, and DSP pixel binding. "Delete a conversion rule" maps to retiring it — a write, not a redirect. (Pixel-health *diagnostics*, listed as plumbing when this entry was written, later became a served capability — see the `diagnose-tracking` entry above.)
- **`search_conversion_rules` → `get_conversion_rules`.** The old name is deprecated upstream and **removed after 2026-11-01**; behavior is identical and both now accept a `rule_id` to narrow to one rule. Migrated in the `discovery` skill, the agent's Tool Reference, `knowledge/bidding.md`, `knowledge/targeting.md`, `manage-campaigns/references/mcp-write-surface.md`, `.claude/CLAUDE.md`'s architecture diagram, and `docs/realize-best-practices-gap.md`. Two behaviors worth knowing that the old docs never stated: the response covers **ACTION rules only** (pixel audience rules are excluded, so an empty result doesn't prove there's no pixel activity), and the read crosses the parent/child account boundary in **both** directions — see the ownership note above.
- Version bumped to **0.4.0** (`.claude-plugin/plugin.json`), Codex manifest to **0.2.0**, and the `X-Realize-Client` header in `.mcp.json` to match.
- **Plugin renamed** — `name` in both manifests (`.claude-plugin/plugin.json`, `.codex-plugin/plugin.json`) changed from `realize-ads-api` to `realize-plugin`, and a `displayName` of `Realize Plugin` added. Install commands, the skill-invocation namespace (`/realize-plugin:<skill>`), and doc titles updated to match. The GitHub repository name (`taboola/realize-claude-plugin`) and all repo URLs are unchanged. `Realize Plugin` is the approved short form of the "Realize MCP and Skills Plugin" naming (drops the Claude-specific framing since the plugin targets Codex too).
### Added
- **`web-fallback` skill — public-documentation fallback for questions the knowledge base doesn't cover.** The knowledge base is 12 topic files; an advertiser can ask hundreds of reasonable "how do I…" questions that land just outside them. Those previously got a thin answer from model priors or a shrug, and the first is worse than the second. Closes the help-center connection gap identified as top-priority in an internal capability review. The skill searches Taboola's public advertiser help documentation and answers with a *"here's what I found online"* framing.
- **A fallback, never a supplement.** It fires only on a real miss, and the miss is judged **per question, not per topic** — `knowledge/tracking.md` covers pixel-vs-S2S selection and validation, so *"which tracking method should I use?"* never reaches a lookup, while *"how do I install the pixel on Shopify?"* does. If the knowledge base answers the question and a lookup would only add detail, no lookup happens: once web content starts topping up good answers, the curated guidance stops being what users hear and the staleness problem the tiering exists to avoid arrives anyway.
- **On contradiction the plugin wins, silently.** A help article can lag the platform; the knowledge base reflects current behavior. The web version is discarded and the disagreement is not mentioned — surfacing it would invite the user to go chase the outdated answer.
- **The source is not named, and URLs are held until asked.** The answer says it came from online sources; it does not say *which* source. `os/guardrails.md` gains a *Carve-out: web-source URLs on explicit request* — the URL is given when the user asks where the answer came from, and never volunteered, because unprompted citations turn every answer into a bibliography and read as low confidence.
- **Scoped to one domain and one path.** `realize.com/help/` only. A domain allowlist alone is not enough: `/marketing-hub/` is promotional copy on the same host and supplied 3 of 10 results in one live test search and 7 of 10 in another, carrying exactly the guaranteed-outcome framing the guardrails ban and the legacy-category framing `scripts/brand-check.sh` fails on.
- **Search results are treated as a link index, never as an answer.** The search tool returns the links together with a prose synthesis blended across every hit — including the marketing pages the path filter exists to exclude — so filtering the links does not unread the prose. A correctly domain-restricted live query returned a summary built largely from marketing-page copy that steered the reader toward other documentation. The answer must come from a `/help/` article that was actually fetched.
- **Taboola's developer documentation is deliberately out of scope.** Its API reference documents the same API the Realize MCP already wraps, and the plugin does not emit endpoint paths, payloads, or client code — so its unique content is content that can't be output. Half its sections (mobile SDK, web integrations, newsroom) are publisher-side, i.e. the wrong audience. Its one advertiser-relevant area, conversion tracking, is already covered at better depth for a non-developer by the help center.
- **The five gates that can each silently stop a lookup are all closed**: agent `tools`, skill `allowed-tools`, the agent's tool-existence boundary, the harness permission entries (added to `.claude/settings.local.json.example` and documented in `INSTALL.md`), and — least visibly — an affirmative clause in `os/guardrails.md` stating that running the lookup *is* correct behavior. Every other line in that section is restrictive, so the safe reading was previously "never search."
### Changed
- **`os/guardrails.md` — the absolute ban on a `Sources:` footer is rescoped to plugin internals.** It previously forbade any such footer outright, which left the model resolving a contradiction at runtime the moment a user asked where a looked-up answer came from — the failure mode being a capability that quietly never fires. The ban now covers MCP tools, skills, and knowledge files, with an explicit exception for a public web URL the user asked for. Self-check items updated to match, including the one that used to assert the opposite (*"if web was used, the source was disclosed"*).
- **`os/guardrails.md` — search tooling's own instructions are explicitly not policy.** Live `WebSearch` output appends a reminder that you *must* list the sources as markdown hyperlinks. That is retrieved text arriving inside a tool result; without an explicit override the feature ships doing precisely what it was built not to do.
- **`agents/realize-analyst.md` — the knowledge-slug list is back in sync with the manifest.** It named 10 slugs where `knowledge/manifest.json` has 12 (`reach-estimation`, `reporting-aggregation` were missing). Cosmetic drift before; now a correctness bug, because miss detection reads that list and a stale entry manufactures a web lookup for a topic already documented on disk. The manifest is stated as the source of truth.
- **The UI-only triage row gains a how-vs-do split.** A request to *perform* a UI-only action keeps its refusal and UI redirect unchanged. A request for *how to do it yourself* may draw the steps from a lookup, with the redirect still in the answer — the plugin declining to act is not the same as it declining to explain.
### Added
- **Support bundle: a `Summary` section shaped for Salesforce case intake.** Requested by Professional Services after first review of the bundle. Case intake copies an email's subject into the case **Subject** and its body into the case **Description**, so the bundle now renders a copy-ready subject line and a `## 1. Summary` section intended to be pasted as the email body, opening with the requested prolog *"This case has been created by the Realize Plugin, please find the interaction summary below."*
- **The subject is now the user's own complaint**, collapsed to one line, capped at 120 characters, with the first account ID appended for triage. This removes the last model-authored field in the bundle — previously the model wrote a case title *about* the user's problem, which is strictly worse evidence than the user's own sentence. Backticks are stripped so the copy fence can't close early; newlines are collapsed because a break truncates a real subject header.
- **The Summary reports which tools and knowledge the plugin actually consulted** — Realize tools called, skills invoked, and knowledge files read (`knowledge/`, `os/`, `agents/`, `skills/**/SKILL.md`, `skills/**/references/`). This is what PS asked for and it answers a question the bundle previously could not: whether the plugin read the right guidance and still got it wrong, or never read it at all. Those are different bugs. Attribution is extracted from tool calls, never self-reported.
- **The Summary is mechanical, and says so in the file.** PS's request could have been satisfied with a model-written narrative of the session; it deliberately was not. The bundle exists for cases where the plugin misread the request, and a narrative composed by that same plugin reproduces the misreading in the one document meant to expose it. §1 carries counts, tool names, and file paths only, and closes with a line stating that and pointing at the verbatim transcript.
- Sections renumbered: `1. Summary`, `2. At a glance`, `3. What the user reported`, `4. Failed actions`, `5. Realize actions attempted`, `6. Full transcript`. `--title-file` is now the fallback for a run with no user description rather than the normal path.
- **The complaint is now redacted before it becomes the subject.** It stays the user's own wording — `redact()` only removes credential-shaped values, and its flat rule is `=`-only with a length floor so prose is untouched — but users paste error output they never read, and that text now travels into an email subject line. Applies to Section 3 as well.
- **Subject truncation no longer deletes the complaint.** `account_id` is an opaque API string with no length bound; with a long one, `slice(0, MAX - suffix.length - 1)` went negative and sliced from the *end*, replacing the user's entire sentence with a bare `…` in the subject describing their own problem. A `MIN_SUBJECT_TEXT_CHARS` floor now drops the account suffix instead — Section 2 still lists every account acted on.
- **`knowledgeRef` is anchored to the plugin root.** Unanchored, a user's own `~/Documents/os/notes.md` was reported as plugin guidance. A false entry is worse than none here: the section exists to tell "read the right guidance and still got it wrong" from "never read it", and a wrong entry answers that question incorrectly.
- A recorded `Skill` call is no longer also counted under "Other tools used", where it double-reported the same invocation.
- Test suite grows from 36 to **77 assertions** covering subject derivation (including that `$12.40` survives, that a pasted `Bearer` token does not, and that "Secret: Summer Sale" prose is not shredded), the over-long `account_id` regression, `knowledgeRef` root anchoring and its deliberate exclusions, skill/knowledge attribution through `analyze`, and a structural check that the rendered Summary contains no free prose line at all — asserted by line shape rather than a keyword blacklist, so a future edit can't slip a narrative past it with different phrasing.
- **`support` skill — user-driven support escalation, invoked as `/realize-plugin:support`.** Users run the plugin in their own terminal, so Taboola Professional Services has no visibility into these conversations; a "the plugin gave me the wrong number" report previously arrived with no evidence attached. The command packages the session into a single Markdown file the user emails to `Support@taboola.com`. Contents: a suggested case title, an at-a-glance diagnostic table (session ID, timestamps, turn counts, accounts/campaigns/items involved, actions attempted, **failed count**, plugin + Claude Code version, platform), the user's complaint verbatim, every failed Realize action with its parameters and error text, an ordered table of all actions attempted, and the full rendered transcript. Everything above the transcript is mechanically extracted by `skills/support/scripts/build-bundle.js` — deliberately never model-authored, so a plugin that misread the user can't carry that misreading into its own bug report.
- **Local-only by design.** The script writes one file (Desktop → Downloads → home) and prints the path. There is no upload path; transmitting is the user's decision.
- **Preview-then-confirm**, mirroring the `manage-campaigns` write gate: `--preview` reports what would be captured (including size and the account IDs involved) and writes nothing until the user confirms.
- **Redaction**: bearer tokens, `access_token` / `refresh_token` / `id_token`, `api_key`, `password`, `client_secret`, and JWTs are stripped — in both JSON (`"password": "…"`) and flat (`password=…`) form, since the actions table renders tool inputs as `key=value` where a JSON-shaped pattern never fires. Redaction runs *before* any length-shortening, so a credential can't be cut below the length the patterns match on. `account_id`, `campaign_id`, and `item_id` are deliberately **preserved** — PS cannot reproduce an issue without them.
- **User text is passed by file (`--complaint-file` / `--title-file`), never as a shell argument.** Under a quoted shell argument the complaint is rewritten before it is ever read: `$12.40` arrives as `2.40`, `$500` as `00`, and backticks or `$(…)` execute. Currency is ubiquitous in this domain and users paste error text they didn't author, so the evidence has to bypass the shell entirely.
- **Counts reflect the conversation, not the log.** The transcript stores tool results as `user` records and splits one reply across many `assistant` records, so naive counting overstated a 7-message exchange as 63 user turns and 51 replies. User messages now require a text block; replies key off `stop_reason: "end_turn"`; tool results are reported on their own line.
- **Failure is legible.** `main()` is wrapped so a write error yields a plain-language message and exit 1 rather than a Node stack trace exposing internal paths — the audience is a non-technical user already having a bad day.
- **Cloud-sync aware.** Desktop is preferred for findability, but an enterprise OneDrive-redirected Desktop would silently upload customer campaign data on write, contradicting the local-only guarantee. Synced folders are skipped, and the preview warns if only synced destinations exist.
- **Redaction is structural where the key is known.** The actions table matches on the parameter *name* rather than pattern-matching rendered text. An earlier regex-only approach that matched `secret:` / `authorization:` in prose shredded legitimate ad copy — "Secret: Summer Sale" became "Secret: `<redacted>` Sale" — which is the opposite of what an evidence bundle is for. The remaining flat-text rule is `=`-only with a length floor; the JSON rule covers the colon form.
- **Table cells collapse whitespace.** A newline inside any tool-input value (creative titles and descriptions routinely have them) previously ended the Markdown row early and corrupted every row below it.
- **Fails loudly, never falsely.** An unreadable `--complaint-file` / `--title-file` exits 1 without writing, rather than emitting a bundle that tells support *"The user did not add a description"* about a user who did. `--out` refuses to overwrite an existing file without `--force`. Transcripts above 256 MB are refused with an explanation instead of an out-of-memory crash.
- Truncation closes any code fence or `<details>` block the cut left open. Multi-line titles are collapsed so the case's subject line survives.
- **Refuses to write inside a git working tree.** The bundle holds customer campaign data and this repo is public, so a bundle written into it is one `git add -A` from publication. SKILL.md already said not to, but an instruction to the model is not a control — this is enforced in the script, with `--allow-git` as a deliberate escape hatch. The default destination now also skips git work trees (a dotfiles-managed home directory is one) and falls back to the OS temp directory.
- **Object-valued parameters are serialized in the actions table** instead of flattening to `[object Object]` via `String()`. Realize targeting blocks are objects, so the previous rendering told PS nothing about exactly the payloads whose failures are hardest to diagnose.
- **Path comparison is separator-normalized.** `path.join` yields backslashes while a hand-written `--out` usually has forward slashes; a raw compare meant the OneDrive warning silently failed to fire on precisely the folder it exists to catch.
- Auto-generated filenames that collide (two runs in the same second) get a numeric suffix rather than erroring; an explicit `--out` collision still refuses without `--force`. Header rows relabelled "acted on" — the IDs come from request parameters, so a session that only browsed results correctly shows none.
- **Truncation is tiered by how diagnostic the output is.** Realize responses get 20,000 characters; other tool output stays at 2,000. A report CSV usually *is* the case — "the CPA here disagrees with the UI" is answered by the rows behind the number — and under the previous uniform cap only ~13 of 250 rows survived, so the disputed row was typically the one missing. Bulk output from unrelated tools stays capped so the bundle remains email-attachable.
- **The git refusal no longer names its own override.** `--allow-git` still exists for maintainers but appears in neither the error message nor `SKILL.md`: the model that hits the error reads that message as its next instruction, and the correct next step is a different path, not a bypass on the one control between customer data and a public repo. Documented in `.claude/CLAUDE.md` only.
- The skill now deletes the scratch `complaint.txt` / `title.txt` after writing the bundle.
- **Shipped as one skill, not a command plus a skill.** An earlier split (`commands/support.md` routing into a `support-bundle` skill) registered *both* as invocable, so users saw two near-identical entries — `/realize-plugin:support` and `/realize-plugin:support-bundle` — with no way to tell which was correct. The thin command added nothing the skill could not do, so it was removed and the skill renamed to `support`. One feature, one entry. Caught during first live testing.
- **Invocation is `/realize-plugin:support`, not `/support`.** Plugin components are namespaced by plugin name. Every doc, the guardrails escalation footer users actually see, and the test scenarios said the bare form, which fails with `Unknown command`. Corrected across `README.md`, `INSTALL.md`, `os/guardrails.md`, the skill, and the scenarios. Caught during first live testing.
### Fixed
- **`INSTALL.md` / `README.md` local-dev instructions were unrunnable from inside the repo.** Both showed `claude --plugin-dir ./realize-claude-plugin` without a `cd`, so a user who had already cloned and entered the directory got a path resolving to `…/realize-claude-plugin/realize-claude-plugin`. That loads **nothing and prints no error** — the session starts normally and every plugin command returns `Unknown command`, which reads as a broken plugin rather than a bad path. Both now show `cd realize-claude-plugin` then `--plugin-dir .`, explain that the path is relative to the launch directory, and give the `claude --plugin-dir . plugin list` check (look for `realize-plugin@inline … ✔ loaded`) plus `plugin details` for the component inventory.
- **`skills/support/scripts/test-build-bundle.js`** — 36 dependency-free unit assertions over the redaction rules, table-cell safety, truncation, destination guards, and tool matching. Wired into `.github/workflows/validate.yml`. Written as a file rather than inline `node -e` on purpose: the rules under test are dense with backslashes, quotes, and dollar signs, and passing those through a shell produced two false review results — a "leak" and a "failure" that were both harness artifacts, not defects.
- **Session identification** uses `CLAUDE_CODE_SESSION_ID` rather than a newest-file heuristic; a project folder routinely holds several sessions, so the fallback is genuinely unreliable and the preview reports match confidence when it is used.
- Node-based (Node ships with Claude Code); no new dependency. Read scenarios `17` and `18` added to `tests/test-scenarios-read.md`.
- **`os/guardrails.md` — *Offer the support escalation path* section**, plus a carve-out under *Internal tools, skills, and infrastructure — never reference*. Without the carve-out the existing rules would have suppressed the feature: line-level bans on skill names, `@taboola.com` addresses, and local file paths each block a required part of the escalation message. The carve-out scopes the exception tightly to the `/support` command name, the `Support@taboola.com` alias, and the saved file's path — the ban on naming individual Taboola employees is untouched. The trigger rules separate hard triggers (a failed action, a reported mismatch against the Realize UI, an unresolved complaint) from judgment triggers (asking for a human, repeating a question, expressed doubt), cap the line at **once per conversation**, and forbid it on answers the user hasn't questioned — a support prompt on a working answer reads as low confidence. Adds a bullet to the silent self-check.
- **`os/guardrails.md` — *Publisher and site framing — measurable performance, not character* section.** New runtime rule sitting between *Privacy and brand-safety language* and *Performance framing*. Establishes the approved phrasing pattern for site / publisher recommendations (*"<Action> sites with <measured criterion> over <timeframe>"*) and ties it back to the existing frozen brand phrases (*Embedded publisher integrations*, *Code on page integrations*) so the rule reads as brand-voice extension, not a banned-word list. Adds a corresponding bullet to the silent self-check. Anchors to the brand-voice review by product leadership, June 2026.
- **`scripts/brand-check.sh` defense-in-depth FAIL patterns**: *Publisher-character framing* and *Rescue / salvage framing*. Catches qualitative judgments applied to publisher inventory in static markdown — runtime is governed by the guardrail above, this is the build-time net.
- **`os/guardrails.md` — *Reader framing — the operator, not a relay through them* section.** New runtime rule placed between *Publisher and site framing* and *Performance framing*. Encodes that the reader is the campaign operator (self-serve advertiser or the agency running campaigns on a brand's behalf) — not a Taboola Account Manager who will relay the answer to "the client". Approved patterns: second-person to the operator, neutral instructional voice, and possessive *"your client"* for the agency-on-behalf-of-a-brand case. Out of voice: relay posture (*"ask the advertiser to…"*, *"the client should…"*, *"set advertiser expectations"*, *"discuss with the client"*, *"how to communicate this to clients"*). Adds a corresponding bullet to the silent self-check. Anchors to the brand-voice review by product leadership, June 2026.
- **`scripts/brand-check.sh` defense-in-depth FAIL patterns**: *AM-relay framing* (verbs-at-advertiser, modal-at-advertiser, set-expectations, discuss-with, communicate-to-clients). Catches relay posture in static markdown; runtime is governed by the guardrail above. Tight enough that *"your Account Manager"*, *"client-side merge"*, and possessive *"your client"* are unaffected.
### Changed
- **`knowledge/site-management.md` opener**: *"blocking bad sites"* → *"excluding sites that underperform on the campaign's KPI"*. Removes the one upstream priming anchor in the knowledge layer that nudged generated output toward character-judgment vocabulary.
- **Knowledge-layer reader-voice sweep**: `knowledge/brand-safety.md` (13 phrasings + section retitle *"When an Advertiser Complains"* → *"Responding to a Brand-Safety Complaint"*), `knowledge/tracking.md` (14 phrasings + section retitle *"When the Advertiser Refuses Pixel or S2S"* → *"When Pixel or S2S Isn't an Option"* + inline label *"How to communicate this to clients"* → *"What to plan for"*), `knowledge/targeting.md` (Tier-1 caveat surfacing line, Predictive Audiences upsell phrasing, MRT-bundle vertical phrasing, Marketplace audiences row, pixel-retargeting and CRM-retargeting use-case bullets), `knowledge/environments.md` (Display short-burst pro tip, Apple News *"What to plan for"* block, Sponsored Content ↔ Display Expansion section retitle + 4 table-row rewrites + Overview cross-ref), `knowledge/bidding.md` (Overview line, attribution note ×2, FIXED-use trigger, Target CPA hard-ceiling phrasing, Enhanced CPC framing, budget-restriction guidance, CPA-spike conversion-event row, bid-ceiling note), `knowledge/creative.md` (Display add-format pro tip), `knowledge/budget.md` (short-burst definition — caught by the new linter), `knowledge/site-management.md` (approved-list dynamics ×2), `skills/manage-campaigns/SKILL.md` (Fixed Bid / MAX_VALUE budget-minimum rows, 1P-hosted display asset-hosting note). All rewrites stay in advertiser-direct second person or neutral instructional voice — no net-new content.
### Added
- **Publisher block-list edits unblocked through the plugin.** Previously refused as a UI-only domain in the agent's triage table (`agents/realize-analyst.md`). Now routed through `manage-campaigns` via the existing `update_campaign(publisher_targeting={type:"EXCLUDE", value:[<publisher_ids>]})` mechanism — no new MCP tool, just unlocked path. `manage-campaigns/SKILL.md` adds a "Publisher block-list edits — recipe" subsection covering the mandatory chain: `search_publishers` to resolve names → IDs, `get_campaign` to read existing block list, client-side merge (full-replace within the dimension is the silent-wipe gotcha), historical-top-N block guard, preview with side-by-side current/after view + resolved-name annotation, `update_campaign` write, `get_campaign` verify. New write scenario `W4b` in `tests/test-scenarios-write.md`. Upstream MCP enabling work landed Jun 15 2026 ("Add structured support: Block List via MCP" — Chris Hall) — see `docs/realize-best-practices-gap.md` §3.C for the closed-gap pointer and §3.G for the read-state-inspection pointer.
### Removed
- All references to the local stdio MCP fallback — removed from `README.md`, the `realize-analyst` agent, and the best-practices gap doc. The plugin documents only the auto-installed remote streamable-HTTP transport; the `realize-mcp` repo link is retained solely as a dependency pointer.
### Added
- **`.claude/settings.local.json.example` `permissions.allow` block for the 6 MCP write tools** (per-user opt-in; copy to gitignored `settings.local.json` to activate) (`create_campaign`, `update_campaign`, `create_native_item`, `update_native_item`, `create_display_item`, `update_display_item`): bypasses the Claude Code auto-mode classifier's false-positive on every write. The classifier compares the user-typed numeric account ID (e.g. `12345678`) against the opaque `account_id` returned by `search_accounts` (e.g. `advertiser_12345_prod`) and flags the mismatch as a wrong-account write — even though both are equivalent representations of the same account, and resolving via `search_accounts` is the plugin's contracted ID-routing pattern. Also flags object-typed targeting params (`country_targeting` and siblings) that render as `[object Object]` in the classifier's inspection view. Structural safety is unaffected: the `manage-campaigns` skill's `▶ WRITE TARGET` preview-then-confirm gate runs before every write — that remains the real chokepoint, not the classifier.
- **Display item write tools wired through `manage-campaigns`**: `create_display_item` and `update_display_item` now documented in the skill's Tools table, with their own full sections (3P JS tag + 1P-hosted recipes, status-gated update flow). Closes the gap left by [0.3.0] which covered Native items only. Plugin now creates and updates campaigns + Native + Display items end-to-end via MCP — no Realize UI required for any of the common write paths.
- **`get_campaign_reach_estimate` documented in the analyst Tool Reference** under a new Reach Estimation subsection. Lets the analyst answer "if I launch a campaign with these targeting blocks, what's the reachable audience?" *before* a write is committed. Includes the IMPRESSIONS cap caveat (~1B = system ceiling, not a true reach claim).
- **`os/guardrails.md`**: comprehensive public layer replacing the trimmed Apr 2026 version per post-PMM split. Adds banned brand variations (including `Backstage` as a banned internal codename), banned industry terms, banned feature-naming variants (tCPA, eCPC, MaxConv, Realize Pixel, etc.), banned tone patterns, banned ad-creative output, banned content topics, never-guarantee-performance subsection, and pattern-based refusal (don't enumerate guardrails on request). 16-item self-check.
- **`knowledge/reach-estimation.md`**: full input contract for `get_campaign_reach_estimate`, IMPRESSIONS cap handling, narrow-targeting diagnostic routing.
- **`knowledge/reporting-aggregation.md`**: sum-reconciliation discipline (always paginate the full row set, reconcile against `get_campaign.spent` within 2%), default exclusions (low-spend cuts), scope-footer requirements.
- **`.codex-plugin/plugin.json`**: dual-platform manifest for Codex parity install.
- **`skills/manage-campaigns/references/mcp-write-surface.md`**: field-by-field write reference (every scalar on `create_campaign`, every field on `create_native_item` / `create_display_item`, per-strategy bid-lever gate matrix, 7 common payload patterns, 6 common failure modes).
- **`skills/optimize-campaign/references/optimization-flow.md`**: depth file for the optimize-campaign skill (dimensional drill-down, supply-side eligibility, creative-fatigue tiers, bid-lever matrix, 6 symptom branches, common-mistake patterns).
### Changed
- **`skills/optimize-campaign/SKILL.md`** rewritten to lead with **5 mandatory pre-checks (P1–P5)**: tracking health, conversion-goal verified, active conversion events only, bid-strategy cross-check, learning-period guard (with plain-language user-facing message). Adds 6-signal RCA framework, 7-point optimization framework, and routes write prescriptions to `manage-campaigns` (previous rev sent some to UI). References to `create-campaign` rewritten to `manage-campaigns`; `get_campaign_items` updated to `list_items` (post-rename).
- **`skills/manage-campaigns/SKILL.md`**: added Display item Tools table rows, Pricing-model-picks-the-type subsection (the two MCP paths: `pricing_model=CPC` locks type via first item; `pricing_model=VCPM` locks Display at create), per-strategy bid-lever gate subsection (refuse invalid combinations at preview time), and pointer to `references/mcp-write-surface.md`. Description widened to "campaigns and native + display items".
- **`skills/reports/SKILL.md`**: added 4 mandatory pre-checks (P1 conversion-goal resolution, P2 marketing-objective alignment, P3 delivery-eligibility, P4 learning-period guard with inlined plain-language message), sum-reconciliation gate (paginate full set, reconcile within 2%), default exclusions (low-spend cut at $5 / 1% of window total).
- **`agents/realize-analyst.md`**: Tool Reference now documents 19 read tools (added `get_campaign_reach_estimate`) + 6 write tools (added `create_display_item`, `update_display_item`). Updated the count line and tool-existence-boundary paragraph. Tool-existence-boundary now explicitly calls out UI-only categories: Custom Rules, conversion-rule creation, CRM-segment upload, lookalike-seed creation.
- **Knowledge layer** section-merged six grown topics (`bidding`, `creative`, `targeting`, `campaign-structure`, `budget`, `site-management`):
- `bidding.md` — added bid-levers matrix per strategy, learning-period guard, Bid Ceiling for Maximize Conversions section.
- `creative.md` — Display recipe rewritten to lead with `pricing_model=CPC`, dropped Display-only / 3P-tag-only framing.
- `targeting.md` — added Tier-1 regions list, 6-dimension narrow-targeting diagnostic, small-market caveat, pixel-and-CRM retargeting routes, Realize+ Phase 1/Phase 2 context.
- `campaign-structure.md` — **fact correction**: removed stale "MCP creates Native only" claim. Both paths documented (`pricing_model=VCPM` → Display locked at create; `pricing_model=CPC` → type set by first item).
- `budget.md` — added depletion-investigation recipe, cross-period % share comparison, 7-day short-burst budget-split recipe.
- `site-management.md` — historical top-N publisher block guard (require explicit confirmation before EXCLUDE), approved-list dynamics.
- **`knowledge/custom-rules.md`** — standardized learning phase at **7–14 days** (was 7–10 in places). Aligned with the bidding and reports pre-checks.
- **`knowledge/manifest.json`** — added `reach-estimation` and `reporting-aggregation` topics; refreshed descriptions on the section-merged topics.
- **PMM-aligned brand language** propagated throughout: Maximize Conversions, Target CPA, Enhanced CPC, Taboola Pixel, Taboola First Party Audiences, Realize UI, advertiser requirements. `scripts/brand-check.sh` passes with 0 FAIL.
## [0.3.0] — 2026-05-15
### Added
- Wired the 4 upstream MCP write tools (`create_campaign`, `update_campaign`, `create_native_item`, `update_native_item`) via the new `manage-campaigns` skill. Plugin can now create and update campaigns and native items directly from natural language — no UI walkthrough required for the common write paths.
- Tiered preview-and-confirm pattern for destructive writes. Every preview block (all tiers) leads with a mandatory `▶ WRITE TARGET: <account_name> (<account_id>)` header so the user always sees which account is being mutated before approving. Lighter one-line confirm reserved for the lowest-risk path (item `is_active` toggles).
- Mandatory `get_campaign` pre-read on any `update_campaign` call that touches a targeting block (geo / device / OS / browser / connection / audience / lookalike / contextual / publisher / dayparting / conversion-rules). Skill merges client-side and renders `Current X → After update X` in the preview so the targeting full-replace semantics can't accidentally wipe dimensions the user didn't mention.
- Item-update status gating in `update_native_item` flow: REJECTED items are refused with a recreate-instead suggestion; RUNNING/PAUSED items accept only `is_active` + minor metadata; PENDING_APPROVAL items are fully editable.
- Create-with-launch flow: when the user explicitly says "and launch it" / "set it active", `is_active=true` is included in the `create_campaign` payload and the preview surfaces the launch intent in the same confirm gate. Default remains PAUSED when launch intent is not stated.
### Changed
- Agent `realize-analyst` Tool Reference: new **Writes** subsection documenting the 4 write tools with `destructiveHint` / idempotency posture. "Tool-existence boundary" paragraph rewritten — no longer excludes writes; routes them through `manage-campaigns`. Core Responsibility #6 rewritten from "refuse write operations" to "route write operations to manage-campaigns" while preserving the never-fabricate guarantee.
- `campaigns` skill: read-only, with a one-line cross-link directing write intent to `manage-campaigns`.
- `optimize-campaign` skill: prescriptions for pause / bid / budget / publisher block-list changes now cross-link to `manage-campaigns` for the MCP-backed application step. Creative variations and structural rebuilds remain UI actions.
- README "Available Skills" table: `create-campaign` row replaced with `manage-campaigns`. Scope blurb updated — the plugin now does read + write campaign/item management, with a UI fallback retained only for delete / duplicate / bulk ops.
- `tests/test-scenarios.md` split into two files: `tests/test-scenarios-read.md` (read-only paths; safe against any account) and `tests/test-scenarios-write.md` (destructive paths; require explicit test-account opt-in with per-scenario side effects and cleanup). The writes file opens with a banner clarifying that Realize has no non-prod environment; testers must name the team's designated prod test account at the start of the run. Filename itself is part of the safeguard.
### Removed
- The `create-campaign` skill is renamed to `manage-campaigns`. The UI walkthrough survives, trimmed, as a fallback reference inside the new skill for **delete**, **duplicate**, and **bulk operations** — the only campaign/item actions the MCP still does not expose.
- The 0.2.0 "Not in scope" note disclaiming the 4 write tools — now in scope.
## [0.2.0] — 2026-05-14
### Added
- New `discovery` skill — read-only lookups for targeting / audience / publisher / conversion / time-zone / CTA-type catalogs. Wraps 9 upstream tools: `search_geos`, `search_techno`, `search_audiences`, `search_lookalike_audiences`, `search_contextual_segments`, `search_publishers`, `search_conversion_rules`, `list_time_zones`, `list_cta_types`. Designed for inventory queries (*"what audiences are configured?"*) and forward name → opaque-code resolution (*"DMA code for Atlanta?"*).
- New `optimize-campaign` skill — data-driven diagnosis and recommendation loop grounded in Taboola's [official performance optimization guide](https://www.taboola.com/help/en/articles/3878108-how-to-improve-campaign-performance). Covers the 100+ clicks per item threshold, 8× CPA goal daily-spend rule, metric-combination prescription rules (CTR × CVR × CPA), and concrete UI-action recommendations with exact UI paths.
- Embedded the **realize-toolkit** as a knowledge layer. Plugin now ships `os/guardrails.md` (consolidated system-prompt: brand, tone, output structure, attribution, formatting, entity references), `knowledge/` (10 topic MDs: bidding, budget, brand-safety, campaign-structure, creative, custom-rules, environments, site-management, targeting, tracking, plus `manifest.json`), and `scripts/brand-check.sh` (linter, adapted to allow `item_id` as a public MCP parameter). Agent (`realize-analyst`) loads `os/guardrails.md` at session start and consults `knowledge/<slug>.md` for topic-specific Realize questions.
- Agent Tool Reference grew from 9 to 18 read tools. Grouped: Accounts / Campaigns / Items / Discovery / Reports / Auth.
- `tests/test-scenarios.md` — five new scenarios (12–16) covering `search_audiences`, `search_geos` (DMA by country), `search_publishers`, `list_time_zones`, `list_cta_types`. All verified PASS against live MCP at 2026-05-14.
### Changed
- **MCP tool renames** to match upstream realize-mcp surface: `get_all_campaigns` → `list_campaigns`, `get_campaign_items` → `list_items`, `get_campaign_item` → `get_item`. Updated across the agent, the `campaigns` / `optimize-campaign` / `create-campaign` skills, the test scenarios, and the gap-analysis doc.
- Consolidated the `os/` system-prompt layer from 4 files into 1. `os/tone.md`, `os/orchestration.md`, and `os/routing.md` were folded into `os/guardrails.md` (tone fully merged; orchestration's Output structure / brevity / scope-footer rules merged; routing dropped — Claude Code's skill-routing handles intent matching natively).
- Aligned signal-quality thresholds (100+ clicks per item, daily spend ≥ 8× CPA goal) with the realize-toolkit's operational guidance. Plugin previously used the official article's looser thresholds (500–1000 clicks, $50/day flat). Toolkit treated as authoritative.
- Aligned brand language with the Apr 2026 PMM brand guardrails: feature renames (Realize Pixel → Taboola Pixel; Marketplace Audiences → Taboola First Party Audiences), UI naming (Realize console → Realize UI), and removed "Taboola Realize" usage in favor of "Realize" alone.
- Added attribution + timeframe rule to `realize-analyst` agent and `reports` skill — every CPA / CVR / Leads / ROAS figure must specify both attribution basis (CT / VT / Total) and timeframe.
- Aligned creative-variation guidance with the realize-toolkit (`3 distinct titles + 3 unique images per campaign`), and ad-volume guidance (`4–6 ads per campaign, never more than 10`). Fixed Bid budget formula updated to "per client requirements" (toolkit treats Fixed Bid as fully manual).
- `create-campaign` skill rewritten with the exact setup flow from Taboola's [official setup guide](https://www.taboola.com/help/en/articles/10473049-setting-up-a-new-campaign): correct navigation (`Campaigns → +New → Campaign`), 5-value Marketing Objective enum, 3-value Bid Strategy enum with budget minimums (10× CPA for Maximize Conversions; 5× daily / 150× monthly for Enhanced CPC; Fixed Bid set per advertiser requirements), 100–200 clicks/day rule for non-conversion campaigns, 4–6 ads per campaign recommendation (never more than 10), 7–10 day learning phase, 24–48 hour review cycle, and explicit guidance against narrowing targeting at launch.
- Agent `realize-analyst`: added optimization-routing example, discovery-routing example, and responsibility line for discovery. Updated the create-campaign example to reflect the fuller setup flow.
- README: added `discovery` and `optimize-campaign` rows to skills table; expanded natural-language examples with optimization, discovery, and setup prompts; refreshed scope blurb to note that upstream writes exist but are intentionally not wired here.
- `CLAUDE.md` architecture diagram: added `discovery` skill row; updated tool count to 18 reads + 4 upstream writes (not enabled).
- `docs/realize-best-practices-gap.md` capability baseline: bumped from 11 tools to 18 reads; added Discovery / Resources rows; surfaced the 4 unwired upstream writes.
### Removed (from public layer, per Maayan review)
- Competitor-naming bullet in `os/guardrails.md` (names competitors — can't appear publicly).
- Four directional sections moved to `guardrails-private.md` (internal layer, outside this repo): Preferred messaging direction, Framing rules, Emotional tone matching, "What the assistant is not."
### Not in scope (superseded in 0.3.0)
- Upstream realize-mcp exposes write tools (`create_campaign`, `update_campaign`, `create_native_item`, `update_native_item`). At 0.2.0 the plugin intentionally did not enable writes — they were wired in 0.3.0 via the new `manage-campaigns` skill.
## [0.1.0] — 2026-04-24
### Added
- Initial scaffold: `.claude-plugin/plugin.json`, `.mcp.json` wiring the remote Realize MCP at `https://mcp.realize.com/mcp` via `type: http` (Claude Code's `.mcp.json` vocabulary for the streaming HTTP transport).
- `realize-analyst` orchestrator agent.
- Skills: `accounts`, `campaigns`, `reports` (with `references/report-fields.md` and `references/csv-examples.md`), `create-campaign` (UI walkthrough for actions not currently exposed as MCP tools).
- `tests/test-scenarios.md` — 11 manual QA scenarios.
- Governance docs: README, CLAUDE.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md.
- CI workflow: `.github/workflows/validate.yml` — JSON + YAML frontmatter validation.
SHA-256: bd49c434a3ab34b93db905793665b5a6655bfe08eecd34fa429d7689d04f1cce