Repository navigation
The hook interface for spec 3, architecture identity, notices and elfpatch outcomes (0.0.68) - #54
Merged
Conversation
…d class -- read by the loader and elfpatch arch_identities() is the format's one statement of what an architecture is. normalize_arch reads it; the loader takes a per-arch resource for every architecture in it (it listed x86_64, aarch64 and x86 by hand); elfpatch's ABI for a file without a loader comes from the install's arch and this table (it asked os.arch(), which hooks do not have, so the fallback never answered). Hosts keep their own per-arch properties (a loader path, a boot file) keyed by the canonical name. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ssification hosts and the format's checker share ArchEvidence (Strong, Open, Weak, None), find_entry, entry_architectures, is_arch_templated, classify_arch_evidence and declares_no_download_source move here from xlings' compatibility.cpp, beside resolve_resource that reads the same fields. A test holds 'states no download source' to exactly the entries the resolver finds no source for. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ices (boundary protocol 2) HookResult: :notices holds each warn and error line of the hook, in order, level and formatted text, whatever the output's level; the output keeps the lines as before. Bounded at 100 notices of 2 KiB, the rest counted in the last. The host's own warning about its hook log is not a notice. kHookBoundaryProtocol is 2: a worker's result carries them. (xlings#721) Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…the result says what was done, skipped and why (xlings#741 UP-L1) Files are planned first and the tool is looked for only when there is something to patch: with nothing to patch a missing patchelf or install_name_tool is no failure; with files to patch the automatic result is outcome=failed with tool_missing named. A recipe's explicit set_interpreter, set_rpath or patch_elf_loader_rpath that names files and has no tool now raises, with the recipe's line, instead of returning an empty table. apply_elfpatch_auto returns HookResult::elfpatch: outcome (done, skipped, failed), the reason, the counts, and the files left alone by why (skipped_foreign, skipped_static, skipped_listed) -- facts the host judges; the skip itself is unchanged. Each early return of the automatic path names its reason. output keeps its '<scanned> <patched> <failed>' text. The minimal ELF writer of the tests moves to tests/support/min_elf.hpp. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…rking directory and environment of its own shell: :spawn(Command) takes either argv (the program found on the child's PATH, each argument passed as it is: no quoting, splitting or expansion) or one shell line, plus a working directory and variables set in the child's environment. run(line) is spawn of a line. On Windows the line comes from windows_command_line, which quotes exactly as the C runtime splits; a batch file given an argument list is Refused (cmd parses its arguments again); every start goes through CreateProcessW. A missing program or working directory is a failure to start that names it. (design 2026-11-27 §9.6; libxpkg#52) Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…queries, system.run and exec's list form, pkginfo.platform and arch, path, fs.extract through a host port
fs: is_dir, read and list (queries: they raise only when they cannot answer) and mkdir, remove, move, copy, symlink, write, chmod (actions: each states what holds when it returns and raises otherwise, naming the action, the path and the system's reason at the recipe's line). move and copy take the final path; one already there is an error unless { replace = true }, and a directory replaced by something inside it is set aside first. Actions return true, never false, so an older recipe's 'if not fs.symlink(...)' still reads right. fs.symlink and fs.remove are these actions in both environments: they raise, and remove takes the whole tree.
system.exec takes a program and its argument list (no shell) or one shell line, with cwd, env, capture, tty and retry; system.run answers { ok, code, out } and raises only for a malformed command. Both start through the process layer (_LIBXPKG_SPAWN), whose output goes to the hook log while one is kept.
pkginfo.platform() and pkginfo.arch() are the install's platform and architecture in the format's names. path is a module; the global path of the compatibility layer is the same table. fs.extract calls the host's extractor (HostPorts, set on the executor or on a HookWorker); without one it says so. The executor now exists before the recipe's top level runs. The file functions move to their own module (src/xpkg-fs.cppm); the module interface tests run on macOS and Windows too.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… failed actions are reported prelude.lua becomes compat.lua: the os, io and global names of recipes of spec 1 and 2 and the import() that returns a stub. Every name keeps its behaviour (E8, E15, E16, E17 of the design are tests now); what it adds is a record: os.mv / os.trymv, os.cp, os.mkdir and os.exec failing are kept in HookResult::call_failures (call, arguments, reason; at most 100), and still return what they returned. The comments about where these names came from are replaced by what each one does; the loader's, json.lua's and build.mcpp's likewise. The two skills' build instructions are mcpp's now, and the best-practices skill describes the two hook environments. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…t of Lua and the modules, seen through the interface manifest A recipe of spec "3" and each index lib it imports run in an environment table of their own (spec3.lua): Lua's base functions, string, table, math, utf8, os.time/date/clock/getenv, and import. No compatibility layer, no io, no load/require. import binds a view of a module that holds exactly the names manifest.lua lists for it; a module the manifest does not list is an error naming it, not a stub. The module implementations still run in the global environment. manifest.lua is the hook interface, one row per name (module, kind -- action, query, declaration, pure --, signature, summary, since, platforms), the host's own names, and the compatibility layer's names with what replaces each. A test holds every function of every module to it. The top level holds the package table, imports and definitions: calling a module function that is not pure there is an error, in the executor (a call hook while the chunk runs) and in the loader, which reads a spec 3 recipe a second time in that environment with the modules as stubs -- so search and index builds get the same answer as an install. kHighestSpec is 3 and spec_number() reads a recipe's spec; a higher spec is refused by name. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…arations in place of code
strip = n on a version entry, or on its platform for all of its versions (inherited with it), says how the host lands a download for a recipe of spec "3": the first n components of every member's path are dropped. The loader reads it (a value that is no component count is dropped with a warning) and resolve_resource returns it with the resolved resource.
index-compat.json's "recipes": { "template": "template.lua" } declares the hooks an index shares between its recipes. The loader and the executor run the template after every recipe of pkgs/, in the recipe's environment (spec 3's rules for a spec 3 recipe); the files on disk are not changed and pkgindex-build.lua does not run (pkgs/ is restored where an earlier build rewrote it). recipe_text() is the recipe as the host keeps it: the file followed by the template. A template that is not a file of the index is an error naming it. Declarations are parsed once per content of the file.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…findings with their lines check_recipe and check_index (mcpplibs.xpkg.check) apply the rules of the format: the recipe loads; its spec is one this library reads (missing, newer, older than 3); an entry with an artifact on a platform with two host architectures lists them (an error for spec 3, a warning before); package.archs is the union of what the entries list; the code uses no name of the compatibility layer (comments and strings blanked, the recipe's own locals and an imported path module excepted; an error for spec 3, information before, naming what replaces it, from the interface manifest); strip is a component count and is read for spec 3 only; build() is no hook of spec 3; what the loader dropped. An index is checked recipe by recipe, with its index-compat.json. Over the official index today: 207 recipes with an entry that names no architecture, 5276 uses of the layer in 405 recipes. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
speak-agent
added a commit
to openxlings/xlings
that referenced
this pull request
Nov 26, 2026
…machine; the boundary carries what a hook says - mcpp.toml: libxpkg at the head of openxlings/libxpkg#54 while the two are tested together (the version replaces it before the merge). - compatibility: ArchEvidence, entry_architectures, is_arch_templated and classify_arch_evidence are libxpkg's (mcpplibs.xpkg.compat); find_entry and declares_no_download_source forward to it. One reading of an entry for the client and the format's checker. - elfread: e_machine and the ELF class (machine, bits), what rule M compares. - lua_protocol: a hook's notices, failed compatibility calls and patch result, an entry's strip and floor, and a platform's strip cross the worker boundary. An entry read in the worker lost its floor before. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…id string literal "\x01absent" reads as one hex escape, \x01ab..., out of range: clang (macOS, Windows) refuses it, gcc took it. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…_CHECK_VERBOSE Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
speak-agent
added a commit
to openxlings/xlings
that referenced
this pull request
Nov 26, 2026
…h its index's template The .xpkg.lua a removal reads is recipe_text (the file and the template its index declares, design 2026-11-27 §9.8), not a copy of the file: a recipe of a templated index keeps the template's hooks for its removal. libxpkg at the head of openxlings/libxpkg#54 (d61d3ad): a string literal clang refused on macOS and Windows. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…s text, not by running it create_executor loaded the package first to learn its spec, so a recipe's top level ran twice: once in the loader's environment, then in the one its spec chooses. A top level with effects (a file written, a program started) did them twice, the first time outside the environment it is run in. recipe_code (the checker's comment and string blanking, now shared) and declared_spec read spec from the text; the executor and the checker use them, and the loader fails a package table whose spec is not the string its text declares, so the host and the executor cannot disagree. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ref cycle
An index's bun recipe writes ["1.3.11"] = { ref = "1.3.11" }: its hooks make
the payload. Clients before spec 3 met the ref cycle, warned and skipped the
download; a client that fails a node whose download cannot be resolved failed
it. The loader reads the self-ref as no ref; a cycle of two is still one.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…tandard Lua spec 3 sees, the compatibility table A host renders its reference of the hook interface (xlings' docs/generated/xpkg-hook-api.md) and a tool reads the old-to-new table from interface_manifest(), so neither keeps a copy. The globals, libraries and os functions of the spec 3 environment move from spec3.lua into the manifest's `stdlib`, which spec3.lua now builds from: one list, read by the environment and by the reference. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ding it, resolving it and its hooks give tests/conformance/*.lua: fifteen cases over every chapter of the spec (versions, the package table, xpm, the lifecycle, the hook environment, declarations, the index). build.mcpp embeds them and mcpplibs.xpkg.conformance reads them, writes a case's index and checks an expectation, so a host runs the same cases through its own install (xlings' test_xpkg_conformance) and what an expectation means is decided once. Here each recipe is read, resolved and run by the executor on three platforms. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…; 0.0.68 The format had three documents in two repositories under three names, and the hook interface was in none of them. docs/spec/xpkg.md is the one: the spec versions and the ceiling, the package table, xpm (entry shapes, architectures and how an entry states them, strip, aliases, revision and floor, dependencies, resolution), the lifecycle and landing, the hook environment of spec 3 and the frozen compatibility layer, declarations and what log's levels mean, the index's declarations and checker, and how the format evolves. Every item says the spec and libxpkg version it holds since. xlings copies it byte for byte to docs/specs/xpkg.md, the site's copy. The README names the spec and the conformance cases and lists the modules as they are; version 0.0.68. The macOS and Windows job runs the conformance cases and the checker. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…keeps its meaning, the landing as strip, the rest listed migrate_recipe() rewrites each compatibility name the interface manifest maps to a name of the interface where the rewrite keeps what the call does (os.mv -> fs.move, os.trymv -> pcall(fs.move, ...), os.iorun -> system.exec with capture, is_host(p) -> pkginfo.platform() == p, ...) and imports the modules they need. An install() whose landing is the usual one (find the extracted directory, remove the install directory, move it in) loses those statements, or entirely, and each platform's table gets `strip = 1`. What needs a person is listed with its line: other landings, top-level calls, try, io.open, os.dirs, sudo, tar. The recipe becomes spec "3" only when nothing is left; the module names it writes work in spec 1 and 2 too. tools/xpkg-migrate (`mcpp build --features tools`) runs it over recipes or an index. On the spike's ten recipes it migrates cmake, dash and make as they were migrated by hand and lists the landing or top-level code of the other seven. On xim-pkgindex main (602 recipes): 192 migrate fully, 394 partly, 16 unchanged; install() is what is left in most. The spec: a hook that returns nothing succeeds. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ost checks its copy against it xlings publishes docs/specs/xpkg.md as a byte copy of docs/spec/xpkg.md of the libxpkg it builds with; conformance::specification() is that text, so its check needs no path into this package. The text is embedded in raw chunks with nothing added at the seams and no UTF-8 sequence split. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… case does, the spec says a host fails one that does not
Found by running the cases through xlings' install: package-table listed
`programs` and registered nothing, which xlings refuses ("registered none of
its declared programs"), and the spec did not say so.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…rts, no spec and no landing A lib has no package table; some make recipe text with a `spec` in it. A file in a libs/ directory is migrated with MigrateOptions::lib, and an index directory brings its libs/ along. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ue is for a person Run over xim-pkgindex's libs, `pcall(os.iorun, cmd)` and `type(os.iorun) == "function" and os.iorun(...)` took the next parenthesis in the file as the call's and broke three libs' syntax. os.trymv, os.iorun, os.execute and is_host are rewritten where the name is called; where it is a value it is listed. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… -- as embedded On Windows git checked docs/spec/xpkg.md out with CRLF, while the raw literal that embeds it holds LF: the byte comparison of the spec with its embedded text failed there (and xlings' of its copy). Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…form's one architecture; a git repository names none The index's own architecture check (K3) and this checker disagreed on `archs`: the index counts a macOS entry as aarch64 and a Windows entry as x86_64 (design 2026-11-27 §5.3), the checker counted only entries that name architectures, so a recipe right by one was wrong by the other. The spec now names each single-architecture platform's architecture (§4.4) and the checker counts it. A URL ending in .git is a source the hooks build: no `arch-unstated` for it. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…statement system.run -- the rewrite keeps that a failed command does not fail the hook
os.iorun answers a command that failed with its output and never raises;
system.exec raises. Rewritten to system.exec(cmd, { capture = true }), every
probe that expects a command may fail (`which curl` or else `where curl`)
failed the hook instead -- the migration changed what the recipe does. The
query keeps it: system.run(cmd).out. An os.execute statement did not read its
status: system.run, not system.exec. The spec's table (§6.3) and the
manifest's compat entries say which keeps the meaning and when to take the
action instead.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…y went into a directory and replaced; fs.move and fs.copy take the final path os.mv and os.cp put src into dst when dst is a directory, and replace what is there; fs.move and fs.copy take dst as the final path and refuse one that exists. Renamed blindly, `os.cp(header, sys_include)` became a copy that fails on the directory -- the rewrite changed what the recipe does, and its text does not say which one a call meant. The tool notes them with the form to write; the spec's table (§6.3) and the manifest's compat entries name the final path. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…; a call into a missing index lib fails the hook (L11, xlings#744, #743)
xvm.add(name, { completion = { bash, zsh, fish, pwsh } }) names files of the
payload; each becomes a `files` entry bound to the program's release (its
binding, else name@version), placed where that shell looks in the SubOS
(usr/share/bash-completion/completions/<name>, .../zsh/site-functions/_<name>,
.../fish/vendor_completions.d/<name>.fish, .../powershell/completions/
<name>.ps1). It follows `use`, goes with the package and is rebuilt as any
declared file; a package no longer edits the host's shell profiles. An
unknown shell or a file outside the payload is an error at the declaration.
import("xim.pkgindex.<lib>") of a lib that is not there or does not load
still answers with a stand-in in spec 1 and 2, so a recipe can be read; a
call to it in a hook is now a failed call naming the lib, the member and why
-- it was a silent success, which is how an uninstall run from a payload's
recipe did nothing (#743). The spec says how a host keeps a recipe with its
libs (§8.1).
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…rm and architecture; a call into a missing index lib raises in a hook (L12, #743) The loader tells a recipe's top level the platform and architecture it reads for (_RUNTIME, os.host, os.arch); the hook runtime told it nothing, so a recipe of spec 1 or 2 that computes from them there (a Luban edition picks its package list by architecture) computed something else when it was installed: pkginfo.arch() raised, and an index lib's fallback answered x86_64 on aarch64. create_executor takes a ReadTarget (the install's platform and arch), in the host's process and through a worker (Load carries it in its context), and states it to the top level as the loader does; each hook still gets its whole context. Spec 3's top-level rule is unchanged (a call of an impure name there is still an error). The stand-in for a missing or broken index lib recorded a failed call and went on with its own answers -- an empty string where a path was asked for -- into the next action. In a hook it raises now, naming the member, the lib and why; a recipe that tolerates it says so with pcall. Reading the recipe is unchanged: outside a hook the stand-in stays inert. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…a recipe named by a relative path finds its index's libs; spec 3's string helpers are stated
The migration rewrote every os.iorun(x) to system.run(x).out, and as a
statement `system.run(x).out` is no Lua at all: npm's and
powershell-execpolicy's recipes did not load after it. A statement's output
was dropped, so it becomes system.run(x), like os.execute's.
`xlings index check pkgs/a/x.lua` from an index's root read the recipe's
index three levels up a relative path -- none -- and a recipe of spec 3
importing an index lib failed to load there ("not in an index"). The loader
and the executor take the absolute path's.
Every state loads the compatibility layer's three string helpers (split,
trim, replace) into `string`, and spec 3 sees `string` whole: recipes of each
spec use them and the migration keeps them. The specification says so, and a
test holds them.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… at its top level, as its hooks do A recipe given by path or a script imports index libs from the index the host names; its hooks got it in _RUNTIME.pkgindex_dir, but a top-level import -- the usual place -- looked only three levels up its own path, found none, and bound the stand-in, which now raises when called. ReadTarget carries the host's index (pkgindex_dir); a recipe's own index with libs comes first, so a payload's kept recipe still runs with the libs it kept. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…g, and an index may name its own landing calls The landing it replaced left what referred to it: procps-ng kept `if fs.is_dir(payload) then end` after `local payload = ...` was gone, and a netbsd disk image `if not fs.is_dir(extracted) then raise(...) end` -- a nil argument that raised at the first install. An `if` on the extracted directory whose body is the landing (or a raise when it is missing) is removed with it, and a landing variable used for anything else leaves the install() for a person. Twenty-two recipes of the index land through a lib (sysroot.adopt_payload), which the tool could not know: they were made spec 3 with the old landing still in install(). `--landing-call <lib.fn>` names such a function, and its call in install() is the landing, replaced by `strip`. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…erent leading components are an error, not a merge An archive with bin/ and share/ at its top, landed with strip = 1, would have had both merged into the install directory and a file of one replaced by a file of the other with the same name: a file left out that the host reported as landed. The host refuses it, naming both beginnings (xlings' extractor). Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…list is a declaration, not the convention
A sysroot of another system or machine (x86_64-freebsd-sysroot on an
aarch64 host) declared no libdirs, so the {lib64, lib} convention made its
lib/ what consumers search and what the host's rule M judges: the install
sweep refused every such sysroot on the other machine, though its libraries
are target content no host loads. A recipe could not say otherwise -- an
empty list read as an omitted one. ExportsRuntime.libdirs_declared records
that libdirs was written; with an empty list the package exports none. The
spec says so (§4.1, exports).
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…arch, is_arch and is_plat in the hook environment; libdirs = {} reaches elfpatch; an index through ..
Review of L11-L13 (main session):
- The loader's read of a spec 1/2 recipe defines os.arch, is_arch and
is_plat; the executor's did not, so a top level that asks (glibc, gcc,
musl: (os.arch and os.arch()) or is_arch(...)) computed x86_64 on aarch64
in the executor while the loader read aarch64, and a hook calling os.arch()
failed. The compatibility layer defines them from _RUNTIME, as the loader
does (listed in the manifest's table: pkginfo.arch, pkginfo.platform).
- libdirs_declared stopped at the loader: elfpatch saw a dep's empty libdirs
and fell to the path meant for a host without resolved_deps, adding the
dep's lib by convention. DepExport carries the declaration to Lua
(self_exports, deps_exports); a dep the resolver answered is taken at its
answer, none included.
- A recipe named through .. (../a/x.lua) found no index: the absolute path
is normalised before its index is three levels up.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…or a person -- a local reading the landing, a compound guard, a landing call with arguments, os.iorun in a continued expression Four rewrites changed a recipe's meaning without a word: - local present = os.isdir(src) was kept while the landing took src away; - a guard testing a version or platform besides the directory was removed with the landing, landing every version; - a --landing-call given arguments (another destination) was removed as if it were the host's landing; - os.iorun at the start of a line continuing an expression lost its .out, and one after then/do/else got .out in a statement (invalid Lua). A statement now begins where the previous token ends one (the start, ;, a closing bracket, a string, a name, then/do/else/repeat/end), read through comments and strings; the other three leave the install() for a person. The first batch of the index (134 recipes) has none of the four: its 22 landing calls had no arguments, its guards tested the directory alone, no global is read that nothing defines, and no system.run continues an expression. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…-- every shell is checked before the program's entry is kept xvm.add kept the program's entry, and the shells checked before a refused one, when its completion was refused; a recipe that tolerates the refusal with pcall registered a program and part of its completion. The completion's operations are built and checked first, then the entry and they are kept. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
speak-agent
added a commit
to openxlings/xlings
that referenced
this pull request
Dec 4, 2026
…machine; the boundary carries what a hook says - mcpp.toml: libxpkg at the head of openxlings/libxpkg#54 while the two are tested together (the version replaces it before the merge). - compatibility: ArchEvidence, entry_architectures, is_arch_templated and classify_arch_evidence are libxpkg's (mcpplibs.xpkg.compat); find_entry and declares_no_download_source forward to it. One reading of an entry for the client and the format's checker. - elfread: e_machine and the ELF class (machine, bits), what rule M compares. - lua_protocol: a hook's notices, failed compatibility calls and patch result, an entry's strip and floor, and a platform's strip cross the worker boundary. An entry read in the worker lost its floor before. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
speak-agent
added a commit
to openxlings/xlings
that referenced
this pull request
Dec 4, 2026
…h its index's template The .xpkg.lua a removal reads is recipe_text (the file and the template its index declares, design 2026-11-27 §9.8), not a copy of the file: a recipe of a templated index keeps the template's hooks for its removal. libxpkg at the head of openxlings/libxpkg#54 (d61d3ad): a string literal clang refused on macOS and Windows. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…he adapters a program answering its own completions needs; they are placed as declared files (L14) Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
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 | 内容
libxpkg's part of the ecosystem plan in openxlings/xlings
.agents/docs/2026-11-27-ecosystem-truthful-results-and-architecture-design.md(§12 and §20, L1–L13), released as 0.0.68. One commit per checkpoint (L14 added for xlings#742's X28):e_machine, class), read by the loader, elfpatch and the checker; what a version entry says about architecture, classified once for hosts and the checker.log.warn/log.errorreach the host as notices (boundary protocol 2)."3": thefs,system,pkginfoandpathmodules (actions raise, queries never raise), the computing part of standard Lua, a pure top level; the compatibility layer frozen in its own file, its failed actions reported.stripand an index's recipe template as declarations; the format's checker (xlings index check), its interface manifest, the conformance cases, and the specificationdocs/spec/xpkg.md, embedded as it is.xpkg-migrate: a recipe of spec 1 or 2 rewritten into spec 3 (the landing asstrip, an index's own landing calls with--landing-call, the rest listed for a person).xvm.add(name, { completion = { bash, zsh, fish, pwsh } })(xlings#744); a call into a missing index lib fails the hook (xlings#743).ReadTarget), and a recipe outside an index reads the host's index libs.exports.runtime.libdirs = {}is a declaration: the package exports no library directory (a sysroot's target libraries), not the{lib64, lib}convention.xvm.add(name, { completion = { protocol = "cmdline" } }): a program that answers its own completions (mcpplibs.cmdline's protocol) gets its four adapters written by the host into the payload (.xpkg/completion/<shell>/<name>) and placed as declared files.Verification | 验证
mcpp test(15 suites) on Linux for each commit; this PR's CI green on Linux, macOS and Windows ata9ff63e.xpkg-migrate, installed with the PR client on Linux x86_64 and aarch64, macOS and Windows, and the whole index swept on both Linux architectures.Authorship | 作者
Authorship: ai-and-human