feat: chainlink backlog worker MVP#69
Merged
Merged
Conversation
Adds optional-skills/chainlink-worker/ with: - worker.py: main orchestration loop (poll chainlink → claim → Codex → review → close) - prompt_builder.py: initial and review prompt construction - config.py: TOML config loader with defaults - poller.py: review notifier for Keel (surfaces ready-for-review issues) - pollers.json: poller registration - SKILL.md: operator documentation Tests: 9 new tests (3 worker lifecycle, 2 prompt builder, 3 config, 1 repo routing) All pass. No new dependencies. Known follow-up items: - Timeout test coverage - run() loop integration test - Poller CWD resolution (scheduler runs from repo root)
- DEFAULT_CHAINLINK_CWD now uses Path.cwd() instead of hardcoded path - DEFAULT_REPOS is empty dict — configure via config.toml [repos] section - SKILL.md references changed to generic 'your chainlink working directory' - SKILL.md commands use plain 'chainlink' instead of ~/.cargo/bin/chainlink - Tests updated to assert against constants, not hardcoded paths
- config.py: new [settings] + [workers.*] TOML schema with WorkerConfig/Settings/AppConfig - worker.py: full async rewrite with Worker (per-repo, owns worktree) and Poller (singleton, routes issues) - Stale claim reaper on startup + every 10 polls - IssueAbandoned exception for cooperative abort - Graceful shutdown via SIGINT/SIGTERM cancellation - 11 tests covering config, routing, round-robin, stale claims, full lifecycle, shutdown, queue sequencing - Codex caught and fixed abort-flag cleanup edge case in release_current_issue and close_session_only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional-skills/chainlink-worker/ with:
Tests: 9 new tests (3 worker lifecycle, 2 prompt builder, 3 config, 1 repo routing) All pass. No new dependencies.
Known follow-up items: