Skip to content

Let embedding hosts run a named entry method with arguments and console input - #703

Merged
lagergren merged 17 commits into
masterfrom
lagergren/embedded-run-runtime
Oct 20, 2026
Merged

lagergren merged 17 commits into
masterfrom
lagergren/embedded-run-runtime

Conversation

@lagergren

@lagergren lagergren commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lets an embedding host run a built module's named entry method with exact arguments and console
input, without starting the command-line runner's HTTP host. This is the runtime part of the
embedded build and run in #693, where the language server builds modules with its own compiler
and runs them in a reusable worker, so VS Code and IntelliJ can offer Run without Gradle. It is
independent of the compiler pull requests and touches only javatools and lib_runner.

Changes

  • EmbeddingSupport.runMethod(input, moduleName, version, entry, console, consoleIn, rootDir, errs)
    runs entry, an EmbeddingSupport.EntryPoint: a method name and an exact argument list, never
    shell-parsed. EntryPoint.RUN is run with no arguments, and new EntryPoint("greet", "one", "two")
    takes the arguments inline.
  • The method is selected the way the command-line runner does it:
    • EmbeddingSupport.entryMethod returns the one method of that name on the module's type,
      including methods its annotations contribute, found with the runner's own
      Connector.findMethods. It must have at most one required parameter. The module must be
      linked (FileStructure.isLinked()), which entryMethod checks.
    • Connector.findMethods selects methods only (MethodKind.Method), since Container.invoke
      calls only methods. So a run function reports "Missing method" before anything runs, here
      and in xtc run for both back ends.
    • EmbeddingSupport.passesArguments says whether the arguments are passed as a String[]: when
      the method requires it, or when arguments are given and it has a parameter. Otherwise nothing is
      passed, so a default value of the parameter applies. As for the command-line runner, the
      parameter may be of any type a String[] can be passed as.
    • Arguments for a method without parameters are dropped, and runMethod reports the
      command-line runner's warning as EMB-6 (WARN_ARGUMENTS_IGNORED): "Method "run" does not take
      any parameters; ignoring the specified arguments."
    • A method that cannot be an entry point is reported as EMB-7 (ERR_ENTRY_METHOD) with the
      command-line runner's message, such as Missing method "run" in module RunLibrary, and
      runMethod returns null before registering a console. It used to fail inside the container
      setup, which reported EMB-3, "Unable to create the application container", wrapping the
      exception.
  • The existing run overloads call runMethod with EntryPoint.RUN and ConsoleInput.NONE, so
    their behavior is unchanged. They reject their unimplemented injections and customInjector
    options themselves, before loading the module.
  • InterpreterControl no longer calls the runner's run(), which also started its HTTP host on
    port 8080; tasks are registered and started directly. lib_runner tasks take the method name
    and arguments (registerTask, Task.start).
  • Console input is an EmbeddingSupport.ConsoleInput, readLine(boolean suppressEcho), so the
    echo request reaches the host, which shows the input and decides how to honor it.
    ConsoleInput.of(reader) adapts a BufferedReader and ignores the flag; ConsoleInput.NONE is
    input for a console without one, in place of null, and makes readLine unsupported.
  • xExternalConsole.readLine prints the prompt and reads one line on the runtime's IO executor
    (Container.scheduleIO, then Frame.waitForIO), so a program waiting for input holds no service
    worker. The end of input reads as an empty string, like TerminalConsole.
  • A run that cannot start fails its join() once. close() waits without rethrowing that failure
    (try-with-resources reported "Self-suppression not permitted" instead of it) and still releases
    the task: a runner Task.start() that throws now unregisters the task, so its directory can be
    deleted. Both halves predate this pull request.
  • EmbeddingSupport.registeredConsoles() counts the external consoles that runs registered and
    still hold, so a host that keeps the runtime across runs can check that ended runs leave none
    behind. It is backed by NativeContainer.getResourceNames() and
    xExternalConsole.registeredCount().
  • LspTest, a manual main() that reproduced Hot same-JVM reuse (LSP / resident tooling): failure swallowing, hidden thread-locals, JMM races, cross-run state bleed, and unbounded leaks in the runtime's reuse path #543, is removed. No build ran it. Its checks that
    assert behavior are now JUnit tests in EmbeddingSupportTest. Its run timings and native pool
    sizes, which it only printed, are dropped.

The new entry point is named runMethod, not run, because an eight-argument run overload would
make an all-null call, such as run(repo, name, null, null, null, null, null, errs), ambiguous. The
error listener stays optional, as elsewhere in EmbeddingSupport on master.

Tests

EmbeddingSupportTest (renamed from EmbeddingRunMethodTest) compiles and runs real modules:

  • entry method selection and its refusals, including methods with 3 parameters and 1 or 2 of them
    required, and an unlinked module;
  • a run method contributed by an annotation, and a run function;
  • arguments with spaces and non-ASCII text, and an optional argument array whose default applies
    only when no arguments are given;
  • readLine with and without console input, and reads that happen on virtual IO threads and pass
    the echo request (false for a name, true for a password);
  • a missing entry method, reported as EMB-7 with no console left registered, and a run that
    cannot start, closed in try-with-resources;
  • arguments for a method without parameters, dropped with the EMB-6 warning;
  • a module changed under the same name runs its new code, and an unchanged module runs with the
    current version of its dependency;
  • repeated runs add nothing to the two constant pools that outlive a run, except once for a type
    argument from the core library, and closing a run as it ends leaves no console registered;
  • additional injections and custom injectors are refused;
  • from LspTest: compile errors, the old run overloads with a console and by name, the supplied
    root directory, a failed run's exception reported through the console, and closing a suspended
    run.

Runs use a temporary root directory, and every wait is bounded by a time limit.

The compiled XDK modules come from the build: javatools has a testXtcModules configuration on the
same xtc variant the XDK distribution consumes (lib-ecstasy, lib-runner, javatools-bridge,
and what the runner needs), copied into the test resources. Gradle builds them before the tests, so
the tests run wherever :javatools:test runs, including CI, and fail instead of skipping if the
modules are missing. They used to look for xdk/build/install/xdk and skip without it, and CI runs
:javatools:test before :xdk:installDist, so CI had skipped them.

Validation

  • EmbeddingSupportTest: 24 tests, 0 failures, 0 skipped. spotlessCheck passes.
  • With the old run overloads passing null for the console input, as they did earlier in this pull
    request, the 4 tests that run them with a console fail with "Unable to start . Cause:
    java.lang.NullPointerException". The fix was restored.
  • With runMethod changed to drop the console input, the console test fails; the change was
    reverted.
  • Before the review changes, :javatools:test ran 440 tests, 0 failures, 42 existing skips; the new
    class ran 8 tests with none skipped. With xdk/build/install moved away and lib_runner/build
    deleted, the test task rebuilt lib-ecstasy and lib-runner first and still ran all 8. The
    configuration cache entry is reused on the next run. Earlier in review, :xdk:test passed 62
    tests with 8 existing skips.
  • Before the console changes in review, the same runtime code, with the language server and both
    editors on top, passed the native playbooks on [LSP] Complete compiler-backed LSP and IDE integrations #693's branch: VS Code 291 of its 292 cases (X218
    is a known VS Code Undo defect), IntelliJ 289 plus the 4 declared partials, with no IDE errors.

Limits

  • JIT runs are unsupported as before (JitControl throws), so they have no input either.
  • The run overloads keep their signatures, including the unimplemented injections and
    customInjector parameters.

lagergren added a commit that referenced this pull request Oct 16, 2026
The runtime part of 5a14da2 and 82b6ba5, with its test, is open as #703 from
lagergren/embedded-run-runtime against master. The integration plan's sync section names it and
ticks the item to open it; the remaining item is to rebase #693 onto master once #703 merges.
pr-roadmap.md links #703 in the synchronization note, the runtime-execution paragraph and the
row for 843bc12.

Validation: documentation only; gh pr view 703 reports it open, from
lagergren/embedded-run-runtime into master.
Comment thread lib_runner/src/main/x/runner.x Resolved
Comment thread lib_runner/src/main/x/runner.x Resolved
@lagergren
lagergren requested a review from ggleyzer October 18, 2026 13:16
lagergren added a commit that referenced this pull request Oct 18, 2026
docs/errs-integration-plan.md: the three inline review comments on #703, how 7b39bff addresses
each (including why the suggested argument tuple was not adopted as written and why the selection
runs on the control's linked module copy), its mirrors 1fdaa9b and c402aae, and the receipts
on all three branches.

pr-roadmap.md: a row for the follow-up and its copies.

Validation: documentation only; counts read from the JUnit XML.
lagergren added a commit that referenced this pull request Oct 18, 2026
docs/errs-integration-plan.md: the #703 follow-up entry records that it was pushed, answered and
re-requested, with CI passing on 7b39bff; a new entry for f407b7f (Run lens and runnable targets
for modules whose run method an annotation contributes) and its #693 copy ff42f45, with receipts on
both branches.

pr-roadmap.md: a row for f407b7f.

Validation: documentation only; identifiers and counts read from each run's results.json and the
JUnit XML.
lagergren added a commit that referenced this pull request Oct 18, 2026
docs/errs-integration-plan.md: an entry for 2a02ead on #703's branch (close() no longer rethrows
join()'s failure; a runner task whose start throws unregisters itself), its mirrors e4b2162 and
491da54, the static run function mismatch found while testing, and receipts on all three branches.

pr-roadmap.md: a row for the fix and its copies.

Validation: documentation only; counts read from the JUnit XML.
lagergren added a commit that referenced this pull request Oct 18, 2026
docs/errs-integration-plan.md: an entry for 0723b7c on #703's branch (entry method selection
considers only methods, since Container.invoke calls only methods) and 9619b0f (the Run lens and
runnable targets follow the same rule), their mirrors 86a1df1, e623053 and 7ab9d3e, the
changed trigger of the cannot-start test, the command-line runner left as is, and receipts on all
three branches.

pr-roadmap.md: a row for the two commits and their copies.

Validation: documentation only; identifiers and counts read from each run's results.json and the
JUnit XML.
@lagergren

Copy link
Copy Markdown
Contributor Author

@ggleyzer a question about static entry points, which the method selection in this PR now refuses (0723b7c).

A module whose run is a function (static void run()) behaves differently in the two back ends today:

  • xtc run (interpreter): the runner's selection (Connector.findMethods, MethodKind.Any) accepts it, then MainContainer.invoke finds only methods (findCallable without functions), prints Missing: run method for StaticRun and exits with 1.
  • xtc run --jit: it runs (static run ran, exit 0).
  • Embedded runs go through Container.invoke, which also finds only methods, so runMethod in this PR now refuses a function before the run starts.

Which do you want?

  1. Entry points are methods only: Connector.findMethods drops functions, so the command-line runner refuses a static run before running, and the JIT follows the interpreter.
  2. Functions are entry points too: the interpreter's Container.findModuleMethod (and so Container.invoke) would call functions, and this PR would accept them again.

I'd do 1 unless functions are meant to be entry points.

@lagergren
lagergren requested a review from ggleyzer October 18, 2026 16:26
lagergren added a commit that referenced this pull request Oct 18, 2026
… only methods

Review of #703.

Console input: readLine no longer blocks a service worker. The read runs
on the runtime's IO executor (Container.scheduleIO) and the result is
assigned through Frame.waitForIO, as the socket and name service natives
do, so a program waiting for input holds no XVM worker. "suppressEcho" is
no longer dropped: the host's input is now an xExternalConsole.Input,
readLine(boolean suppressEcho), and EmbeddingSupport.runMethod takes a
matching EmbeddingSupport.ConsoleInput. ConsoleInput.of(reader) adapts a
BufferedReader and ignores the flag; ConsoleInput.NONE is input for a
console without one, and replaces null: its readLine throws
UnsupportedOperationException, which the console raises as an Ecstasy
"unsupported", so neither the control nor the console checks for null.
With NONE, the prompt is printed before the read fails.

Entry points: Connector.findMethods selects methods only
(MethodKind.Method), so the command-line runner, which uses the same
lookup, refuses a static run before running it, and
EmbeddingSupport.entryArguments needs no filter of its own; a function now
reports "Missing method". The String[] parameter check keeps isA, as the
command-line runner does, so a parameter of any type a String[] can be
passed as (Object, List<String>) is accepted; a comment says so.

Comments: Connector.findMethods no longer restates that the type info
includes contributed methods; InterpreterControl drops the description of
the runner's run() and the mention of EmbeddingSupport.entryArguments; the
close() comment uses the suggested wording.

Tests: consoleInputIsReadOnAnIoThreadAndToldWhetherToEcho runs a module
that reads a name and a password; both reads happen on virtual IO threads,
and the host receives suppressEcho false, then true. The rejected function
case now expects "Missing method". Tests pass ConsoleInput.NONE, not null.

Validation: :javatools:test 440 tests, 0 failures, 42 existing skips, with
the installed XDK present locally, so all 8 EmbeddingRunMethodTest tests
ran. These tests skip without xdk/build/install/xdk; in CI :javatools:test
runs before :xdk:installDist, so CI does not run them.
lagergren added a commit that referenced this pull request Oct 18, 2026
… only methods

The #703 review changes (1c3a342, 72784d3), with the language server
adapted to the new console input type.

Console input: readLine no longer blocks a service worker. It reads on
the runtime's IO executor (Container.scheduleIO) and assigns the line
through Frame.waitForIO. "suppressEcho" reaches the host: the console's
input is an xExternalConsole.Input, readLine(boolean suppressEcho), and
EmbeddingSupport.runMethod takes a matching EmbeddingSupport.ConsoleInput.
ConsoleInput.of(reader) adapts a BufferedReader and ignores the flag;
ConsoleInput.NONE replaces null for a console without input, and its
readLine is raised as an Ecstasy "unsupported".

Entry points: Connector.findMethods selects methods only, so the
command-line runner refuses a static run before running it, and
entryArguments needs no filter; a function reports "Missing method". The
String[] check keeps isA, as the command-line runner does, with a comment.
Error messages quote the method name with Handy.quoted. Comments trimmed
as the review asked.

RunWorker passes EmbeddingSupport.ConsoleInput.of(BufferedReader(input)).
The editors still show what is typed: the echo request is not passed on to
them yet. A read still waiting when a run ends returns when RunWorker ends
that run's input, which it already does on exit and on stop.

Validation: :javatools:test 620 tests, 0 failures, 42 existing skips
(EmbeddingRunMethodTest ran with the installed XDK); :lang:lsp-server:test
2,355 tests, 0 failures, 2 existing skips; spotlessCheck passes; run cases
X280-X289 in VS Code run-1huZUh (10 of 10) and IntelliJ
run-14639589039011185817 (8 passed, X286-X288 partial as declared, no IDE
errors); no worker processes left.
lagergren added a commit that referenced this pull request Oct 18, 2026
docs/errs-integration-plan.md: an entry for 06e1d4a (the #703 review changes 1c3a342 and
72784d3 with RunWorker adapted) and its #693 copy 4defdf7, receipts on all three branches, and
the open finding that CI skips EmbeddingRunMethodTest because :javatools:test runs before
:xdk:installDist.

pr-roadmap.md: a row for the commit and its copies.

Validation: documentation only; identifiers and counts read from each run's results.json, the
JUnit XML and #703's CI log.
lagergren added a commit that referenced this pull request Oct 18, 2026
… only methods

The #703 review changes (1c3a342, 72784d3), with the language server
adapted to the new console input type.

Console input: readLine no longer blocks a service worker. It reads on
the runtime's IO executor (Container.scheduleIO) and assigns the line
through Frame.waitForIO. "suppressEcho" reaches the host: the console's
input is an xExternalConsole.Input, readLine(boolean suppressEcho), and
EmbeddingSupport.runMethod takes a matching EmbeddingSupport.ConsoleInput.
ConsoleInput.of(reader) adapts a BufferedReader and ignores the flag;
ConsoleInput.NONE replaces null for a console without input, and its
readLine is raised as an Ecstasy "unsupported".

Entry points: Connector.findMethods selects methods only, so the
command-line runner refuses a static run before running it, and
entryArguments needs no filter; a function reports "Missing method". The
String[] check keeps isA, as the command-line runner does, with a comment.
Error messages quote the method name with Handy.quoted. Comments trimmed
as the review asked.

RunWorker passes EmbeddingSupport.ConsoleInput.of(BufferedReader(input)).
The editors still show what is typed: the echo request is not passed on to
them yet. A read still waiting when a run ends returns when RunWorker ends
that run's input, which it already does on exit and on stop.

Validation: :javatools:test 620 tests, 0 failures, 42 existing skips
(EmbeddingRunMethodTest ran with the installed XDK); :lang:lsp-server:test
2,355 tests, 0 failures, 2 existing skips; spotlessCheck passes; run cases
X280-X289 in VS Code run-1huZUh (10 of 10) and IntelliJ
run-14639589039011185817 (8 passed, X286-X288 partial as declared, no IDE
errors); no worker processes left.

