Repository navigation
Conversation
293f87b to
acfbd49
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: acfbd49b43
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| - name: Run contract schema tests | ||
| run: | | ||
| uv run specs/tests/test_execd_schema.py |
There was a problem hiding this comment.
Trigger schema checks for schema-only changes
When a PR changes only specs/execd-api.yaml (or the schema test itself), the execd matcher in .github/workflows/detect-changes.yml lines 116-122 stays false, while a repo-wide search confirms sdk-tests.yml never invokes this script. Consequently this newly added check is skipped for the very inputs it validates, so an invalid RunCommand schema can pass CI; include those paths in the execd matcher or run the test in the SDK workflow.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 3d89963: the execd matcher now includes specs/execd-api.yaml and specs/tests/, so a schema-only change runs the contract schema test (and the conformance profile, whose contract references the same file).
|
|
||
| - name: Run conformance profiles | ||
| run: | | ||
| uv run scripts/conformance/run_profile.py specs/conformance/profiles/execd-file-api.yaml |
There was a problem hiding this comment.
Run every conformance profile in CI
When a second specs/conformance/profiles/*.yaml file is added as the new README explicitly permits, change detection starts the execd job but this hard-coded invocation still checks only execd-file-api.yaml. A malformed or failing new profile can therefore merge green despite specs/conformance/README.md saying CI runs every profile; discover or iterate over the profile directory instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 3d89963: the workflow runs run_profile.py --all, which discovers every specs/conformance/profiles/*.yaml; a newly added profile is checked without further workflow edits. The README documents the flag.
| elif action == "skip": | ||
| if claim.status == "enforced": | ||
| violations.append(f"{label}: enforced claim is skipped") |
There was a problem hiding this comment.
Reject pending skips after their references close
If PR #2661 or #2445 lands without editing these samples, both tests still execute their unconditional t.Skip, and this branch accepts skip for every pending claim without checking whether pending_ref is still open. The checker will keep reporting all claims hold indefinitely, contrary to the documented promise that landing the referenced change makes a stale pending claim fail; either verify reference state or change the pending-test protocol so implementation arrival is observable.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 3d89963, using the second option you suggested: the pending protocol is now observable. The two pending tests are probes instead of unconditional skips — they exercise the upload and skip only while the observed mode still equals main's pre-change behavior. Once the referenced PR lands, the same tests pass, and the checker's stale-pending rule fails the claim even though the landing PR never touches the test. specs/conformance/README.md now states the probe requirement so future profiles cannot regress to unconditional skips.
| require.GreaterOrEqual(t, rec.Code, http.StatusBadRequest, "an undefined env var in the path must be rejected") | ||
| var resp model.ErrorResponse | ||
| require.NoError(t, json.Unmarshal(rec.Body.Bytes(), &resp)) | ||
| require.Contains(t, resp.Message, "undefined environment variables") |
There was a problem hiding this comment.
Assert the undefined variable's name
The mapped FILE-PATH-ENV-001 clause requires the error message to name the undefined variable, but this assertion only checks the generic prefix. If ExpandPath regresses to path references undefined environment variables without appending OSB_FILE_API_BOUNDARY_UNDEFINED_VAR, this conformance test still passes, so assert the variable name as well.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 3d89963: the test now also asserts OSB_FILE_API_BOUNDARY_UNDEFINED_VAR in the error message, so a regression that keeps only the generic prefix fails the claim.
|
Round 1 (codex) findings are addressed in 3d89963:
Verification on 3d89963: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d8996399f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if info.Mode()&os.ModeSetuid != 0 { | ||
| return | ||
| } |
There was a problem hiding this comment.
Assert every promised special bit before passing
If #2445 adds only setuid handling, this branch returns and the runner reports FILE-UPLOAD-MODE-005 stale even though that claim also requires setgid and sticky bits. The request is only 4755 and the test never checks os.ModeSetgid or os.ModeSticky, so promoting the claim would let those requirements remain broken; request and assert every promised special bit before allowing the probe to pass.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 542a232: the probe now uploads mode 7755 and requires setuid, setgid, and sticky together, with a filesystem sanity guard that skips only when the filesystem cannot keep those bits. The claim clause now uses 7755 as its example.
| if claim.status == "pending": | ||
| violations.append( | ||
| f"{label}: claim is pending ({claim.pending_ref}) but the test now passes; " | ||
| "promote the claim to enforced, remove the skip, and bump metadata.version" |
There was a problem hiding this comment.
Convert pending probes to assertions on promotion
With the new probe structure, when either pending probe starts passing, following this violation text literally makes its promoted test non-enforcing: deleting only t.Skip leaves TestUploadRequestedModeAppliesSpecialBits accepting missing setuid after its 0755 assertion, and leaves TestUploadOmittedModeForNewFileFollowsCreatDefault accepting the old 0755 mode. A later regression then passes an enforced claim, so require replacing the old-state branch with a new-state assertion (or retaining the skip for enforced-status rejection) rather than instructing callers merely to remove it.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 542a232: both probes document the enforced assertion next to their skip, and the stale-pending message now says to replace the probe's branch with that assertion rather than merely delete t.Skip. The README states the same and explains why deleting only the skip would leave a non-enforcing test.
| path.startsWith("specs/conformance/") || | ||
| path.startsWith("specs/tests/") || | ||
| path === "specs/execd-api.yaml" || | ||
| path.startsWith("scripts/conformance/") || |
There was a problem hiding this comment.
Trigger validation when contract documents move
Beyond the schema paths added in the follow-up, the profile now has a contract reference to docs/api/implementation-compatibility.md; deleting or renaming that file in a PR matches none of the checked execd paths here, and .github/workflows/deploy-docs-pages.yml:3-7 is push-only. Because run_profile.py is what rejects missing contract references, such a docs-only PR can merge a dangling profile without validation; match the referenced document (and future contract sources) or run reference validation for docs PRs.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 542a232: docs/api/implementation-compatibility.md is now part of the execd matcher, so renaming or deleting a referenced contract document runs the reference validation that rejects dangling profile contracts.
| for test in claim.tests: | ||
| key = (str(test.module_root), test.package_pattern, test.name) | ||
| action = results.get(key) | ||
| label = f"{claim.id} ({test.name})" |
There was a problem hiding this comment.
Include the clause in conformance violations
Whenever an enforced test fails or skips, or a pending test starts passing, every violation is built from this label, which contains only the claim ID and test name; print_report also omits claim.clause. The resulting CI error therefore contradicts specs/conformance/README.md:85 and does not point at the normative sentence as promised, so include the clause in emitted violations.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 542a232: every violation now appends clause: <claim clause> under the claim id and test name, so the CI error quotes the normative sentence as promised.
|
Round 2 (codex) findings are addressed in 542a232:
Verification on 542a232: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 542a232cb2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| action = event.get("Action") | ||
| if not isinstance(test_name, str) or not isinstance(action, str): | ||
| continue | ||
| if not test_name or "/" in test_name or action not in {"pass", "fail", "skip"}: |
There was a problem hiding this comment.
Propagate skipped subtests to mapped claims
Under the repository's Go 1.25, a mapped parent whose only child calls t.Skip emits skip for TestClaim/case and pass for TestClaim (go help testflag documents slash-delimited test identifiers). This filter discards the child event, so evaluate sees an enforced claim as passing even though its only assertion never ran, contrary to specs/conformance/README.md:58-61; propagate descendant skips to the mapped parent or reject them.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5ac8c03: descendant skip/fail results are propagated to the mapped root test, so an enforced claim cannot pass while its assertions only skipped. Verified with a scratch parent test whose only subtest skips: the checker reports "enforced claim is skipped".
| continue | ||
| test_name = event.get("Test") | ||
| action = event.get("Action") | ||
| if not isinstance(test_name, str) or not isinstance(action, str): |
There was a problem hiding this comment.
Reject failed Go package results
go doc cmd/test2json states that overall-package events omit Test; if a mapped test passes and a TestMain teardown then exits nonzero, the stream contains a test pass followed by a package fail and completed.returncode == 1. This branch discards that package event, and run_tests never checks the return code, so the checker reports all claims hold for a failed Go invocation; treat a nonzero package/process result as an error.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5ac8c03: a nonzero go test return code without a mapped test failure now fails the run with the package diagnostic; a mapped failing test still reports as a claim violation (exit 1) rather than an environment error.
| for entry in contract: | ||
| if not isinstance(entry, str) or not entry: | ||
| fail("every contract entry must be a non-empty string") | ||
| if not (repo_root / entry).is_file(): |
There was a problem hiding this comment.
Keep contract references inside the repository
When a profile supplies /etc/passwd or a ../../... path, Path discards or traverses repo_root and this check accepts the host file (I verified --check-only reports such a profile valid), even though specs/conformance/README.md:48 requires repository-relative contract sources. That makes validation machine-dependent and permits references outside the reviewed source tree; resolve each path and reject anything not relative to repo_root before checking existence.
AGENTS.md reference: AGENTS.md:L118-L118
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5ac8c03: contract entries are resolved and must stay inside the repository; /etc/passwd and traversal now fail --check-only with "contract reference escapes the repository".
|
|
||
| A conformance profile is a machine-readable index of documented behavior claims. Each claim states one observable behavior in reviewable prose and points at the test that enforces it, so the promise and its executable form cannot drift apart silently. | ||
|
|
||
| Profiles are internal to this repository's test process. They do not define a new wire contract, a formal v1 conformance profile, certification, or capability negotiation; [Implementation compatibility](../api/implementation-compatibility.md) remains the document that scopes those topics, and the OpenAPI files under [`specs/`](../) remain the wire contracts. A profile interprets promises the project already documents and links them to tests of the reference implementation. |
There was a problem hiding this comment.
Point compatibility links at the docs tree
A repo-wide rg shows this document exists only at docs/api/implementation-compatibility.md; from specs/conformance/, the current target resolves to nonexistent specs/api/implementation-compatibility.md, so this link and its duplicate on line 70 both 404. Point both links at ../../docs/api/implementation-compatibility.md.
AGENTS.md reference: AGENTS.md:L83-L83
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5ac8c03: both links now point at ../../docs/api/implementation-compatibility.md and resolve to the existing docs page.
|
Round 3 (codex) findings are addressed in 5ac8c03:
Verification on 5ac8c03: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5ac8c032b6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| - id: FILE-UPLOAD-MODE-003 | ||
| clause: >- | ||
| An explicit mode in upload metadata is applied to the uploaded file, |
There was a problem hiding this comment.
Cover mode zero before declaring explicit modes enforced
When a caller explicitly sends "mode": 0 while replacing (for example) a 0600 file, ChmodFile skips chmod at components/execd/pkg/web/controller/utils.go:66-75, so the old mode remains; FileMetadata.mode in specs/execd-api.yaml:2870-2873 has no nonzero restriction. The mapped test sends only 644, so the checker reports this enforced clause as conformant even though a valid explicit mode does not win; add a 000 case or narrow/validate the contract.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in d251161: FILE-UPLOAD-MODE-003 now covers explicit non-zero modes. Mode 0 is the omitted-mode sentinel in the request model, so the claim no longer over-claims; the test comment states the sentinel scope.
| // require.Equal on 0644, so the enforced form asserts the default instead of | ||
| // accepting the old mode. | ||
| func TestUploadOmittedModeForNewFileFollowsCreatDefault(t *testing.T) { | ||
| withPinnedUmask(t, 0o022) |
There was a problem hiding this comment.
Exercise a second umask before promoting the claim
With an implementation that hard-codes 0644, this probe takes its success branch under the sole pinned umask 022 and becomes eligible for promotion, even though FILE-UPLOAD-MODE-004 promises 0666 shaped by the process umask; under umask 077 the required result is 0600. Exercise at least one additional umask before promotion so the enforced test covers the claim rather than only its 022 example.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in d251161: the probe now checks two umasks (022 -> 0644, 077 -> 0600) and skips with both observations while they still match main's 0755/0700. A hard-coded 0644 implementation cannot pass, and the documented promotion asserts both wanted modes.
| - docs/api/implementation-compatibility.md | ||
| - specs/execd-api.yaml |
There was a problem hiding this comment.
Reference the documents that define the claims
These references do not contain several detailed semantics indexed below: the birth-time/fallback behavior is documented at docs/api/index.md:157, and upload setuid preservation at docs/architecture/data-plane/execd.md:111. Because neither actual source is listed here or matched by the execd detector in .github/workflows/detect-changes.yml:116-125, renaming or deleting one skips the runner's reference validation and leaves the profile pointing only at documents that do not state its clauses; list and watch the actual sources (or move the statements into the listed contracts).
AGENTS.md reference: AGENTS.md:L118-L118
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in d251161: the profile's contract list now references docs/api/index.md (created_at birth-time and fallback semantics) and docs/architecture/data-plane/execd.md (upload mode preservation), and the execd matcher watches both paths, so renaming or deleting the real sources runs the reference validation.
|
Round 4 (codex) findings are addressed in d251161:
Verification on d251161: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d251161b9d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| Replacing an existing file through the file upload API preserves the | ||
| destination's setuid bit, and a successful upload leaves no staging file | ||
| in the destination directory. |
There was a problem hiding this comment.
Limit setuid preservation to uploads without a mode override
When an upload replaces a setuid destination while metadata also supplies mode: 644, processUploadPair calls applyUploadPermission after staging, so ChmodFile clears setuid; the mapped test omits mode and never exercises that branch. This unconditional preservation clause is therefore false and conflicts with FILE-UPLOAD-MODE-003's promise that an explicit mode wins, although the checker marks both claims enforced; qualify this claim to uploads without an explicit mode or test and implement the intended precedence.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
| An explicit, non-zero mode in upload metadata is applied to the uploaded | ||
| file, winning over the destination's previous mode when an existing file | ||
| is replaced. |
There was a problem hiding this comment.
Exclude special-bit modes from the enforced ordinary-mode claim
For an explicit mode such as 7755, this same profile marks special-bit handling pending in FILE-UPLOAD-MODE-005 and the current ChmodFile drops those bits, but 7755 is also a non-zero explicit mode covered by this enforced sentence. Because the mapped test sends only 644, the runner reports FILE-UPLOAD-MODE-003 passing even though a covered request violates it; scope this claim to ordinary permission bits while special-bit support remains pending.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
| Setuid, setgid, and sticky bits carried in an octal metadata mode (for | ||
| example 7755) reach the created or replaced file. |
There was a problem hiding this comment.
Exercise replacement before promoting special-bit support
If PR #2445 implements special-bit decoding only for newly created files, TestUploadRequestedModeAppliesSpecialBits passes because its target does not exist before upload, and the checker then demands promotion even though this clause also promises the behavior for replaced files. Add an existing-destination case to the probe before allowing it to pass, or narrow the clause to creation.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
| created_at reports the file's birth time while the path still resolves to | ||
| the captured inode, and falls back to the captured inode's ctime when the | ||
| directory entry was replaced, never mixing another inode's birth time | ||
| into the result. |
There was a problem hiding this comment.
Scope birth-time conformance claims to Linux
On any non-Linux build, getFileCreateTime in syscall_others.go returns time.Now(), and both mapped tests live in a //go:build linux file, while docs/api/index.md explicitly introduces this behavior with “On Linux.” Leaving FILE-INFO-BTIME-006 and FILE-INFO-BTIME-007 unqualified therefore records enforced claims that are false off Linux and makes the documented runner report missing tests there; qualify both claims or encode platform applicability in the profile.
AGENTS.md reference: AGENTS.md:L45-L47
Useful? React with 👍 / 👎.
|
Round 5 (codex, commit d251161) completed with no new findings. The four earlier rounds' findings are fixed in 3d89963 (round 1: 4), 542a232 (round 2: 4), 5ac8c03 (round 3: 4), and d251161 (round 4: 3), each with inline replies and per-round verification notes above. Convergence reached on the automated-review loop; leaving further changes to human review. The execd workflow run is still awaiting maintainer approval for the fork's workflow runs, so CI evidence here is local: full controller suite, |
The file upload/download/info surface is the single busiest fix area in the execd controller: at least eleven open PRs each patch one edge of it (mode defaults, octal special bits, env-var path validation, birth-time identity, glob validation, overlay copy-up modes). The tests here pin those edges as executable behavior samples, grouped by the PR that motivates each boundary: Four tests assert behavior main already honors and must keep honoring: an undefined env var in a path is rejected with nothing written to disk (opensandbox-group#2690), an API upload does not strip the destination's setuid bit (opensandbox-group#2445/opensandbox-group#2750), an explicit metadata mode wins over the destination's mode (opensandbox-group#2661/opensandbox-group#2445), and created_at uses birth time while the inode matches (opensandbox-group#2612). Three tests document boundaries whose expected semantics are still only proposed, and skip with the PR number and the exact expectation so they can be unskipped when that behavior lands: the 0644 creat(2) default for an omitted metadata mode (opensandbox-group#2661), setuid from an octal metadata mode (opensandbox-group#2750/opensandbox-group#2445), and the birth-time identity check with a ctime fallback (opensandbox-group#2612). Signed-off-by: yjjnls <yjjnls@users.noreply.github.com>
Map documented behavior claims for the execd file upload and info surface to the tests that enforce them, add a checker for the profile, and wire it into the execd test workflow. - specs/conformance/: the profile format and the first profile (execd-file-api.yaml) with five enforced and two pending claims. - scripts/conformance/run_profile.py: validates profile structure and test references, runs mapped Go tests with go test -json, and enforces the enforced/pending status rules. A pending claim whose test starts passing fails the check as a stale profile, so skips cannot outlive the PRs they reference. - CI: run the profile and the previously unwired contract schema test from execd-test.yml; trigger the execd workflow for profile and checker changes. - Tests: keep the upload boundaries as the first profile cases. The birth-time boundary tests merged with opensandbox-group#2612 now cover that claim, so the duplicate skipped sample is removed. Boundary test comments name their claim ids. Signed-off-by: yjjnls <yjjnls@users.noreply.github.com>
- Run every profile with --all; CI no longer hard-codes one profile file. - Make pending claims observable: the two pending boundary tests now probe the behavior and skip only while the pre-change behavior is still present. Once the referenced PR lands they pass, and the checker's stale-pending rule fires even though the landing PR never touches the test. - Trigger the execd workflow for specs/execd-api.yaml and specs/tests/ so a schema-only change runs the contract schema test it affects. - Assert the undefined variable name in the FILE-PATH-ENV-001 test so the clause's "names the undefined variables" requirement is actually pinned. Signed-off-by: yjjnls <yjjnls@users.noreply.github.com>
- Bound the go.mod lookup to the repository root. - Skip non-object JSON events and non-string test/action fields instead of crashing on unexpected go test -json output. - Handle a test file that lives directly in its module root. Signed-off-by: yjjnls <yjjnls@users.noreply.github.com>
…ribing Round 2 review findings: - The special-bits probe now uploads mode 7755 and requires setuid, setgid, and sticky together (with a filesystem sanity guard), so a partial implementation cannot pass the claim. - Both pending probes document the enforced assertion next to their skip, and the checker's stale-pending message tells the contributor to replace the probe branch with that assertion instead of merely deleting the skip, so a promoted claim keeps enforcing. - Violations quote the claim clause so a CI failure points at the normative sentence. - The execd matcher also triggers on the compatibility document, so renaming or deleting a referenced contract file runs the reference validation. Signed-off-by: yjjnls <yjjnls@users.noreply.github.com>
A pending test that skips as its first statement can never observe the referenced change landing, so the stale-pending detection cannot fire. Reject that shape at validation time and document the probe requirement. Signed-off-by: yjjnls <yjjnls@users.noreply.github.com>
- Propagate skipped (and failed) subtest results to the mapped root test, so an enforced claim cannot pass while its only assertion skipped. - Fail the run when go test exits nonzero without a mapped test failure (TestMain teardown or package-level error), instead of reporting success. - Resolve contract references and reject anything outside the repository, so absolute paths and traversal cannot validate host files. - Point the conformance README's compatibility links at the docs tree. Signed-off-by: yjjnls <yjjnls@users.noreply.github.com>
Round four review findings: - FILE-UPLOAD-MODE-003 covers explicit non-zero modes; mode 0 is the omitted-mode sentinel in the request model and is out of the claim's scope. - The omitted-mode probe now checks two umasks (022 -> 0644, 077 -> 0600), so a hard-coded 0644 implementation cannot pass the claim, and promotion asserts both wanted modes. - The profile's contract list references the documents that actually state the claims (the API index for created_at, the execd architecture page for upload mode preservation), and the execd matcher watches both. Signed-off-by: yjjnls <yjjnls@users.noreply.github.com>
d251161 to
a0579ee
Compare
|
Rebased onto main ( Verification on the rebased tree
|
Conformance profile harness for the documented behavior claims, per the format proposed in #2926; the first profile covers the execd file API. Extends #2773. This PR was previously a draft of boundary test samples; #2926 provides the normative piece they needed, so it now contains the full harness: format documentation, the first profile, a checker, and CI wiring.
Profile format and first profile
specs/conformance/README.mddocuments the format: fields, claim statuses, test mapping rules, and the promotion workflow. Profiles are an internal claim index for the reference implementation's documented behavior; no certification, no capability negotiation, no change to the compatibility page's stance.specs/conformance/profiles/execd-file-api.yamlis the first profile, seven claims for the file upload and info surface:created_atuses birth time only while the captured inode still matches; ctime fallback otherwise.Checker
scripts/conformance/run_profile.py(run withuv run, inline dependencies likespecs/tests/test_execd_schema.py):file.go::TestNamereference statically;go test -json -count=1 -runin the owning module;enforcedclaim must pass (failure, skip, or missing test is a violation), and apendingclaim may be skipped, but a passing pending test is a stale-profile violation asking for promotion, so a skip cannot outlive the PR it references.Violations print the claim id and clause, so a regression report points back to the normative sentence instead of just a test name.
CI wiring
execd-test.ymlgains a step running the profile (Go is already set up there) and a step runningspecs/tests/test_execd_schema.py, which no workflow currently invoked.detect-changes.ymltriggers the execd workflow forspecs/conformance/**andscripts/conformance/**, and stops treatingspecs/conformance/as an SDK trigger.Test changes
Verification
gofmtandgo vetclean; the full controller test suite passes locally.uv run scripts/conformance/run_profile.py specs/conformance/profiles/execd-file-api.yaml: the five enforced claims pass and the two pending claims skip as expected.uv run specs/tests/test_execd_schema.pypasses.Out of scope
/pty) are not mapped, consistent with the compatibility page.