Skip to content

chore: ignore local harness artifacts - #614

Closed
KooshaPari wants to merge 4 commits into
mainfrom
wip/20260722-helios-harness-preservation
Closed

chore: ignore local harness artifacts#614
KooshaPari wants to merge 4 commits into
mainfrom
wip/20260722-helios-harness-preservation

Conversation

@KooshaPari

Copy link
Copy Markdown
Owner

Preserves the post-merge local artifact hygiene follow-on after the harness packet.

Validation: git diff --check.

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b95c4ee63

ℹ️ 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".

payload["created_at"] = datetime.now(tz=UTC).isoformat()
payload["command_count"] = len(commands)
from harness.benchmark_envelope import add_envelope
payload = add_envelope(payload, repo=repo, profile=profile, plan_hash=command_hash)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the existing harness evidence shape

For a normal run, this replaces the schema-compliant evidence payload with only the new benchmark envelope before writing the file. The existing phase-2 collector still reads top-level result_code, commands, runs, and quality from each run artifact in commands/execute-phase-2-harness.sh, and harness/schemas/harness-evidence.schema.json requires those fields, so successful runs now summarize as WARN/0 and fail schema validation; files written by this version also make --replay compare against an empty prior plan. Preserve or embed the legacy payload, or migrate every consumer/schema in the same change.

AGENTS.md reference: AGENTS.md:L112-L115

Useful? React with 👍 / 👎.

if args.dry_run:
result["result_code"] = "WARN" if not commands else "PASS"
from harness.benchmark_envelope import add_envelope
result = add_envelope(result, repo=repo, profile=profile, plan_hash=command_hash)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep dry-run plan fields in the output

When run --dry-run is used, this assignment discards the top-level dry-run result that was just built, including result_code, plan_hash, plan, and command_count. Existing CLI callers and harness/tests/test_run_harness.py rely on those fields to inspect the discovered plan without executing it, so dry-runs now raise KeyError/lose their primary output unless the legacy fields are preserved alongside the envelope.

AGENTS.md reference: AGENTS.md:L112-L115

Useful? React with 👍 / 👎.



def _legacy_module() -> ModuleType:
script = Path(__file__).resolve().parents[3] / "scripts" / "run-harness.py"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Package the runner behind the console script

When helios-harness is installed from harness/pyproject.toml, the wheel only packages src/harness, so the sibling repository file harness/scripts/run-harness.py is not available. In that installed layout this path resolves outside the package, making the advertised console entry point fail as soon as main() or run_runner() loads the legacy module; move the runner into the package or include the script.

AGENTS.md reference: AGENTS.md:L112-L115

Useful? React with 👍 / 👎.

KooshaPari and others added 2 commits July 29, 2026 00:52
  - harness/src/harness/benchmark_envelope.py: add envelope.v2
    shape (model_family + token_pivot + warmup) for the
    second-generation benchmark runs; the v1 envelope stays
    readable so old runs parse.
  - harness/scripts/run-harness.py: shell-quote the binary path
    before passing to Popen so paths with spaces don't break the
    subprocess spawn.
Copilot AI review requested due to automatic review settings August 1, 2026 10:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

sonarqubecloud Bot commented Aug 1, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

KooshaPari added a commit that referenced this pull request Aug 13, 2026
…chain-refresh (#628)

Shards the unique work from 3 helios-cli branches onto current main:
- feat/benchmark-provenance (#616): benchmark_envelope + harness scripts + CI
- wip/20260722-helios-harness-preservation (#614): direct envelope test
- feat/toolchain-refresh (#610): package.json + pnpm-lock.yaml

Co-authored-by: ForgeCode <forgecode@local>
@KooshaPari

Copy link
Copy Markdown
Owner Author

Closing: shard merged in #628 (benchmark-provenance + harness-preservation + toolchain-refresh). No unique work remains.

@KooshaPari KooshaPari closed this Aug 13, 2026
@KooshaPari
KooshaPari deleted the wip/20260722-helios-harness-preservation branch August 13, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants