Skip to content

v1.5.7 — Creation of the Genesis Governance Record for Provenance

Choose a tag to compare

@greenarmor greenarmor released this 21 Jun 17:06
· 2 commits to master since this release

Release v1.5.7 (Patch)

Patch release. Fixes the non-functional "+ Assign to Governance Record" button in the dashboard Fixes tab — it now works immediately after ges init via an auto-created genesis governance record, with an inline create-and-assign fallback for projects that have no records. No breaking changes. No configuration changes. Existing projects continue to work unchanged.

Previous release: v1.5.6
Release date: 2026-06-21


Highlights

Fix: "+ Assign to Governance Record" button was non-functional for new projects

After ges init and ges audit, the dashboard Fixes tab showed an assign button on every pending fix — but clicking it did nothing (just a toast: "No governance records found"). For new projects with no governance records, this was a dead-end.

Root cause fix: ges init now auto-creates a genesis governance record using the project name, type, and frameworks collected during init. System type and risk level are inferred from the project type:

Project Type System Type Risk Level
ai-application, mcp-server ai-system medium
api-backend api medium
healthcare-system, government-system application high
blockchain, wallet application high
All others application medium

The genesis record starts in draft status with created_by: "ges-init". The assign button now works immediately after init — no manual governance setup required.

Defensive fallback: For projects with no governance records (deleted record, or older project), the button now opens an inline "Create & Assign" form instead of a dead-end toast. Collects system name, type, risk level, and assignee — creates the record and assigns the fix in one click.


What Changed

  • packages/cli/src/commands/init.ts — Genesis record creation after workflows; mapProjectTypeToSystemType() + inferRiskLevel() helpers; activity log updated with genesis_governance_record_id
  • packages/web-dashboard/src/template.tsopenAssignModal renders inline create form when govRecordsForAssign is empty; new submitCreateAndAssignForm() does create-record + assign-fix in sequence
  • packages/web-dashboard/src/index.test.ts — +2 tests (inline create form JS renders when empty; governance records render in govRecordsForAssign when present)

Test Results

  • 524 tests passing across 16 packages, all build clean
  • E2E verified: init → audit → dashboard assign flow (both paths — records exist / no records)

Upgrade Guide

This is a patch release. No migration required.

npm install -g @greenarmor/ges@latest

Existing projects: Your current .ges/governance-records.json is untouched. If you already have governance records, nothing changes. To get a genesis record for an existing project, re-run:

ges init --force