No Branch/Tag Specified
master
issue-29-job-manifest-options
feat-generated-headers-column-order
issue-19-dbml-directives
issue-20-complete-job-files
issue-20-templ-job-command
issue-20-job-files
issue-21-diff-roundtrip
issue-16-migration-script-count
issue-6-external-file-embedding
fix/bun-extra-fields-issue-4
v1.0.84
v1.0.83
v1.0.82
v1.0.81
v1.0.80
v1.0.79
v1.0.78
v1.0.77
v1.0.76
v1.0.75
v1.0.74
v1.0.73
v1.0.72
v1.0.71
v1.0.70
v1.0.69
v1.0.68
v1.0.67
v1.0.66
v1.0.65
v1.0.64
v1.0.63
v1.0.62
v1.0.61
v1.0.60
v1.0.59
v1.0.58
v1.0.57
v1.0.56
v1.0.55
v1.0.54
v1.0.53
v1.0.52
v1.0.51
v1.0.50
v1.0.49
v1.0.48
v1.0.47
v1.0.46
v1.0.45
v1.0.44
v1.0.43
v1.0.42
v1.0.41-1-gf4b8fc5
v1.0.41
v1.0.40
v1.0.38-2-gee88c07-1-gdc9172c-dirty
v1.0.38-2-gee88c07
v1.0.39
v1.0.38
v1.0.37-1-g480038d
v1.0.37
v1.0.36
v1.0.35
v1.0.34
v1.0.33
v1.0.32
v1.0.31
v1.0.30
v1.0.29
v1.0.28
v1.0.27
v1.0.26
v1.0.25
v1.0.24
v1.0.22
v1.0.21
v1.0.20
v1.0.19
v1.0.18
v1.0.17
v1.0.16
v1.0.15
v1.0.14
v1.0.13
v1.0.12
v1.0.11
v1.0.10
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: wdevs/relspecgo#20
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
We need a way for relspec to detect files, paths and commands to run from a job file instead of command line args.
e.g. relspec job a, relspec job b
Then we have a file or files called relspec.yml or relpsec.a.yml with the job name defined, command to action, inputs, output config and a logfile etc.
Basically something to easy auto building of schemas.
The reason for this. Some jobs might contain many schema files to merge, then convert it.
Some might contain files to run on a remote database etc.
This issue needs to be refined, but thats the rought idea.
Research update (2026-08-28)
Current implementation findings
scripts listandscripts executecommands. The current workflow discovers SQL files from a directory, sorts them by priority/sequence/name, and executes them against a PostgreSQL connection.cmd/relspec/scripts.goexposes directory, connection, schema/database, and ignore-errors flags. There is no job-file loader, job-name resolver, declarative input/output model, or per-job logfile configuration.Proposed job-file contract
Support a default
relspec.ymlplus explicitly selected files such asrelspec.<name>.yml, with a command such as:A first schema could contain:
The design should define whether
commandis a closed enum (convert,merge,split,inspect,scripts) or an allowlisted subcommand graph. Arbitrary shell strings should be rejected by default. Remote database jobs should reference environment variable names or an existing credential mechanism rather than embedding secrets.Required behavior to settle
Suggested acceptance tests
job listshows stable names and source files.This should be implemented in phases: schema/parser and validation,
job list, one safe command adapter, then dependency execution/logging and broader command coverage.We need support for multiple script directories as well
Implemented in PR #24 → #24
issue-20-job-files4d299fda986bb7df0affa6ec876ce3c44e3d84ce(verified == origin)master· state: open · mergeable · 14 filesv1 contract (docs/JOB_FILES.md)
relspec job list/relspec job run <name>driven byrelspec.yml+relspec.<name>.yml;--fileoverrides discovery;--dirsets scan root.commandis a closed allow-list —convert,merge,scripts-list.No field accepts a shell string or executable path.
all files merged into one namespace; duplicate job names across files are a
hard error.
~-relative and directory-escaping paths rejected at validation.conn_env:; connectionstrings never stored; redacted (
***) from logs and--plan.input/output shape, path traversal,
depends_ontargets, dependency cycles)runs before anything is read/written/executed; per-job pre-flight then checks
input existence, script dirs, env vars and overwrite policy for the whole
plan — any failure ⇒ no job runs.
depends_onclosure runs in deterministic topological order;--no-depsruns only the named job.
--dry-run(alias--plan) prints the resolved plan, exits 0, touchesnothing.
FAILED(never
OK), writes no success marker.Acceptance coverage
All acceptance tests from the research comment are covered: deterministic
discovery/listing, temp-dir conversion output, rejection of duplicate names /
unknown commands / arbitrary shell strings / missing inputs / path traversal /
invalid formats / dependency cycles before execution, relative-path resolution
from the job file, secret redaction, failed-job exit propagation with no
misleading success marker, and the multi-file merge workflow without shell
quoting. 17 unit tests (pkg/jobs) + 11 CLI tests (cmd/relspec).
Verification
gofmt -lclean ·go vet ./...clean ·go build ./...ok ·go test ./...all pass (40 pkgs) ·go test -race ./pkg/jobs/... ./cmd/relspec/...pass ·
git diff --checkclean · manual smoke run againstexamples/jobs/.Caveats / deferred
scripts executeagainst a database from a job is deferred (needs livecredentials, not offline-testable);
relspec scripts executestill covers it.split/inspect/diff/templjob commands deferred.depends_ononly orders execution.filepath.Rel-based; symlink-escape hardening deferred.golangci-lintnot run in this environment: installed binary is v1 while therepo config is v2 (pre-existing mismatch, unrelated to this change).
Add the templ command to the job files.
Dispatcher assignment — 2026-09-08 06:03 SAST
• Forge/repository: Gitea wdevs/relspecgo
• Issue: #20 — Relspec job files; follow-up scope explicitly requested by owner: add the templ command to job files.
• Classification: simple bounded extension of the existing job-file command allow-list and adapter, with focused tests/docs; no new architecture decision beyond the existing templ CLI contract.
• Selected backend: custom:litellm-warky / ornith:9b. Bounded probe returned ORNITH_DISPATCH_PROBE_OK.
• Worker session/process: not launched yet; assignment comment precedes worker launch.
• Worktree: /home/hermes/work/issue-agents/wdevs/relspecgo/issue-20-templ-job-command
• Branch: issue-20-templ-job-command (created locally from synchronized origin/master); PR does not yet exist.
• Kanban card: t_beeb3f4f, created blocked and read back to suppress duplicate board dispatch.
• Plan: read AGENTS.md/CLAUDE.md and existing job-file plus templ CLI contracts, implement the smallest safe templ adapter and validation/docs/examples as appropriate, add focused regression coverage, run gofmt/vet/build/tests/diff-check, commit, push, create a non-empty PR, and post exact SHA/verification here.
• Required skills: cron-model-selection-policy, cron-worker-contract.
• Safety: no force-push, history rewrite, destructive reset, issue close, PR merge, deployment, secrets, or dangerous permission bypass.
Worker delivery update — 2026-09-08 06:20 SAST
• PR: #25
• Branch: issue-20-templ-job-command
• SHA:
3d57c947cdImplemented the explicitly requested templ command in the declarative job-file system. The closed allow-list, templ-specific input/mode/path/output validation, template-file preflight, execution through the existing template writer, focused database-mode regression coverage, and JOB_FILES.md documentation are included.
Verification:
• gofmt -l cmd/relspec pkg/jobs — clean
• go vet ./... — passed
• go build ./... — passed
• go test ./... — passed
• go test -race ./pkg/jobs/... ./cmd/relspec/... — passed
• git diff --check — passed
Caveat: golangci-lint was not run because the environment has a v1 binary while the repository configuration requires v2. No issue close or PR merge performed; PR remains open for review.
Completed in PR #26 (branch
issue-20-complete-job-files).Delivered on top of the initial job system (
convert/merge/scripts-list/templ):version(accept>= 1, warn on newer)from_jobjob-to-job output→input wiringdefaults:overrides)split,inspect,diff,scripts-execDocs and shipped example updated.
make build/test/lintall green.