mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
test: extend decoder verification and document runtime licensing
Compare high vector-register encodings against LLVM and retain the upstream objc2 MIT text. Record the attribution and SDK redistribution questions that still block license sign-off. Signed-off-by: Ranveer Soni <git@ranveersoni.me>
This commit is contained in:
6 files changed
+51
-6
No files matched your search
@@ -9,7 +9,7 @@
|
||||
| objc2-foundation | 0.3.2 | MIT | [Upstream revision](https://github.com/madsmtm/objc2/tree/7b1abfd750a2cacaea71d6a56ecfb83cb7de560b), [upstream licensing notice](licenses/objc2-LICENSE.md). |
|
||||
| objc2-metal | 0.3.2 | MIT selected | [Upstream revision](https://github.com/madsmtm/objc2/tree/7b1abfd750a2cacaea71d6a56ecfb83cb7de560b), [upstream licensing notice](licenses/objc2-LICENSE.md). |
|
||||
|
||||
Cargo resolves the Rust packages from crates.io at the source checksums in [Cargo.lock](Cargo.lock). The upstream objc2 notice discusses the derivation of bindings from Apple SDKs and an open question about redistribution. No Apple SDK files ship in this repository.
|
||||
Cargo resolves the Rust packages from crates.io at the source checksums in [Cargo.lock](Cargo.lock). The upstream objc2 notice discusses the derivation of bindings from Apple SDKs and an open question about redistribution. No Apple SDK files or dependency crate archives ship in this repository. The [upstream MIT text](licenses/objc2-LICENSE-MIT.txt) is an unmodified copy from [objc2 commit ee9a7ad](https://github.com/madsmtm/objc2/blob/ee9a7ada2131f5944b8750428e265c15632f2a19/LICENSE-MIT.txt), added after the locked source revisions. Preserve it and the pinned licensing notice. See the [G11 review](docs/licenses.md#runtime-redistribution-review) for unresolved attribution and SDK questions.
|
||||
|
||||
[LLVM 23.1.6](https://github.com/llvm/llvm-project/tree/5b10d2d74929eae78912771222c9855af97496f4) is used as an external fixture tool under Apache-2.0 WITH LLVM-exception. Xcode and Metal are separate Apple tools under Apple's license terms.
|
||||
|
||||
|
||||
@@ -177,7 +177,11 @@ fn scalar_sources_keep_literal_width_and_register_class() {
|
||||
#[test]
|
||||
#[ignore = "requires LLVM with the gfx1030 AMDGPU target"]
|
||||
fn compares_fixture_instructions_against_llvm() {
|
||||
for fixture in [FIXTURE, BITWISE_FIXTURE, FLOAT_FIXTURE] {
|
||||
// Also covered by the independent reference decoder's high-register test.
|
||||
let high_registers: &[u8] = &[
|
||||
0xfe, 0x03, 0xfe, 0x7f, 0xff, 0, 0x25, 0xd5, 0x80, 0xff, 0x03, 0x02, 0, 0, 0x81, 0xbf,
|
||||
];
|
||||
for fixture in [FIXTURE, BITWISE_FIXTURE, FLOAT_FIXTURE, high_registers] {
|
||||
compare_against_llvm(fixture);
|
||||
}
|
||||
}
|
||||
|
||||
+8
-2
@@ -13,9 +13,15 @@ The workspace is GPL-3.0-or-later. The following is the lead's preliminary compa
|
||||
| LLVM AMDGPU tools | 23.1.6 | Apache-2.0 WITH LLVM-exception | External fixture tool, not linked |
|
||||
| Xcode and Metal tools | Xcode 27.2 | Apple proprietary terms | External host tools, not distributed |
|
||||
|
||||
MIT is compatible with the workspace license. The dependency revisions come from the registry packages' Cargo VCS metadata. Upstream notices and exact AMD source provenance are tracked separately.
|
||||
## Runtime redistribution review
|
||||
|
||||
The objc2 upstream notice raises an unresolved redistribution question about Apple SDK-derived bindings. Before distributing a linked build, resolve that question and obtain independent review. See the [preserved notice](../licenses/objc2-LICENSE.md).
|
||||
Reviewed 2026-11-22 against the locked Apple Silicon graph. Run `cargo tree --locked --target aarch64-apple-darwin --edges normal,build` and `cargo metadata --locked --format-version 1` to reproduce the graph and declared licenses. The external runtime graph comprises exactly the five Cargo packages listed above. The reviewed registry packages identify their source revisions in `.cargo_vcs_info.json`. The four objc2 registry packages declare the listed licenses but contain no standalone license text. Each of the three pinned upstream `LICENSE.md` files matches the preserved copy byte for byte.
|
||||
|
||||
The declared MIT terms are compatible with GPL-3.0-or-later for code the upstream authors have rights to license. MIT remains the selected option for objc2-metal and bitflags. Distribution of copies or substantial portions subject to MIT requires retaining the applicable copyright and permission notice. Preserve the project GPL text, AMD's MIT notice, the bitflags MIT notice, and the objc2 notices. For a linked Xenora binary, also satisfy the GPLv3 section 6 Corresponding Source requirements for the shipped build, including applicable linked dependency source and build scripts, subject to the license's System Libraries exception. See the [project GPL text](../LICENSE).
|
||||
|
||||
The supplied objc2 MIT text comes from upstream commit `ee9a7ada2131f5944b8750428e265c15632f2a19`. Upstream confirms that the older crate versions use the license declared in their manifests, but did not confirm that the added copyright notice covers all earlier contributions. The text is preserved as upstream supplied it. Attribution completeness for the locked releases still requires review of applicable earlier notices. [Upstream MIT text](https://github.com/madsmtm/objc2/blob/ee9a7ada2131f5944b8750428e265c15632f2a19/LICENSE-MIT.txt) · [Maintainer discussion](https://github.com/madsmtm/objc2/issues/826)
|
||||
|
||||
The source checkout references the crates through Cargo and contains no dependency archives or Apple SDK files. A linked macOS build can incorporate generated Rust binding code even when Apple frameworks are linked dynamically. Apple's Xcode agreement §2.4 permits distribution of macOS applications and libraries subject to the agreement. §2.7 restricts redistribution and derivative works of Apple Software, with stated exceptions. The pinned objc2 notice and maintainer clarification leave open how those terms apply to generated bindings in redistributed source or linked binaries. G11 remains open pending review of that question for the actual distributable and independent confirmation of attribution. [Apple's Xcode agreement](https://www.apple.com/legal/sla/docs/xcode.pdf) · [Pinned objc2 notice](https://github.com/madsmtm/objc2/blob/7b1abfd750a2cacaea71d6a56ecfb83cb7de560b/LICENSE.md) · [Maintainer clarification](https://github.com/madsmtm/objc2/issues/895)
|
||||
|
||||
## Fuzz development dependencies
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# Phase 01 checkpoint
|
||||
|
||||
**NOT RELEASE-READY.** The local working tree builds and runs the three-fixture demo. Its base is `9ab5bf9`. Candidate-commit evidence and the remaining gate work are listed in the [engineering report](testing/phase01-checkpoint.md). Changes are local. No commit, push, tag, release or Phase 02 work was performed.
|
||||
**NOT RELEASE-READY.** The three-fixture demo checkpoint was pushed at `96cff7c66e55f1e4693ace19577c207795258d5c` and its [Native Rust checks](https://github.com/ranveersoni98/Xenora/actions/runs/45001680455) passed. See the [engineering report](testing/phase01-checkpoint.md) for gate status and subsequent assurance evidence.
|
||||
|
||||
## Reproduce
|
||||
|
||||
@@ -29,4 +29,4 @@ The independent CPU validation tests are part of the workspace. The native suite
|
||||
2. Run `scripts/fuzz.sh instruction_stream`, `scripts/fuzz.sh fixture` and `scripts/fuzz.sh reference` serially. Each defaults to 600 seconds. The interrupted corpus is retained under ignored `artifacts/fuzz/` and no campaign remains running.
|
||||
3. R2 owns source, semantic and oracle mutation execution and survivor triage. Recreate the source population with `cargo mutants --workspace --list --json --file 'crates/decoder/src/**' --file 'crates/shader/src/**' --file 'crates/ref/src/**'` before executing it. The first inventory has 373 entries. Resolve any new tests and reassess the denominator before reporting a gate result.
|
||||
4. Implement benchmark coverage across the correctness corpus and execute on AC power with the machine idle. The checkout has verified correctness results and no benchmark measurements.
|
||||
5. R1 owns the license, history, claim coverage and status audits. Resolve the objc2 redistribution concern and repeat both reviewer passes against the final candidate commit.
|
||||
5. R1 owns the license, history, claim coverage and status audits. Confirm attribution completeness and the Apple SDK terms for the proposed linked distributable using the [runtime redistribution review](licenses.md#runtime-redistribution-review). Repeat both reviewer passes against the final candidate commit.
|
||||
@@ -33,3 +33,13 @@
|
||||
These fixtures use an explicit synthetic binding ABI, statically resolved forward scalar control flow and the verified exact positive normal FP32 domain. Console containers, guest graphics stages and execution-mask divergence remain unsupported. See [fixture hashes and derivations](../../fixtures/manifest.toml), [supported instruction forms](../shaders/instruction-coverage.md) and [subnormal risks](../risk-register.md).
|
||||
|
||||
Eight agents performed the requested research, implementation and review assignments in waves. The [R1 review log](review-log.md) and [R2 validation report](../../tests/validation/README.md) retain findings and commands. Runtime and fuzz lockfiles passed RustSec advisory checks in this session. The hosted workflow was created and has yet to run. The 89/92 historical laboratory count is tracked separately in the [lab intake](../research/host-lab.md).
|
||||
|
||||
## Assurance sprint, 2026-11-22
|
||||
|
||||
The published baseline `96cff7c66e55f1e4693ace19577c207795258d5c` passed its [Native Rust workflow](https://github.com/ranveersoni98/Xenora/actions/runs/45001680455). The local results above remain historical checkpoint evidence.
|
||||
|
||||
**G6 remains open.** The LLVM oracle also compares the high-VGPR sequence covered by the independent reference decoder test. This adds three instructions to the LLVM comparison across four streams. The reference decoder still needs automated form-wide comparison of decoded operands, instruction lengths and offsets. Production and reference semantics are unchanged.
|
||||
|
||||
**G11 remains open.** The locked runtime dependency declarations are MIT-compatible selections. The three pinned upstream objc2 licensing explanations match the repository copy byte for byte. The full upstream MIT text is now included with its revision. The sufficiency of copyright notices for locked versions and the Apple SDK terms for a linked distributable remain unresolved. See the [runtime redistribution review](../licenses.md#runtime-redistribution-review).
|
||||
|
||||
Sprint verification passed `cargo fmt --all -- --check`, all-features workspace Clippy with warnings denied, and 17 tests across decoder, reference and semantic review. The opt-in LLVM test passed separately with 37 instruction comparisons. Claims and dependency-direction checks passed. Both lockfiles passed `cargo audit --no-fetch` against the local advisory database. Local LLVM output is in ignored `artifacts/licensing/llvm.log`.
|
||||
@@ -0,0 +1,25 @@
|
||||
Copyright 2026 Mads Marquart
|
||||
|
||||
Permission is hereby granted, free of charge, to any
|
||||
person obtaining a copy of this software and associated
|
||||
documentation files (the "Software"), to deal in the
|
||||
Software without restriction, including without
|
||||
limitation the rights to use, copy, modify, merge,
|
||||
publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software
|
||||
is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice
|
||||
shall be included in all copies or substantial portions
|
||||
of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
||||
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
||||
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
||||
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
||||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
Reference in new issue
Block a user