Repository navigation
Tags
Tags
fix(boxes,minimald,minimald-rpc): a creation under a taken derived na… …me gets the smallest free (#3787) * fix(boxes): give a taken derived name the smallest free <name>-<n> DiskLoader::create_with_derived_name walks the candidates of a derived name against every retained record in any state, under ASCII case, and past reserved and box-id-form names, and files the record in the same step. The answer names the name the create did not get, and why. * fix(minimald): carry the derived-name create through the store actor StoreHandle::create_derived sends the record, the handed id and the derived name to the store, which names and files the record in one step and answers the assigned name and the name not taken. * fix(minimald): never refuse a create for a taken derived name A create with no requested name gets the smallest free <name>-<n> from the store step. The create reply carries the assigned name and the name it did not get, with the holder only for a caller that can read it. * test(minimald): ask for the shared name where two boxes must share it A derived name no longer reuses a kept box's name, so the tests that built two boxes of one name from two unnamed creates now ask for the name on the second create, after the first is stopped. * fix(minimald): hide the name holder when its record was not read A gone or unreadable holder record read as one with no creator, so the create reply named the holder to any caller. Keep the two apart and name the holder only for its creator or a record with no creator. * fix(minimald): name the holder only to the creator its record names A read record with no creator showed its box to every caller. The reply now names the holder only when its record was read and its creator is the caller, and hides it in every other case. * fix(minimald): take a derived-name grant box's id by its creation key The store can give a derived name <base>-<n> after the mint, so the mint now accepts a <base>~<hex> key for the first derived candidate, as it does for a fresh instance's base. * fix(min): register a derived-name grant box under a creation key The daemon can give a derived name <base>-<n>, so a host_ip grant box with no written name registers under <base>~<hex>. A second create of one project is then not refused for a held name. --------- Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
fix(boxes,minimal): the store check admits every upstream host on a h… …ost_ip box with no egress (#3707) * fix(boxes): admit every store upstream on a host_ip box with no egress store_refusals and check_store_references take the box's network mode and skip the host check when egress_admits_every_name holds, as the GitHub check does (BEP-036, BEP-008). * fix(minimal): pass the network mode to the store reference check min box start and min box spec now admit every registered upstream on a host_ip box with no egress section, as the GitHub check does. BEP-036 states that case. * fix(boxes,minimal): backtick host_ip and own_ip in test doc comments * test(minimal): run the store preview refusal on an own_ip box A host_ip box with no egress section now admits every store upstream, so the entry preview test checks the store refusal on own_ip. * fix(minimal): register store upstreams on a host_ip box with no egress A host_ip box with no egress section and only store grants registered an empty egress with the proxy, so the proxy refused the rule's upstream. proxy_egress now adds each accepted store rule's upstream hosts, as it does the GitHub hosts. BEP-022 gains the matching registration clause. * fix(minimal): keep the port of a store upstream in the proxy egress proxy_egress registered only the host of each store rule upstream. The proxy reads a bare host as port 443 and compares the whole authority, so an upstream such as api.example.com:8443 was refused as outside_declared_egress. Register each upstream's lowercased authority with its port, and say so in the BEP-022 registration clause. --------- Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
build(deps): bump the github-actions group with 3 updates (#3463) Bumps the github-actions group with 3 updates: [korthout/backport-action](https://github.com/korthout/backport-action), [taiki-e/install-action](https://github.com/taiki-e/install-action) and [actions/upload-artifact](https://github.com/actions/upload-artifact). Updates `korthout/backport-action` from 4.7.1 to 5.0.0 - [Release notes](https://github.com/korthout/backport-action/releases) - [Commits](korthout/backport-action@0ebd44f...ad272ff) Updates `taiki-e/install-action` from 2.87.22 to 2.90.3 - [Release notes](https://github.com/taiki-e/install-action/releases) - [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md) - [Commits](taiki-e/install-action@v2.87.22...cfdb7ed) Updates `actions/upload-artifact` from 7.0.1 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v7.0.1...cf430e0) --- updated-dependencies: - dependency-name: korthout/backport-action dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: taiki-e/install-action dependency-version: 2.90.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Norrie Taylor <91171431+norrietaylor@users.noreply.github.com>
test(minimal): gate the debug-only command assertion on debug builds (#… …3684) fix(minimal): build in release mode again The function that decides whether a command prints the native-boxes notice named the spinner run and the answerer aid in its pattern. Both commands exist in debug builds only, so a release build of the crate stopped at "no variant named Spin" and "no variant named DebugAnswererCommand". The other uses of the two names carry the debug gate already. The two names move into a debug-only early return, which keeps the debug behaviour as it was. One test named the answerer aid without the gate as well, which stopped a release build of the tests; it has the gate now. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
fix(minimald): the ct-mark refusal for a whole-mark write under a pac… …ket-mark match names the match (#3702) * fix(minimald): name the mark match of a whole-mark ct-mark writer The ct-mark scan now records the packet-mark match (meta mark & M != V) of a rule that writes every bit of the connection mark. The refusal prints that match, and names the well-known range its mask touches, such as Tailscale's 0x00ff0000 in its nftables mode. When a known program or mark range accounts for every such rule, the refusal no longer tells the user to change the rule. * fix(minimald): name a mark range only for a match mask inside it A packet-mark match whose mask has bits outside a well-known range matched marks the range does not account for, yet the refusal named the range and dropped 'Change that rule'. Require every mask bit inside the range, and pin a 0xffffffff match as the user's rule to change. * test(minimald): pin a one-bit mark match outside every range as unowned A packet-mark match on one bit outside every well-known range names no range, and the refusal still tells the user to change the rule. * fix(minimald): explain each rule in a chain the unowned pass can name The owner lines kept one line per table and chain, so a chain with a ranged whole-mark rule and an unowned one named only the first. Key the lines on the chain and its range as well. * fix(minimald): say a mark range's program can load a rule, not that it does Only the match mask ties the rule to the range. The line now says the program can load the rule and states what a rule that another program loads must do. --------- Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
fix(minimal): match the debug-only commands only in a debug build (#3682 ) * fix(minimal): match the debug-only commands only in a debug build shows_native_boxes_notice named Command::Spin and Command::DebugAnswererCommand, which exist only under debug_assertions, so every release build of the minimal crate failed with E0599 and the nightly of 2026-11-20 published nothing. The two arms move to a helper that is compiled only in a debug build and is false in a release build. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTyVpjTE7DxZiZ29NeY * style(minimal): format the two matches as rustfmt does Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTyVpjTE7DxZiZ29NeY --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
fix(minimal): the sign-in page's "Change which repositories" link ope… …ns the App's install page (#3590) fix(minimal): link "Change which repositories" to the App install page The settings page lists only personal installations, so a sign-in that reached only organization installations led nowhere useful. The App install page lists every account that has the App. Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
feat(minimal): T54 — Every `min box` verb that takes a box completes … …box names (#3509) * feat(minimal): complete box names on every min box verb's box argument Attach the shared completer, now named box_completer, to the box and --parent arguments of the min box verbs. The same arguments back min session logs and min task logs, so those complete box names too (BCLI-028). * test(minimal): drive box completion test with a fixed box list The test compared two empty lists when no daemon ran, so a wrong completer passed. It now serves a fixed box list to the real completer and checks that the reference offers web for w. --------- Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
feat: T129 — The daemon stores the expanded spec with each hook's dec… …larer, and composes from it (#3461) * feat(mfile): store lifecycle_hooks with declared_by in the box spec BoxSpec carries the expanded spec's lifecycle hooks, each with the declared_by table that names its declarer (BOX-068, BOX-179). A spec with no hook list writes no key. * feat(minimald): compose the project's hooks from the stored spec The daemon composes the project's lifecycle hooks from the hooks with a project declared_by in spec.json, in place of the [session] hooks of minimal.toml and the hooks of the expanded entry (BOX-068, BOX-179). A loadout hook still arrives on the contribution with its loadout. The log line that stores the spec names how many hooks it carries. * feat(minimal): send the expanded hooks with their declarers on the spec A session create puts the expanded spec's lifecycle_hooks, each with its declared_by, into the box spec it sends. The daemon stores them in spec.json and composes the project's hooks from them (BOX-068, BOX-179). * fix(minimald): fail the compose when the stored spec cannot be read A box that stores spec.json no longer falls back to the hooks in minimal.toml when the file exists but cannot be read. * test(minimald): use expect_err for the unreadable spec case * fix(minimald): refuse a stored spec the launch refuses at compose A spec.json that is not a v0 spec, or has a hook with no valid declared_by, now fails the compose with the InvalidInput refusal that held_spec gives at launch, in place of a fall back to minimal.toml. * fix(minimald): compose reads only the stored spec keys it uses The compose parsed the whole spec.json as a v0 Box Spec. A stored spec can carry keys that parse refuses, such as io.exec_enabled, file_exports and network.vpn_network_names, and partial specs. The compose now reads v, entry, box.type and lifecycle_hooks, and refuses only a spec that is not JSON or a hook list it cannot use. --------- Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
fix(boxes): T51 — The Box Egress Proxy refusals name the minimal.toml… … tables (#3433) * fix(boxes): name the minimal.toml table in each BEP refusal The Box Egress Proxy refusals and the -o json hint now name [defaults.session.network.bep] or [defaults.session.secrets] in minimal.toml, where the setting loads today. The grant refusals of min box create, the pinned tests and the e2e hint read the new text. * style(boxes): format the BEP refusal table test * fix(boxes): take the minimal.toml table as a field of each BEP refusal The refusals and the un-enrolled next step named a fixed [defaults.session.*] table. min box spec <entry> previews the same refusals for a spec expanded from every layer, so the table now comes from the spec's BepTables. * fix(minimal): name the layer that set secrets in min box spec refusals min box start passes [defaults.session.secrets] and [defaults.session.network.bep], so its text does not change. min box spec <entry> passes the table of the layer that set secrets or network, such as [tasks.ci.secrets]. * fix(boxes): let the un-enrolled refusal name no table unenrolled_node takes the minimal.toml table that set the grants. A caller that cannot know it passes None, and the text names the secrets of the box's entry. A non-table source reads without 'in minimal.toml'. * fix(minimald): name no table in the un-enrolled refusal The daemon gets a spec from any entry, and not the table that set its secrets, so its refusal names the secrets of the box's entry. min box start reads the grants from [defaults.session] and passes that table. * fix(minimal): name a loadout or the command line in box spec refusals A value from a selected loadout or a flag sits above the entry, so an edit to the entry's table does not change it. * test(boxes): split the un-enrolled table test under the line limit --------- Co-authored-by: minimal-foundry[bot] <327719912+minimal-foundry[bot]@users.noreply.github.com>
PreviousNext