Skip to content

docs(skills): close three #1496 follow-up review items + seller adapter format slot sweep - #1515

Merged
bokelley merged 2 commits into
mainfrom
bokelley/skill-anchors-when-to-read
May 3, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/skill-anchors-when-to-read

Conversation

@bokelley

@bokelley bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes three single-reviewer items deferred from PR #1496 expert review, plus a related sweep on the seller-non-guaranteed format catalog.

Item Reviewer (round 1) Status
Cross-cutting anchor links docs-expert (deferred) ✅ TOC at top of cross-cutting.md
Specialism subpages "when to read" framing docs-expert (deferred) ✅ Reframed seller bullets as specialism → when → what
signal-owned deletion-fork seam list dx-expert (deferred) ✅ Concrete "what to delete + keep" block
Seller adapter format slot declaration (sweep) ✅ Added assets[] to hello_seller_adapter_non_guaranteed.ts

What changed

skills/cross-cutting.md — Added a "Quick reference" TOC at the top mapping each rule to its slug-anchor. Skills + PR reviews can now deep-link to specific rules instead of pulling the whole 73-line file. Adopters land on a 5-line block.

skills/build-seller-agent/SKILL.md — Specialism subpage bullets reframed as specialism → when to read → what's in it. Each entry leads with the trigger (e.g., "read before coding if you claim sales-guaranteed", "read if your inventory clears at request time"). Adopters triage to the right subpage in one pass.

skills/build-signals-agent/SKILL.md — signal-owned deletion-fork now names concrete symbols:

  • Replace the multi-provider UpstreamCohort seed with single-provider catalog
  • Strip the (data_provider_domain, data_provider_id) filter paths in getSignals
  • Set signal_type: 'owned' (not 'marketplace'); reserve 'custom' for non-user-identity signals
  • Drop the marketplace-discovery sub-scenario in storyboard runs

Plus a "Keep" list so adopters don't accidentally delete createTenantStore, agentRegistry, or the platform/agent activation polling logic. Mirrors the convergent governance + brand-rights deletion-fork pattern from #1496.

examples/hello_seller_adapter_non_guaranteed.ts — Spotted while sweeping for related drift: listCreativeFormats returned formats with no assets[] declarations, so buyers calling sync_creatives had no spec-aligned slot list per creative-manifest.json:14. Added input slots — image + click_url for display formats, video + click_url for video formats — using the same FormatAsset.{image,video,url} builder pattern as #1511. Pure additive.

Test plan

  • npm run compliance:fork-matrix — 23/23 in ~15s
  • npm run typecheck clean
  • npm run format:check clean

🤖 Generated with Claude Code

bokelley and others added 2 commits May 3, 2026 16:31
…er format slot sweep

Three single-reviewer items deferred from #1496 expert review, plus a related
sweep on the seller-non-guaranteed format catalog.

- skills/cross-cutting.md — Added "Quick reference" TOC at the top mapping
  each rule to its slug-anchor. Skills + PR reviews can now deep-link to
  specific rules instead of pulling the whole file (docs-expert deferred).

- skills/build-seller-agent/SKILL.md — Specialism subpage bullets reframed
  as `specialism → when to read → what's in it`. Adopters cold-reading
  the skill triage to the right subpage in one pass instead of skimming
  what's-about-it bullets that don't say when to use them (docs-expert
  deferred).

- skills/build-signals-agent/SKILL.md — Added "What to delete if you're
  single-specialism `signal-owned`" block naming concrete symbols (the
  UpstreamCohort multi-provider seed, the `(data_provider_domain,
  data_provider_id)` filter paths, signal_type values, marketplace
  governance sub-scenario) plus a "Keep" list so adopters don't
  accidentally delete tenant isolation. Mirrors the convergent
  governance + brand-rights fix from #1496 (dx-expert deferred).

- examples/hello_seller_adapter_non_guaranteed.ts — Spotted while sweeping
  for related drift: listCreativeFormats returned formats with no `assets[]`
  declarations, so buyers had no spec-aligned slot list for sync_creatives
  manifests per creative-manifest.json:14. Added input slots (image +
  click_url for display, video + click_url for video) using FormatAsset
  builders from @adcp/sdk. Pure additive.

Validated: fork-matrix 23/23, typecheck + format clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Two single-reviewer polish items:

- skills/build-signals-agent/SKILL.md fork-target table cell — replaced
  "Fork the marketplace adapter; collapse the multi-provider seed"
  ("collapse" residual jargon) with explicit pointer to the deletion list:
  "Fork the marketplace adapter; see deletion list below". Anchor link
  matches the H3 slug.
- Aligned the H3 ("delete") with the callout body ("delete or replace
  these seams") so a single-specialism reader scanning for "delete" lands
  on actionable language.

Also kept docs-expert's flagged minor redundancy (`signal_type: 'custom'`
clarification appears in both the deletion list and the deltas-at-a-glance
block) — DX explicitly said "file a follow-up; don't block on it." This
PR ships clean.

