Repository navigation
Build the vertical generator and the first vertical - #39
Merged
Merged
Conversation
Roadmap item 10, the last open item, and the industrial vertical it was built to emit. D8 chose template-plus-generator over overlays; this is that generator plus one real config proving it end to end. The generator. A per-vertical config plus the core emits a standalone repository. A vertical may add skills, extend a core skill in place, or drop a department; it may not edit a core skill, because a core skill that is wrong for every industry is wrong in the core and fixing it there is what reaches every vertical on the next emit. Skills and extensions are discovered on disk rather than listed in the config, so a file added to the directory cannot be silently dropped from every emit — the failure the README generator already guards against for departments. Four ways to get it wrong fail the emit by name: shadowing a core skill, extending one that does not exist, targeting a dropped department, and a slug that disagrees with its directory. Extensions splice in ahead of the skill's rules rather than appending, because every skill closes with its rules and material after them reads as an afterthought. Where the output lives is D36. Committing it would put a hand-editable copy of one-way generated output in front of every contributor, which is the one thing the architecture forbids, so the emit target is gitignored and verification replaces it: emit to a temporary directory, initialize it the way a consumer's clone would be, run the emitted repository's own checks, keep nothing. CI runs that on every push. The invariant worth holding is that the generator produces a sound repository, not that a stored copy matches it. The first vertical is industrial, chosen because it is the one that can be checked against reality — the operating businesses behind this repository do production work, and a vertical nobody in the room can judge is a vertical whose quality nobody can judge. Four skills the core leaves out on purpose: production scheduling, maintenance and reliability, safety as a regulated obligation, and the employment relationship on a represented shop floor. Five core skills gain a plant-floor section. 176 skills emitted, and the emitted repository passes its own seven checks. Vertical content is a new surface with its own owner, and the second row marked proposes. A change inside a department is wrong in one department of one repository; a change inside a vertical ships to a distributable repository carrying industry advice that nothing downstream can correct locally. The generator stays with the other scripts — writing industry advice and maintaining the tool that ships it are different jobs. Two riders. A British spelling was shipping while the checker reported clean: the word list carried the -ed, -ing and -able forms of one verb but not its third-person form, the same inflection gap that hid the last one. Fixed in both places. And the two whole-tree checkers were scanning generated output, which doubled every finding and reported it against a path nobody can fix. All eleven checks pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FaQP2WCqeFYH7s9pi1CJ5u
A skill states what a competent practitioner knows. It cannot state what the regulator published last month — it is written once and the obligation moves. This maps outside authorities to the skills whose answers they settle, and puts each skill's list where an agent reads it while answering. The ask was framed as open-source or permissively licensed sources. Investigating that turned out to be the decision. Most of what a professional must cite is not open: the standards named as examples are variously sold, copyrighted, or free only behind an account. What is freely usable is narrower and more valuable than it looks — federal works are public domain by statute, statutes and regulations are uncopyrightable as government edicts, and EU legal texts are reusable with attribution. So the catalog is references, never copies, and the license class is its load-bearing field. Three of the ten values exist to mark exactly the sources most often assumed open and not; an entry classed wrongly as open invites an agent to reproduce text it was only allowed to cite. The emitted file states the consequence in the imperative beside each source rather than leaving it to a table somewhere else. Keeping it to references also keeps it live: a pointer to a regulator's site is right the moment the rule changes, and a snapshot is wrong the day after it is taken. Three things keep it honest rather than merely present. A skill with sources must carry a Sources section, and a skill carrying one must have sources. Without that pairing the feature rots in both directions at once — a file nobody is told about, or a pointer to a file no longer emitted. The check enforces both. Reachability runs weekly on its own schedule, not on every push. A publisher being briefly down is not a reason to fail an unrelated pull request, and a check that fails for reasons outside the diff is one people learn to ignore. All 37 URLs were fetched before any checked date was claimed, and three were wrong at first writing. The provenance check gained a narrow waiver, because a file whose job is to classify licenses has to name license families. It waives the names only. That was verified by pasting real license text into the waived file and confirming it still fails. Coverage is security, legal and employment, and finance and tax — the three areas where citing the authority changes the answer rather than decorating it. Extending it is adding entries, not changing the mechanism. D37 records the reasoning. All thirteen checks pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FaQP2WCqeFYH7s9pi1CJ5u
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Roadmap item 10 — the last open item — and the industrial vertical it was built to emit.
D8 resolved the vertical architecture to template-plus-generator with one-way emit. This is that generator, plus one real config proving it end to end.
What a vertical may do
verticals/<slug>/skills/<dept>/<skill>/SKILL.mdverticals/<slug>/context/<dept>/<skill>.md[emit] exclude_departmentsIt may not edit a core skill in place. A core skill that is wrong for every industry is wrong in the core, and fixing it there is what reaches every vertical on its next emit — which is the whole reason for generating rather than forking.
Skills and extensions are discovered on disk, never listed in the config. A list is a second place to forget, and a file added to the directory but not the list would be silently dropped from every emit. That is the failure the README generator already guards against for departments.
Extensions splice in ahead of the skill's
## Neverblock rather than appending. Every skill closes with its rules, and material after them reads as an afterthought.Guardrails, each verified by making it happen
would shadow a core skill of the same name — a vertical adds skills, it does not replace themextends a skill that does not existtargets department 'people', which is not emittedThe last row is the important one. The core checkers glob
plugins/**, whichverticals/**is not, so a thin description or a danglingdept:skillreference in a vertical skill is caught when the emitted repository runs those same checks against itself. Nothing ships unchecked; the failure just names the emitted path.Where the output lives — D36
Every other generated artifact here is committed and
--checked against the generator. Doing that for a vertical would commit a second copy of the whole tree, and — decisively — put a hand-editable copy of one-way generated output in front of every contributor, which is the one thing the architecture forbids. A--checkfailure would read as "the copy is stale" long after someone had edited it.So the emit target is gitignored, and verification replaces the stored copy: emit to a temporary directory, initialize it the way a consumer's clone would be, run the emitted repository's own checks, keep nothing. CI runs it on every push.
The invariant worth holding is that the generator produces a sound repository, not that a stored copy matches it.
The emitted repository carries seven of the checks. The three that verify generated documents stay upstream, because its README is written by this generator and a "README is current" check downstream would be verifying the wrong one.
The first vertical
Industrial, chosen because it is the one that can be checked against reality. D10 records the operating businesses behind this repository as production work, and D7 resolved that verticals are built for own use before they are productized. A vertical nobody in the room can judge is a vertical whose quality nobody can judge.
Four skills the core leaves out on purpose — the industry-specific management occupations D30 explicitly deferred to the verticals:
operations:production-managementoperations:maintenance-and-reliabilityoperations:ehs-and-workplace-safetypeople:labor-and-union-relationsFive core skills gain a plant-floor section — capacity (the constraint is one resource, not an average), supply chain (inbound materials behave differently from finished goods), quality (inside a certified system), regulatory compliance (regulators who arrive in person), and employment compliance (hourly, shift and agency work).
Emitted: 16 departments, 176 skills, passing the emitted repository's own checks.
Ownership
verticals/**is a new surface with its own owner, and the second row markedproposes. A change inside a department is wrong in one department of one repository. A change inside a vertical is emitted into a distributable repository carrying industry-specific advice, and because the emit is one-way, nothing downstream can correct it locally.The generator itself stays with
repo-metaalongside the other scripts. Writing industry advice and maintaining the tool that ships it are different jobs.Two riders
A British spelling was shipping while the checker reported clean. The word list carried the
-ed,-ingand-ableforms of one verb but not its third-person form — the same inflection gap that hid the last one. I audited the whole list for that class by generating every plausible inflection of all 126 entries and grepping the tree: this was the only remaining hit. Fixed in the prose and in the checker.The two whole-tree checkers were scanning generated output.
check-us-english.pyandcheck-provenance.pywalk the working tree, so oncedist/existed they reported every finding twice, against a path nobody can fix. Both now skip it.Verification
./scripts/check-all.sh— all eleven green, including the new one. The emitted repository passes its own seven.🤖 Generated with Claude Code
https://claude.ai/code/session_01FaQP2WCqeFYH7s9pi1CJ5u
Generated by Claude Code