Skip to content

docs: Improve model enrichment docs#2476

Open
TomCools wants to merge 2 commits into
TimefoldAI:mainfrom
TomCools:docs/model-enrichment
Open

docs: Improve model enrichment docs#2476
TomCools wants to merge 2 commits into
TimefoldAI:mainfrom
TomCools:docs/model-enrichment

Conversation

@TomCools

@TomCools TomCools commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Improve model enrichment docs

Solves: #2415

improve model enrichment docs: TimefoldAI#2415
Copilot AI review requested due to automatic review settings July 7, 2026 07:46
@TomCools TomCools requested a review from triceo as a code owner July 7, 2026 07:46
@TomCools TomCools added the component/docs Improvements or additions to documentation label Jul 7, 2026

Copilot AI 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.

Pull request overview

This PR improves the documentation around Timefold Solver Service model enrichment by moving/renaming the existing content into a dedicated page and updating navigation and cross-references accordingly.

Changes:

  • Replace the old modeling-changes.adoc page with a new, expanded model-enrichment.adoc page (including aliases for backwards compatibility).
  • Update nav and in-page references to point to the new model enrichment documentation.
  • Extend the model enrichment docs with “why” and “best practices” sections.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/src/modules/ROOT/pages/running-timefold-solver/service/rest-api.adoc Updates the note to point readers to the new model enrichment docs.
docs/src/modules/ROOT/pages/running-timefold-solver/service/modeling-changes.adoc Removes the old model enrichment page content (superseded by the new page).
docs/src/modules/ROOT/pages/running-timefold-solver/service/model-enrichment.adoc Adds the new, expanded model enrichment documentation page and aliases.
docs/src/modules/ROOT/pages/quickstart/service/getting-started.adoc Updates the quickstart link to the new model enrichment page.
docs/src/modules/ROOT/nav.adoc Replaces the old nav entry with the new model enrichment page.

Comment thread docs/src/modules/ROOT/pages/running-timefold-solver/service/model-enrichment.adoc Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI 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.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Comment on lines +35 to +41
Do::
* Make enrichers idempotent: calling `enrich()` twice should produce the same result.
* Fail fast: if a required external resource is unavailable, throw an exception rather than silently returning an incomplete model.
* Use the `SolverModelEnrichmentDirector` to control ordering when one enricher depends on another.

Don't::
* Do not perform heavy computation inside constraint streams. Move it to an enricher instead.
* Do not perform heavy computation inside constraint streams. Move it to an enricher instead.
* Do not modify planning entities' planning variables inside an enricher; only non-planning fields should be set.
* Do not keep mutable state in enrichers; they may be invoked concurrently from multiple threads.
* Do not use enrichment for validation that should happen at input time, reject bad input at the API boundary, not here.
====
This mechanism should only be used for ModelInput -> SolverModel -> ModelOutput mapping.
For enhancing the SolverModel, use the xref:./modeling-changes.adoc#solverModelEnrichment[Model Enrichment] mechanism instead.
For enhancing the SolverModel, use the xref:./model-enrichment.adoc[Model Enrichment] mechanism instead.
@oemebamo oemebamo changed the title docs: docs: Improve model enrichment docs Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants