Skip to content

enable: reject a directory config destination before writing workflow #1329

Closed

Description

@EffortlessSteven

Queued next bounded usability leaf under #327; related #1055/#1057 and released-adoption #811 remain dependency-gated. Actual offline command-core RED/GREEN is now recorded in PR #1330. Current frozen qualification receipt binds headcb133f6127bc649ced9861e7fc721e14375b794e/tree4df0dde59022e9fabcccb27b2610e5ddd55cd890, baseline 1,241 passing tests, independent review5449228825, and required FAIL9/max0. Exact current raw rows await data-only inspection; no installed/release or merged-source claim.

At inspected main 266260b454dbb7efd383bf1366162a204c4bdf72, src/enable.rs::cmd_enable_with_resolver creates the workflow directory and writes .github/workflows/ub-review.yml before writing .ub-review.toml. With --force and an existing directory at the config path, the later config write fails after an existing workflow can have been replaced, or a previously absent workflow created.

Own only rejecting this known directory-valued config destination before workflow output. Preserve action-SHA/model/root validation precedence, resolver/install strategy, provider policy, rendered workflow/config bytes, modes, inspect behavior, force semantics for regular files and non-force existing-config refusal. No generic transactional-write, permissions, symlink/race or prospective writability promise. No actual provider/action/analyzer pin or workflow changes.

Tests first through the real resolver-injectable command core and filesystem, with a deterministic offline resolver:

  • directory config plus existing workflow sentinel, force=true; two attempts must retain literal workflow/config-child/source bytes and exact path inventory while returning a config-path diagnostic;
  • directory config with absent workflow hierarchy, force=true; two attempts must create no workflow output or new directories;
  • fresh and forced regular-file controls, parsed companion TOML and unchanged rendered workflow/config bytes, deterministic replay;
  • preserve existing invalid argument, non-force refusal and inspected-root precedence controls.
    Stage test-only commit and actual ordinary hosted RED before repair; then exact-head GREEN, seven current baseline checks, fresh independent LLM review and unchanged protected required gate before normal merge.

Fresh issue/PR ownership checks for enable directory/config-write/partial-output found no dedicated owner. #1318/#1319 own unsafe inspection and its render test only; do not edit or rebase that frozen branch. #1326/#1328 share the sole sequential init-output writer PR #1327; do not open a second init.rs front. Keep source/test edits for this leaf in enable.rs and coordinate its test-module registration if needed. #1306 terminal queue, #1317 delivery, #1314 comparison-only remain separate.

Selected after a fresh owner check on current main266260b454dbb7efd383bf1366162a204c4bdf72. This round owns only enable command output admission, with src/init.rs and frozen PR#1327 untouched. Stage the offline command-core tests first on a dedicated draft branch; source repair follows actual hosted RED. Local helper failed before process creation; no retry/alternate executor, heavy local build, host measurement, credential/ACL/security, package/deployment or protection change. Use existing permitted GitHub source tools and ordinary hosted CI.

Activity

  1. EffortlessSteven commented on Oct 7, 2026

    @EffortlessSteven
    MemberAuthor

    Selected tests-first draft PR #1330 at b2e8d9f/treec72d1fe798da92d643df86e796b0356acf252cf3, base266260b4. Production command/render bodies remain byte-identical; only cfg(test) Rust wiring/source changed. Negative test collects all eight inspect/existing-workflow/repeated-attempt cases before asserting literal bytes, exact inventory and path/recovery diagnostic. Fresh/forced source/release controls parse TOML and require byte-identical replay; invalid-SHA/model/non-force/source-fallback precedence controls remain. Ordinary hosted RED and independent test review pending. No local retry or alternate executor; no init.rs/frozen-branch/workflow/pin/policy/protection/package/deployment writes.

  2. EffortlessSteven commented on Oct 7, 2026

    @EffortlessSteven
    MemberAuthor

    The corrected clean RED at6fd82cc5, run37696153511/test113048273013, was independently inspected: all eight directory cases created or overwrote workflow output while source/child bytes stayed intact. The rejection test was the sole failure; unit target 1,120 passed and one failed. Both positive controls and six other checks passed. Source repair is now cb133f6, tree4df0dde59022e9fabcccb27b2610e5ddd55cd890: one directory guard after existing rendering/strategy checks and before workflow output. PR #1330 transitioned normally to ready for qualification. Fresh source review, GREEN and current required checks were pending at this receipt; no merge attempt.

  3. EffortlessSteven commented on Oct 7, 2026

    @EffortlessSteven
    MemberAuthor

    Current ready-event qualification at cb133f6, tree 4df0dde59022e9fabcccb27b2610e5ddd55cd890: GREEN run37696502213/test113049546869, all three new tests passed; workspace 1,241 passed, zero failed, one ignored, excluding the nested subprocess summary. Seven checks and aggregate113049980409 passed. Fresh independent exact-head review5449228825 found no actionable source/test issue and independently read clean RED/current GREEN. Artifact11515174389: 526 bytes, SHA256 dc70092a145c326db47077976deabba9f6d5f05821c514cab61a4fa49575e7a9. Synthetic merge1d92d5f01de89bcea8a640445f314ab7f67e4f9a has the exact reviewed tree and parents main266/headcb133. Required run37696501237/job113049646888 is still running; no merge attempt or qualification inheritance from cancelled synchronize runs. Next bounded unowned nominee #1331 is queued after fresh owner checks, with no parallel enable writer.

  4. EffortlessSteven commented on Oct 7, 2026

    @EffortlessSteven
    MemberAuthor

    Frozen exact-head qualification receipt: PR #1330 at cb133f6/tree4df0dde59022e9fabcccb27b2610e5ddd55cd890 has clean actual RED, unchanged-test GREEN (1,241 passed/zero failed/one ignored), seven checks and independent review5449228825. Current required run37696501237 failed nine RIPR gaps/max0. Packet11516220603 is retained; exact raw roles/stages/relations and revision/dirty details were requested before disposition. Ready/open/unmerged; no merge attempt or gate weakening. Main remains266260b4/tree d14f36db. Next unowned #1331 is queued with concrete tests-first controls and fresh ownership checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions