- Python 77.9%
- Shell 18.2%
- HTML 3.2%
- JavaScript 0.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| decks | ||
| mirrors | ||
| test-instance | ||
| .gitignore | ||
| .ignore | ||
| .woodpecker.yml | ||
| ACCESS_CONTROL.md | ||
| AGENTS.md | ||
| ARCHITECTURE.md | ||
| BADGES.md | ||
| BLUEPRINT.md | ||
| EXTENSIBILITY.md | ||
| MODERATION_AND_SECURITY.md | ||
| ONBOARDING.md | ||
| README.md | ||
| ROADMAP.md | ||
| RUNNERS.md | ||
| TICKETS.md | ||
| TO_INVESTIGATE.md | ||
opencode-forges
This repository holds the context and upstream proposals for running national public-sector code platforms on Forgejo, such as the planned opencode.swiss and the Netherlands' code.overheid.nl. It is for public-sector teams planning or running such a platform, and for Forgejo contributors who want the reasons behind an ask. The documents are living proposals; the Forgejo discussions and issues remain the place where design is decided.
The idea in brief
- Each country runs its own public-sector code platform on an unmodified Forgejo; login, interface additions and CI are built beside the forge rather than in a fork.
- Features useful to every Forgejo instance are designed with the Forgejo community and funded upstream, so no country maintains a private fork.
- Instances share a common stack, led by the Netherlands, and later work together across borders through ForgeFed federation.
- An instance opens in phases, from a read-only mirror through archive and supply-chain evidence to open collaboration, federation and published builds, and each phase starts only when its gate is met.
Read
These are written to be read from start to finish.
- Slide decks, which link into the documents for detail:
- For policy makers: the phased roadmap from a discovery mirror to cross-border federation
- For operators of national platforms: what the national platforms build together, why, and how federation fits
- The summary at the top of each document, one line per item: the strategy, the roadmap, the architecture, building around the forge, access control, runners, moderation and security, onboarding, badges and the upstream tickets
Documents
| File | What it carries | Read it if |
|---|---|---|
| BLUEPRINT.md | The strategy: why Forgejo, building around the forge and upstream-first, the first release, identity as a trust model, cooperation between countries, funding, and federation | You decide whether and how to build a platform |
| ROADMAP.md | The phases, what each delivers, and the gate before the next one | You plan or fund an instance |
| ARCHITECTURE.md | The component map: Forgejo, the identity broker, public-sector identity providers, the reverse proxy, companion apps and runners, with the main flows | You want the big picture first |
| EXTENSIBILITY.md | Adding interface features and single sign-on without forking: the injection seam, the identity broker, one-origin hosting, accessibility, and what to ask Forgejo for | You build features around the forge |
| RUNNERS.md | CI/CD as a service: who runs code on a shared pool, the acceptance tests for one, quotas, image builds, and checking contributions from forks and other instances | You offer CI to tenants |
| ACCESS_CONTROL.md | Open registration with controlled creation, organisations, forks, and how endorsement is shown | You set who may create and fork |
| MODERATION_AND_SECURITY.md | Keeping the open floor safe: moderation, abuse controls, platform security, incident response and the legal questions | You run an instance open to outsiders |
| ONBOARDING.md | Preparing a repository for publication: licence, publiccode.yml, scrubbing the history, reusability |
You are about to publish internal code |
| BADGES.md | The openCode badge programme: what each badge measures, the data behind it, and how far Forgejo can supply it | You work on badges for a Forgejo instance |
| TICKETS.md | The registry of upstream asks: filed, drafted, and existing threads to back | You follow or file an upstream ask |
| TO_INVESTIGATE.md | Questions and checks that still need a running Forgejo instance | You run the test instance |
Using AI with these documents
The documents are long and densely linked, and an AI assistant is a reasonable way to find an answer in them. Attach the files that match your question:
| Question | Attach |
|---|---|
| Why Forgejo, and how an instance is rolled out | BLUEPRINT.md, ROADMAP.md |
| How the pieces fit, and how features are added without forking | ARCHITECTURE.md, EXTENSIBILITY.md |
| Who may create, fork and run code, and how the platform stays safe | ACCESS_CONTROL.md, RUNNERS.md, MODERATION_AND_SECURITY.md |
| How to publish an internal repository | ONBOARDING.md |
| What the badge programme needs from Forgejo | BADGES.md |
| What is being asked of Forgejo upstream | TICKETS.md |
Example question: "Using the attached documents, what does a public body have to settle before it opens registration on its Forgejo instance to people outside the public sector? Name the section each answer comes from."
Check each claim in the answer against the section it names before you quote it. The documents are the source; the assistant's summary is a starting point.
Reference below: complete rather than readable end to end. Follow links into it, or give this file to an AI assistant and ask your question; the linked section remains the authority.
ROLE: Front door and navigation. It does not establish product behaviour: follow each document link to the source document, then follow that document's direct documentation link or local test record.
Several governments are building public code hosting on Forgejo — the Netherlands' code.overheid.nl, Sweden's SUNET instance, a Danish OS² proof of concept and the planned Swiss opencode.swiss — alongside GitLab-based predecessors like Germany's opencode.de. The plural in the name is deliberate: this is about a network of national public-sector forges (one per country, each sovereign), not a single project — and the concrete bet here is Forgejo, not a forge-software-neutral abstraction.
This repository is the living context behind a set of Forgejo upstream discussions and feature requests. It exists so those tickets can link to a stable, evolving place for the why and the how-it-all-fits — the tickets themselves remain the source of truth for discussion.
Status
Living documents; expect them to evolve. The linked Forgejo discussions and issues are the canonical place for design discussion — this repository is background and cross-document context, not a substitute for them.
Upstream tickets
All upstream asks — filed, draft, and existing threads to back — live in TICKETS.md, each a self-contained entry linking back to its design doc.
Relation to the publiccode.yml metadata proposal
A controlled forge is also a natural place to prove out a broader publiccode.yml metadata proposal (faceted classification, supply-chain references, a usage registry). That work lives with the proposal itself — see its TOOLING.md — and is intentionally kept out of this repository to avoid conflating the two efforts.
Relation to the model sovereignty strand
A national forge is an obvious place to ask the same questions about AI models, and the boundary is the useful part: the forge is the right home for the declaration and the wrong home for the bytes. Git LFS is whole-file, which loses exactly the deduplication that makes a family of model variants affordable to hold, so the forge should carry the requirement manifest and the pointer while the artifact store is a system built for the shape of the data. What holding models would actually take — completeness tiers, the constraints that stop a federation of holders becoming a hostage seam, the building blocks that already exist, and legal deposit as the instrument that makes holding lawful — is worked out in PRESERVATION.md, and is kept out of this repository for the same reason the metadata proposal is.
On the name: "opencode" as an umbrella
The term opencode has emerged as the preferred name for national, public-sector code platforms — independent of the underlying forge software: opencode.swiss (Forgejo), opencode.de (GitLab), and others in the network. This repository recommends Forgejo (see BLUEPRINT.md), but the name is a forge-neutral umbrella, not a bet on one technology. It captures the dual commitment:
- Open — transparent, freely auditable source code (a public-sector duty).
- Code — software development and collaboration as a first-class platform practice.
By establishing opencode as the umbrella term, we create a recognizable, cross-border brand for sovereign, community-governed code hosting — distinct from commercial forge services and from the specific instance names (which may include regional qualifiers like .swiss or .de). This repository, opencode-forges, documents the shared strategy and components that make such instances possible and interoperable.
Who's behind this & how to engage
Driven by Zentrum SDS (a Swiss public-sector digital-sovereignty initiative, anchored at the Bern University of Applied Sciences) planning the Forgejo-based opencode.swiss, in conversation with public-sector peers (NL / BZK, ZenDiS, Schleswig-Holstein) under equivalent obligations.
The approach is deliberately upstream-first: we'd rather co-design and help fund features that benefit every Forgejo instance than carry a soft fork. If you're working on a related upstream effort, or run a public-sector forge yourself, we'd like to coordinate — please comment on the tickets above.
Inline markers
Three greppable markers distinguish external questions, unverified factual dependencies, and intended design. They are kept inline, in context, so the surrounding rationale travels with them.
OPEN[<facet>] — a question only an outside expert can settle:
> ⚠️ OPEN[legal]: <the question>
Collect them with grep -rn 'OPEN\[' ., or by facet with grep -rn 'OPEN\[legal\]' .. (Codeberg's code search uses Bleve, which ignores punctuation — search the bare words OPEN legal there rather than the literal OPEN[legal]; grep remains the exact method.) A facet is added only when there is a genuine external-review handoff — currently legal (questions for counsel: content liability, data protection, accessibility-conformance obligations, non-endorsement). a11y-audit / security-review would be added only if such an audit is actually commissioned. Topic coverage lives in the relevant sections, not in markers.
ASSUMED: — a factual claim not directly verified by an authoritative document/source or a recorded test:
> ⚠️ ASSUMED: <claim> — <how to verify>
The marker must name the claim and say how to verify it. A link to a product home page is not sufficient evidence for a capability claim; link the relevant official documentation, source, release note, or a versioned recorded test instead. Collect markers with grep -rn 'ASSUMED:' .. A marker is removed only once the evidence is added — or, if it fails, the design changes.
ROLE:, STATUS:, PROPOSAL:, DECISION:, and OPERATOR-CONFIRMED: — semantic labels:
Use uppercase semantic labels where a sentence could otherwise read as deployed or verified state. ROLE identifies a document's responsibility, STATUS identifies its current lifecycle state, and PROPOSAL / DECISION distinguish intended policy from product behaviour. OPERATOR-CONFIRMED records current practice confirmed directly with an operator, while making clear whether a public source exists. A proposal or decision needs rationale, but does not need an ASSUMED: marker unless it relies on an unverified factual premise.
Do not infer verification merely because a statement is unmarked. A factual statement needs direct evidence at its point of use: an authoritative documentation/source link, or a versioned local test record that names its reproduction procedure. Use ASSUMED: only for the specific factual premise still needing that evidence.
Authoring note: the documents in this repository were drafted with the assistance of Claude (Anthropic) and reviewed and edited by the author.