Skip to content

docs(policies): document wide-option routing, cascades, and taxonomy anti-patterns - #30

Merged
ghchinoy merged 1 commit into
mainfrom
docs/mdm-cascade-and-tabular-outcomes
Nov 11, 2026
Merged

ghchinoy merged 1 commit into
mainfrom
docs/mdm-cascade-and-tabular-outcomes

Conversation

@jigyasujuneja

@jigyasujuneja jigyasujuneja commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Expands docs/policies/applications.md and docs/practitioners-guide.md (mirrored to docs-site/src/content/docs/ via scripts/docs_sync_page.py) with production patterns for wide-option routing, Stage 2 cascades, multi-slot retail catalog enrichment, and indirect prompt-injection quarantine:

  • docs/policies/applications.md §7: Documents 52-label readout (--labels az_aa | az_lower and "labels": "az_aa"), balanced 20-way bracket tournaments (--bracket-size 20 --catch-all final), and --shortlist-topk M on dgem systemone serve; per-policy held-out temperature fitting via scripts/policy_calibration.py (linking to ../confidence/calibrate-your-policy.md); and hesitation-gated Stage 2 escalation on dgem serve, MCP, Decision Studio, and dgem bench-*.
  • docs/policies/applications.md §8: Covers multi-slot retail catalog enrichment (noting "labels": "az_aa" for single-pass 32-option taxonomies vs. 2-pass dgem systemone serve brackets under default "az") and links templates/secops_rag_quarantine.json.tmpl alongside templates/rerank/listwise_decision_rerank.json.tmpl and templates/calibration/prompt_injection.json.tmpl.
  • docs/practitioners-guide.md §4: Adds an anti-pattern entry explaining why 2-level coarse-to-fine taxonomy slot tries underperform balanced 20-way bracket tournaments and --shortlist-topk.

Verification

  • python3 scripts/docs_sync_check.py -> PASSED: all 35 pages match
  • python3 scripts/docs_link_check.py -> PASSED: 0 broken relative links in 36 files

@jigyasujuneja jigyasujuneja changed the title docs(applications): add wide-option routing, parallel MDM cascades, and Tabular-MDM outcomes docs(applications): add wide-option tournament routing and retail catalog enrichment patterns Nov 4, 2026
@jigyasujuneja
jigyasujuneja force-pushed the docs/mdm-cascade-and-tabular-outcomes branch 2 times, most recently from 1df86d0 to a6b3685 Compare November 5, 2026 01:32
@ghchinoy

ghchinoy commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks for expanding docs/policies/applications.md! Before we can merge this, please address three CLI/documentation accuracy items (in both docs/policies/applications.md and docs-site/src/content/docs/policies/applications.md):

  1. §7 item 2 (dgem calibrate and per-type temperature claims):
    • There is no dgem calibrate CLI subcommand in dgem.
    • Fitting shared per-slot-type temperatures (T_noul, T_choice, T_score) across domains is not recommended (held-out evaluations show a single per-type temperature can worsen ECE depending on the policy). Please update this bullet to reference --temperature / per-policy "temperature" fitted on held-out labeled examples for that specific policy, and link to ../confidence/calibrate-your-policy.md.
  2. §7 CLI flag attribution:
    • dgem decide does not accept --labels, --bracket-size, --catch-all, --cascade-model, or --stage2-prior.
    • Please attribute --labels az_aa | az_lower and --bracket-size 20 --catch-all final specifically to dgem systemone serve, and attribute Stage 2 cascade options (cascade_mode, cascade_model, stage2_prior) to dgem serve (POST /api/decide), MCP (decide_policy / decide_custom_questions), Decision Studio, or the dgem bench-* harnesses.
  3. §8 single-pass 32-option & RAG guardrail details:
    • Under the default "az" label set (<= 26 options), a 32-option choice runs in 2 passes via /v1/systemone tournament brackets (and exceeds the 26-option limit on direct /api/decide calls unless "labels": "az_aa" is set in "schema"). Please either note "labels": "az_aa" for single-pass 32-option execution or decouple §8 from #26's template slot names until #26 lands.
    • Consider also linking templates/secops_rag_quarantine.json.tmpl alongside templates/rerank/listwise_decision_rerank.json.tmpl and templates/calibration/prompt_injection.json.tmpl for use-vs-mention indirect prompt-injection screening.

…anti-patterns

- Add §7 (wide-option routing via az_aa, brackets, and shortlists on dgem systemone serve + Stage 2 cascade gating on dgem serve, MCP, Studio, and bench-*) and §8 (retail catalog QA + indirect prompt-injection quarantine) to docs/policies/applications.md.
- Reference per-policy held-out calibration via scripts/policy_calibration.py and ../confidence/calibrate-your-policy.md, and use verified warm GPU latency figures.
- Add 2-level coarse-to-fine taxonomy slot trie anti-pattern row to docs/practitioners-guide.md §4.
- Sync docs-site/src/content/docs/ via scripts/docs_sync_page.py.
@jigyasujuneja jigyasujuneja changed the title docs(applications): add wide-option tournament routing and retail catalog enrichment patterns docs(policies): document wide-option routing, cascades, and taxonomy anti-patterns Nov 10, 2026
@jigyasujuneja
jigyasujuneja force-pushed the docs/mdm-cascade-and-tabular-outcomes branch from a6b3685 to f124599 Compare November 10, 2026 00:03
@jigyasujuneja

Copy link
Copy Markdown
Collaborator Author

Thanks for catching those CLI and calibration details @ghchinoy! Rebased onto main and updated both docs/ and docs-site/ via scripts/docs_sync_page.py:

  1. §7 item 2 (Calibration): Removed the non-existent dgem calibrate subcommand and shared per-slot-type temperatures (T_noul, T_choice, T_score). Updated item 2 to recommend fitting per-policy --temperature / "temperature" on held-out labeled examples via scripts/policy_calibration.py and linked ../confidence/calibrate-your-policy.md.
  2. §7 CLI Surface Attribution & Latency: Attributed --labels az_aa | az_lower, --bracket-size 20 --catch-all final, and --shortlist-topk M to dgem systemone serve, and attributed Stage 2 cascade options (cascade_mode, cascade_model, stage2_prior) to dgem serve (POST /api/decide), MCP (decide_policy / decide_custom_questions), Decision Studio, and dgem bench-*. Updated Stage 1 GPU latency figures to match the benchmarked warm Vertex AI G4 (~135 to 185 ms) and Cloud Run GPU (~185 to 265 ms) ranges.
  3. §8 32-Option Taxonomy & RAG Quarantine Links: Documented both "labels": "az_aa" in "schema" for single-pass 32-option execution and 2-pass dgem systemone serve bracket routing under the default 26-letter "az" label set, aligned slot names with feat(templates): add retail catalog QA, 32-way taxonomy, and merchandising policies #26, and linked templates/secops_rag_quarantine.json.tmpl alongside listwise_decision_rerank.json.tmpl and prompt_injection.json.tmpl. Also added the 2-level taxonomy trie anti-pattern row to docs/practitioners-guide.md §4.

@ghchinoy
ghchinoy merged commit 73d552b into main Nov 11, 2026
16 checks passed
@ghchinoy
ghchinoy deleted the docs/mdm-cascade-and-tabular-outcomes branch November 11, 2026 14:56
ghchinoy added a commit that referenced this pull request Nov 11, 2026
…3-refs

docs: fix evaluate.md matrix anchor after #30/#61 and align v0.4.3 refs
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.

2 participants