Repository navigation
docs(self-model): bring the pipeline, runtime, identity and quality packages up to date - #2047
Merged
Merged
Conversation
…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>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
…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>
…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>
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
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>
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>
6 tasks done
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The self-model's
pipeline.sysml,behavior.sysml,execution.sysml,identity.sysmlandquality.sysmlhad 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 newexamples/self_model_core_test.go(self_model_test.gois near the 2000-line cap):LoopPerformances(Actions::Action::loops,Actions::LoopAction::body, the two loop types; each iteration performing the body) withloopEntered/iterationPerformedevents andperformLoop/performBodymessages on theExecuteActionoccurrence;ActionRequest/ActionResultscarryingadvance,trace,events, theaction_trace/state_tracecapabilities andDocumentEventtrace records;Instance.kernelMembersOutsideShape;SharedModelwith the runtime's memo tables (actionGraphs,chainDeclarations,subsetters,subsetsTransitively, …) and object-feature iteration;RunContextanswering shots/time slices from the run and recording a behavior that cannot start asbehavior-start-failedwhile its object stands;Scheduler.dueOrderChoiceand the per-draw statement index.ReadFeatureValuegains the kernel-member decision (a start/end shot or time slice the shape leaves out is answered from the run, not refused);TokenFlowgains thewaitingandterminatedstates and the executor state spellings.WorkspacegainsProjectDiscovery(.project.json,liband.sysand/liblayouts,OPENSYSML_LIBRARY_ROOTS,.kpar) andWorkspaceChecks(library-declared-twice, once per workspace);SolvergainsOPENSYSML_SMT, the pin sources and thedefining equationrole;SmtEnginegainsDefaultMoves,MaxSlotsand the derived-feature encoding.::separator;InteropHarnessnow names where the Flexo measurement lives (tools/referee/flexo,FLEXO_INTEROP).SourceTreegainsconformance,packaging,scripts,docs,examples,changes,deployandci(the test now also fails on an unmodelled top-level directory); aRaceSuiteverification def (the nineteen shards ofscripts/race-shard.shon sixteen CircleCI nodes);LandAChangestates the base branch, ready-for-review opening, thepr.ymlevents, the tier deciderscripts/ci-changed-areas.shwith thequickpush tier, thequeuemerge-queue tier and theci:fulllabel, and themerge_grouprun.ReadFeatureValuedecision-node count and theTokenFlow/quality.sysmlsentences.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/developat95b462c823(#2268) is merged with a merge commit (a31a71e313), after41050bbd3c(#2266, as54729c7197),5aee867b03(#2279, as4f4490ba5c) and the earlier merges ofcafd49efeb(8d0bf56666),99e4dcd0c0,97e7eedb29(1e59e62114) andf67172df95(aba89b59c1); no rebase. After the5aee867b03merge every baseline-checkreproduced. The41050bbd3cmerge (#2266 re-records the derived census and structure differential) conflicted inderived_census_baseline.jsonandstructure_differential_expected.txt; both were re-recorded byderived-census -update -require-exporterand-update-structure-differential(54729c7197). The95b462c823merge (#2268 re-records the same families) merged cell-wise without conflict;derived-census -checkandpilot-apijson-diff -checkthen reproduced, and the structure differential moved in one cell,examplesUsage::directedUsageequal 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 indcdaf2a7f6. The onepilot-diff -checkmismatch (totals.agreement1105 → 1107,severityMismatch10 → 8, a KerML-notation warning now an error) is develop's own, from #2275, andpilot-differential-baseline.jsonis left for the fix on develop rather than carried here.scripts/install-baseline-merge-driver.shwas 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, indocs/project/api-json-differential.md, keeps develop's adjudication paragraphs and this PR's.make stdlib-snapshotafter the merge changed nothing. Develop's new top-levelci/directory is modelled inquality.sysml(the source-tree test caught it). That test takes its top-level inventory fromgit ls-files, so build outputs such asmake docs' gitignoredsite/never count as unmodelled source; only the tracked mkdocsoverrides/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.txtis untouched.Against develop (
f67172df95), every moved cell is the self-model's new elements and sits under theexamplesroot; no other root moves in any baseline:pilot-apijson-diff -update): 577 more elements match (107344 → 107921; ours-only 19142 → 19198, pilot-only 28488 → 28655), all underexamples(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 theMultiplicityinherited family (3491 → 3556, the implied multiplicities of the new attributes), thePartUsageinherited family (1720 → 1731 onfeatureMembership,inheritedFeature,member,membership;feature1721 → 1732,inheritedMembership1723 → 1734) andAttributeUsage.ownedMember(1871/738 → 1885/791 equal/different, the new string attributes' implied multiplicity members), for the causes the record already states. Only the eightexamples/self-model/*.sysml.jsonfragments andindex.jsonchange; indocument,surfacesandviewsonly the pilot's own duplicate/unkeyable figures move (the pilot writes imported packages again under each importing file). Adjudicated indocs/project/api-json-differential.md.pilot-diff -update): only theexamplesinput digest and the recorded date; no diagnostic count moves.derived-census -update): theexamplesdigest and element counts (39217 → 39935 elements, 22767 → 23179 implied; the pilot's 51722 → 52554 elements, 82277 → 85313 duplicates); 233examplesrows move their carrier/value counts by the new elements, no rule row appears or disappears and no verdict changes.-update-structure-differential):examplesroot 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 -updatedoes not fail when the pinned pilot validator jar is absent: withscripts/pilot-pin.shat 0.63.1 but only the 0.63.0 jar provisioned underbuild/pilot-validator/, it printedpilot SysML jar not found at .../jupyter-sysml-kernel-0.63.0-all.jaronce per file, exited 0, and wrote a record withpilotDiagnostics 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-updatere-run with zero missing-jar lines, which produced the baseline in this PR. Likewisederived-censusrefused a stalebuild/pilot-json-exporter("names no Java feature release") until./scripts/download-pilot-json-exporter.sh --forcerebuilt 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 checkmake 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/hygienemake test-queueover 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 --workspaceagainst this tree'sbin/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 ./...withOPENSYSML_REQUIRE_TRAINING_CORPUS,OPENSYSML_REQUIRE_PILOT_CORPORA,OPENSYSML_REQUIRE_SPEC_EXAMPLES,OPENSYSML_REQUIRE_PILOT_LIBRARY_XMI,OPENSYSML_REQUIRE_PSSM_SUITEandOPENSYSML_REQUIRE_SYSML_V1TOV2set after their download scriptsmake self-modelrenders every view and the document;sysml -validateis clean overexamples/self-model/*.sysml.agents/skills/reviewing-pull-requests/SKILL.md§1 over the Go and SysML diff (prints nothing)git merge-base --all origin/develop HEADprints one commit;git merge-tree --write-treereturns 0 against develop (7a6e802dbfat push time) and the queued headsfd795ecf74,2abf67ca6b,b5646780aa,e661cc5046,816c07bc5e,74be92475d,30fe1c098d,fde15f547d,6067b9f302,10219ec1fb,90b040aa1e,747c04eda1,3a6a6c3059,3f095be571,1e965cde92Checklist
make testandmake lintpass locallychanges/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelogLink 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