PR #1313 — GOVERNS Backlog Automation: Auto-Associate Discovered and Planned Work
PR #1313 — GOVERNS Backlog Automation: Auto-Associate Discovered and Planned Work
The Broader Goal
In autonomous multi-agent development fleets, tasks and technical debt are discovered dynamically during interactive sessions, autonomous dispatch jobs, and health diagnostics (synlynk doctor).
Part of the Autonomous Operations Activation roadmap (#1198), Issue #1203 implements GOVERNS Backlog Automation: a deterministic, deduplicated, lifecycle-aware subsystem that captures discovered work, maps it to the 7-stage GOVERNS taxonomy (goal, open, visualize, execute, release, notify, sustain), and safely synchronizes it with GitHub Issues without spam or duplication.
What Was Missing & Root Cause
Previously:
- No automated subsystem existed to capture and structure discovered work across devlogs, job outputs, or doctor failures.
- Unstructured auto-filing risked duplicate-issue spam on GitHub.
- Discovered work was not tied to the 7-stage GOVERNS lifecycle model or tracked in
state.db.
What Shipped
-
Deterministic Fingerprinting & 4-Layer Anti-Spam Deduplication (
synlynk/backlog.py):- Implemented
compute_fingerprint(title, source_ref)using SHA-256 over normalized title and source references. - Enforced deduplication across
state.db:storiesunique fingerprint index, existing titles, and open GitHub issues.
- Implemented
-
Signal Extraction Heuristics (
synlynk/backlog_extractor.py):- Added extractors for devlog follow-up sections and
<!-- discover: ... -->markers. - Added parsers for out-of-scope
FOLLOWUP:/TECH-DEBT:items in autonomous job outputs. - Added doctor failure conversion into
governs:sustainmaintenance tasks.
- Added extractors for devlog follow-up sections and
-
Data Model & Schema Migration (
synlynk/db.py,synlynk/__init__.py):- Bumped
_DB_MIGRATION_VERSIONto 5. - Added
fingerprint,source_type,source_ref, andgoverns_stagecolumns with unique index onstories.
- Bumped
-
CLI Subcommand Surface (
synlynk/cli.py):- Added
synlynk backlog capturefor staging discovered work. - Added
synlynk backlog listfor inspecting staged backlog items. - Added
synlynk backlog syncfor dry-run and upstream GitHub issue creation.
- Added
-
Session Checkpoint Integration (
synlynk/__init__.py:checkpoint):- Automatically scans session devlogs during checkpoint/session boundary and stages new action items into the backlog.
-
Comprehensive Unit & Integration Test Suite (
tests/test_backlog_automation.py):- Added 8 test cases covering fingerprint normalization, deduplication, signal extraction, staging, GitHub syncing, and CLI commands.