Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
380 commits
Select commit Hold shift + click to select a range
f35939f
subscriber_retention: deploy the model, train the GNN, query the chur…
chriscoey Nov 14, 2026
991248f
Split the disease-outbreak-prevention model into schema, source, and …
chriscoey Nov 14, 2026
6c7116a
Split the factory_production model into schema, source, and reasoning…
chriscoey Nov 14, 2026
1cf5dbd
Split the synthetic_order_lifecycle model into schema, source, and re…
chriscoey Nov 14, 2026
a146348
Split the humanitarian-aid-supply-chain model into schema, source, an…
chriscoey Nov 14, 2026
2c1d2eb
Split the defect_root_cause model into schema, source, and reasoning …
chriscoey Nov 14, 2026
4f5b961
Split the wildlife-conservation-network model into schema, source, an…
chriscoey Nov 14, 2026
098fe5d
Merge remote-tracking branch 'origin/coey/templates-relationalai-2.1'…
chriscoey Nov 14, 2026
ac4ef66
Split the book_slate_recommendation model into schema, source, and re…
chriscoey Nov 14, 2026
7f3c8eb
Print the financial_index_replication solve result and import in ruff…
chriscoey Nov 14, 2026
cba5c17
Split the entity_resolution model into schema, source, and reasoning …
chriscoey Nov 14, 2026
6a7c07b
Merge remote-tracking branch 'origin/coey/tpl-conform-b3' into coey/t…
chriscoey Nov 14, 2026
b486db2
Merge remote-tracking branch 'origin/coey/tpl-conform-b2' into coey/t…
chriscoey Nov 14, 2026
e4c7118
Merge remote-tracking branch 'origin/coey/tpl-conform-b1' into coey/t…
chriscoey Nov 14, 2026
e3a9c99
Merge remote-tracking branch 'origin/coey/tpl-fraud-nb' into coey/tem…
chriscoey Nov 14, 2026
e0971aa
Merge remote-tracking branch 'origin/coey/templates-relationalai-2.1'…
chriscoey Nov 14, 2026
842a1cc
energy_grid_planning: deploy the model and query the report
chriscoey Nov 14, 2026
6bf67ae
telco_network_recovery: deploy the model, train the GNN, query the plan
chriscoey Nov 14, 2026
06b2018
fraud-detection: deploy the model, train the GNN, query the audit queue
chriscoey Nov 14, 2026
4b25019
Merge remote-tracking branch 'origin/coey/templates-deploy-mode-2.1' …
chriscoey Nov 14, 2026
a518679
datacenter_compute_allocation: deploy the model, train the GNN, query…
chriscoey Nov 14, 2026
638c2cf
Merge remote-tracking branch 'origin/coey/tpl-gnn-g1' into coey/templ…
chriscoey Nov 15, 2026
71945f1
Merge commit 'a518679' into coey/templates-deploy-mode-2.1
chriscoey Nov 15, 2026
c5e4ccb
Fix template page anchors and mark fraud-detection as deployed
chriscoey Nov 15, 2026
766a365
Stop reports on a missing solution and default empty totals to zero
chriscoey Nov 15, 2026
4af9872
Show deployment prerequisites on template pages and fix stale docs
chriscoey Nov 15, 2026
3546364
Ask for path and tower counts in telco's call-path runbook step
chriscoey Nov 15, 2026
69551a2
Publish energy_grid_planning's marginal value and knee point as rules
chriscoey Nov 15, 2026
12acac3
Say plainly when entity_resolution and product_configurator have no s…
chriscoey Nov 15, 2026
5fb698a
Mark a single knee in energy_grid_planning, and none on a rising fron…
chriscoey Nov 15, 2026
6c0324c
Document the train step in the deployed-template Quickstart contract
chriscoey Nov 15, 2026
7f506eb
Merge remote-tracking branch 'origin/coey/templates-relationalai-2.1'…
chriscoey Nov 15, 2026
8de68d7
Deploy the hospital_staffing model and query its frontier
chriscoey Nov 16, 2026
77fbfa1
Deploy the sprint_scheduling model and query its results
chriscoey Nov 16, 2026
6cf7142
Deploy the underwriting_audit model and query its results
chriscoey Nov 16, 2026
8d58ce0
Deploy the demand planning temporal model and query its results
chriscoey Nov 16, 2026
7418388
Deploy the supply chain resilience model and query its results
chriscoey Nov 16, 2026
fec7214
Deploy the money_laundering_motif_detection model and query its results
chriscoey Nov 16, 2026
0f7f4d4
Deploy the supplier_reliability model and query its results
chriscoey Nov 16, 2026
7a2e32e
Say how the money_laundering_motif_detection models publish their sol…
chriscoey Nov 16, 2026
fc45c3c
Deploy the retail_planning model and query its results
chriscoey Nov 16, 2026
2c0fd56
Publish the supplier_reliability marginals through the model
chriscoey Nov 16, 2026
6d46741
Publish the factory_production marginals through the model
chriscoey Nov 19, 2026
655915a
Publish the product_configurator builds through the model
chriscoey Nov 19, 2026
8699e06
Publish the synthetic_eligibility_records records through the model
chriscoey Nov 19, 2026
9bcf412
Deploy the cicd_runner_allocation model and query its results
chriscoey Nov 19, 2026
f62c889
Publish the entity_resolution graph size through the model
chriscoey Nov 19, 2026
55648c0
Deploy the memory_supply_allocation model and query its results
chriscoey Nov 19, 2026
ddce495
Publish the wildlife-conservation-network graph results through the m…
chriscoey Nov 19, 2026
826c4f8
Publish the disease-outbreak-prevention graph results through the model
chriscoey Nov 19, 2026
6c00815
Publish the humanitarian-aid-supply-chain graph results through the m…
chriscoey Nov 19, 2026
3e7b019
Publish the defect_root_cause graph size and formulation counts throu…
chriscoey Nov 19, 2026
8723d92
Publish the energy_grid_planning corridors through the model
chriscoey Nov 19, 2026
2382a6f
Publish the bom-reachability graph results and assembly chains throug…
chriscoey Nov 19, 2026
bf7bb28
Publish the cybersecurity-attack-paths paths through the model
chriscoey Nov 19, 2026
67f0323
Publish the supply_chain_resilience graph results through the model
chriscoey Nov 19, 2026
b74f594
Publish the it-dependency-mapping dependency paths through the model
chriscoey Nov 19, 2026
42c148c
Deploy the portfolio_balancing model and query its results
chriscoey Nov 19, 2026
ae67f53
Publish the warehouse_allocation components through the model
chriscoey Nov 19, 2026
30c4259
Merge branch 'coey/templates-deploy-mode-2.1' into coey/templates-dep…
chriscoey Nov 19, 2026
d53ac18
Document the PAT user setup for the deployed GNN templates
chriscoey Nov 19, 2026
8f38f97
Merge remote-tracking branch 'origin/coey/templates-relationalai-2.1'…
chriscoey Nov 20, 2026
2a7aa33
Merge remote-tracking branch 'origin/coey/templates-deploy-mode-2.1' …
chriscoey Nov 20, 2026
db809c7
Merge remote-tracking branch 'origin/coey/tpl-memory-supply' into coe…
chriscoey Nov 20, 2026
d2b03ec
Move the GNN templates' PAT-user grants into the Access section
chriscoey Nov 20, 2026
af7a9f0
cybersecurity-attack-paths: use the query's integer columns as returned
chriscoey Nov 20, 2026
ffc4978
disease-outbreak-prevention: use the query's integer columns as returned
chriscoey Nov 20, 2026
78aaac2
memory_supply_allocation: PAT access for the GNN jobs, no integer casts
chriscoey Nov 20, 2026
4fadc70
fraud-detection: use the label column as returned
chriscoey Nov 20, 2026
5eef65d
Deploy the smoker_status_prediction model and query its results
chriscoey Nov 20, 2026
a2414f0
energy_grid_planning: use the query's integer columns as returned
chriscoey Nov 20, 2026
4fce37c
product_configurator: use the query's integer columns as returned
chriscoey Nov 20, 2026
1fa9ff7
book_slate_recommendation: use the query's integer columns as returned
chriscoey Nov 20, 2026
bcfc232
bom-reachability: use the query's step column as returned
chriscoey Nov 20, 2026
98e04fe
cell_tower_coverage: use the query's integer columns as returned
chriscoey Nov 20, 2026
ada6081
smoker_status_prediction: use the query's label columns as returned
chriscoey Nov 20, 2026
76bfd29
it-dependency-mapping: use the query's integer columns as returned
chriscoey Nov 20, 2026
0ed99e9
datacenter_compute_allocation: use the query's numeric columns as ret…
chriscoey Nov 20, 2026
3ddcdd9
telco_network_recovery: use the query's integer columns as returned
chriscoey Nov 20, 2026
01d5f7a
Point the portfolio_balancing contract test at its query module
chriscoey Nov 20, 2026
2eab6ee
Pin the templates to relationalai 2.3.0
chriscoey Nov 24, 2026
065e4f6
Limit the templates to the Python versions relationalai 2.3.0 supports
chriscoey Nov 24, 2026
9cf400f
Fix README cross-references and stale setup advice
chriscoey Nov 24, 2026
5b6bed4
Stop the reports when a solve the template requires did not succeed
chriscoey Nov 24, 2026
091c28b
ad_spend_allocation: Correct README budget notes and objective print
chriscoey Nov 24, 2026
a93b509
bom-reachability: Mark maximal chains in the model; report reads them
chriscoey Nov 24, 2026
a40d345
book_slate_recommendation: Stop report without a slate; correct docs
chriscoey Nov 24, 2026
f8d1838
campaign_roi: Correct README results and budget guidance
chriscoey Nov 24, 2026
3aeddb5
cell_tower_coverage: Publish plan totals from the model for the report
chriscoey Nov 24, 2026
75dd652
cicd_runner_allocation: Check the outage conflict before printing it
chriscoey Nov 24, 2026
0f56a53
commercial_underwriting: Keep unpolicied insureds in the premium rollup
chriscoey Nov 24, 2026
f7960fa
cybersecurity-attack-paths: Simplify kill-chain report; fix version docs
chriscoey Nov 24, 2026
5150dd0
datacenter_compute_allocation: Name graphs; report empty plans safely
chriscoey Nov 24, 2026
994c658
defect_root_cause: Read report figures from the model; name the graph
chriscoey Nov 24, 2026
676513f
demand_forecasting: Name graph; label the forecast per city and family
chriscoey Nov 24, 2026
4d8be95
demand_planning_temporal: Fix order and capacity links; correct README
chriscoey Nov 24, 2026
131065e
diet: Correct README advice on feasibility and Snowflake sources
chriscoey Nov 24, 2026
6098861
disease-outbreak-prevention: Publish facility metrics; share one ranking
chriscoey Nov 24, 2026
071faac
energy_grid_planning: Publish forecast and plan totals; fix carbon rule
chriscoey Nov 24, 2026
5a44949
entity_resolution: Make evaluation labels optional; name the graph
chriscoey Nov 24, 2026
36c48a0
factory_production: Drop duplicate status line; correct README notes
chriscoey Nov 24, 2026
3c055a5
financial_index_replication: Use all solved weights for tracking metrics
chriscoey Nov 24, 2026
35c7417
fraud-detection: Name graphs; label the audit result and break ties
chriscoey Nov 24, 2026
ca12fff
hospital_staffing: Stop the sweep at a failed point; correct README
chriscoey Nov 24, 2026
aadf686
humanitarian-aid-supply-chain: Publish graph metrics and categories
chriscoey Nov 24, 2026
77a5339
it-dependency-mapping: Drop stale version notes; trim report dedupe
chriscoey Nov 24, 2026
cbc6284
memory_supply_allocation: Bound demanded cells; report horizon margin
chriscoey Nov 24, 2026
991a0e1
money_laundering_motif_detection: Compute big-M from the motif bound
chriscoey Nov 24, 2026
f19323a
network_flow_planning: Scope decisions by site type; print cost once
chriscoey Nov 24, 2026
c23487e
patient_cohort_recruitment: Name the graph; correct cohort-floor docs
chriscoey Nov 24, 2026
ad4e8e6
planogram_optimization: Flag SKUs missing from the solution; fix README
chriscoey Nov 24, 2026
d0c871b
pod_placement: Correct README on infeasibility and rack-clique limits
chriscoey Nov 24, 2026
5675e18
portfolio_balancing: Validate the frontier before reporting; name graph
chriscoey Nov 24, 2026
741583e
product_configurator: Publish solve settings; show exact build totals
chriscoey Nov 24, 2026
b753842
production_planning: Remove unused reference; document rate rows
chriscoey Nov 24, 2026
b08fb93
retail_markdown: Print the objective once; document discount ladder
chriscoey Nov 24, 2026
5b35a69
retail_planning: Publish the production plan; stop without demand
chriscoey Nov 24, 2026
2a8daa8
sample-template: Clarify the starter and its adaptation steps
chriscoey Nov 24, 2026
831eacd
shift_assignment: Define assignment variable locally in the query
chriscoey Nov 24, 2026
e712660
shipment_compliance: Correct README wording and module docstring
chriscoey Nov 24, 2026
9d0015c
simple-start: Name graph; clarify setup and the demo table
chriscoey Nov 24, 2026
f83690f
smoker_status_prediction: Name graph; flag partial metrics; fix docs
chriscoey Nov 24, 2026
a04e35f
sprint_scheduling: Publish planning horizon; fix timezone dependence
chriscoey Nov 24, 2026
b70b8c1
subscriber_retention: Publish predictions as a concept; name graph
chriscoey Nov 24, 2026
6198288
supplier_reliability: Require marginals before checking them; fix README
chriscoey Nov 24, 2026
7ab0e3b
supply_chain_resilience: Name graphs; handle ties and missing results
chriscoey Nov 24, 2026
06289ab
supply_chain_transport: Narrow model exports; correct README guidance
chriscoey Nov 24, 2026
0a4ebaf
synthetic_eligibility_records: Require integer ids; describe the policy
chriscoey Nov 24, 2026
85148a8
synthetic_order_lifecycle: Allow full venue coverage; simplify trace
chriscoey Nov 24, 2026
2e04180
telco_network_recovery: Publish rule branches and top path; name graphs
chriscoey Nov 24, 2026
0abb6a1
test_data_generation: Enforce declared child minimums in the row counts
chriscoey Nov 24, 2026
4d4468e
transaction_screening_local: Correct README and runbook link counts
chriscoey Nov 24, 2026
4a07f0e
traveling_salesman: Require a complete tour; document the depot
chriscoey Nov 24, 2026
161e413
underwriting_audit: Treat a missing witness count as inconclusive
chriscoey Nov 24, 2026
606696b
warehouse_allocation: Name graph; fix bridge-route and key wording
chriscoey Nov 24, 2026
695ac64
water_allocation: Validate connection inputs at load; describe losses
chriscoey Nov 24, 2026
5bdb15e
wildlife-conservation-network: Name graph; count external communities
chriscoey Nov 24, 2026
48e3820
Update the template index
chriscoey Nov 24, 2026
f0fbbb9
ad_spend_allocation: Stop with a message when no objective is published
chriscoey Nov 24, 2026
f46c9ec
bom-reachability: Flag finished goods deeper than the assembly hop bound
chriscoey Nov 24, 2026
0f49751
book_slate_recommendation: Describe the candidate checks and scored set
chriscoey Nov 24, 2026
2b3db35
campaign_roi: Explain the objective when budget may go unspent
chriscoey Nov 24, 2026
b7f6b8a
cell_tower_coverage: Publish the build budget as a float
chriscoey Nov 24, 2026
1765061
cicd_runner_allocation: Check the conflict against the high-CPU jobs
chriscoey Nov 24, 2026
7fb3c49
commercial_underwriting: Define the observations in the premium rollup
chriscoey Nov 24, 2026
b48057f
cybersecurity-attack-paths: Note the tie between the two 3-hop chains
chriscoey Nov 24, 2026
3c97f4c
datacenter_compute_allocation: Describe empty cells and the P0 weight
chriscoey Nov 24, 2026
926aabf
defect_root_cause: Publish no diagnosis when the solve fails
chriscoey Nov 24, 2026
b3bd633
demand_forecasting: Report the real split dates; describe the full run
chriscoey Nov 24, 2026
92c112d
demand_planning_temporal: Skip order scoping when no order is in range
chriscoey Nov 24, 2026
42028b0
diet: Describe the Snowflake table swap; qualify the scaling advice
chriscoey Nov 24, 2026
f6bf9eb
energy_grid_planning: Handle idle and generation-free substations
chriscoey Nov 24, 2026
db9adc5
entity_resolution: Leave blank or conflicting labels unlabeled
chriscoey Nov 24, 2026
32b793e
factory_production: Say the loader rejects repeated product names
chriscoey Nov 24, 2026
823a262
financial_index_replication: Stop on an empty solve or unpriced holdings
chriscoey Nov 24, 2026
65e1b40
fraud-detection: Print fractional audit budgets; list test columns
chriscoey Nov 24, 2026
358750c
hospital_staffing: Correct the knee test and the failed-sweep frontier
chriscoey Nov 24, 2026
1e12f17
humanitarian-aid-supply-chain: Name all four strategic classes
chriscoey Nov 24, 2026
2a8d7ea
it-dependency-mapping: Document features with no downstream path
chriscoey Nov 24, 2026
5295689
memory_supply_allocation: Handle no-impact cascades; correct the figures
chriscoey Nov 24, 2026
49567ae
patient_cohort_recruitment: Say the report does not re-check the cohort
chriscoey Nov 24, 2026
d573ba8
planogram_optimization: Treat null facings or demand as a mismatch
chriscoey Nov 24, 2026
03e8a99
pod_placement: Correct the troubleshooting notes on unplaced deployments
chriscoey Nov 24, 2026
7a99180
portfolio_balancing: Keep a missing shadow price visible in the frontier
chriscoey Nov 24, 2026
bd85332
product_configurator: Read the solve settings from the relationship
chriscoey Nov 24, 2026
693d149
retail_markdown: Correct the price ladder and empty-tier notes
chriscoey Nov 24, 2026
93ab42e
retail_planning: Publish planning gaps; report no-solution and status
chriscoey Nov 24, 2026
ca22fc0
shift_assignment: Document shifts with no available worker
chriscoey Nov 24, 2026
b355d8b
simple-start: Say what an own edge table needs
chriscoey Nov 24, 2026
a35da69
smoker_status_prediction: Report the scored share of test rows
chriscoey Nov 24, 2026
7d188b0
sprint_scheduling: Read the planning horizon from the relationship
chriscoey Nov 24, 2026
f29d09c
subscriber_retention: Describe how the retention report is built
chriscoey Nov 24, 2026
fdcfc90
supplier_reliability: Require every marginal before the economic checks
chriscoey Nov 24, 2026
f7464b3
supply_chain_resilience: Flag one most-critical site; document the flow
chriscoey Nov 24, 2026
2acc602
supply_chain_transport: Explain the trimmed report tables
chriscoey Nov 24, 2026
3572468
synthetic_eligibility_records: Correct the troubleshooting notes
chriscoey Nov 24, 2026
283cd2c
synthetic_order_lifecycle: Correct the customization notes
chriscoey Nov 24, 2026
4d12da7
telco_network_recovery: Tie call paths by load; keep partial towers
chriscoey Nov 24, 2026
c979358
test_data_generation: Apply every declared bound to each foreign key
chriscoey Nov 24, 2026
b1ddb93
transaction_screening_local: Say which figures the script prints
chriscoey Nov 24, 2026
796de19
traveling_salesman: Stop when no edge is selected; explain the check
chriscoey Nov 24, 2026
866acb2
underwriting_audit: Read each audit's status and count together
chriscoey Nov 24, 2026
20636da
warehouse_allocation: Describe cross-region flags and components
chriscoey Nov 24, 2026
f29e13b
water_allocation: Reject non-finite connection capacities at load
chriscoey Nov 24, 2026
6120797
wildlife-conservation-network: Reload only the two cached reads
chriscoey Nov 24, 2026
23dd013
Update the template index
chriscoey Nov 24, 2026
af71446
bom-reachability: Describe betweenness as structural, not disruption
chriscoey Nov 24, 2026
79f2f3b
book_slate_recommendation: Correct validation and slate wording
chriscoey Nov 24, 2026
f5fa55d
campaign_roi: Keep campaigns with equal values as separate rows
chriscoey Nov 24, 2026
3af1e9c
cicd_runner_allocation: Check the conflict against the named jobs
chriscoey Nov 24, 2026
1f8c4af
commercial_underwriting: Describe the CSV headers and GoodOps promotion
chriscoey Nov 24, 2026
6891d03
cybersecurity-attack-paths: Document the three technique labels
chriscoey Nov 24, 2026
a0541b3
datacenter_compute_allocation: Correct objective and INFEASIBLE notes
chriscoey Nov 24, 2026
a3c624b
defect_root_cause: Point to reasoning.py and the formulation audit
chriscoey Nov 24, 2026
b77d1a2
demand_forecasting: Clarify forecast windows and the GPU note
chriscoey Nov 24, 2026
920dbe5
demand_planning_temporal: Count in-scope orders without count()
chriscoey Nov 24, 2026
ddef3ec
diet: Compare the runbook to the code in model/
chriscoey Nov 24, 2026
73c19c2
disease-outbreak-prevention: Fix report and Snowflake source notes
chriscoey Nov 24, 2026
8dd6ad7
energy_grid_planning: Clarify stage dependencies and report steps
chriscoey Nov 24, 2026
2812ece
factory_production: Make the profit and plan checks NaN-safe
chriscoey Nov 24, 2026
86d71fd
financial_index_replication: Keep months with no stock returns
chriscoey Nov 24, 2026
ed6e266
fraud-detection: Add the Python versions and trim the report note
chriscoey Nov 24, 2026
1c4186b
hospital_staffing: Report no knee when no sampled step costs overtime
chriscoey Nov 24, 2026
b992639
humanitarian-aid-supply-chain: Correct graph algorithm suggestions
chriscoey Nov 24, 2026
b300735
it-dependency-mapping: Document the MAX_DEPTH bound on chains
chriscoey Nov 24, 2026
b7ade5d
memory_supply_allocation: Correct plan, forecast and disruption notes
chriscoey Nov 24, 2026
ffe3407
money_laundering_motif_detection: Correct motif ranking guidance
chriscoey Nov 24, 2026
76660a8
network_flow_planning: Point lane capacity edits at lanes.csv
chriscoey Nov 24, 2026
7b3168c
patient_cohort_recruitment: Correct per-axis coverage sources
chriscoey Nov 24, 2026
a9dc165
portfolio_balancing: Publish frontier points only for accepted solves
chriscoey Nov 24, 2026
f571ef7
production_planning: Say where Production and x_quantity are defined
chriscoey Nov 24, 2026
600fe93
retail_markdown: Describe the report rows and the Jacket discount
chriscoey Nov 24, 2026
a852c91
retail_planning: Explain the first refresh and the planning data
chriscoey Nov 24, 2026
53e1de6
sample-template: Describe inspect_items and main accurately
chriscoey Nov 24, 2026
4403af0
shift_assignment: Explain the joint feasibility solve
chriscoey Nov 24, 2026
1673870
shipment_compliance: Describe the at-risk rule precisely
chriscoey Nov 24, 2026
ecd3c8d
subscriber_retention: Correct call-graph and split descriptions
chriscoey Nov 24, 2026
6636d5f
supplier_reliability: Document products without supply options
chriscoey Nov 24, 2026
dae328d
supply_chain_resilience: Name the LP and the normalized centrality
chriscoey Nov 24, 2026
fc8dcfd
supply_chain_transport: Document one truck per day and the LTL tiers
chriscoey Nov 24, 2026
04680fc
synthetic_eligibility_records: Correct solve status and check notes
chriscoey Nov 24, 2026
0d31958
synthetic_order_lifecycle: Trim stale notes and soften the pinning claim
chriscoey Nov 24, 2026
e5d8453
telco_network_recovery: Document branches, pandas steps and WEST towers
chriscoey Nov 24, 2026
3202ddf
test_data_generation: Skip sample rows for unsupported schemas
chriscoey Nov 24, 2026
0e34340
traveling_salesman: Check the formulation before printing the tour
chriscoey Nov 24, 2026
81fb09a
underwriting_audit: Correct the worst-counterexample suggestion
chriscoey Nov 24, 2026
7ffba58
warehouse_allocation: Stop the report when no cost is published
chriscoey Nov 24, 2026
00e9d72
water_allocation: Document Snowflake sources and the flow report cutoff
chriscoey Nov 24, 2026
8355e41
Update the template index
chriscoey Nov 24, 2026
427b705
financial_index_replication: keep exporting months without stock returns
chriscoey Nov 25, 2026
9d0bb65
test_data_generation: fail when a generated table has no row count
chriscoey Nov 25, 2026
89a7042
energy_grid_planning: describe the single MIP across budget levels
chriscoey Nov 25, 2026
eb5833e
hospital_staffing: state when the skill floor applies
chriscoey Nov 25, 2026
90e316a
portfolio_balancing: qualify the published shadow price
chriscoey Nov 25, 2026
0669a18
shift_assignment: state what an infeasible or successful solve means
chriscoey Nov 25, 2026
61ab339
bom-reachability: list only SKUs that something depends on
chriscoey Nov 25, 2026
b18206b
telco_network_recovery: rank the seed hub and top call path in one so…
chriscoey Nov 25, 2026
49b586a
telco_network_recovery: show the top call path in the README sample; …
chriscoey Nov 25, 2026
0aee752
telco_network_recovery: correct the seed tie-break comment in the report
chriscoey Nov 25, 2026
ef5eb22
retail_planning: show the production, inventory and unmet-demand tabl…
chriscoey Nov 25, 2026
eff95f3
book_slate_recommendation: list only picked subjects in the subject d…
chriscoey Nov 25, 2026
15da558
cell_tower_coverage: publish each tower's assigned population on its …
chriscoey Nov 25, 2026
9dc0b51
underwriting_audit: count zero witnesses for an infeasible audit
chriscoey Nov 25, 2026
88f2a7e
cell_tower_coverage: sort zones by population after rounding the cove…
chriscoey Nov 25, 2026
4ae7a17
telco_network_recovery: break seed and path ties by the smallest id a…
chriscoey Nov 25, 2026
9a66f23
telco_network_recovery: say ties between equal path loads go to the s…
chriscoey Nov 25, 2026
59896d4
fraud-detection: write the refresh call's database as DB
chriscoey Nov 25, 2026
c386a64
portfolio_balancing: name model.select() first in the Stage 4 walkthr…
chriscoey Nov 25, 2026
b7abe46
water_allocation: stop the report when Ipopt does not solve
chriscoey Nov 25, 2026
cbda5a9
water_allocation: show the failed-solve message in Troubleshooting
chriscoey Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 11 additions & 7 deletions .agents/skills/template-authoring/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ removed while the template remains.

## Required workflow

1. Read the entire template directory, including its runner, `pyproject.toml`,
1. Read the entire template directory, including its queries, `pyproject.toml`,
README, runbook, data files, and existing sidecar.
1. Preserve the entrypoint, solver choices, constraints, thresholds, output
labels, and data semantics unless the request explicitly changes them.
Expand All @@ -38,7 +38,8 @@ removed while the template remains.
│ ├── __init__.py
│ ├── schema.py
│ └── source.py
├── <runner>.py
├── queries/
│ └── <name>.py
├── runbook.md
├── pyproject.toml
└── data/
Expand All @@ -49,12 +50,15 @@ removed while the template remains.
relationships with direct `model.Concept`, `model.Property`, and
`model.Relationship` calls.
1. Put source reads, normalization, and base-fact mappings in
`model/source.py`. Keep solver declarations, derived reasoning, result
queries, and reporting in the runner.
`model/source.py`. `rai models deploy --path model` deploys what the
package declares, so put solver declarations and derived reasoning in the
package too (for example `model/reasoning.py`). Keep result queries and
reporting in `queries/<name>.py`, which imports from `model`, declares
nothing, and runs as `python -m queries.<name>`.
1. Re-export the model and stable schema symbols from `model/__init__.py`.
A single-source template may load its source on import. A multi-source
template must expose explicit loader functions and let each runner choose
the correct one.
template must expose explicit loader functions and let each entry point
choose the correct one.
1. Keep README commands, code links, `runbook.md`, and `template-docs.yaml`
aligned with the final paths and symbols.
1. Follow [the sidecar contract](./resources/template-docs.md) and select only
Expand All @@ -73,7 +77,7 @@ provides the model explorer and walkthrough.

- Explain the problem before implementation details.
- For a long-form README, put the solution flow in **What you'll build** and
use **What's included** to identify the schema, source, runner, runbook,
use **What's included** to identify the schema, source, queries, runbook,
sample data, and outputs.
- When the sidecar sets `page.download_and_run_from_readme: true`, a README may
contain only **What this template is for** and **Quickstart**, plus an
Expand Down
21 changes: 19 additions & 2 deletions .agents/skills/template-authoring/resources/template-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,26 @@ sample_data:
into a generated "Download and run the template" section. State access and
Python requirements before the first step, include any required SQL setup
there, then provide five ordered steps: download, Python environment,
install, configure with the Start building with PyRel configuration builder,
install, configure with the Install and run PyRel configuration builder,
and run. Keep any representative output directly after its runner command.
Templates without this flag retain their existing rendering.
- `deployment: true` (optional, requires `download_and_run_from_readme: true`)
marks a template that deploys its model. The Quickstart then has seven ordered
steps: download, Python environment, install, configure, deploy (one `bash`
block containing exactly `rai models deploy --path model`), query (one `bash`
block per report containing exactly `python -m queries.<name>`, each optionally
followed by a `text` output block, and optionally ending with an instruction
and one `sql` block, such as
`CALL <DB>.<SCHEMA>_META._INTERNAL_REFRESH_MODEL('standard', NULL);`), and
tear down (`rai models teardown`, then `rai models teardown --force`). A
template that trains a GNN adds an eighth step between deploy and query: one
`bash` block containing exactly
`python train.py`, optionally followed by a `text` output block, and then only
paragraphs, such as the refresh that makes the deployed model predict with
the new version. List the README's `prerequisites` section in
`lead_from_readme`: the page renders only the lead sections and the generated
Quickstart, so the deployment setup the Quickstart points to appears only
through the lead.
- `omit_readme_preamble: true` (optional) excludes the text before the first
README `##` heading from the enhanced HTML and Markdown pages. Use it when
the README opens with links to its own generated model explorer and
Expand Down Expand Up @@ -149,7 +166,7 @@ guide links:

