Skip to content

it-journey — Constitution

The rules every change to this repo must satisfy, whoever makes it — a human or an AI agent. Agents read this before AGENTS.md conventions, the PRD, or the feature catalog. Ratified by merged PR; amended only per § 8.

1. Missions

IT-Journey's direction is to become the ultimate open home for all things IT learning — data, tools, resources and transparency, gathered in one place that anyone can inspect and reuse.

  1. Provide data, tools, resources and transparency for all stakeholders, IT educators and professionals, and the general public. Learners from zer0 to her0, mentors, contributors, educators, and the general public are first-class audiences. The aim is a shared, open commons: the same quests, the same tools, and the same trail of evidence for everyone.
  2. Make a complete, trusted path from complete beginner to skilled professional, taught through gamified quests, practical tutorials and AI-enhanced learning. Hands-on adventures, a binary level path, and real commands that stay correct are the system of record; a wrong lesson is a defect, not a draft. Optional AI helps authors and learners without replacing the quest as the source of truth.
  3. Put that path in every learner's, teacher's and builder's hands. Serve it through the open site, the quest collection, the CLI and the contributor lanes, so anyone can learn, teach, and add a quest — an open toolkit for working with all things IT learning.

These missions set the course; they do not claim the work is finished. They serve the PRD purpose in §0 and the MVP in §1: an open educational platform that democratizes IT education. The earlier mission — building IT-Journey as a gamified path from complete beginner to skilled IT professional — is absorbed into these three. Every feature must trace to them.

Source: ../PRD.md §1.1.

2. Invariants (non-negotiable)

These rules are lifted from the repo's own agent guide; breaking one is grounds to reject a PR.

  • Frontmatter is CI-enforced. (AGENTS.md)
  • One paragraph per line is CI-enforced. (AGENTS.md)
  • Never commit to main. (AGENTS.md)
  • Quests are registry-governed. (AGENTS.md)
  • Vendored content is read-only. Any upstream content carrying source_repo/source_url frontmatter is synced, never rewritten. (AGENTS.md)
  • Validate before you push. make build-ci + make content-audit (+ make quest-audit if quests changed) must pass. (AGENTS.md)
  • UI/UX changes ship with before/after screenshots. (AGENTS.md)
  • Secrets (tokens, API keys) are never printed, logged or committed. (fleet rule)
  • CHANGELOG.md is generated by release-please from Conventional Commits; never hand-edit it. (fleet rule)

3. Authority and precedence

When two documents disagree, the higher one wins and the lower one is fixed in the same PR:

  1. This constitution (and its ratified amendments in docs/amendments/)
  2. AGENTS.md — how to work here (commands, conventions, Definition of Done)
  3. The PRD (PRD.md) — what the product must do (requirement ids FRn / NFRn)
  4. features/features.yml — what it does today (stable feature ids)
  5. ADRs in docs/adr/ and specs — why and how a specific change was made
  6. Code, tests, generated files

4. Roles: humans and AI agents

Actor May May not
Maintainer (human) Ratify amendments, PRD changes and releases by merging PRs; change settings, secrets, branch protection —
AI agent Read this file first; open PRs on a branch with Conventional Commit titles; update the feature catalog, PRD block and docs in the same PR as the change; propose amendments Merge a PR that is not mergeable, or one the review gate holds (§ Merge authority); push to the default branch except through the sanctioned automated path the agent guide names (here: growth/publish ticks that push content and telemetry to main; framework changes always go through PRs); force-push; change repo settings or branch protection; print or commit secrets; invent features or requirements (unknown = TBD)

5. How the artifacts relate

Artifact Answers Owned by Rule
docs/constitution.md What must always hold Maintainer Changes only by amendment (§ 8)
docs/amendments/NNNN-*.md How and why the rules changed Proposer → maintainer Append-only; ratified by merged PR
AGENTS.md / CLAUDE.md How to work here Repo Must link this file; CLAUDE.md imports @AGENTS.md
PRD What the product must do Maintainer Requirements carry stable ids (FRn, NFRn)
features/features.yml What the product does, where, proven how Repo Every user-facing feature has an id, status, location and prd: refs
PRD "Feature catalog" block PRD → feature trace Generated governance_lint.py prd-sync; never hand-edit
docs/adr/NNNN-*.md Why a hard-to-reverse decision was made Proposer One ADR per decision; an amendment may cite one
CHANGELOG.md What shipped release-please Generated from Conventional Commits; never hand-edit

6. Change process

Change Required in the same PR
Typo, docs fix, refactor with no user-visible effect Conventional Commit title
New or changed user-facing feature Entry in features/features.yml (status, link/docs, prd:), regenerated PRD block
New or changed requirement PRD edit with a new FRn/NFRn id (ids are never reused), feature prd: refs updated
Hard-to-reverse technical decision ADR in docs/adr/
Change to this constitution Amendment record in docs/amendments/ (§ 8)

7. Quality gates

Every PR passes the checks the repo's guide names:

  • make build-ci (AGENTS.md)
  • make docker-validate (AGENTS.md)
  • make test (AGENTS.md)
  • scripts/quest/build_reports_site.py (AGENTS.md)
  • make content-validate (AGENTS.md)
  • make mermaid-check (AGENTS.md)
  • python3 <bamr87/bamr87>/tools/governance_lint.py check . (feature catalog ↔ PRD, constitution, amendments)

8. Amendments

This constitution changes only through a numbered record in docs/amendments/ (NNNN-kebab-slug.md, copied from 0000-template.md):

  1. Propose — open a PR that adds the record (Status: proposed) and the edit to this file it describes. Name what it affects: constitution sections, PRD requirement ids, feature ids.
  2. Review — the maintainer reviews; an agent never approves or merges its own amendment.
  3. Ratify — merging the PR ratifies it. The record says Status: ratified and Ratified by: the PR. A rejected or withdrawn PR keeps its record with that status; numbers are never reused.
  4. Supersede — a later amendment may replace an earlier one; mark the old record superseded by NNNN.

Records are append-only history: fix a ratified rule with a new amendment, never by editing an old record. 0001 ratifies this document.

Merge authority and the review gate

(amendment agent-merge-review-gate, numbered at merge; conforms to hub constitution § 12, bamr87/bamr87 amendment. The hub's text governs.)

  1. Mergeable PR. A PR is mergeable only when all of these are true, rechecked against live state just before the merge: (1) the required CI checks are green; (2) the required reviews are satisfied; (3) there are no merge conflicts; (4) the review gate has passed wherever human review is required.
  2. An AI agent may merge a PR only when it is mergeable; otherwise it waits. Merges use a merge commit, never squash or rebase, never --admin, and never a force-push.
  3. Review gate. The gated categories are those in hub § 12: amendments and this constitution; secrets, budgets and billing; settings, branch protection and permissions; security-sensitive changes; deploys and the maintainer's machines; non-trivial conflicts; destructive changes; and anything labelled agent:hold, blocked or needs-amr. A gated PR gets the needs-amr label and the Fleet status Needs Amr. An agent never merges it, and amendments are ratified only by the maintainer merging.
  4. Repo gate: structural changes under the quest editorial charter (proposed in #889) are gated; #889 itself is an amendment and is gated.

9. Editorial charter (quests)

Proposed by the editorial charter amendment. Not in force until the maintainer merges it.

9.1 Authorization

An agent creates or expands a quest only from an approved quest brief. That is a Fleet issue stating the goal, level, prerequisites and acceptance criteria. Updates are tiered:

Tier Examples Who may make it Gate
Minor Typos, broken links, version bumps Any authorized agent Automated checks only
Substantive Steps, commands, concepts An agent working from a brief Approved brief + the full review pipeline (§ 9.3)
Structural New quest lines, levels or progression changes Needs the maintainer (Amr) Maintainer decision before work starts

Every change goes through a pull request, and the maintainer merges it.

9.2 Quality standards

Every quest must meet these standards:

  • Runs as written: commands and code run in a pinned, clean container, and the quest shows the expected output.
  • Freshness: front matter records the tested tool versions and a last-verified date. A quest past its freshness window (proposed: 6 months) is flagged for re-verification.
  • Sourced: facts are sourced to official documentation. No invented flags, options or APIs.
  • Pedagogy: objectives, prerequisites linked to earlier quests, a hands-on exercise, a check-your-work step, and a reading level suited to the quest's level.
  • Safe: risky steps carry safety warnings. No secrets, real or realistic, appear in examples.
  • Original: content is original and respects licenses. Vendored content stays read-only (§ 2).
  • AI disclosure: front matter names the author, the model, and the verifier.

9.3 Review pipeline

Each substantive or structural quest change passes these stages in order:

  1. Automated checks: front matter schema, links, runnable code blocks, prerequisite links, readability.
  2. Technical review: a reviewer who is not the author re-runs the quest end to end.
  3. Learner test: a fresh agent with no prior context completes the quest as a learner would.
  4. Editor: the Content & Comms editor reviews voice, framing and fit.
  5. Merge: the maintainer merges.

9.4 Independence

  • The author cannot be the reviewer or the learner tester. At least one of them uses a different model family or a different role.
  • An agent reviewing a quest about its own tooling discloses that, and a second reviewer is required.
  • Every review has a required "What could go wrong for a learner" section.
  • Merged quests are re-audited at random. Reviewers with unusually high approval rates are audited too.
  • lifehacker.dev covers this work as an outside press, independent of the review chain.

9.5 Corrections

  • A reported error becomes a Fleet work item.
  • A fix carries a dated change note on the quest.
  • A badly wrong quest is pulled, with a published explanation, rather than silently edited.