(cherry picked from commit 06e1d4a)
lagergren added a commit that referenced this pull request Oct 18, 2026
EmbeddingRunMethodTest looked for an installed XDK in
xdk/build/install/xdk and was skipped without it. CI runs :javatools:test
before :xdk:installDist (in #703's CI, 14:24 and 14:26), so CI skipped all
of its tests.

javatools now has a testXtcModules configuration on the same "xtc" variant
the XDK distribution consumes, with lib-ecstasy, lib-runner and
javatools-bridge; the runner brings the libraries it needs. Its files are
copied into the test resources' xdk-modules, so Gradle builds the modules
before the tests and tracks them as inputs. The test reads them from the
classpath and fails, instead of skipping, if they are missing. Only the
tests use these modules: javatools compiles them, and javatools:jar does
not depend on them, so there is no cycle.

Validation: with xdk/build/install moved away and lib_runner/build
deleted, :javatools:test --tests EmbeddingRunMethodTest rebuilt
lib-ecstasy and lib-runner first and ran all 8 tests, none skipped (41 s).
:javatools:test: 440 tests, 0 failures, 42 existing skips. The
configuration cache entry is stored, then reused on the next run.
`distZip check :plugin:compileJava --dry-run` (CI's task list) builds its
graph. spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 18, 2026
The #703 change 5977c8c. EmbeddingRunMethodTest looked for an installed
XDK in xdk/build/install/xdk and was skipped without it, and CI runs
:javatools:test before :xdk:installDist, so CI skipped all of its tests.

javatools now has a testXtcModules configuration on the same "xtc" variant
the XDK distribution consumes (lib-ecstasy, lib-runner, javatools-bridge,
and what the runner needs), copied into the test resources' xdk-modules.
Gradle builds the modules before the tests; the test reads them from the
classpath and fails instead of skipping if they are missing. Only the tests
use them, so javatools:jar still has no dependency on the modules it
compiles, and there is no cycle.

Validation: with xdk/build/install moved away, :javatools:test --tests
EmbeddingRunMethodTest ran all 8 tests, none skipped; :javatools:test 620
tests, 0 failures, 42 existing skips; spotlessCheck passes; CI's task list
with lang included (distZip check :plugin:compileJava, --dry-run) builds
its graph.
lagergren added a commit that referenced this pull request Oct 18, 2026
docs/errs-integration-plan.md: the open finding that CI skipped EmbeddingRunMethodTest is fixed by
5977c8c (#703), ee022b5 (here) and 4c305ad (#693), with receipts from all three branches.

pr-roadmap.md: a row for the commit and its copies.

Validation: documentation only; counts read from the JUnit XML of each branch's run.
lagergren added a commit that referenced this pull request Oct 18, 2026
The #703 change 5977c8c. EmbeddingRunMethodTest looked for an installed
XDK in xdk/build/install/xdk and was skipped without it, and CI runs
:javatools:test before :xdk:installDist, so CI skipped all of its tests.

javatools now has a testXtcModules configuration on the same "xtc" variant
the XDK distribution consumes (lib-ecstasy, lib-runner, javatools-bridge,
and what the runner needs), copied into the test resources' xdk-modules.
Gradle builds the modules before the tests; the test reads them from the
classpath and fails instead of skipping if they are missing. Only the tests
use them, so javatools:jar still has no dependency on the modules it
compiles, and there is no cycle.

Validation: with xdk/build/install moved away, :javatools:test --tests
EmbeddingRunMethodTest ran all 8 tests, none skipped; :javatools:test 620
tests, 0 failures, 42 existing skips; spotlessCheck passes; CI's task list
with lang included (distZip check :plugin:compileJava, --dry-run) builds
its graph.

(cherry picked from commit ee022b5)
lagergren added a commit that referenced this pull request Oct 19, 2026
…arguments

Review of #703 found two problems with EmbeddingSupport.entryArguments. Its doc said it decides
what the entry method is passed, but it returned either the array it was given or null. And it
described its precondition as "once it has linked its copy of the module" instead of naming the
linked state.

It is split in two:
- entryMethod(module, methodName, args) returns the chosen method. It throws
  IllegalStateException if the module's FileStructure is not linked, and
  IllegalArgumentException if the method is missing, ambiguous, or cannot take the arguments.
- passesArguments(method, args) returns whether the arguments are passed as an array. Its doc
  states the command-line runner's rule. The array is a single value for the first parameter,
  so at most one parameter may be required. It is passed when the method requires it, or when
  it is not empty and the method has a parameter. Otherwise nothing is passed, so a default
  value of the parameter applies.

The doc and the check use FileStructure.isLinked(), which linkModules sets.
ModuleStructure.isLinked() is true for any module that is not a fingerprint, linked or not.

The old run(...) passes an empty array instead of null, so args is never null.

Validation:
- EmbeddingRunMethodTest: 10 tests, 0 failures, 0 skipped. New cases:
  - extra(String[] args, Int count = 0, String name = ""), 3 parameters with 1 required, is
    passed the array. three(String[] args, String first, String second = ""), with 2 required,
    is rejected.
  - run(String[] args = ["fallback"], Int times = 2) prints its defaults when run without
    arguments, and the given array when run with one.
  - A module loaded from a repository without linking is rejected.
- spotlessCheck passes.

Limits:
- The selection rule itself is unchanged; it still follows xtc run.
lagergren added a commit that referenced this pull request Oct 19, 2026
…arguments

Review of #703 found two problems with EmbeddingSupport.entryArguments. Its doc said it decides
what the entry method is passed, but it returned either the array it was given or null. And it
described its precondition as "once it has linked its copy of the module" instead of naming the
linked state.

It is split in two:
- entryMethod(module, methodName, args) returns the chosen method. It throws
  IllegalStateException if the module's FileStructure is not linked, and
  IllegalArgumentException if the method is missing, ambiguous, or cannot take the arguments.
- passesArguments(method, args) returns whether the arguments are passed as an array. Its doc
  states the command-line runner's rule. The array is a single value for the first parameter,
  so at most one parameter may be required. It is passed when the method requires it, or when
  it is not empty and the method has a parameter. Otherwise nothing is passed, so a default
  value of the parameter applies.

The doc and the check use FileStructure.isLinked(), which linkModules sets.
ModuleStructure.isLinked() is true for any module that is not a fingerprint, linked or not.

The old run(...) passes an empty array instead of null, so args is never null.

Validation:
- EmbeddingRunMethodTest: 10 tests, 0 failures, 0 skipped. New cases:
  - extra(String[] args, Int count = 0, String name = ""), 3 parameters with 1 required, is
    passed the array. three(String[] args, String first, String second = ""), with 2 required,
    is rejected.
  - run(String[] args = ["fallback"], Int times = 2) prints its defaults when run without
    arguments, and the given array when run with one.
  - A module loaded from a repository without linking is rejected.
- spotlessCheck passes.

Limits:
- The selection rule itself is unchanged; it still follows xtc run.

On errs: org.xvm.api 41 tests (EmbeddingSupportTest 16) and org.xvm.lsp.run 38 tests
(EmbeddedExecutionTest 24, RunWorkerSupervisionTest 9, OutputBatchesTest 5), 0 failures, 0
skipped; spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 19, 2026
docs/errs-integration-plan.md: an entry for 5af99b8, 95c17bf and b6629bd (the #703 review
changes 74d8fdb, 8e036b2 and 5ae951c, with RunWorker and the docs adapted here) and their #693
copies c8fa873, b297561 and 09b6cfc, with receipts on all three branches and why the full
suites and playbooks were not rerun.

pr-roadmap.md: a row for each commit and its copies.

Validation: documentation only; identifiers and counts read from git and the JUnit XML.
lagergren added a commit that referenced this pull request Oct 19, 2026
…arguments

Review of #703 found two problems with EmbeddingSupport.entryArguments. Its doc said it decides
what the entry method is passed, but it returned either the array it was given or null. And it
described its precondition as "once it has linked its copy of the module" instead of naming the
linked state.

It is split in two:
- entryMethod(module, methodName, args) returns the chosen method. It throws
  IllegalStateException if the module's FileStructure is not linked, and
  IllegalArgumentException if the method is missing, ambiguous, or cannot take the arguments.
- passesArguments(method, args) returns whether the arguments are passed as an array. Its doc
  states the command-line runner's rule. The array is a single value for the first parameter,
  so at most one parameter may be required. It is passed when the method requires it, or when
  it is not empty and the method has a parameter. Otherwise nothing is passed, so a default
  value of the parameter applies.

The doc and the check use FileStructure.isLinked(), which linkModules sets.
ModuleStructure.isLinked() is true for any module that is not a fingerprint, linked or not.

The old run(...) passes an empty array instead of null, so args is never null.

Validation:
- EmbeddingRunMethodTest: 10 tests, 0 failures, 0 skipped. New cases:
  - extra(String[] args, Int count = 0, String name = ""), 3 parameters with 1 required, is
    passed the array. three(String[] args, String first, String second = ""), with 2 required,
    is rejected.
  - run(String[] args = ["fallback"], Int times = 2) prints its defaults when run without
    arguments, and the given array when run with one.
  - A module loaded from a repository without linking is rejected.
- spotlessCheck passes.

Limits:
- The selection rule itself is unchanged; it still follows xtc run.

On #693: org.xvm.api 30 tests (EmbeddingSupportTest 16) and org.xvm.lsp.run 38 tests
(EmbeddedExecutionTest 24, RunWorkerSupervisionTest 9, OutputBatchesTest 5), 0 failures, 0
skipped; spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 19, 2026
… only methods

The #703 review changes (1c3a342, 72784d3), with the language server
adapted to the new console input type.

Console input: readLine no longer blocks a service worker. It reads on
the runtime's IO executor (Container.scheduleIO) and assigns the line
through Frame.waitForIO. "suppressEcho" reaches the host: the console's
input is an xExternalConsole.Input, readLine(boolean suppressEcho), and
EmbeddingSupport.runMethod takes a matching EmbeddingSupport.ConsoleInput.
ConsoleInput.of(reader) adapts a BufferedReader and ignores the flag;
ConsoleInput.NONE replaces null for a console without input, and its
readLine is raised as an Ecstasy "unsupported".

Entry points: Connector.findMethods selects methods only, so the
command-line runner refuses a static run before running it, and
entryArguments needs no filter; a function reports "Missing method". The
String[] check keeps isA, as the command-line runner does, with a comment.
Error messages quote the method name with Handy.quoted. Comments trimmed
as the review asked.

RunWorker passes EmbeddingSupport.ConsoleInput.of(BufferedReader(input)).
The editors still show what is typed: the echo request is not passed on to
them yet. A read still waiting when a run ends returns when RunWorker ends
that run's input, which it already does on exit and on stop.

Validation: :javatools:test 620 tests, 0 failures, 42 existing skips
(EmbeddingRunMethodTest ran with the installed XDK); :lang:lsp-server:test
2,355 tests, 0 failures, 2 existing skips; spotlessCheck passes; run cases
X280-X289 in VS Code run-1huZUh (10 of 10) and IntelliJ
run-14639589039011185817 (8 passed, X286-X288 partial as declared, no IDE
errors); no worker processes left.

(cherry picked from commit 06e1d4a)
lagergren added a commit that referenced this pull request Oct 20, 2026
…tc run does

Mirrors two changes on #703's branch (lagergren/embedded-run-runtime),
249ef7a and ba8479f, in this branch's ErrorListener style:

- Arguments for an entry method without parameters are dropped, and the
  run reports the command-line runner's warning as EMB-6
  (EmbeddingSupport.WARN_ARGUMENTS_IGNORED).
- A method that cannot be an entry point is reported as EMB-7
  (ERR_ENTRY_METHOD) with the runner's message, such as Missing method
  "run" in module RunLibrary, and runMethod returns null before a console
  is registered. It failed inside the container setup before, which
  reported EMB-3 wrapping the IllegalArgumentException.

module declaration" (ERR_MODULE_SOURCE) moves from EMB-6 to EMB-8. Its
users refer to the constant; the tracker documents that named the code
say so.

Validation: EmbeddingSupportTest 24 tests, EmbeddedExecutionTest 29,
EmbeddingDiagnosticsTest 11 (it checks ERR_MODULE_SOURCE), all with 0
failures and 0 skipped; spotlessCheck passes.

(cherry picked from commit 428c261)
lagergren added a commit that referenced this pull request Oct 20, 2026
The tracker records that #703 merged as bdb674a after its rebase onto master, that GitHub deleted its branch, and that #693 was rebased onto it as 9461a6c with an unchanged tree; it ticks the rebase item and notes the merge in R3.
lagergren added a commit that referenced this pull request Oct 20, 2026
…ompletes

EmbeddingSupportTest.closingARunAsItEndsOnItsOwnEndsItOnceAndLeavesNothingBehind
hung once in master's CI after #703 (run 39440797959): close() waited
forever for the runner's killTask, and the runtime was idle.

A fiber that waits with Frame.waitForExternalCompletion, as Container.kill
does for the termination of the container's services, is woken by two
separate callbacks on the future: waitForExternalCompletion's own
ensureScheduled, and the wait frame's onResponse, which marks the fiber
ready. When the future completes as a dependent of another one, as
Container.kill's terminateServices().thenApply(...) does,
CompletableFuture can run them in registration order, ensureScheduled
first. The service then ran on a worker, found no ready fiber, and
released its lock before onResponse marked the fiber; onResponse does not
touch the scheduling lock, so nothing scheduled the service again. The
waiting fiber stayed ready in an idle service. Here the Task service's
kill() never returned, so TaskRegistry stayed in the critical section of
the runner's killTask, and close(), startTask and taskStatus all waited
on it.

The external completion now marks the fiber responded and then schedules
the service, in one callback, as Frame.createWaitIOFrame already does.
Module initialization (Utils) waits the same way and gets the same fix.

Diagnosis, on a temporary branch that repeats the scenario up to 1000
times on the CI runner and dumps the runtime when close() hangs: it hung
at iterations 82, 110, 74 and 11 of four runs, always with the Task
fiber in Container.kill's WaitForResult, its future assigned, responded
and ready, in an idle service with no scheduling lock held. About 2,100
local iterations on macOS never hung.

Validation: with this change the same probe ran 1000 iterations on the
CI runner without a hang (run 39459197798), where the four runs without
it hung within 110; :javatools:test 456 tests, 0 failures, 42 existing
skips; spotlessCheck passes.

(cherry picked from commit 554c8f9)
lagergren added a commit that referenced this pull request Oct 20, 2026
…ompletes

EmbeddingSupportTest.closingARunAsItEndsOnItsOwnEndsItOnceAndLeavesNothingBehind
hung once in master's CI after #703 (run 39440797959): close() waited
forever for the runner's killTask, and the runtime was idle.

A fiber that waits with Frame.waitForExternalCompletion, as Container.kill
does for the termination of the container's services, is woken by two
separate callbacks on the future: waitForExternalCompletion's own
ensureScheduled, and the wait frame's onResponse, which marks the fiber
ready. When the future completes as a dependent of another one, as
Container.kill's terminateServices().thenApply(...) does,
CompletableFuture can run them in registration order, ensureScheduled
first. The service then ran on a worker, found no ready fiber, and
released its lock before onResponse marked the fiber; onResponse does not
touch the scheduling lock, so nothing scheduled the service again. The
waiting fiber stayed ready in an idle service. Here the Task service's
kill() never returned, so TaskRegistry stayed in the critical section of
the runner's killTask, and close(), startTask and taskStatus all waited
on it.

The external completion now marks the fiber responded and then schedules
the service, in one callback, as Frame.createWaitIOFrame already does.
Module initialization (Utils) waits the same way and gets the same fix.

Diagnosis, on a temporary branch that repeats the scenario up to 1000
times on the CI runner and dumps the runtime when close() hangs: it hung
at iterations 82, 110, 74 and 11 of four runs, always with the Task
fiber in Container.kill's WaitForResult, its future assigned, responded
and ready, in an idle service with no scheduling lock held. About 2,100
local iterations on macOS never hung.

Validation: with this change the same probe ran 1000 iterations on the
CI runner without a hang (run 39459197798), where the four runs without
it hung within 110; :javatools:test 456 tests, 0 failures, 42 existing
skips; spotlessCheck passes.

(cherry picked from commit 554c8f9)
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/remaining.md lists everything still open on this branch as one task
list to tick off, checked on 2026-10-21 against the integration plan, the
execution plan, the upstream register, the PR roadmap and the live state
of every upstream issue and pull request it names: L73, L77-L79 and L82's
release gates; R5's gaps and R6-R8 step by step; one task per upstream
workaround with its fixing PR and removal gate; the five prepared upstream
fixes still to file; the PR and 0.5.0 release order; and the Marketplace
steps of #710 and #711.

Its first section, five stale records, is done here:
- plan-embedded-execution.md ticks R3. Its last condition, a javatools test
  of the runtime part, is EmbeddingSupportTest, merged with #703
  (bdb674a); the integration plan closed R3 on 2026-10-19.
- errs-upstream-issues.md records LSP4J #999 as merged (2026-10-20,
  52acfd58) and LSP4IJ #1744 as closed (2026-10-20, implemented by #1749).
- errs-integration-plan.md replaces the 128-case automation inventory with
  the current catalog: 299 cases in scenarios.json (X1-X294, CFG1-CFG3,
  7a.8, 7a.9), the October 7 284-case run being the latest full-catalog
  run.
- errs-integration-plan.md adds a 2026-10-21 Marketplace follow-up: #711 is
  open; two publishers exist, xtclang (kept) and xtclang-org (to delete),
  neither verified; deleted publisher IDs are reserved forever
  (microsoft/vsmarketplace#1728); #710 is rewritten and assigned to Cam; and
  vsce 4.0.0's hidden --oidc sends the token as Bearer without an
  api-version, which microsoft/vscode-vsce#1337 fixes only in the 4.0.1
  pre-releases.

Validation: the upstream states were read from GitHub on 2026-10-21; the
catalog count comes from scenarios.json; the two anchors the new text links
to exist in the plan. Documentation only, so no build or tests were run.

Limits: L1-L54 are listed as closed because no document has an open box for
any of them; they were not re-audited one by one. remaining.md names UP09's
follow-up PRs #1728 and #1736 beside the register's #1724 and #1725.
lagergren added a commit that referenced this pull request Oct 21, 2026
Its last condition, a javatools test of the runtime part, is
EmbeddingSupportTest, merged into master with #703 (bdb674a, 2026-10-20);
CI runs it since ee022b5. R3 was closed on 2026-10-19.

Only the execution plan's part of the errs commit applies here: its other
files (remaining.md and the errs plan and upstream register) are not on
this branch.

(cherry picked from commit af0ec33)
lagergren added a commit that referenced this pull request Oct 21, 2026
The runtime part of 5a14da2 and 82b6ba5, with its test, is open as #703 from
lagergren/embedded-run-runtime against master. The integration plan's sync section names it and
ticks the item to open it; the remaining item is to rebase #693 onto master once #703 merges.
pr-roadmap.md links #703 in the synchronization note, the runtime-execution paragraph and the
row for 843bc12.

Validation: documentation only; gh pr view 703 reports it open, from
lagergren/embedded-run-runtime into master.
lagergren added a commit that referenced this pull request Oct 21, 2026
… only methods

The #703 review changes (1c3a342, 72784d3), with the language server
adapted to the new console input type.

Console input: readLine no longer blocks a service worker. It reads on
the runtime's IO executor (Container.scheduleIO) and assigns the line
through Frame.waitForIO. "suppressEcho" reaches the host: the console's
input is an xExternalConsole.Input, readLine(boolean suppressEcho), and
EmbeddingSupport.runMethod takes a matching EmbeddingSupport.ConsoleInput.
ConsoleInput.of(reader) adapts a BufferedReader and ignores the flag;
ConsoleInput.NONE replaces null for a console without input, and its
readLine is raised as an Ecstasy "unsupported".

Entry points: Connector.findMethods selects methods only, so the
command-line runner refuses a static run before running it, and
entryArguments needs no filter; a function reports "Missing method". The
String[] check keeps isA, as the command-line runner does, with a comment.
Error messages quote the method name with Handy.quoted. Comments trimmed
as the review asked.

RunWorker passes EmbeddingSupport.ConsoleInput.of(BufferedReader(input)).
The editors still show what is typed: the echo request is not passed on to
them yet. A read still waiting when a run ends returns when RunWorker ends
that run's input, which it already does on exit and on stop.

Validation: :javatools:test 620 tests, 0 failures, 42 existing skips
(EmbeddingRunMethodTest ran with the installed XDK); :lang:lsp-server:test
2,355 tests, 0 failures, 2 existing skips; spotlessCheck passes; run cases
X280-X289 in VS Code run-1huZUh (10 of 10) and IntelliJ
run-14639589039011185817 (8 passed, X286-X288 partial as declared, no IDE
errors); no worker processes left.

(cherry picked from commit 06e1d4a)
lagergren added a commit that referenced this pull request Oct 21, 2026
The #703 change 5977c8c. EmbeddingRunMethodTest looked for an installed
XDK in xdk/build/install/xdk and was skipped without it, and CI runs
:javatools:test before :xdk:installDist, so CI skipped all of its tests.

javatools now has a testXtcModules configuration on the same "xtc" variant
the XDK distribution consumes (lib-ecstasy, lib-runner, javatools-bridge,
and what the runner needs), copied into the test resources' xdk-modules.
Gradle builds the modules before the tests; the test reads them from the
classpath and fails instead of skipping if they are missing. Only the tests
use them, so javatools:jar still has no dependency on the modules it
compiles, and there is no cycle.

Validation: with xdk/build/install moved away, :javatools:test --tests
EmbeddingRunMethodTest ran all 8 tests, none skipped; :javatools:test 620
tests, 0 failures, 42 existing skips; spotlessCheck passes; CI's task list
with lang included (distZip check :plugin:compileJava, --dry-run) builds
its graph.

(cherry picked from commit ee022b5)
lagergren added a commit that referenced this pull request Oct 21, 2026
…arguments

Review of #703 found two problems with EmbeddingSupport.entryArguments. Its doc said it decides
what the entry method is passed, but it returned either the array it was given or null. And it
described its precondition as "once it has linked its copy of the module" instead of naming the
linked state.

It is split in two:
- entryMethod(module, methodName, args) returns the chosen method. It throws
  IllegalStateException if the module's FileStructure is not linked, and
  IllegalArgumentException if the method is missing, ambiguous, or cannot take the arguments.
- passesArguments(method, args) returns whether the arguments are passed as an array. Its doc
  states the command-line runner's rule. The array is a single value for the first parameter,
  so at most one parameter may be required. It is passed when the method requires it, or when
  it is not empty and the method has a parameter. Otherwise nothing is passed, so a default
  value of the parameter applies.

The doc and the check use FileStructure.isLinked(), which linkModules sets.
ModuleStructure.isLinked() is true for any module that is not a fingerprint, linked or not.

The old run(...) passes an empty array instead of null, so args is never null.

Validation:
- EmbeddingRunMethodTest: 10 tests, 0 failures, 0 skipped. New cases:
  - extra(String[] args, Int count = 0, String name = ""), 3 parameters with 1 required, is
    passed the array. three(String[] args, String first, String second = ""), with 2 required,
    is rejected.
  - run(String[] args = ["fallback"], Int times = 2) prints its defaults when run without
    arguments, and the given array when run with one.
  - A module loaded from a repository without linking is rejected.
- spotlessCheck passes.

Limits:
- The selection rule itself is unchanged; it still follows xtc run.

On #693: org.xvm.api 30 tests (EmbeddingSupportTest 16) and org.xvm.lsp.run 38 tests
(EmbeddedExecutionTest 24, RunWorkerSupervisionTest 9, OutputBatchesTest 5), 0 failures, 0
skipped; spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: the three inline review comments on #703, how 7b39bff addresses
each (including why the suggested argument tuple was not adopted as written and why the selection
runs on the control's linked module copy), its mirrors 1fdaa9b and c402aae, and the receipts
on all three branches.

pr-roadmap.md: a row for the follow-up and its copies.

Validation: documentation only; counts read from the JUnit XML.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: the #703 follow-up entry records that it was pushed, answered and
re-requested, with CI passing on 7b39bff; a new entry for f407b7f (Run lens and runnable targets
for modules whose run method an annotation contributes) and its #693 copy ff42f45, with receipts on
both branches.

pr-roadmap.md: a row for f407b7f.

Validation: documentation only; identifiers and counts read from each run's results.json and the
JUnit XML.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: an entry for 2a02ead on #703's branch (close() no longer rethrows
join()'s failure; a runner task whose start throws unregisters itself), its mirrors e4b2162 and
491da54, the static run function mismatch found while testing, and receipts on all three branches.

pr-roadmap.md: a row for the fix and its copies.

Validation: documentation only; counts read from the JUnit XML.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: an entry for 0723b7c on #703's branch (entry method selection
considers only methods, since Container.invoke calls only methods) and 9619b0f (the Run lens and
runnable targets follow the same rule), their mirrors 86a1df1, e623053 and 7ab9d3e, the
changed trigger of the cannot-start test, the command-line runner left as is, and receipts on all
three branches.

pr-roadmap.md: a row for the two commits and their copies.

Validation: documentation only; identifiers and counts read from each run's results.json and the
JUnit XML.
lagergren added a commit that referenced this pull request Oct 21, 2026
…tc run does

Mirrors two changes on #703's branch (lagergren/embedded-run-runtime),
249ef7a and ba8479f, in this branch's ErrorListener style:

- Arguments for an entry method without parameters are dropped, and the
  run reports the command-line runner's warning as EMB-6
  (EmbeddingSupport.WARN_ARGUMENTS_IGNORED).
- A method that cannot be an entry point is reported as EMB-7
  (ERR_ENTRY_METHOD) with the runner's message, such as Missing method
  "run" in module RunLibrary, and runMethod returns null before a console
  is registered. It failed inside the container setup before, which
  reported EMB-3 wrapping the IllegalArgumentException.

module declaration" (ERR_MODULE_SOURCE) moves from EMB-6 to EMB-8. Its
users refer to the constant; the tracker documents that named the code
say so.

Validation: EmbeddingSupportTest 24 tests, EmbeddedExecutionTest 29,
EmbeddingDiagnosticsTest 11 (it checks ERR_MODULE_SOURCE), all with 0
failures and 0 skipped; spotlessCheck passes.

(cherry picked from commit 428c261)
lagergren added a commit that referenced this pull request Oct 21, 2026
Its last condition, a javatools test of the runtime part, is
EmbeddingSupportTest, merged into master with #703 (bdb674a, 2026-10-20);
CI runs it since ee022b5. R3 was closed on 2026-10-19.

Only the execution plan's part of the errs commit applies here: its other
files (remaining.md and the errs plan and upstream register) are not on
this branch.

(cherry picked from commit af0ec33)
lagergren added a commit that referenced this pull request Oct 21, 2026
… only methods

The #703 review changes (1c3a342, 72784d3), with the language server
adapted to the new console input type.

Console input: readLine no longer blocks a service worker. It reads on
the runtime's IO executor (Container.scheduleIO) and assigns the line
through Frame.waitForIO. "suppressEcho" reaches the host: the console's
input is an xExternalConsole.Input, readLine(boolean suppressEcho), and
EmbeddingSupport.runMethod takes a matching EmbeddingSupport.ConsoleInput.
ConsoleInput.of(reader) adapts a BufferedReader and ignores the flag;
ConsoleInput.NONE replaces null for a console without input, and its
readLine is raised as an Ecstasy "unsupported".

Entry points: Connector.findMethods selects methods only, so the
command-line runner refuses a static run before running it, and
entryArguments needs no filter; a function reports "Missing method". The
String[] check keeps isA, as the command-line runner does, with a comment.
Error messages quote the method name with Handy.quoted. Comments trimmed
as the review asked.

RunWorker passes EmbeddingSupport.ConsoleInput.of(BufferedReader(input)).
The editors still show what is typed: the echo request is not passed on to
them yet. A read still waiting when a run ends returns when RunWorker ends
that run's input, which it already does on exit and on stop.

Validation: :javatools:test 620 tests, 0 failures, 42 existing skips
(EmbeddingRunMethodTest ran with the installed XDK); :lang:lsp-server:test
2,355 tests, 0 failures, 2 existing skips; spotlessCheck passes; run cases
X280-X289 in VS Code run-1huZUh (10 of 10) and IntelliJ
run-14639589039011185817 (8 passed, X286-X288 partial as declared, no IDE
errors); no worker processes left.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: an entry for 06e1d4a (the #703 review changes 1c3a342 and
72784d3 with RunWorker adapted) and its #693 copy 4defdf7, receipts on all three branches, and
the open finding that CI skips EmbeddingRunMethodTest because :javatools:test runs before
:xdk:installDist.

pr-roadmap.md: a row for the commit and its copies.

Validation: documentation only; identifiers and counts read from each run's results.json, the
JUnit XML and #703's CI log.
lagergren added a commit that referenced this pull request Oct 21, 2026
The #703 change 5977c8c. EmbeddingRunMethodTest looked for an installed
XDK in xdk/build/install/xdk and was skipped without it, and CI runs
:javatools:test before :xdk:installDist, so CI skipped all of its tests.

javatools now has a testXtcModules configuration on the same "xtc" variant
the XDK distribution consumes (lib-ecstasy, lib-runner, javatools-bridge,
and what the runner needs), copied into the test resources' xdk-modules.
Gradle builds the modules before the tests; the test reads them from the
classpath and fails instead of skipping if they are missing. Only the tests
use them, so javatools:jar still has no dependency on the modules it
compiles, and there is no cycle.

Validation: with xdk/build/install moved away, :javatools:test --tests
EmbeddingRunMethodTest ran all 8 tests, none skipped; :javatools:test 620
tests, 0 failures, 42 existing skips; spotlessCheck passes; CI's task list
with lang included (distZip check :plugin:compileJava, --dry-run) builds
its graph.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: the open finding that CI skipped EmbeddingRunMethodTest is fixed by
5977c8c (#703), ee022b5 (here) and 4c305ad (#693), with receipts from all three branches.

pr-roadmap.md: a row for the commit and its copies.

Validation: documentation only; counts read from the JUnit XML of each branch's run.
lagergren added a commit that referenced this pull request Oct 21, 2026
…arguments

Review of #703 found two problems with EmbeddingSupport.entryArguments. Its doc said it decides
what the entry method is passed, but it returned either the array it was given or null. And it
described its precondition as "once it has linked its copy of the module" instead of naming the
linked state.

It is split in two:
- entryMethod(module, methodName, args) returns the chosen method. It throws
  IllegalStateException if the module's FileStructure is not linked, and
  IllegalArgumentException if the method is missing, ambiguous, or cannot take the arguments.
- passesArguments(method, args) returns whether the arguments are passed as an array. Its doc
  states the command-line runner's rule. The array is a single value for the first parameter,
  so at most one parameter may be required. It is passed when the method requires it, or when
  it is not empty and the method has a parameter. Otherwise nothing is passed, so a default
  value of the parameter applies.

The doc and the check use FileStructure.isLinked(), which linkModules sets.
ModuleStructure.isLinked() is true for any module that is not a fingerprint, linked or not.

The old run(...) passes an empty array instead of null, so args is never null.

Validation:
- EmbeddingRunMethodTest: 10 tests, 0 failures, 0 skipped. New cases:
  - extra(String[] args, Int count = 0, String name = ""), 3 parameters with 1 required, is
    passed the array. three(String[] args, String first, String second = ""), with 2 required,
    is rejected.
  - run(String[] args = ["fallback"], Int times = 2) prints its defaults when run without
    arguments, and the given array when run with one.
  - A module loaded from a repository without linking is rejected.
- spotlessCheck passes.

Limits:
- The selection rule itself is unchanged; it still follows xtc run.

On errs: org.xvm.api 41 tests (EmbeddingSupportTest 16) and org.xvm.lsp.run 38 tests
(EmbeddedExecutionTest 24, RunWorkerSupervisionTest 9, OutputBatchesTest 5), 0 failures, 0
skipped; spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: an entry for 5af99b8, 95c17bf and b6629bd (the #703 review
changes 74d8fdb, 8e036b2 and 5ae951c, with RunWorker and the docs adapted here) and their #693
copies c8fa873, b297561 and 09b6cfc, with receipts on all three branches and why the full
suites and playbooks were not rerun.

pr-roadmap.md: a row for each commit and its copies.

Validation: documentation only; identifiers and counts read from git and the JUnit XML.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: #693 conflicted with master after Dependabot's #705
(typescript-eslint 8.71.2 in lang/vscode-extension), so GitHub ran no CI for it after 51329f0.
The entry records the rebase of its 128 commits from bad3add onto master 5bfd024
(bad3add..09b6cfc became 5bfd024..c1c134e), the one conflict (6d68d40, now aa6730a,
which adds yauzl next to the bumped line; both kept), the local backup of the old tip, the new
hashes of the third #703 round's copies, and the receipts after the rebase.

pr-roadmap.md: the three rows from the third round point at the new #693 hashes, and a note says
that earlier #693 hashes refer to the branch before the rebase.

Validation: documentation only; hashes read from git, counts from the JUnit XML, and #693's
mergeability from GitHub.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md:
- #693's rebase after #703: #693 was already rebased onto master 5bfd024 on 2026-10-19, and the
  test it will take from master is EmbeddingSupportTest, renamed from EmbeddingRunMethodTest.
- R1: the only native-pool check was LspTest's print-only probe, removed with LspTest in
  b6629bd; native-pool growth still needs an asserting test.
- R3: its stated open condition, a javatools test of the runtime part, is met by
  EmbeddingSupportTest; left unticked until the remaining scope is confirmed.
- LSP4J repairs: UP06 is done (LSP4J #990 filed with authorization, #991 merged as e64042cf,
  unreleased); UP15 still needs authorization before filing. Removing UP06's boundary waits for
  an LSP4J release with #991.

Validation: documentation only; hashes and states read from git and GitHub.
lagergren added a commit that referenced this pull request Oct 21, 2026
docs/errs-integration-plan.md: R3 (sessions, arguments, console input and stop) was open only
until the runtime part had its own javatools test. EmbeddingSupportTest (#703) covers entry
selection, arguments, console input, runs with a console and closing a suspended run, and CI
runs it since ee022b5.

Validation: documentation only.
lagergren added a commit that referenced this pull request Oct 21, 2026
…tc run does

Mirrors two changes on #703's branch (lagergren/embedded-run-runtime),
249ef7a and ba8479f, in this branch's ErrorListener style:

- Arguments for an entry method without parameters are dropped, and the
  run reports the command-line runner's warning as EMB-6
  (EmbeddingSupport.WARN_ARGUMENTS_IGNORED).
- A method that cannot be an entry point is reported as EMB-7
  (ERR_ENTRY_METHOD) with the runner's message, such as Missing method
  "run" in module RunLibrary, and runMethod returns null before a console
  is registered. It failed inside the container setup before, which
  reported EMB-3 wrapping the IllegalArgumentException.

#703 takes EMB-6 and EMB-7, so this branch's "Source does not contain a
module declaration" (ERR_MODULE_SOURCE) moves from EMB-6 to EMB-8. Its
users refer to the constant; the tracker documents that named the code
say so.

Validation: EmbeddingSupportTest 24 tests, EmbeddedExecutionTest 29,
EmbeddingDiagnosticsTest 11 (it checks ERR_MODULE_SOURCE), all with 0
failures and 0 skipped; spotlessCheck passes.
lagergren added a commit that referenced this pull request Oct 21, 2026
The tracker records the four commits #703 gained today, the EMB-6/EMB-7/EMB-8 allocation, and the ten commits replayed onto #693 (a3d1d3d to f769bae) with their sources and receipts.
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.

2 participants