```yaml
focus:
file: runner.py
file: queries/report.py
anchors:
- start: "# Stage 3: Optimize"
end: "# Stage 4: Report"
Expand Down
3 changes: 2 additions & 1 deletion .github/prompts/cleanup-template-code.prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ dependencies. For a model-package refactor:
- Move model creation and stable declarations to `model/schema.py`.
- Move reads, normalization, and base-fact mappings to `model/source.py`.
- Re-export stable symbols through `model/__init__.py`.
- Keep derived reasoning, solves, queries, and reporting in the runner.
- Keep derived reasoning and solver declarations in the model package, and
result queries and reporting in `queries/<name>.py`.
- Update README, runbook, and any existing `template-docs.yaml` references.
- Do not force an existing README-only template to adopt the sidecar unless
the request explicitly includes migration.
Expand Down
2 changes: 1 addition & 1 deletion .github/prompts/create-template-readme.prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for a new template, a strict `template-docs.yaml` in the same change.
- Keep the README complete and runnable from a fresh environment.
- Begin with the business problem and outcome.
- For a long-form README, keep the solution stages in **What you'll build**.
Name the model schema, source mapping, runner, runbook, sample data, and
Name the model schema, source mapping, queries, runbook, sample data, and
outputs in **What's included**.
- For a short enhanced README, use **What this template is for** and
**Quickstart** with an opening link to its docs-page model and walkthrough.
Expand Down
2 changes: 1 addition & 1 deletion .github/prompts/review-template.prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Check:

- Required files, entrypoint, pinned dependencies, and complete sample data.
- README commands, paths, headings, expected output, and troubleshooting.
- `model/schema.py`, `model/source.py`, `model/__init__.py`, and runner
- `model/schema.py`, `model/source.py`, `model/__init__.py`, and `queries/`
responsibility boundaries when the template uses the standard layout.
- `runbook.md` consistency with the final code paths.
- Every existing `template-docs.yaml` key, symbol, source, reference, anchor,
Expand Down
22 changes: 13 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ This repository uses Ruff to lint Python template code.
## Add a new template

1. Copy `sample-template/` to a new root-level directory named for your template.
2. Rename the main runner, package metadata, and starter identifiers so they match the folder name.
3. Implement the schema, source mappings, runner logic, sample data, and outputs.
2. Rename the query module, package metadata, and starter identifiers so they match the folder name.
3. Implement the schema, source mappings, reasoning, queries, sample data, and outputs.
4. Replace the starter README content and update every field in `template-docs.yaml`.
5. Run focused lint, compilation, policy, and index checks.
6. Run the template from a fresh environment and verify that the README Quickstart works as written.
Expand All @@ -69,15 +69,19 @@ At a minimum, make sure your template includes:
- `model/schema.py` for model creation and stable declarations
- `model/source.py` for source reads, normalization, and base-fact mappings
- `model/__init__.py` for stable exports
- a runnable entrypoint such as `<template_name>.py` or a notebook
- `queries/<name>.py` modules that read the deployed model, run as `python -m queries.<name>`
- `runbook.md` that uses the same paths, symbols, and commands
- `data/` when the template reads local sample files
- sample data and output paths that match both the code and the README

Keep solver declarations, derived reasoning, result queries, and reporting in
the runner. A template with one source mode may load it when `model` is
imported. A template with multiple source modes must expose explicit loader
functions and let each runner choose one.
`rai models deploy --path model` deploys what the `model` package declares,
so solver declarations and derived reasoning belong in the package too (for
example `model/reasoning.py`). Keep result queries and reporting in
`queries/<name>.py`: each module imports from `model`, declares nothing, and
runs its report under `if __name__ == "__main__":`. A template with one
source mode may load it when `model` is imported. A template with multiple
source modes must expose explicit loader functions and let each entry point
choose one.

## Generated documentation sidecars

Expand Down Expand Up @@ -129,7 +133,7 @@ commands, expected results, and any required data attribution in Quickstart.
The README and generated run steps must agree.

For a longer README, use **What's included** to name the schema, source,
runner, runbook, sample data, and outputs. Use small Markdown tables for
queries, runbook, sample data, and outputs. Use small Markdown tables for
representative sample rows where helpful.

> [!TIP]
Expand Down Expand Up @@ -186,7 +190,7 @@ Before opening a PR, make sure you can complete this checklist from a clean envi
ruff check */
```

