Agentic Practices - Fighter90/career-ops-ui GitHub Wiki
Agentic Practices
How this project is built with coding agents, and which of the patterns from Agentic Coding Design Patterns (Kirill Mokevnin) it actually implements. The book is a catalogue in the Gang-of-Four spirit for agent-assisted development: task formulation, context, verification, project organisation, and the anti-patterns.
This page is the honest audit, not an aspiration list: each row says where the pattern lives in this repo, so it can be checked. Counts are as of v1.262.1 (2026-10-30).
Implemented
| Pattern | Where it lives here |
|---|---|
| Executable guardrails | .githooks/pre-commit, committed and wired through core.hooksPath so it applies to everyone. Built exactly as the book prescribes: a deterministic floor that fails hard (secrets, .env, .also leftovers, syntax) and an AI layer that is fail-soft and never blocks β when that layer timed out during the v1.237.1 commit, the commit still went through on the deterministic check. Above it: 11 CI workflows including CodeQL and dependency-review β one of them (tests/ci-workflows.test.mjs) lints the workflow files themselves. The newest guardrail was born from a real incident (2026-10-29): a bare workflow_dispatch of deploy.yml with default inputs rolled production back to v1.238.0. The fix train (#591, #593, #597) made ui_ref/parent_ref required with no defaults, pinned ui_ref to release-tag format (vX.Y.Z) and verified both refs resolve to real commits β a bare click must never downgrade prod β and the workflow-structure gate caught the two mistakes the fix itself introduced before they merged. |
| Invariant β gate traceability | docs/sdd/TRACEABILITY.md β 12 invariants (R-01β¦R-12), each tied to the code that upholds it and the executable test that fails when it breaks (R-04 alone is pinned by 134 per-source suites). A row without a gate is defined as a defect in the table itself. |
| Skills as packaged workflows | .claude/skills/ β parent-sync (parity releases, 9 phases with hard gates and a Known traps section), contributor-pr, hermes-bridge. |
| Isolated parallel work | Release fan-outs run one agent per locale and one per ported provider, each restricted to an explicit file list and forbidden the shared files; the orchestrator does shared wiring in one pass afterwards. The 2026-10-28 owner directive formalises the fleet: 10β15 subagents in parallel, each with a worktree + branch + redβgreen + gates + "NO PR" (integration is the orchestrator's); when quota runs out, the queue replays agents in threes and worktree orphans are preserved and restarted by a resume-agent. Integration is squash, so git merge-base can vouch for work that never actually landed β the October fix is zombie-agent triage: superseded branches are verified by content diff against what was really merged, never by merge-base. The review debt on #534/#538 was closed exactly that way (one squash commit title had been cosmetically corrupted; a content check proved the work was intact), and a parent-fork "sync" that turned out to be a squash was redone as a true merge (199 commits) for the same reason. |
| Writer / reviewer | Three reviewer agents in .claude/agents/ β spa-view-reviewer, test-isolation-reviewer, web-ui-route-reviewer β plus an AI review workflow in CI. |
| TDD with an agent | Every ported fix is required to show a failing run first. The v1.237.1 Oracle Cloud port opened with 399 !== 453 β the truncation the fix removes. October example (v1.262.1): the live remote-QA pass caught the Italian evaluation being cut before the SCORE_SUMMARY block on the OpenRouter provider; the failing cut-off was reproduced first, then it joined TOKEN_DENSE_EVAL_LOCALES (now ta, hi, it β a 32 768-token ceiling + 480 s clock). |
| Feedback loop the agent can run | npm run test:ci (6841 unit + acceptance, including changelog parity Γ19 and the i18n audit β key parity across 19 locale dictionaries, no Latin leaks), npm run test:e2e:browser (176 Playwright), the coverage ratchet (98 % line / 89 % branch, scripts/coverage-baseline.json), five registry count gates, and behavioural markers executed against the deployed server β which is exactly the loop that surfaced the Italian truncation above. |
| Project memory | CLAUDE.md as a short index (deliberately not a knowledge base β see Bloated memory below), AGENTS.md for non-Claude CLIs, .claude/PROJECT-CONTEXT.md for the per-release record. |
| Domain dictionary | CONTEXT.md β one accepted name per concept, variants marked do not use. It exists because of a real, recurring confusion: 123 sources vs 118 adapters (the five RU sources have no adapter), and telegram vs telegram-channel, which upstream mistook for duplicates and deleted one. |
| ADRs | docs/adr/ β 4 records, all accepted 2026-09-21 (v1.237.0), no additions since: keep both telegram sources Β· defend fork divergences Β· mirror vs relay Β· liveness hard/soft tiers. October's true-merge of upstream re-checked the two defended divergences (ADR-0001/0002) rather than adding new records β the existing records earn their keep on every merge. |
| Progress log | PROGRESS.md β current state, next step, known issues and, most usefully, abandoned approaches so a fresh session does not retry them. |
| Workflow evals | evals/workflow/ β seven fixed tasks with graders, separating outcome from trajectory. Each grader corresponds to a mistake that shipped once, and each has been adversarially tested by injecting that mistake and confirming the grader goes red β which is how one of them was caught passing on a defect it was meant to catch. Trajectory graders report SKIP, never a silent pass. |
| Session handoff | PROGRESS.md plus the per-release qa/QA-REGRESSION-PROMPT-v*.md. |
Anti-patterns we actively guard against
- Premature success β "verified" collapsing into "unit tests passed". Countered by behavioural markers on the deployed server and a human browser pass in the QA prompt. Recognising the two shapes matters: a suite failing 116/116 at once was a missing Playwright browser, not a regression; a scattered failure is code.
- Bloated memory β
CLAUDE.mdis kept as a one-screen index that points atCONTEXT.md,PROGRESS.mdanddocs/adr/, rather than growing into a document nobody reads to the end. - One-shotting β parity releases run as nine explicit phases with gates, never as a single "do the release" prompt.
- Vibe coding β counts come from the live registry, never from a number typed into a gate test; every ported fix carries a test that failed first.
Not adopted (yet), and why
- Tracer-bullet tickets and grilling β the release pipeline is already specified
end-to-end by the
parent-syncskill, so the task-formulation patterns have less to bite on here. They would help on greenfield feature work. - Trajectory grading at scale β the graders are defined, but scoring which commands
an agent ran needs recorded sessions and repeated runs. Currently reported as
SKIP.
Book: https://mokevnin.github.io/agentic-coding-design-patterns/ Β· Russian edition: https://mokevnin.github.io/agentic-coding-design-patterns/ru/