Repository navigation
Releases
Factonio v0.4.2
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_verifyrounds and legacy Verify cards strictly to the exact live PR head SHA being merged (supporting verified patch-continuity proofs from the recorded SHA whenallow_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 fallbackhead_shaonly 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 corruptkanban.dbschema errors (table_columns(..., strict=True)). - Fail closed on pinned merges when
.factonio/harness.jsoncannot be read from a partial clone (git ls-treevs failedgit show), when the PR head is missing locally even if localHEADhas no formal hooks, or when a registered checkout's.gitis unreadable.
- Bind active
- Policy clearance & owner-only harness approval:
- Enforce
is_worker_profile()unconditionally for all actors onapprove_harness(HTTP 403 onPOST /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
autoandaskmodes, pin the clearance-time resolvedmerge_methodintomerge_pr, and pin the clearance-time resolvedbase_branchintopublish_pr.
- Enforce
- Archive & audit integrity (
repos/close_archive.py,trail/audit.py):- Remove destructive
assign_task(None)fencing (preserving failure streaks, never clobbering concurrent reassignments, zero strandedNULLassignees) while staying strictly on Hermes Core's publickanban_db.archive_task. - Check tenant/assignee ownership before
runningrefusals, reconcile committedarchivedstatus ifarchive_taskraises post-commit (recompute_ready/ cleanup), report exact partialarchived_card_ids+ failure-pathtrail.dbevidence, and resolve card-scoped audit findings for confirmed archived cards across partialerror/refusedarchive rows.
- Remove destructive
- CodeQL & test hygiene:
- Cleared all 4 CodeQL findings (
_trusted_header→_card_header_blockwithpanel-consensus-formalre-proven and pinned at51419bcd; owner-onlyfchmod_nofollowtest modes), fixed the Buncontrol-plane.test.tsxdynamic host import order, and kept the GHES merge test strictly offline.
- Cleared all 4 CodeQL findings (
Full Changelog: v0.4.1...v0.4.2
Cumulative Delta from v0.4.0: v0.4.0...v0.4.2
Factonio v0.4.1
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.llmmigration (#182): task archiving uses publickanban_db.archive_task; auxiliary LLM calls usectx.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
askgates & owner-only policy fields (#184):merge_policy: askandpublish_policy: askenforced in code viapre_tool_call+post_approval_responseone-shot escalation tokens; sensitive policy fields (merge_policy,publish_policy,gate_verify_on_ci,default_rigor,design_provider,design_approval,generated_rebuild_command) andPOST /merge-prrestricted 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_fdconfined reads &fchmod, fail-closed config loading, atomic0o600profile setup,GH_HOSTscrubbing, and strict\A...\Zvalidators. - 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-levelpublish_prlocal verification & confined CLI--body-file, and Phase 3a receipt authority (fast-path-formalre-proven). - Dashboard, Desktop barrier, Watchdog & dependency audit (#188): full
/cardsbarrier scrubbing,report_pathremoved with descriptor-pinnedreport_exists,confirmed: truerequired onPATCH /repos/{slug}with immutableupdate_repotrail rows, header-anchored stamp parsing (CRLF/CR & indented heading safe) and whole-token PR URL validation (panel-consensus-formalre-proven), opaque HTTP 503 on unreadabletrail.db,instr()panel queries, Watchdog scrubbing, unifiedsafeHttpsUrlpost-canonicalization Desktop barrier, andbun auditclean (0 vulnerabilities).
Full Changelog: v0.4.0...v0.4.1
Factonio v0.4.0
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 8hermes_yamlimports migrated to publicsafe_load/safe_dump. - Pure-Hermes Design default (Rule 11):
design_providernow defaults tohermeswith explicit opt-in toclaude-design(checkingclaudeonPATHonly, never probing~/.claude/.credentials.jsonorCLAUDE_CODE_OAUTH_TOKEN; legacy savedautoresolves cleanly tohermes). - 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.pyinto a 10-submoduleorchestrator/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-scopedholdout/<unit-slug>/, formal spec drift tracking, and fail-closedoverlap_rebase_policy(strict|conflicts_only). - Generated-file drift & polyglot support:
linguist-generatedclassification + per-repogenerated_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 ESMdesktop/plugin.jswith 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
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 globaldefault_publish_policyand per-repopublish_policy(auto|ask, defaultautoso existing repos are unchanged). Underask, Implementation stays strictly local (nogit pushorgh pr create), Verification runs against unpublished local branches (factonio_spawn_verify(branch=..., head_sha=..., base_branch=...)includingrigor="high"panels viafactonio_evaluate_panel(branch=...)), and remote publication happens only on explicit approval via fail-closedfactonio_publish_pr/hermes factonio publish-pr. - Dashboard & Desktop UI parity (
#39):/factonioRegistered Repositories gains a Publish policy column with dot/ring indicators and inline editor controls, Decision Trail adds apublishfilter andbranch <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 forensicinvestigate(writesinvestigation.md, forbids code edits/PRs), plushermes factonio start. - Formal invariant metadata & frozen visual baselines (
#29): optionalcovers/sync_commitoninvarianthooks with read-only drift and 3-way classification;baseline_paths/frozen_baselineonvisual_diffhooks enforcing a simple, fail-closed regular-files-only contract pinned acrossbase_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 unambiguousmax-diff*/max-mismatchthresholds. - Autonomous GitHub Issues intake &
verify-existing-fix(#30): stdlibissues.py,factonio_triage_issues,hermes factonio issues, and theissue-intakeautomation blueprint — stop-the-line labels, ownership/allowlist gate, duplicate/linked-PR detection, untrusted-data.factonio/translation, and deterministic 2x reproduction / 2x-before + 2x-afterverify-existing-fix. - Blind skill & model eval harness (
#31): stdlibeval_skills.py,hermes factonio eval {ab|audit|bloat}, and standalonepython3 tools/eval_skills.pywith transcript sanitization, seeded blind A/B candidate assignment, shared-parser barrier leak audit, and skill bloat budgets. - Opt-in
/arenamode (#32): stdlibarena.py,factonio_spawn_arena/factonio_evaluate_arena, andhermes factonio arena {spawn|status}fanning out isolated competing Definition or Design candidates across>= 2vendor families into a cross-vendor synthesis judge. - Cross-workstream recall & crash pickup (
#35): read-onlytrail.recall_decisions/hermes factonio trail --recallwith 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 4approval_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_continuityguards. - Harness proof, gate-loosening detection & 3-way drift (
#24,#33):hermes factonio harness init --provefail-closed self-test,detect_harness_gate_loosening(withharness.json->verify.mdfallback andmanifest_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-onlyhermes factonio trail --audit(evidence, unclosed escalations,gate_loosening), first-ticksilent_startstall detection,nous+ Hermes multi-vendor router recognition inconfig.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
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): configureverify_panelacross >= 2 distinct vendor families (router-aware viaopenrouter/,vertex/,bedrock/), fan out barrier-preserving Diff + Black-Box pairs per member under a sharedpanel_id, and aggregate fail-closed viafactonio_evaluate_panel/hermes factonio panel(expected-lane completeness, explicit verdicts, dissenting evidence indisagreement_summary). - Repo-local
.factonio/verification harnesses & drift audit (#18,#20): stdlib-onlyharness.py(factonio_bootstrap_verify,hermes factonio harness {init|check|show|audit},harness-auditblueprint) 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/factonionow 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_gatechecks >100 checks, unresolved review threads,reviewDecision, and head rollup state;factonio_merge_prconfirms live merge state (mergedvsqueued) 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 actualbaseRefName, andfactonio_restack_pr/hermes factonio restackrebases viagit rebase --ontoin a throwaway worktree withgit patch-id --stableverdict continuity. - Watchdog liveness & safety-gated worktree hygiene (
#14): POSIXworker_pidliveness,max_runtime_seconds, phase-aware stale thresholds, side-effect detection, boundedfactonio_watchdogtriage, and read-onlyhermes 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 initrefuses to repoint a persistent worker profile'splugins/factoniosymlink at ephemeral scratch/workspace paths unless--force-linkis 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 bothdecisionsandmetric_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),/correctretrospectives, andescaped_fromboth-lanes gap analysis. - Hermes Desktop UI (
desktop/plugin.js) (#16,#22): Decision Trail ledger on/factoniowith navigable superseded ↔ superseding lineage (on-demand lookup beyond 200 rows) and sidebar trail expansion; Registered RepositoriesRigorcolumn & inlineDefault rigoreditor; 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.