Skip to content

Establish architectural design process for orchestration rework#74

Merged
lythx merged 15 commits into
mainfrom
establish-architectural-design-process
Apr 25, 2026
Merged

Establish architectural design process for orchestration rework#74
lythx merged 15 commits into
mainfrom
establish-architectural-design-process

Conversation

@lythx
Copy link
Copy Markdown
Contributor

@lythx lythx commented Apr 12, 2026

This PR adds a docs/rework-orchestration directory which will be used for documenting research, decisions and progress related to the orchestration rework as described in this issue. I used GPT 5.3 Codex to generate the initial pages, focusing on the current architecture, bottlenecks and profiling plan.

@grzanka
Copy link
Copy Markdown
Collaborator

grzanka commented Apr 12, 2026

@lythx fix the conflicts

Comment on lines +16 to +17
3. Optimized result transport using S3-compatible object storage and efficient binary formats instead of large JSON payloads through the message broker.
4. Optimized result merge by replacing pure-Python averaging with high-performance numerical libraries.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S3 storage and binary formats are the technical details which would come up after many more interations and discussions of all pros and cons. In this document I will focus more on the goals and user stories.

we also need a lot of estimations for many items:

  • typical times needed to connect to HPC cluster (like Ares)
  • typical time the job sits in the waiting queue
  • number of parallel jobs per simulation users would like to HPC
  • number of simulations single user would like to run in parallel
  • time needed to dump single binary results to disk
  • how many files per simulation
  • how many pages per file

I suspect mine input would be needed in many cases here.

You can ask LLM to formulate many (i.e. >20) open questions, you can commit them here. I could help you and provide my input for that.

Take a look at the bottom of https://github.com/APTG/dedx_web/blob/master/docs/04-feature-specs/entity-selection.md - these are leftovers of similar process I had

Copy link
Copy Markdown
Collaborator

@grzanka grzanka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

@lythx lythx requested a review from Copilot April 21, 2026 09:36
@lythx
Copy link
Copy Markdown
Contributor Author

lythx commented Apr 21, 2026

@copilot resolve the merge conflicts in this pull request

…al-design-process

# Conflicts:
#	package-lock.json
#	package.json

Co-authored-by: lythx <93780882+lythx@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new documentation area to formalize the architectural design process for the simulation orchestration rework (vision, current-state analysis, bottlenecks, and a Phase 1 profiling runbook), and wires it into the docs site navigation/rendering.

Changes:

  • Added rework-orchestration/ doc section with vision page, current architecture/bottlenecks context, ADR registry + template, open-questions backlog, and a Phase 1 profiling plan.
  • Updated Starlight sidebar to include “Orchestration Rework” with autogenerated subsections.
  • Upgraded Astro/Starlight dependencies and added a Mermaid rendering plugin for the new diagrams.

Reviewed changes

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

Show a summary per file
File Description
src/content/docs/rework-orchestration/index.mdx Adds vision, goals, scope, and links into the orchestration rework doc set.
src/content/docs/rework-orchestration/context/current-architecture.mdx Documents as-is orchestration flows; introduces Mermaid sequence diagrams.
src/content/docs/rework-orchestration/context/current-bottlenecks.mdx Captures bottlenecks and links to the profiling runbook.
src/content/docs/rework-orchestration/context/open-questions.mdx Adds structured discovery backlog/questions for Phase 1–3.
src/content/docs/rework-orchestration/research/phase-1-profiling-plan.mdx Adds reproducible profiling protocol and measurement outputs.
src/content/docs/rework-orchestration/adr/index.mdx Adds ADR registry scaffold.
src/content/docs/rework-orchestration/adr/_template.mdx Adds a reusable ADR template (hidden/draft).
src/content/docs/rework-orchestration/design/.gitkeep Keeps the design directory tracked for future documents.
astro.config.mjs Adds Mermaid Starlight plugin + new sidebar section.
package.json Upgrades Astro/Starlight/sitemap/sharp and adds Mermaid plugin dependency.
src/content/docs/local-setup/local-celery.mdx Tweaks the .env snippet fence formatting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

To use S3 (for the full licensed version), create a `.env` file in the project root with the following variables:

```env
```bash title=".env"
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fenced block is for a .env file, but it’s marked as bash. Using an env/dotenv/ini lexer (depending on what Starlight supports) would give more accurate syntax highlighting and reduce confusion that the lines are shell commands.

Suggested change
```bash title=".env"
```env title=".env"

Copilot uses AI. Check for mistakes.
Comment thread package.json Outdated
Comment on lines 12 to 23
"dependencies": {
"@astrojs/react": "^5.0.1",
"@astrojs/sitemap": "3.2.1",
"@astrojs/starlight": "^0.37.6",
"@astrojs/sitemap": "3.7.1",
"@astrojs/starlight": "^0.38.2",
"@pasqal-io/starlight-client-mermaid": "^0.1.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"astro": "^5.6.1",
"astro": "^6.0.8",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"sharp": "^0.34.2",
"sharp": "^0.34.5",
"swagger-ui-react": "^5.32.1"
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These dependency upgrades appear to raise the minimum supported Node.js version (e.g., @astrojs/react@5.0.1 declares engines.node >=22.12.0 in the lockfile). To avoid CI/dev environment drift, consider adding an explicit engines.node constraint (and/or updating any docs/CI that still assume Node 20).

Copilot uses AI. Check for mistakes.

Pseudo-complexity:

- O(T _ P _ V), where:
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pseudo-complexity line uses underscores (O(T _ P _ V)) which Markdown will typically interpret as emphasis, so it may render incorrectly. Consider formatting this as inline code and using an unambiguous multiplication symbol (e.g., O(T*P*V) or O(T·P·V)).

Suggested change
- O(T _ P _ V), where:
- `O(T*P*V)`, where:

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

@copilot resolve the merge conflicts in this pull request

Merge conflicts resolved in commit 1703fcb. Merged origin/main into the branch, keeping the @pasqal-io/starlight-client-mermaid plugin from this branch while taking all updated package versions from main.

@lythx lythx merged commit 3081b7f into main Apr 25, 2026
4 checks passed
@lythx lythx deleted the establish-architectural-design-process branch April 25, 2026 17:31
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.

4 participants