1. Compile the changed runner and model package:
1. Compile the changed model package and queries:

```bash
python -m compileall -q <your_template_name> sample-template
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Each template lives in its own root-level folder. Within a folder, you will usua

- `README.md` with the problem statement, prerequisites, and run instructions
- `pyproject.toml` for template-local dependencies
- a main runner such as `<template>.py` or a notebook
- `model/`, the model package that `rai models deploy --path model` deploys, and `queries/`, one module per report, run as `python -m queries.<name>` (a few templates use a single script or a notebook instead)
- `data/` containing sample input data when the template uses local files
- `runbook.md` with ordered prompts to recreate or adapt the template using a coding agent with RelationalAI skills (multi-reasoner templates)

Expand Down Expand Up @@ -64,7 +64,7 @@ The index below covers the current templates. Expand an industry to see its temp
| [hospital_staffing](hospital_staffing/) | Prescriptive | Explore the tradeoff between overtime cost and patient service level using bi-objective optimization with epsilon constraint. |
| [patient_cohort_recruitment](patient_cohort_recruitment/) | Graph, Rules-based, Prescriptive | Build a clinical-research cohort over a patient knowledge graph. It selects a small set of eligible patients that together span enough distinct genes, therapies, and adverse events for a study to generalize. |
| [smoker_status_prediction](smoker_status_prediction/) | Predictive | Predict whether a person is a smoker from demographic and medical attributes plus a network of social connections. |
| [synthetic_eligibility_records](synthetic_eligibility_records/) | Prescriptive | Generate K distinct, internally consistent member eligibility records per solve in multi-solution mode: each satisfies CMS Medicare-eligibility, age-by-plan-type CFDs, and PCP-network attribution. |
| [synthetic_eligibility_records](synthetic_eligibility_records/) | Prescriptive | Generate K distinct, internally consistent member eligibility records per solve in multi-solution mode: each satisfies a Medicare-style age-by-plan-type policy and PCP-network attribution. |

</details>

Expand Down Expand Up @@ -92,7 +92,7 @@ The index below covers the current templates. Expand an industry to see its temp
| [demand_forecasting](demand_forecasting/) | Predictive | Forecast next-period unit sales per store, item, and day with a regression graph neural network (GNN) over a heterogeneous retail graph linking sales to stores, items, and item families. |
| [planogram_optimization](planogram_optimization/) | Predictive, Prescriptive | Decide integer facing counts per SKU to maximize predicted weekly demand under shelf capacity and category cardinality limits, where per-(SKU, facing_count) demand comes from a regression model. |
| [retail_markdown](retail_markdown/) | Prescriptive | Set discount levels across weeks to maximize revenue while clearing inventory. |
| [retail_planning](retail_planning/) | Predictive, Prescriptive | Predict article sales and customer churn with graph neural networks (GNNs), then optimize markdown pricing and inventory planning to maximize revenue and minimize costs. |
| [retail_planning](retail_planning/) | Predictive, Prescriptive | Predict article sales with a graph neural network (GNN), then optimize markdown pricing and inventory planning to maximize revenue and minimize costs. |

</details>

Expand All @@ -109,7 +109,7 @@ The index below covers the current templates. Expand an industry to see its temp
| [supply_chain_resilience](supply_chain_resilience/) | Graph, Rules-based, Prescriptive | Chain blast-radius reachability, network analysis, and rule-based risk classification into a risk-adjusted minimum-cost network flow for supply-chain routing. |
| [supply_chain_transport](supply_chain_transport/) | Prescriptive | Minimize inventory holding and transport costs with TL/LTL mode selection. |
| [traveling_salesman](traveling_salesman/) | Prescriptive | Find the shortest route that visits every city exactly once and returns home. A self-contained starting point for building route optimization on RelationalAI. |
| [warehouse_allocation](warehouse_allocation/) | Graph, Prescriptive | Allocate inventory across a distribution network using centrality, weakly-connected components, and bridge-route detection to prioritize critical hubs. |
| [warehouse_allocation](warehouse_allocation/) | Graph, Prescriptive | Allocate inventory across a distribution network using centrality, weakly-connected components, and cross-region route flags to prioritize critical hubs. |

</details>

Expand Down Expand Up @@ -151,7 +151,7 @@ The exact setup is documented in each template's README, but the workflow is con
2. Create a virtual environment inside that folder.
3. Install the template's dependencies.
4. Configure RelationalAI access if the template connects to a live environment.
5. Run the script or notebook described in the template README.
5. Deploy the model and run its queries, or run the script or notebook, as the template README describes.

Example workflow:

Expand Down Expand Up @@ -179,7 +179,7 @@ Most templates are designed to be runnable and inspectable without additional re
To add or update a template:

1. Copy [`sample-template/`](sample-template/) to a new root-level directory.
2. Implement the model, runner, sample data, and metadata.
2. Implement the model package, queries, sample data, and metadata.
3. Replace the README placeholders with template-specific content.
4. Review the result before opening a pull request.

Expand Down
Loading
Loading