docs: Jenkins repo/branch/PR to job mapping design (#77) #91
No Reviewers
Labels
Clear labels
allocator
anti-stomp
architecture
bug
chore
codex
concurrency
contamination
control-plane
dashboard
database
design
documentation
enhancement
gitea
glitchtip
important
incident
incident-bridge
integration
jenkins
labels
leases
mcp
mcp-health
mcp-menu
multi-project
mutating
nice-to-have
observability
portability
preflight
protected-branch
queue
read-only
reconnect
recovery
refactor
release
reliability
resumable-review
reviewer
roadmap
safety
security
self-hosted
sentry
stale-runtime
status:blocked
status:in-progress
status:pr-open
status:ready
terminal-lock
testing
tracker
type:bug
type:feature
type:feature
type:guardrail
visibility
workflow
workflow-hardening
workflow-hardening
Controller-owned work allocator
Prevent concurrent LLM session stomping
Architecture / structural design
OpenAI Codex client / workflow session surface
Concurrent session safety
Workflow or session contamination incident
MCP control-plane coordination and allocation authority
MCP operational dashboard/queue view
Internal coordination storage (SQLite/Postgres)
Design / investigation, no implementation
Docs / runbooks
New feature or improvement
Gitea MCP workflow
GlitchTip integration
Operational or process incident requiring durable audit trail
Sentry-to-Gitea incident bridging
Integration testing
Jenkins integration
Label taxonomy management
Lease adopt/release/expire lifecycle
MCP server / tooling
MCP namespace and runtime health
MCP menu surface
Work spanning multiple monitoring projects or Gitea repos
Mutating action; requires gating
Observability, metrics, traces, error reporting
Cross-platform / portability
Shared preflight gates before mutation
Protected branch / stable-branch policy concern
Work queue visibility and allocation
Read-only, no mutation
MCP client reconnect/reload recovery path
Recovery paths for stale/foreign leases
Code refactor / restructure
Release / versioning
Reliability / failure handling
Persist and resume prepared review verdicts across sessions
Reviewer workflow tooling
Roadmap / umbrella issue
Safety rails and fail-closed mutation guards
Security / trust boundary
Self-hosted infrastructure integration
Sentry error monitoring integration
Stale backend daemon / runtime-vs-master parity failures
Issue is blocked
Issue is being worked on
Issue has an open pull request
Issue is ready for work
Terminal review lock (#332) path
Tests / test coverage
Issue tracker hygiene / meta
Bug or defect
Feature or enhancement
Feature or enhancement
Safety gate or guardrail
Workflow state visibility for LLMs/operators
Cross-tool workflow
LLM workflow coordination hardening
LLM workflow coordination hardening
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Scaled-Tech-Consulting/Gitea-Tools#91
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.
Implements #77. Design documentation only — no implementation, no code changes, no Jenkins write actions.
Adds
docs/architecture/jenkins-job-mapping-design.md, the mapping layer that #72's read-only tools design (merged, PR #88) explicitly deferred here.What it covers (per #77 acceptance criteria)
repo/ optionalbranchentries → foldered Jenkinsjobpath +type(multibranch/single/parameterized-view). No globs in v1. Malformed/duplicate entries ⇒ config load fails closed naming the entry.feature%2Fx),PR-<n>.{"mapped": false, ...}payload; never guesses, constructs, probes, or fuzzy-matches job names.jenkins-mcppackage (shared team fact, no secrets, committable), env-overridable path for tests; reload at server start.jenkins_resolve_job(pure config lookup, zero Jenkins API calls); status tools accept job-path or(repo, branch)via the same layer.Checks
py_compile mcp_server.py/manage_labels.py/gitea_auth.py— OKbash -n scripts/clear-provenance— OKgit diff --check— cleanpytest tests/ -q— 355 passedScope
One new Markdown file. Untouched: PR #89/#79 (other LLM), #80 branch (other LLM), #64/#63 release, #65/#66, all code.
🤖 Generated with Claude Code
Approve. Reviewed head
1bc2f20from a detached review worktree.Scope: exactly one new file,
docs/architecture/jenkins-job-mapping-design.md(+165). Design documentation only — no code, no Jenkins write actions, no unrelated files. Based on current master (007b5da), zero commits behind.Acceptance criteria (#77) — all met:
repo/branch, folderedjobpaths, threetypes; malformed/duplicate entries fail closed at load. ✓/-joined paths, URL-encoded branch addressing). ✓{"mapped": false}; never constructs, probes, or fuzzy-matches job names. ✓Sibling link target
jenkins-readonly-build-status-design.mdexists (merged via #88). Consistent with the #72 design and trust-boundary model.Checks (review worktree at
1bc2f20): py_compile mcp_server/manage_labels/gitea_auth OK ·bash -n scripts/clear-provenanceOK ·pytest tests/ -q355 passed ·git diff --checkclean · staged-diff secret sweep clean. Gitea reports mergeable.Review Metadata: