Repository navigation
feat(templates): add retail catalog QA, 32-way taxonomy, and merchandising policies - #26
Merged
Merged
Conversation
jigyasujuneja
force-pushed
the
feat/prior-fusion-and-shortlist-routing
branch
from
November 4, 2026 00:36
51bf787 to
f0cf8ce
Compare
jigyasujuneja
force-pushed
the
feat/prior-fusion-and-shortlist-routing
branch
from
November 4, 2026 15:49
f0cf8ce to
2ed90ee
Compare
jigyasujuneja
force-pushed
the
feat/prior-fusion-and-shortlist-routing
branch
from
November 4, 2026 16:16
2ed90ee to
99d8b76
Compare
Collaborator
|
Thanks for putting together the retail catalog templates! Before we can merge this and run live gateway template validation on them, a few schema and calibration items need to be fixed:
|
…ising policies
- Add canonical templates/retail/{retail_catalog_qa,retail_deep_taxonomy,retail_merchandising_compliance}.json.tmpl with schema-scoped layout/isolate, list-form options, string score levels, and labels="az_aa" on the 32-option google_product_category policy.
- Add companion .examples.json sidecars (typical with unambiguous=true and expected_answers, edge, minimal) for Studio and template regression tests.
- Wire "retail/"+base into resolveTemplateFile and "product" into defaultSampleVars in cmd/serve.go, with unit tests in cmd/template_resolve_test.go and pkg/template/mm_render_test.go.
jigyasujuneja
force-pushed
the
feat/prior-fusion-and-shortlist-routing
branch
from
November 9, 2026 23:58
99d8b76 to
5ad06b8
Compare
Collaborator
Author
|
Thanks for the detailed review @ghchinoy! Rebased onto
|
ghchinoy
approved these changes
Nov 11, 2026
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebased onto
mainafter #45 mergedpkg/decisionindexshortlist routing, cosine prior normalization, and label-set plumbing. This PR now cleanly delivers the three production retail policy packs undertemplates/retail/, companion Studio/regression fixtures, and gateway template discovery wiring:templates/retail/retail_catalog_qa.json.tmpl(+.examples.json): 4-slot SKU quality assurance policy (auto_publish_approved,title_spec_conflict,primary_defect_action,seo_readiness_score).templates/retail/retail_deep_taxonomy.json.tmpl(+.examples.json): 4-slot catalog classification policy using"labels": "az_aa"insideschemaso the 32-optiongoogle_product_categoryslot resolves in a single/v1/structuredpass alongsideprimary_material,price_tier, andgift_eligible.templates/retail/retail_merchandising_compliance.json.tmpl(+.examples.json): 4-slot storefront readiness policy (brand_safety_compliant,primary_department,target_season,catalog_completeness_score).cmd/serve.go): Adds"retail/" + basetoresolveTemplateFileand"product"sample input todefaultSampleVars.Verification
env -u DGEM_VERTEX_URL go test -race ./cmd/... ./pkg/...(TestAllShippedTemplatesRenderAndValidate,TestRetailTemplatesRender,TestResolveTemplateFileValidNames, andTestDiscoverTemplatesCatalogAndSampleVarsall pass).dgem deciderendered wire payloads for all three retail templates againstdeploy/cloudrun/server/structured_server.pyparse_schema.