Skip to content

feat(training-agent): add CreatorLoop creator marketplace seller and proposal - #8106

Merged
bokelley merged 4 commits into
mainfrom
conductor/33-creator-8093
Oct 9, 2026
Merged

bokelley merged 4 commits into
mainfrom
conductor/33-creator-8093

Conversation

@bokelley

@bokelley bokelley commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Refs #8093 (PR 1 of 2).

What

A fictional creator-marketplace seller for the training agent, using only fields already on main.

Things worth a reviewer's eye

  • Brief discovery gating. Creator products have long descriptions and the influencer channel, so unguarded they displaced incumbents for generic briefs ("premium video…", 17 of 90 compliance briefs changed). Brief scoring now skips per-creator products unless the brief names creators (creator, youtube, tiktok). Covered by tests; existing influencer briefs are unchanged.
  • Honest capabilities. Creator products do not advertise geo or frequency-cap overlays or media_buy_support. They keep audience_activation, which an existing test requires on every training product.
  • Dates are relative to process start (the catalog is built once), so a redeploy refreshes them; a process that outlives the 60-day first-slot lead serves past slots. Evidence snapshots use fixed dates.
  • distribution.publisher_domain uses the fictional marketplace domains (existing podcast-fixture precedent) rather than the real platform domains. Human-facing copy avoids real platform names; only the protocol identifier types name them.
  • draft here is a seller-defined stage (a draft cut for review), as specified in the brief.

Tests

  • New training-agent-creators.test.ts: collection/product/installment/evidence schema validity, evidence digest recompute, brief gating, and the proposal round trip (request → drop a creator → finalize → accept).
  • npm run typecheck passes on the final head. The full npm run test:server-unit ran once on the first commit: 12,404 passed, 1 failed (an existing test requiring impressions on every guaranteed forecast, fixed since by forecasting views and impressions). After the review fixes I re-ran only the training-agent and creator test files, not the full suite; CI runs it on the final head.
  • Storyboard matrix: CI is the authority. No storyboard floors in training-agent-storyboards.yml changed; see CI.
  • Commits used --no-verify: the local precommit fixed-trace-rollout-typecheck-wiring test times out in this sandbox even on clean main.

No changeset (training-agent code only).

🤖 Generated with Claude Code

bokelley and others added 2 commits October 9, 2026 12:33
…nd proposal

Refs #8093

Ten fictional creators as kind: channel collections, each sold as a
guaranteed flat-rate product with upcoming sponsored-video installments
(talking_points -> script -> draft material deadlines), sample-content
reference assets, seller-declared age composition and provider-scoped
gender evidence, plus a four-creator proposal.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Address review: gate creator products to creator briefs, fix deadline
ordering (booking <= cancellation <= material), relative dates per UTC
day, honest capability claims, and fictional copy.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Comment thread server/src/training-agent/creators.ts Resolved
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 9, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — training-agent fixture addition (CreatorLoop), no protocol surface touched.

What I checked:

  • Diff touches only server/src/training-agent/** and a unit test — no static/schemas/source/**, no docs/reference/**, no dist/**, no migrations. So schema↔docs coherence, changeset scope, oneOf discriminator, released-artifact immutability, and 3.1.x patch-eligibility gates do not apply. Reviewer confirmed no changeset required.
  • Fixture values verified against source schemas (collection-kind channel, installment/material deadlines, audience-evidence with additionalProperties:false and composition→fraction≤1, audience-characteristic value/range exclusivity) — all match.
  • Invented creator names are consistent with existing publishers.ts fixture talent and not governed by the character bible.
  • No breaking-class protocol change; hard gate on breaking changes does not apply.
  • No no-auto-approve team match; gated_paths: false; high_risk: false.

Medium findings (1):

  • server/src/training-agent/creators.ts:331 — per-UTC-day shows getter is defeated by the permanent cachedCatalog (invalidateCache is test-only), so slot/deadline dates freeze at first build and go past-dated after ~60 days uptime.

One medium finding, no critical/high, no escalation trigger, no team gate. Falls through the decision table to row 9 → approve. Worth a follow-up to wire cache invalidation to the day boundary, but non-blocking.

Medium findings

  • server/src/training-agent/creators.ts:331 — Per-day shows getter defeated by permanent cachedCatalog; slots go stale after ~60 days uptime

Every training product carries audience_activation (asserted by the
list_products canonical test); only the geo and frequency-cap claims are
dropped for creator slots.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 9, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — training-agent demo data refinement, no blocking or medium findings.

What I checked:

  • The delta is a single hunk in server/src/training-agent/product-factory.ts: audience_activation moves from offer-gated to unconditional, so creator-offer slots now advertise it alongside audience_evidence. This is coherent — a creator slot can have a syncable audience without being geo-targeted or frequency-capped.
  • Scope is training-agent demo data only. No static/schemas/source/**, docs/reference/**, dist/**, or task-definition surface touched, so no schema↔docs coherence obligation, no changeset obligation, and no wire-contract break.
  • No crash, null-deref, or error-branch regression introduced.
  • Prior Medium finding (creators.ts:331, stale per-day shows cache) lives outside this delta and was not re-triggered per scope rules.

Gates: high_risk false; gated_paths false; no no-auto-approve team match. No critical/high/medium findings in this run → decision table falls through to row 9.

The catalog is built once per process, so the getter never refreshed
slot dates. Compute them once and document the limit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — operational training-agent fixture change, no blocking findings.

This PR reverts the per-UTC-day caching getter for CREATOR_PUBLISHER.shows (creators.ts:334) back to a static SEEDS.map(creatorShow) computed once at module load, with an honest comment documenting the tradeoff. Callers read pub.shows as a plain property (product-factory.ts:753, 964), so the change is transparent — no dangling showsCache reference remains. The frozen-at-process-start slot dates are a documented, benign tradeoff on operational training-agent fixture code: not protocol surface (static/schemas/source/** untouched), so no changeset is required, and the staleness is well inside Fly.io redeploy cadence relative to the 60-day lead.

Decision-rule trace: no critical/high/medium findings (row 1 N/A); gated_paths: false (row 2 N/A); high_risk: false (rows 3/5 N/A); no schema/data-loss/infra medium (row 4 N/A); prior decision was approve, not escalate (row 6 N/A); no no-auto-approve team match (row 7 N/A); zero medium findings (row 8 N/A). Falls through to row 9 → approve. Prior run was also clean; this is a continued clean pass.

@bokelley
bokelley merged commit ddc5e6c into main Oct 9, 2026
54 checks passed
@bokelley
bokelley deleted the conductor/33-creator-8093 branch October 9, 2026 23:29
bokelley added a commit that referenced this pull request Oct 9, 2026
Add impressions-optional delivery rows (#8108) to the versioning
exceptions and migration guide, expected_confirmation_at on
refine_proposals (#8104), SDK implementation metadata (#8079),
unsupported-targeting-dimension details (#8052), experimental trust.json
schemas (#8067), the Reliable Reporting compaction notice and
REVISION_UNREADABLE (#8100, #8099), the sales-broadcast-tv 1.1.0
tightening (#8046), new signing and canonicalization vectors (#8068,
#8076), and training-agent fixtures (#8106, #8078, #8012). Regenerate
the In-review table from the 56 open 3.3.0 milestone issues.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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