Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"rollForward": false
},
"demaconsulting.pandoctool": {
"version": "3.12.1",
"version": "3.14.0",
"commands": [
"pandoc"
],
Expand Down Expand Up @@ -73,7 +73,7 @@
"rollForward": false
},
"demaconsulting.sysml2tools.tool": {
"version": "0.3.0-beta.3",
"version": "0.3.0-beta.6",
"commands": [
"sysml2tools"
],
Expand All @@ -94,7 +94,7 @@
"rollForward": false
},
"demaconsulting.canvasnet.tool": {
"version": "0.2.0-beta.11",
"version": "0.2.0-beta.13",
"commands": [
"canvasnet"
],
Expand All @@ -108,4 +108,4 @@
"rollForward": false
}
}
}
}
7 changes: 4 additions & 3 deletions .github/agents/developer.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ Perform software development tasks by determining and applying appropriate stand
- For each modified file, identify which companion artifacts need updating
(requirements, design docs, verification docs, tests, review-sets, README.md, user guides)
- Include companion artifact updates in the work plan
4. **Execute work** following standards requirements and quality checks
4. **Execute work** following standards requirements and quality checks; while iterating, use
targeted checks per AGENTS.md "Efficient Validation"
5. **Formatting**: Run `pwsh ./fix.ps1` to silently apply all
available auto-fixers (dotnet format, markdown, YAML) before committing
6. **Build and test** (code changes only): Run `pwsh ./build.ps1` and confirm it
passes - report FAILED if the build or any tests fail
6. **Build and test** (code changes only): Run `pwsh ./build.ps1` once the work is complete and
confirm it passes - report FAILED if the build or any tests fail
7. **Generate completion report** per the AGENTS.md reporting requirements - save to
`.agent-logs/{agent-name}-{subject}-{unique-id}.md` and return the summary to the caller

Expand Down
4 changes: 2 additions & 2 deletions .github/agents/implementation.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ The state-transitions include retrying a limited number of times:
Call the **planning** agent as a sub-agent (custom agent from `.github/agents/`) with:

- **context**: the user's request + any previous quality findings + retry context
- **goal**: produce a verified implementation plan, or a targeted plan to address
the identified quality issues if this is a retry
- **goal**: produce a verified implementation plan, or on a retry a correction plan covering
only the identified quality issues (the original plan still stands)

Once the planning sub-agent finishes:

Expand Down
30 changes: 29 additions & 1 deletion .github/agents/orchestrator.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,31 @@ briefly, what you loaded.
- **Keep results lean** - ask for a short summary and a report path; read a full report only
when a decision depends on it.

# Large Efforts

When orchestrating a multi-stage effort (a migration, a multi-feature change), process overhead -
agent runs, repeated full gates, CI round-trips - can dwarf the work itself. Before starting,
estimate the effort, choose a strategy, and state both with your reasoning:

- **Copy and adapt** - a migrated sibling or reference exists: port it and adapt to this project.
Fastest, but borrowed text can pass lint while describing the sibling; check accuracy.
- **Skeleton first** - risk is in plumbing (scripts, CI, pipelines): get it working end-to-end with
placeholder content, validate once, then fill content fast.
- **Gate foundations only** - run full quality only on stages later work builds on and that are costly to
change (CI, requirement IDs, model structure); run content stages fast.
- **Parallel fan-out** - independent pieces touching disjoint files run as concurrent agents after a
foundation exists; check cross-artifact consistency afterwards.

Prefer the fewest agent runs that fit - one per pull request when its work fits one agent's context - and
the lightest agent that fits. Give each agent only the references its task needs.

Track progress against the estimate. When it diverges, pivot yourself (merge stages, change agent or
strategy) and record what changed and why; runs may be unattended, so do not stop to ask. Pivots may
change the process, never the quality gates or the agreed scope.

Finish with the full gates, then focused formal reviews per review-set run in parallel, one round of fixes,
the full gates again if the fixes changed files, and report any remaining findings rather than looping.

# Working with the User

- Keep replies short: results and decisions needed.
Expand All @@ -59,5 +84,8 @@ Aim for pull requests that each merge one complete, useful change that could be
requirements, and docs, builds and passes alone, and leaves no stubs or dead code for a later part.
- Deliver parts in order: start the next part from main only after the previous one merges.
- Review fixes, lint fixes, and follow-ups go into the open pull request they belong to, not a new one.
- Sub-agents work on the agreed branch and do not open pull requests; you decide when it is complete.
- Sub-agents work on the agreed branch, commit locally, and never push or open pull requests; you decide when
it is complete.
- Push only when the pull request's work is complete and validated locally: each push to an open pull request
triggers CI and automated reviews.
- Keep mechanical churn (formatting, renames, generated files) in its own commit so reviewers can skip it.
6 changes: 6 additions & 0 deletions .github/agents/planning.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ user-invocable: true
Investigate the codebase and produce a verified implementation plan with all
companion artifact deliverables.

**Correction plans**: when called with quality findings to address (a retry), plan only the
corrections. The original plan still stands; do not re-investigate or re-plan the whole task.
For each finding, plan the fix plus the companion artifacts of the files that fix touches
(Step 3), since a correction can ripple (e.g. a renamed requirement affects verification docs
and review sets). Skip Step 4 unless a correction changes the approach.

## Step 1 — Load Standards

Read the relevant standards from `.github/standards/` using the selection matrix
Expand Down
28 changes: 20 additions & 8 deletions .github/skills/sysml2tools-query/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ querying this model over grepping/reading source files when you need to understa

## Prerequisites

The `sysml2tools` CLI is a local .NET tool pinned in `.config/dotnet-tools.json`.
The `sysml2tools` CLI (minimum version 0.3.0-beta.6) is a local .NET tool pinned in
`.config/dotnet-tools.json`.
Restore it once per session if not already available:

```pwsh
Expand All @@ -20,16 +21,18 @@ dotnet tool restore

## Model files

- `docs/sysml2/model/{system-name}.sysml` — system-level `part def` only (no subsystems/units
inline), in package `{SystemName}`. A repository may contain more than one system.
- `docs/sysml2/model/{system-name}.sysml` — system-level `part def` only (no subsystems/units inline), in package
`{SystemName}`, a facade that `public import`s its direct subsystems and any units it owns directly, so
`{SystemName}::{AnyItem}` resolves. A repository may contain more than one system.
- `docs/sysml2/model/{system-name}/{subsystem-name}.sysml` and
`docs/sysml2/model/{system-name}/{subsystem-name}/{unit-name}.sysml` — one file per
Subsystem/Unit, nested to mirror the same folder depth as that item's companion
`docs/design/`, `docs/reqstream/`, and `docs/verification/` files. Each declares its own
uniquely named package; by default `{SystemName}_{SubsystemName}Subsystem` or
`{SystemName}_{UnitName}`, qualified with the subsystem path
(`{SystemName}_{SubsystemName}_{UnitName}`) when the short name would collide. An element's
qualified name is e.g. `{SystemName}_{UnitName}::{UnitName}`.
(`{SystemName}_{SubsystemName}_{UnitName}`) when the short name would collide. A subsystem
package is a facade (`public import` of the packages it owns). An element's qualified name is
e.g. `{SystemName}_{UnitName}::{UnitName}`.
- `docs/sysml2/model/ots.sysml` — off-the-shelf (OTS) dependency parts (present when OTS items
exist).
- `docs/sysml2/model/shared.sysml` — Shared Package parts (present when Shared Package items
Expand All @@ -38,10 +41,19 @@ dotnet tool restore
sibling of `model/`, not nested inside it. Not usually needed for query workflows, but
useful to see how diagrams are scoped.

`query describe -e` (and the other element-argument verbs) accepts either the declared
qualified name (`{Package}::{Element}`) or a facade path such as `{SystemName}::{UnitName}`,
resolved through the facades' `public import`s and aliases, as `lint` resolves it. When the
name was reached through a facade, the output shows a `Looked up as:` line next to the declared
qualified name. A name that denotes more than one distinct element is reported as ambiguous,
with its candidates; use the declared qualified name to choose. `query find --name` shows the
declared qualified name.

Always pass all `.sysml` files (or a glob covering them) to every `sysml2tools`
invocation — the model spans multiple files and cross-references between them (each file
declares one uniquely named package and references others through `import` or qualified
names; same-named packages in different files are not merged), so every file a reference
declares one uniquely named package; facade packages `public import` the packages they own,
and other references use `private import` or qualified names; same-named packages in
different files are not merged), so every file a reference
points at must be loaded. As of `sysml2tools` 0.1.0-beta.5, every subcommand
(`lint`, `render`, `query`) expands `*`/`**` glob patterns internally and recurses
correctly — pass a single **quoted** glob string and let the tool resolve it, rather than
Expand Down Expand Up @@ -157,5 +169,5 @@ standard for full modeling and view-authoring conventions.
Before committing changes to any `.sysml` file, lint it:

```pwsh
dotnet sysml2tools lint 'docs/sysml2/**/*.sysml'
dotnet sysml2tools lint --strict-unresolved 'docs/sysml2/**/*.sysml'
```
Loading
Loading