Skip to content

docs: clarify --mode is required for optimized cube reads (#160)#162

Merged
nicolasbisurgi merged 1 commit into
masterfrom
docs/issue-160-mode-cube-reads
Jun 17, 2026
Merged

docs: clarify --mode is required for optimized cube reads (#160)#162
nicolasbisurgi merged 1 commit into
masterfrom
docs/issue-160-mode-cube-reads

Conversation

@nicolasbisurgi

Copy link
Copy Markdown
Collaborator

Summary

Fixes the documentation gap behind #160. A user ran Sample_Optimal_Mode from the rushti cube and the generated plan dropped all predecessors.

This is a documentation bug, not a code bug. A cube read (--tm1-instance) cannot auto-detect its execution mode the way a file source can — every workflow occupies the same measures in the rushti cube, so there's no structural signal to distinguish wait-based (norm) from predecessor-based (opt). Cube reads therefore default to norm and silently drop the predecessors measure (only a debug-level warning is logged) unless --mode opt is passed.

The docs and rushti run --help wrongly described --mode as universally deprecated/ignored — that's only true for file sources (--tasks).

Changes

  • docs/features/tm1-integration.md — added a warning to "Run Tasks from TM1", fixed the Sample_Optimal_Mode example to use --mode opt, and added a new "Choosing the Mode for Cube Reads" section with a norm-vs-opt table.
  • docs/advanced/cli-reference.md — rewrote the --mode row (ignored for files, required for cube reads) and added an opt cube-read example.
  • docs/advanced/settings-reference.md — corrected the mode setting row and the inline settings.ini comment; removed "(deprecated)" from the CLI-overridable list.
  • docs/advanced/migration-guide.md — corrected the "--mode Flag" section and replaced the "Mode Deprecation Warning" troubleshooting entry with "Predecessors Missing When Running from a Cube".
  • docs/getting-started/task-files.md — fixed the cube-read example that used predecessors without --mode opt.
  • src/rushti/cli.py — corrected the --mode help text and run epilog; added an opt cube-read example. (No behavioural change.)
  • CHANGELOG.md — added an Unreleased entry.

Notes

  • No behaviour change — documentation and CLI help text only.
  • A follow-up could surface the existing predecessors ignored in norm mode warning at a more visible log level, but this PR is scoped to docs as discussed on the issue.

Closes #160

🤖 Generated with Claude Code

A cube read (--tm1-instance) cannot auto-detect its execution mode the
way a file source can — every workflow occupies the same measures in the
rushti cube. It therefore defaults to norm and silently drops the
predecessors measure unless --mode opt is passed, which is why
predecessors were missing from cube-read plans like Sample_Optimal_Mode.

The docs and CLI help wrongly described --mode as universally deprecated
and ignored; that is only true for file sources. Correct the CLI
reference, settings reference, migration guide, getting-started
task-files page, and rushti run --help, and add a 'Choosing the mode for
cube reads' section to the TM1 integration guide.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicolasbisurgi nicolasbisurgi added the documentation Used for documentation only issues label Jun 17, 2026
@nicolasbisurgi nicolasbisurgi self-assigned this Jun 17, 2026
@nicolasbisurgi nicolasbisurgi merged commit c934385 into master Jun 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Used for documentation only issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rushti from cube predecessors missing in json

1 participant