Research infrastructure

Repository Federation for Controlled Research and AI Workflows

GreenTheDream Repository Federation is research infrastructure for connecting external source-code repositories to controlled research and AI-assisted workflows. It exists because the usual way to let a research system read code — hand it a personal access token — gives a machine everything a person can reach, records no organizational decision, and cannot be audited afterwards.

Repository Federation makes two decisions where most systems make one. A repository provider decides what a specific installation may read. A GreenTheDream organization then decides, separately and explicitly, that one repository is authorized for one research purpose. Discovering a repository does not authorize a research system to use it.

At a glance

StatusActive internal research infrastructure, operated by GreenTheDream Research Lab
Current providerGitHub, through a GreenTheDream-operated GitHub App
Provider accessRead-only repository metadata and contents
Authority modelProvider repository grants and GreenTheDream research authorization are separate decisions
Current validationLive provider authentication, repository discovery, grant reconciliation, explicit research-source authorization, signed webhook verification, and duplicate-delivery protection
Intended useReproducible computational research, research software engineering, controlled research-source ingestion, and auditable AI-assisted analysis
Not offeredPublic Git hosting, write access to research repositories, or a service commitment for third parties

Why repository access needs two decisions

An installation grant and an authorization decision answer different questions. The grant answers “may this installation read this repository?” The authorization answers “is this organization allowing this repository to be used for this purpose, and who decided that?”

Collapsing the two produces the failure mode that makes automated code analysis hard to govern: access exists, therefore use is assumed. The grant is treated as permission, ordinary credential hygiene looks like governance, and nobody can say afterwards which organization approved which source for which piece of work.

Keeping them apart makes each question answerable on its own, and makes revocation meaningful. Removing a repository at the provider removes the grant. It does not, and must not, silently restore or extend a GreenTheDream authorization that a person withdrew.

Six distinctions that stay distinct

  • Authentication is not authorization. Proving who a person is at GitHub says nothing about what GreenTheDream permits.
  • A provider grant is not an organization authorization. A repository can be available to the App and still be unusable for research.
  • Repository discovery is not permission to use. Reconciliation records what exists; it does not authorize anything.
  • A credential is not an identity. Tokens and secret references are stored as references, never as the account.
  • Identity is not a role. A GreenTheDream role comes from the identity registry, never from an upstream provider or an email domain.
  • A role is not an entitlement. Holding a role does not grant access to a specific repository; only an explicit connection does.

How GreenTheDream separates authority

  1. A researcher signs in with their GreenTheDream identity and links a GitHub account. This proves which GitHub account belongs to them and grants no role.
  2. A GreenTheDream GitHub App is installed on a GitHub organization, and GitHub reports which repositories the installation may read.
  3. GreenTheDream reconciles those grants from signed provider events and the provider API, keyed by stable provider identifiers rather than by name or by anything a browser claims.
  4. A person with organization authority records a connection for one repository, one purpose, and read-only access. The record carries the requester and the approver.
  5. Automated work is evaluated against that connection. A correct principal in the wrong organization is refused, and a valid provider grant without a connection is refused.

What is live today

  • Live provider installation. A GitHub App is installed on a GreenTheDream GitHub organization and reconciled against the provider API.
  • Grant reconciliation. Repositories are discovered, stored by stable provider identifiers, and marked unavailable when the provider revokes them.
  • Explicit research-source authorization. A repository is connected to a GreenTheDream organization for a named purpose at read-only access, with the decision recorded.
  • Signed webhook verification. Repository events are accepted only when the delivery signature verifies; an invalid signature is refused without changing state.
  • Duplicate-delivery protection. A replayed delivery produces no second change, so event storms cannot double-apply.
  • Deny-by-default evaluation. A foreign organization, a different principal, and a missing connection are each refused.

Why this matters for AI-assisted research

An agent can read a repository, summarise it, refactor it and produce a report. None of that capability is a statement about whether the organization permits it. Technical ability and organizational authority are different things, and only one of them is usually written down.

Research automation raises the stakes because the output carries evidence weight. If a system analysed a source it was never authorized to read, the provenance of every downstream claim is compromised — even when the analysis itself is correct. The authority decision has to exist before the work, not in a retrospective explanation.

That is the engineering reason for the two-decision model: authorization is explicit and attributable, revocation is enforceable, provider events reconcile without restoring authority a person withdrew, and generated output can point at a source access decision that somebody actually made.

When this work is relevant

  • Reproducible computational research where sources must be pinned and auditable.
  • AI-assisted code analysis that needs an explicit, reviewable boundary around what it may read.
  • Controlled ingestion of research sources into pipelines and evaluation harnesses.
  • Multi-repository research software where ownership and permission differ per repository.
  • Permission-aware agent workflows: capability bounded by an organizational decision rather than a token.
  • Source provenance for generated output, so a result can name the access decision behind it.
  • Collaboration across organizations where repository boundaries must be explicit rather than implied.

What is not claimed

  • This is not a public Git hosting service, and it does not replace GitHub.
  • It does not grant write authority. Provider access is read-only, and connecting a repository does not widen it.
  • A provider grant does not authorize use. Without a GreenTheDream connection, a granted repository is unusable for research.
  • GreenTheDream does not claim an external security certification for this implementation.
  • This is active internal research infrastructure. It is not presented as universally production-ready infrastructure for third parties, and no availability or support commitment is offered.

Methods, reproducibility and related work

Repository Federation is one layer of a research programme that treats reproducibility and evidence labeling as engineering requirements. The surrounding standards are documented publicly:

Technical details

The implementation is provider-neutral by construction. A provider adapter supplies authenticated repository discovery; a grant store records what the provider reports; a connection store records GreenTheDream authorization separately; an evaluator answers a single question — may this principal use this repository for this purpose in this organization — and refuses by default. Credentials are held as protected secret references and are never stored in the authorization record, and the account console that operates this is private, read-only with respect to source repositories, and excluded from search indexing.

Published 25 November 2026. Last reviewed 25 November 2026. GreenTheDream Research Lab.

Collaborate with GreenTheDream

GreenTheDream Research Lab is an independent lab. If your work involves reproducible computational research, research software, permission-aware automation, or evidence-governed analysis, the lab is interested in collaboration and in technical review of adjacent systems.