Skip to content

Releases

Factonio v0.4.2

Choose a tag to compare

@tozes tozes released this 03 Dec 11:34
7255ca8

Highlights in v0.4.2

Factonio v0.4.2 builds directly on v0.4.1 (release/0.4.x, zero post-0.4.0 main refactors) with targeted security, authorization, verification-binding, and archive-integrity backports from PR #189 (PR #191):

  • Verify-to-head binding & fail-closed merge gates:
    • Bind active spawn_verify rounds and legacy Verify cards strictly to the exact live PR head SHA being merged (supporting verified patch-continuity proofs from the recorded SHA when allow_patch_continuity=True).
    • Parse legacy - Expected HEAD SHA: stamps strictly from the leading card header block (_card_header / _card_header_block), refusing conflicting or malformed header stamps and reading fallback head_sha only from the latest verdict-bearing run.
    • Select the newest legacy Verify card before checking status == "done" (so newer cancelled/archived cards are never masked by older passes), and propagate corrupt kanban.db schema errors (table_columns(..., strict=True)).
    • Fail closed on pinned merges when .factonio/harness.json cannot be read from a partial clone (git ls-tree vs failed git show), when the PR head is missing locally even if local HEAD has no formal hooks, or when a registered checkout's .git is unreadable.
  • Policy clearance & owner-only harness approval:
    • Enforce is_worker_profile() unconditionally for all actors on approve_harness (HTTP 403 on POST /repos/{slug}/harness/approve).
    • Approve the exact single-read .factonio/ snapshot used for command discovery (closing the discovery-to-approval TOCTOU window) and compare Doctor/CQS commands byte-exact without stripping trailing whitespace.
    • Validate merge boolean flags strictly in both auto and ask modes, pin the clearance-time resolved merge_method into merge_pr, and pin the clearance-time resolved base_branch into publish_pr.
  • Archive & audit integrity (repos/close_archive.py, trail/audit.py):
    • Remove destructive assign_task(None) fencing (preserving failure streaks, never clobbering concurrent reassignments, zero stranded NULL assignees) while staying strictly on Hermes Core's public kanban_db.archive_task.
    • Check tenant/assignee ownership before running refusals, reconcile committed archived status if archive_task raises post-commit (recompute_ready / cleanup), report exact partial archived_card_ids + failure-path trail.db evidence, and resolve card-scoped audit findings for confirmed archived cards across partial error/refused archive rows.
  • CodeQL & test hygiene:
    • Cleared all 4 CodeQL findings (_trusted_header → _card_header_block with panel-consensus-formal re-proven and pinned at 51419bcd; owner-only fchmod_nofollow test modes), fixed the Bun control-plane.test.tsx dynamic host import order, and kept the GHES merge test strictly offline.

Full Changelog: v0.4.1...v0.4.2
Cumulative Delta from v0.4.0: v0.4.0...v0.4.2

Factonio v0.4.1

Choose a tag to compare

@tozes tozes released this 03 Dec 07:28
58cfc6f

Highlights in v0.4.1

Factonio v0.4.1 is a security and policy-hardening patch release built directly on top of v0.4.0 for the Hermes Agent Plugin Marketplace review, adding code-enforced human approval gates, owner-pinned harness execution, strict boundary validation, and end-to-end Information Barrier hardening.

Marketplace Review Fixes (PRs #181–#184)

  • Minimal allowlisted subprocess env (#181): target-repository harness commands run under an explicit allowlisted environment, never inheriting host secrets or provider credentials.
  • Public Hermes APIs & ctx.llm migration (#182): task archiving uses public kanban_db.archive_task; auxiliary LLM calls use ctx.llm; private Hermes core imports replaced where public seams exist.
  • Owner SHA-256 harness approval (#183): .factonio/ executable commands require explicit owner approval (hermes factonio harness approve) pinned by SHA-256 digest before execution; arbitrary-command agent proofs removed.
  • Code-enforced ask gates & owner-only policy fields (#184): merge_policy: ask and publish_policy: ask enforced in code via pre_tool_call + post_approval_response one-shot escalation tokens; sensitive policy fields (merge_policy, publish_policy, gate_verify_on_ci, default_rigor, design_provider, design_approval, generated_rebuild_command) and POST /merge-pr restricted to human owners.

Deep Security Hardening (PRs #185, #187, #188)

  • Harness, git & validator hardening (#185): pre-execution gate-loosening checks, bounded timeouts (1..3600), ReDoS-safe glob matching, full-SHA refs with -- separators, O_NOFOLLOW/dir_fd confined reads & fchmod, fail-closed config loading, atomic 0o600 profile setup, GH_HOST scrubbing, and strict \A...\Z validators.
  • AuthZ, Decision Trail & merge/publish gates (#187): reserved system decision protection, runtime-derived actors, persistence-time Information Barrier scrubbing, 2-tool worker surface (WORKER_SAFE_TOOLS), mandatory --match-head-commit + active-row panel roster + fail-closed legacy Code+Behavior merge verification, domain-level publish_pr local verification & confined CLI --body-file, and Phase 3a receipt authority (fast-path-formal re-proven).
  • Dashboard, Desktop barrier, Watchdog & dependency audit (#188): full /cards barrier scrubbing, report_path removed with descriptor-pinned report_exists, confirmed: true required on PATCH /repos/{slug} with immutable update_repo trail rows, header-anchored stamp parsing (CRLF/CR & indented heading safe) and whole-token PR URL validation (panel-consensus-formal re-proven), opaque HTTP 503 on unreadable trail.db, instr() panel queries, Watchdog scrubbing, unified safeHttpsUrl post-canonicalization Desktop barrier, and bun audit clean (0 vulnerabilities).

Full Changelog: v0.4.0...v0.4.1

Factonio v0.4.0

Choose a tag to compare

@tozes tozes released this 02 Dec 07:57
0ddc262

Highlights in v0.4.0

Factonio v0.4.0 is a major release preparing Factonio for the Hermes Agent Plugin Marketplace, unifying terminology across skills/CLI/Desktop, introducing deterministic Phase 3a verification & typed Desktop UI architecture, and expanding polyglot and local/enterprise Git repository support.

Hermes Marketplace Readiness & Security Hardening

  • Scanner-clean install (security scan — safe): zero critical/high install-scanner findings on clean clones; requires_hermes: ">=0.23.0"; all 8 hermes_yaml imports migrated to public safe_load/safe_dump.
  • Pure-Hermes Design default (Rule 11): design_provider now defaults to hermes with explicit opt-in to claude-design (checking claude on PATH only, never probing ~/.claude/.credentials.json or CLAUDE_CODE_OAUTH_TOKEN; legacy saved auto resolves cleanly to hermes).
  • Marketplace-ready README.md: standard Markdown rendering (no stripped HTML blocks), full CLI/tool parity, HTTPS install instructions, and explicit security/permissions/local-storage disclosures.

Canonical Glossary & Bundled Skills

  • Unified phase & check vocabulary (GLOSSARY.md): Define, Design, Build, Verify (Code Check + Behavior Check), Unit, Retry, Mechanical Verification / AI Verification, with full backward-compatible read aliases across CLI, tools, config, and Dashboard API.
  • Modular orchestrator: split orchestrator.py into a 10-submodule orchestrator/ package and added plain-English workstream attention summaries (summaries/).

Verification Stack, Harness & Merge Gate

  • Deterministic Phase 3a & live Automated Checks: ephemeral worktree runner (setup_command, parallel hooks, live progress snapshots, receipt timings), unit-scoped holdout/<unit-slug>/, formal spec drift tracking, and fail-closed overlap_rebase_policy (strict | conflicts_only).
  • Generated-file drift & polyglot support: linguist-generated classification + per-repo generated_rebuild_command, Tier-2 polyglot stacks, monorepo workspace discovery, submodule/LFS advisories, and local-only Git repos + GitHub Enterprise Server host support.

Typed Desktop UI & CI

  • Typed desktop-src/ + deterministic Bun build: strict TypeScript/TSX modules compiled into zero-build ESM desktop/plugin.js with typecheck, lint, architecture, property, duplication, and Stryker mutation gates; Calm Spine v2 sidebar with one-click archive, strict session scoping, and inline repo editor.

Full Changelog: v0.3.0...v0.4.0

Factonio v0.3.0

Choose a tag to compare

@tozes tozes released this 27 Nov 17:09
ba90329

Highlights in v0.3.0

Factonio v0.3.0 ships three major milestones — Wave 4 pipeline hardening, Wave 5 selective expansion (workstream modes, formal invariants & frozen baselines, GitHub Issues intake, blind skill/model evals, /arena competing candidates, and cross-workstream trail recall), and local-first publish_policy: ask delivery — with zero new runtime dependencies and the test suite growing from 337 to 873 tests.

Local-First Delivery (publish_policy: ask)

  • Configurable remote PR publish gate (#36, #40, #39, #38): new global default_publish_policy and per-repo publish_policy (auto | ask, default auto so existing repos are unchanged). Under ask, Implementation stays strictly local (no git push or gh pr create), Verification runs against unpublished local branches (factonio_spawn_verify(branch=..., head_sha=..., base_branch=...) including rigor="high" panels via factonio_evaluate_panel(branch=...)), and remote publication happens only on explicit approval via fail-closed factonio_publish_pr / hermes factonio publish-pr.
  • Dashboard & Desktop UI parity (#39): /factonio Registered Repositories gains a Publish policy column with dot/ring indicators and inline editor controls, Decision Trail adds a publish filter and branch <head> → <base> evidence pills, remaining CSS literals moved to host theme tokens, and README media was refreshed.

Wave 5 — Modes, Invariants, Issues Intake, Evals, /arena & Recall

  • Workstream modes & CLI start (#28): refactor (behavior-preservation pins), perf (7-question pre-optimization & measurement benchmark checklist), and strictly read-only forensic investigate (writes investigation.md, forbids code edits/PRs), plus hermes factonio start.
  • Formal invariant metadata & frozen visual baselines (#29): optional covers / sync_commit on invariant hooks with read-only drift and 3-way classification; baseline_paths / frozen_baseline on visual_diff hooks enforcing a simple, fail-closed regular-files-only contract pinned across base_ref, HEAD, live Git index (--no-optional-locks), live disk (lstat + SHA-1), and bounded live symlink scan; plus a fail-closed positive-grammar visual-command guard allowing only verbatim in-place tightening of unambiguous max-diff* / max-mismatch thresholds.
  • Autonomous GitHub Issues intake & verify-existing-fix (#30): stdlib issues.py, factonio_triage_issues, hermes factonio issues, and the issue-intake automation blueprint — stop-the-line labels, ownership/allowlist gate, duplicate/linked-PR detection, untrusted-data .factonio/ translation, and deterministic 2x reproduction / 2x-before + 2x-after verify-existing-fix.
  • Blind skill & model eval harness (#31): stdlib eval_skills.py, hermes factonio eval {ab|audit|bloat}, and standalone python3 tools/eval_skills.py with transcript sanitization, seeded blind A/B candidate assignment, shared-parser barrier leak audit, and skill bloat budgets.
  • Opt-in /arena mode (#32): stdlib arena.py, factonio_spawn_arena / factonio_evaluate_arena, and hermes factonio arena {spawn|status} fanning out isolated competing Definition or Design candidates across >= 2 vendor families into a cross-vendor synthesis judge.
  • Cross-workstream recall & crash pickup (#35): read-only trail.recall_decisions / hermes factonio trail --recall with barrier-safe [redacted] holdout filtering injected into Definition cards, plus crash-pickup and pushback rules in worker skills.

Wave 4 — Gate, Harness Proof, Trail Audit & Watchdog Hardening

  • PR gate, trunk drift & stack shipping (#25): owner-approval checks (ACTION_REQUIRED) classified as Tier 4 approval_gates, GraphQL retry with backoff, CI flake signal (had_previous_passing_ci), byte-safe trunk-drift policy, inspect_stack_gate, and stacked-merge / allow_patch_continuity guards.
  • Harness proof, gate-loosening detection & 3-way drift (#24, #33): hermes factonio harness init --prove fail-closed self-test, detect_harness_gate_loosening (with harness.json -> verify.md fallback and manifest_errors), classify_harness_drift (product_regression > harness_gap > doc_drift > clean), and positive CI Drive allowlist for clean security scans.
  • Trail audit, watchdog silent_start & multi-vendor routers (#26, #27, #34, #37): read-only hermes factonio trail --audit (evidence, unclosed escalations, gate_loosening), first-tick silent_start stall detection, nous + Hermes multi-vendor router recognition in config.py, and README team-setup guidance.

Full Changelog

See CHANGELOG.md for full details across PRs #24, #25, #26, #27, #28, #29, #30, #31, #32, #33, #34, #35, #36, #37, #38, #39, #40, and #41.

Factonio v0.2.0

Choose a tag to compare

@tozes tozes released this 26 Nov 08:56
43c58e6

Highlights in v0.2.0

Factonio v0.2.0 hardens every phase of the software factory — inspired by Lauren Tan's (@poteto) MIT-licensed pstack (credited in README.md and THIRD_PARTY_NOTICES.md) — while keeping zero new runtime dependencies and expanding the test suite from 73 to 337 tests.

Verification Rigor & Multi-Vendor Panels

  • Opt-in rigor="high" multi-vendor verification panels (#19): configure verify_panel across >= 2 distinct vendor families (router-aware via openrouter/, vertex/, bedrock/), fan out barrier-preserving Diff + Black-Box pairs per member under a shared panel_id, and aggregate fail-closed via factonio_evaluate_panel / hermes factonio panel (expected-lane completeness, explicit verdicts, dissenting evidence in disagreement_summary).
  • Repo-local .factonio/ verification harnesses & drift audit (#18, #20): stdlib-only harness.py (factonio_bootstrap_verify, hermes factonio harness {init|check|show|audit}, harness-audit blueprint) bootstraps .factonio/verify.md (Launch / Doctor / Drive / Evidence / Cleanup + Feature Map + Hooks) and .factonio/harness.json, auto-injects discovered harnesses into [verify:blackbox] cards, and runs read-only (--no-optional-locks) drift detection. omnim-ai/factonio now dogfoods its own .factonio/ harness.
  • Tri-state verification (pass / reject / inconclusive) (#12) and upgraded worker execution contract & phase skills (#11: Architect, Attack the Premise, Throughput Checkpoint, run-proven blast-radius findings, skeptical review triage).

PR Gates, Stacked PRs & Watchdog Hygiene

  • Paginated GraphQL 4-tier PR gate & live merge readback (#12): factonio_pr_gate checks >100 checks, unresolved review threads, reviewDecision, and head rollup state; factonio_merge_pr confirms live merge state (merged vs queued) and safely fast-forwards clean local default branches.
  • Stacked PR landing & clean-worktree restacking (#17): factonio_spawn_implement(..., base_branch=..., stack_parent_pr=...) pre-seeds stacked branches, true-base gate/merge tracks actual baseRefName, and factonio_restack_pr / hermes factonio restack rebases via git rebase --onto in a throwaway worktree with git patch-id --stable verdict continuity.
  • Watchdog liveness & safety-gated worktree hygiene (#14): POSIX worker_pid liveness, max_runtime_seconds, phase-aware stale thresholds, side-effect detection, bounded factonio_watchdog triage, and read-only hermes factonio worktrees [--prune-safe] protecting local work, ignored user data, locked worktrees, active cards, and nested repos/worktrees.
  • Persistent worker symlink guard (#20): hermes factonio init refuses to repoint a persistent worker profile's plugins/factonio symlink at ephemeral scratch/workspace paths unless --force-link is explicitly passed.

Append-Only Decision Trail, Historical Metrics & Desktop UI

  • Append-only SQLite trail.db (schema v2) (#15, #21): concurrency-safe WAL store with immutability triggers for both decisions and metric_snapshots (GET /api/plugins/factonio/trail, GET /trail/{id}, GET /metrics/history, factonio_log_decision, hermes factonio trail, hermes factonio metrics), best-effort lock-budgeted milestone auto-capture (merge, panel_consensus, retro), /correct retrospectives, and escaped_from both-lanes gap analysis.
  • Hermes Desktop UI (desktop/plugin.js) (#16, #22): Decision Trail ledger on /factonio with navigable superseded ↔ superseding lineage (on-demand lookup beyond 200 rows) and sidebar trail expansion; Registered Repositories Rigor column & inline Default rigor editor; Verification Panels KPI card, Phase Models readiness/vendor chips, and fail-closed sidebar panel consensus + disagreement callouts; and inline-SVG Historical Metrics Trends strip (100% host theme tokens, zero build step).

Full Changelog

See CHANGELOG.md for full details across PRs #11, #12, #14, #15, #16, #17, #18, #19, #20, #21, #22, and #23.