Skip to content

docs(self-model): bring the pipeline, runtime, identity and quality packages up to date - #2047

Merged
HuiJun merged 23 commits into
developfrom
feature/self-model-runtime-drift
Nov 17, 2026
Merged

HuiJun merged 23 commits into
developfrom
feature/self-model-runtime-drift

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

What and why

The self-model's pipeline.sysml, behavior.sysml, execution.sysml, identity.sysml and quality.sysml had fallen behind the implementation (0.12.0/0.12.1). This brings them up to date, every added fact read back from the code by the new examples/self_model_core_test.go (self_model_test.go is near the 2000-line cap):

  • execution.sysml — LoopPerformances (Actions::Action::loops, Actions::LoopAction::body, the two loop types; each iteration performing the body) with loopEntered/iterationPerformed events and performLoop/performBody messages on the ExecuteAction occurrence; ActionRequest/ActionResults carrying advance, trace, events, the action_trace/state_trace capabilities and DocumentEvent trace records; Instance.kernelMembersOutsideShape; SharedModel with the runtime's memo tables (actionGraphs, chainDeclarations, subsetters, subsetsTransitively, …) and object-feature iteration; RunContext answering shots/time slices from the run and recording a behavior that cannot start as behavior-start-failed while its object stands; Scheduler.dueOrderChoice and the per-draw statement index.
  • behavior.sysml — ReadFeatureValue gains the kernel-member decision (a start/end shot or time slice the shape leaves out is answered from the run, not refused); TokenFlow gains the waiting and terminated states and the executor state spellings.
  • pipeline.sysml — Workspace gains ProjectDiscovery (.project.json, lib and .sysand/lib layouts, OPENSYSML_LIBRARY_ROOTS, .kpar) and WorkspaceChecks (library-declared-twice, once per workspace); Solver gains OPENSYSML_SMT, the pin sources and the defining equation role; SmtEngine gains DefaultMoves, MaxSlots and the derived-feature encoding.
  • identity.sysml — the three library languages, the extension-library prefix and the :: separator; InteropHarness now names where the Flexo measurement lives (tools/referee/flexo, FLEXO_INTEROP).
  • quality.sysml — SourceTree gains conformance, packaging, scripts, docs, examples, changes, deploy and ci (the test now also fails on an unmodelled top-level directory); a RaceSuite verification def (the nineteen shards of scripts/race-shard.sh on sixteen CircleCI nodes); LandAChange states the base branch, ready-for-review opening, the pr.yml events, the tier decider scripts/ci-changed-areas.sh with the quick push tier, the queue merge-queue tier and the ci:full label, and the merge_group run.
  • README: the ReadFeatureValue decision-node count and the TokenFlow/quality.sysml sentences.

Not modelled (reported instead): internal/*/ packages with no stage-level part — check/codes, exec/{engines,hostcap,ingest,objref,runtrace,sweep}, frontend/{buildinfo,guard,protoconv,symbolfacts,usage}, ir/imagefile, semantic/metamodel, syntax/{nsmerge,semtok}, translate/{convert,deferred,filename,fmi,xmi}, workspace/{dataimport,envvar,modeldoc,modelrt,notebook,selfcheck}. The fourteen stages' goPackages, the 65 passes, 8 budgets, 7 engines and 14 invariants were checked and are unchanged.

Merge with develop and baseline movements

origin/develop at 95b462c823 (#2268) is merged with a merge commit (a31a71e313), after 41050bbd3c (#2266, as 54729c7197), 5aee867b03 (#2279, as 4f4490ba5c) and the earlier merges of cafd49efeb (8d0bf56666), 99e4dcd0c0, 97e7eedb29 (1e59e62114) and f67172df95 (aba89b59c1); no rebase. After the 5aee867b03 merge every baseline -check reproduced. The 41050bbd3c merge (#2266 re-records the derived census and structure differential) conflicted in derived_census_baseline.json and structure_differential_expected.txt; both were re-recorded by derived-census -update -require-exporter and -update-structure-differential (54729c7197). The 95b462c823 merge (#2268 re-records the same families) merged cell-wise without conflict; derived-census -check and pilot-apijson-diff -check then reproduced, and the structure differential moved in one cell, examples Usage::directedUsage equal 4129 → 4186 (the cell-wise sum against the measurement once #2268's flow-end memberships meet the self-model's additions), re-recorded by tool in dcdaf2a7f6. The one pilot-diff -check mismatch (totals.agreement 1105 → 1107, severityMismatch 10 → 8, a KerML-notation warning now an error) is develop's own, from #2275, and pilot-differential-baseline.json is left for the fix on develop rather than carried here. scripts/install-baseline-merge-driver.sh was run first, so the count baselines (derived_census_records.tsv, derived_census_baseline.json, structure_differential_expected.txt, pilot-differential-baseline.json, api-json-differential/**/*.json) merged cell-wise; the one textual conflict, in docs/project/api-json-differential.md, keeps develop's adjudication paragraphs and this PR's. make stdlib-snapshot after the merge changed nothing. Develop's new top-level ci/ directory is modelled in quality.sysml (the source-tree test caught it). That test takes its top-level inventory from git ls-files, so build outputs such as make docs' gitignored site/ never count as unmodelled source; only the tracked mkdocs overrides/ is exempt by name. The merged baselines were then re-recorded by the repo tools only (pilot-diff -update, pilot-apijson-diff -update, derived-census -update, -update-structure-differential); tests/corpus/testdata/training_examples_expected.txt is untouched.

Against develop (f67172df95), every moved cell is the self-model's new elements and sits under the examples root; no other root moves in any baseline:

  • API JSON differential (pilot-apijson-diff -update): 577 more elements match (107344 → 107921; ours-only 19142 → 19198, pilot-only 28488 → 28655), all under examples (33563 → 34140, 5589 → 5645, 10573 → 10740); 2350 rows move, no row appears or disappears, no row has fewer equal; the 166 rows that gained present-different are the Multiplicity inherited family (3491 → 3556, the implied multiplicities of the new attributes), the PartUsage inherited family (1720 → 1731 on featureMembership, inheritedFeature, member, membership; feature 1721 → 1732, inheritedMembership 1723 → 1734) and AttributeUsage.ownedMember (1871/738 → 1885/791 equal/different, the new string attributes' implied multiplicity members), for the causes the record already states. Only the eight examples/self-model/*.sysml.json fragments and index.json change; in document, surfaces and views only the pilot's own duplicate/unkeyable figures move (the pilot writes imported packages again under each importing file). Adjudicated in docs/project/api-json-differential.md.
  • Pilot differential (pilot-diff -update): only the examples input digest and the recorded date; no diagnostic count moves.
  • Derived census (derived-census -update): the examples digest and element counts (39217 → 39935 elements, 22767 → 23179 implied; the pilot's 51722 → 52554 elements, 82277 → 85313 duplicates); 233 examples rows move their carrier/value counts by the new elements, no rule row appears or disappears and no verdict changes.
  • Structure differential (-update-structure-differential): examples root matched 36647 → 37293, unmatched 11560 → 11704 (110 rows move, none appears or disappears); no other root moves.

Known limitation / tooling note

go run -C tools ./cmd/pilot-diff -update does not fail when the pinned pilot validator jar is absent: with scripts/pilot-pin.sh at 0.63.1 but only the 0.63.0 jar provisioned under build/pilot-validator/, it printed pilot SysML jar not found at .../jupyter-sysml-kernel-0.63.0-all.jar once per file, exited 0, and wrote a record with pilotDiagnostics 0, agreement 0, pilotOnly 0 (every diagnostic counted ours-only). That record was discarded; the validators were re-provisioned at 0.63.1 (pilot-validator, pilot-sysml-validator, pilot-kerml-validator) and -update re-run with zero missing-jar lines, which produced the baseline in this PR. Likewise derived-census refused a stale build/pilot-json-exporter ("names no Java feature release") until ./scripts/download-pilot-json-exporter.sh --force rebuilt it under JDK 21. The pilot-diff tool should refuse to record over a missing jar; that fix is out of this PR's scope.

How it was verified

On the exact head, with JDK 21 first on PATH:

  • go build ./..., go vet ./..., go vet -C tools ./..., gofmt -l . (empty), make lint, make changelog-check, python3 scripts/check-doc-ids.py, python3 scripts/changelog.py check
  • make stdlib-snapshot (no change), go run -C tools ./cmd/derived-census -check, go run -C tools ./cmd/pilot-apijson-diff -check, go run -C tools ./cmd/pilot-diff -check, make docs-counts (no change), make docs-check, go test -C tools -count=1 ./referee/..., go test -count=1 ./tests/hygiene
  • make test-queue over all nineteen shards, make wasm-check, make python-test, client/node (npm install, npm run build, npm test), client/rust (cargo fmt --check, cargo clippy --all-targets -D warnings, cargo test --workspace against this tree's bin/sysml-grpc), go run -C tools ./cmd/pilot-exec-diff, pilot-xpect -check, hideo-suite -check, go test -C tools ./...
  • go test -count=1 -timeout 60m ./... with OPENSYSML_REQUIRE_TRAINING_CORPUS, OPENSYSML_REQUIRE_PILOT_CORPORA, OPENSYSML_REQUIRE_SPEC_EXAMPLES, OPENSYSML_REQUIRE_PILOT_LIBRARY_XMI, OPENSYSML_REQUIRE_PSSM_SUITE and OPENSYSML_REQUIRE_SYSML_V1TOV2 set after their download scripts
  • make self-model renders every view and the document; sysml -validate is clean over examples/self-model/*.sysml
  • The two-line comment check of .agents/skills/reviewing-pull-requests/SKILL.md §1 over the Go and SysML diff (prints nothing)
  • git merge-base --all origin/develop HEAD prints one commit; git merge-tree --write-tree returns 0 against develop (7a6e802dbf at push time) and the queued heads fd795ecf74, 2abf67ca6b, b5646780aa, e661cc5046, 816c07bc5e, 74be92475d, 30fe1c098d, fde15f547d, 6067b9f302, 10219ec1fb, 90b040aa1e, 747c04eda1, 3a6a6c3059, 3f095be571, 1e965cde92

Checklist

  • make test and make lint pass locally
  • Tests added or updated for the change
  • Documentation extended where it already covers the surface (see CONTRIBUTING.md)
  • Changelog entry added as changes/unreleased/<slug>.<section>.md, not as an edit to CHANGELOG.md
  • baselines regenerated and make docs-counts run if a gate count moved (compliance rows need nothing: the census is counted at docs build)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

Link to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/aa20d5c7786f44f0a7502814f8b29b3d
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/aa20d5c7786f44f0a7502814f8b29b3d?variant=devin
Requested by: @HuiJun


🟢 Devin Review found nothing to fix · View findings

Devin Review

…ackages up to date

Model the loop performances, ExecuteAction trace/events/advance, run-answered
occurrence shots, recorded behavior-start failures, the shared model's memo
tables, the due-order statement index, project discovery's lib/ layout, the
twice-declared library warning, the solver's defining equations and pin
sources, the SMT bounds, the identity table's library languages, the Flexo
measurement's home, the race suite's shards and the pull-request workflow,
each read back from the code by examples/self_model_core_test.go; re-record
both pilot differential baselines for the moved examples digest.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review November 9, 2026 15:28
devin-ai-integration Bot and others added 17 commits November 9, 2026 23:37
…t' into feature/self-model-runtime-drift

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	docs/project/api-json-differential-baseline.json
#	docs/project/api-json-differential.md
#	docs/project/pilot-differential-baseline.json
…g on the surfaces branch

Only the examples root moves (the self-model's surfaces, document and runtime
catch-ups together): 543 more elements match, no scorecard row appears or
disappears; the record's headline, examples row and gap table are restated
from the baseline.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…t' into feature/self-model-runtime-drift

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…the surfaces branch

pilot-diff, pilot-apijson-diff, derived-census and the structure differential
re-recorded by tool on the merged tree; api-json-differential.md restated from
the baseline (543 more matched elements, all under examples).

Co-Authored-By: jason.han <hanhuijun@gmail.com>
Re-recorded the pilot, API JSON and derived-census baselines on the trimmed
tree; the structure differential does not move.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	docs/project/api-json-differential-baseline.json
#	docs/project/api-json-differential.md
#	docs/project/pilot-differential-baseline.json
#	internal/semantic/metamodel/derived_census_baseline.json
#	internal/translate/export/testdata/structure_differential_expected.txt
The API JSON differential is re-recorded onto the per-file fragments, the pilot differential and derived census on the examples digest, and the structure differential on the self-model's new elements; the adjudication names the movement and a stray conflict marker leaves the record.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…velop

The race suite runs nineteen shards on sixteen nodes, a push runs the quick tier and the merge queue the queue tier as scripts/ci-changed-areas.sh decides, and deploy/ joins the source tree; the tests read each back.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…facts

Co-Authored-By: jason.han <hanhuijun@gmail.com>
Generated baselines take develop's side; re-recorded by tool in the next commit.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
… differentials on develop 99e4dcd and adjudicate the self-model movement

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…-runtime-drift

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	docs/project/api-json-differential.md
#	docs/project/api-json-differential/examples/self-model/behavior.sysml.json
#	docs/project/api-json-differential/examples/self-model/quality.sysml.json
#	docs/project/api-json-differential/index.json
#	docs/project/pilot-differential-baseline.json
#	internal/semantic/metamodel/derived_census_baseline.json
#	internal/semantic/metamodel/derived_census_records.tsv
#	internal/translate/export/testdata/structure_differential_expected.txt
Co-Authored-By: jason.han <hanhuijun@gmail.com>


Only the examples root moves (the self-model's new facts): api-json +577 matched, census 233 examples
rows, structure differential examples 37293/11704, pilot-diff digest only. All by the repo tools.

Co-Authored-By: jason.han <hanhuijun@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

devin-ai-integration Bot and others added 2 commits November 16, 2026 11:48
…rking directory

The source-tree test treated every top-level directory as source unless it was
on a hand-kept list of build outputs, so a rendered site/ from make docs made
go test ./examples fail. The inventory now comes from git ls-files, which leaves
out every build output; only the documentation theme overrides stay exempt.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@HuiJun
HuiJun added this pull request to the merge queue Nov 16, 2026
devin-ai-integration Bot added a commit that referenced this pull request Nov 16, 2026
… fix/conjugated-port-member-direction

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration
devin-ai-integration Bot removed this pull request from the merge queue due to a manual request Nov 17, 2026
…-runtime-drift

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	internal/semantic/metamodel/derived_census_baseline.json
#	internal/translate/export/testdata/structure_differential_expected.txt
Usage::directedUsage over examples/ measures 4186 equal once #2268's
flow-end memberships meet the self-model additions; the cell-wise merge
had summed to 4129.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@HuiJun
HuiJun added this pull request to the merge queue Nov 17, 2026
devin-ai-integration Bot added a commit that referenced this pull request Nov 17, 2026
…jugated-port-member-direction

Re-recorded by tool on the merged tree: the hideo-suite table and baseline
(both sides moved it), and the Type::input and Type::output rows of the
derived census for the pilot-examples and testdata roots.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@HuiJun
HuiJun added this pull request to the merge queue Nov 17, 2026
Merged via the queue into develop with commit 508d0fa Nov 17, 2026
32 of 56 checks passed
@HuiJun
HuiJun deleted the feature/self-model-runtime-drift branch November 17, 2026 16:39
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.

1 participant