fork-matrix 23/23, typecheck + format clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@bokelley

bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

Expert review summary (one round, three reviewers)

Verdict: ship. No convergent blockers.

  • code-reviewer: all clean — slugs match GFM rules, every named symbol exists in the source, FormatAsset shared-array aliasing is safe, typecheck clean.
  • docs-expert: all three deferred items land. Build-* skills still link cross-cutting.md bare without anchors — defensible follow-up since the new TOC at the top means an agent reading the file self-navigates.
  • dx-expert: persona-checked from a 1P retail data team. Symbol names grep cleanly. Flagged two polish items addressed in commit 19dfc4d0:
    • Line 15 table cell still had "collapse the multi-provider seed" jargon — replaced with explicit pointer to the deletion list anchor
    • H3 ("delete") and callout body ("replace these seams") wording aligned to "delete or replace"

Minor redundancy DE+DX both noted (signal_type: 'custom' clarification appears twice, ~30 lines apart) — DX explicitly said "file a follow-up; don't block on it." Tracking as a SHAPE-GOTCHAS candidate.

Final state: fork-matrix 23/23, typecheck + format clean.

@bokelley

bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

Acknowledged — three-reviewer verdict is ship, no blockers. The signal_type: 'custom' redundancy is noted as a SHAPE-GOTCHAS follow-up candidate and won't block merge. PR is ready for review.


Generated by Claude Code

@bokelley
bokelley merged commit 0874aa0 into main May 3, 2026
10 checks passed
bokelley added a commit that referenced this pull request May 3, 2026
Pulls in 4 commits:
 - docs(skills): close three #1496 follow-up review items + seller adapter format slot sweep (#1515)
 - docs(migration): add recipe #10b for derived-mode account_id refusal (#1492) (#1512)
 - fix(codegen): preserve asset_type discriminator on Individual*Asset slot types (closes #1498) (#1514)
 - fix(examples): wire assertMediaBuyTransition into hello_seller_adapter_non_guaranteed (closes #1499) (#1513)

Conflict resolution:

- src/lib/types/core.generated.ts: kept the 3.0.6 generation header from
  HEAD; ran `npm run generate-types:all` against the local mirror to
  pull in main's #1514 codegen fix (asset_type discriminator preserved
  on Individual*Asset slots) layered on top of 3.0.6 schemas.
- test/examples/hello-seller-adapter-non-guaranteed.test.js: kept main's
  empty allowlist + new helper-shape conditional. Main's #1513 closes
  #1416 by actually wiring `assertMediaBuyTransition` into the
  non-guaranteed adapter — superseding the follow-up note my branch
  carried.

Verified post-merge:
- npm run build clean
- 6/6 hello-adapter tests for the modified files green
- npm run format:check clean

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
bokelley added a commit that referenced this pull request May 3, 2026
…cutting anchors (#1519)

* docs(skills): SHAPE-GOTCHAS §7 signal_type + build-* deep-link cross-cutting anchors

Two follow-ups from PR #1515 expert review.

SHAPE-GOTCHAS §7 (skills/SHAPE-GOTCHAS.md):
- Added decision table for signal_type: marketplace / owned / custom per
  schemas/cache/3.0.5/enums/signal-catalog-type.json. Covers the most-common
  adopter mistake — first-party data agents (Kroger 84.51°, Walmart Connect,
  publishers) mis-classifying their segments as 'custom' when they have a
  standing data asset behind them (it's 'owned'). 'custom' is reserved for
  per-call agent-native segments without standing provenance.
- Replaced both duplicate inline clarifications in build-signals-agent/SKILL.md
  (lines 25 and 61) with pointers to §7 (DX + DE convergent: known footgun
  better captured as SHAPE-GOTCHAS than skill-prose repetition).

Build-* skill deep-links (DE deferred from #1515):
- Each build-*-agent/SKILL.md "Cross-cutting rules" section now lists the
  high-traffic rules with anchor deep-links to the specific cross-cutting.md
  rule (e.g., seller links [idempotency_key](../cross-cutting.md#idempotency_key-...)
  directly). Adopters land on a 5-line block instead of pulling the full
  73-line file.
- 8 skills updated: seller, creative, signals, governance, brand-rights,
  generative-seller, retail-media, si, holdco. Each surfaces 3-5 rules most
  relevant to that adopter persona; bare cross-cutting.md link kept as
  "read it once cold" pointer.

Validated: fork-matrix 23/23, typecheck + format clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

* docs(seller): drop unique tail-line for symmetry across the 9 build-* skills

docs-expert noted the seller skill alone carried the trailing "Read the file
once cold; deep-link from your code reviews afterward." line; the other 8
skills end the cross-cutting section right after the bullet list. Dropped
for symmetry — wording-only nit.

Validated: format check clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@github-actions github-actions Bot mentioned this pull request May 3, 2026
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