Repository navigation
Refactor four templates for generated documentation - #104
Merged
somacdivad merged 13 commits intoOct 1, 2026
Merged
Conversation
What changed: - Document the model-package, README, and enhanced sidecar authoring workflow. - Add a runnable sample template, focused validation tests, and CI checks for new v1 sidecars. Why: - Give contributors a consistent way to create or update generated template documentation while preserving README-only templates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Split each semantic model into schema and source modules while retaining its runnable entrypoint. - Add model-explorer and walkthrough sidecars, shorten GitHub READMEs to the approved introduction and Quickstart, and regenerate template indexes. - Keep the Financial Index Replication model names aligned with its approved walkthrough. Why: - Let the documentation site generate model, download, and walkthrough sections from the canonical template source while the GitHub README remains runnable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Move portfolio concepts, properties, and relationships into the stable schema without changing their definitions. - Add every portfolio concept and relationship to the model explorer sidecar, including unary rule and graph flags. - Update the template authoring contract, walkthrough anchors, runbook, and schema coverage test. Why: - Let the generated visualizer represent the full portfolio model instead of only its source-backed base schema. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Reorder the compliance-step explanation to match the runner's reference order. Why: - Keep the generated walkthrough valid after moving relationship declarations into the stable schema. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The templates docs preview for this pull request has been deployed to Vercel!
|
What changed: - add reader-facing labels for the Scenario-to-Regime and FrontierPoint-to-Scenario property roads - document property label overrides for template authors Why: - make concept-valued properties read like business relationships in the visualizer without changing model declarations Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - label Stock scenario quantities and regime covariance as visual model connections - document scalar-valued property road metadata and repeated concept inputs Why: - show how the stock universe connects to scenarios and regimes without changing the executable model Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Reworked the guided walkthrough around the schema, data loading, and four processing stages. - Added a final report with stock amounts and weights for each scenario candidate. Why: - Connect the walkthrough to the executable pipeline and expose the allocations behind each selected summary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Replaced the reproduced walkthrough allocation sample with values from a connected PyRel run. Why: - Keep the displayed candidate amounts, weights, returns, and volatility aligned with actual template output. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Refined the stage excerpts, references, and candidate-allocation explanation. - Reused cached Stage 3 allocations and documented the exact connected-run output. Why: - Keep the walkthrough and runnable report aligned with the template’s actual behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Link prominently to each complete template guide. - Keep concise runnable Quickstarts with required access, dependencies, and success signals. - Replace the Portfolio transcript with a verified representative excerpt. Why: - Keep GitHub entry points useful without duplicating the generated model explorers and walkthroughs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Move the current templates to the repository root and remove the legacy version trees. - Update repository automation, validation, tests, and authoring guidance for the flat layout. Why: - Keep one canonical unversioned template collection while preserving docs artifact URLs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Check out the relationalai-docs PR branch in the templates preview workflow. Why: - The companion branch contains the flat-layout compatibility reader required by this templates PR before the docs change reaches main. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What changed: - Use the relationalai-docs companion branch only while rendering this pull request's preview. Why: - Future templates pull requests must return to docs main automatically after the paired migration lands. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
somacdivad
marked this pull request as ready for review
October 1, 2026 18:34
somacdivad
deleted the
agents/template-refactor-and-docs-update-canonical
branch
October 1, 2026 18:36
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.
Source and scope
Companion source changes for RelationalAI/relationalai-docs#914. This PR is based on the templates
mainhistory and currently points to1eb2015. It updates four v1 templates and adds an opt-in authoring path. Existing README-only templates are not migrated.What changed
model/schema.py,model/source.py, andmodel/__init__.py, with the existing runners still owning solving and output. Aligned Financial Index Replication onReturnMonthandStock.monthly_return.template-docs.yamlmodel explorers and guided walkthroughs. Each README retains What this template is for and a runnable Quickstart while linking to the generated model and walkthrough:/build/templates/portfolio_balancing/./build/templates/fraud-detection/./build/templates/entity_resolution/./build/templates/financial_index_replication/.Why
The sidecars keep model and walkthrough documentation with the code they explain. The shorter READMEs remain useful on GitHub, while their Quickstarts drive the docs-site run instructions instead of requiring a separately maintained copy. The expanded Portfolio model and walkthrough connect current holdings, market data, scenario allocations, risk summaries, and candidate stock amounts in one reader-facing explanation.
Risks
RAI_TEMPLATES_REPO_BRANCH=agents/template-refactor-and-docs-update-canonical. A build using templatesmainwill render the legacy pages until these PRs merge.How to verify
p3.base_1000excerpt.uvx ruff check v1/portfolio_balancingpassed.npm run checkpassed with no errors and one existing deprecation hint.sample-template scripts tests v0.13 v0.14 v1, Python unittest discovery, changed-template compilation, generated-index consistency, and the changed-template PR policy.