# RCC project instructions for Codex and Cowork

Use this file as `AGENTS.md` in a project repository intended for RCC.

1. Read the public cluster contract:
   <https://rcc.ikim.uk-essen.de/developers/cluster-integration.md>
2. Read the machine-readable cluster capability catalog:
   <https://rcc.ikim.uk-essen.de/developers/cluster-capabilities.yml>
3. Read the RCC Application & Agent Contract v1:
   <https://rcc.ikim.uk-essen.de/developers/application-agent-contract.md>
4. Create and maintain `rcc-app.yml` against:
   <https://rcc.ikim.uk-essen.de/developers/rcc-application-agent-manifest.schema.json>
   and the versioned catalogs under
   <https://rcc.ikim.uk-essen.de/developers/contracts/rcc/v1/>.
5. Copy and complete the non-secret project handoff:
   <https://rcc.ikim.uk-essen.de/developers/project-cluster-handoff.yml>
   and validate it against:
   <https://rcc.ikim.uk-essen.de/developers/project-cluster-handoff.schema.json>
6. For a static site, protected web application, or application-local database,
   also read:
   <https://rcc.ikim.uk-essen.de/developers/project-vhost-dbhost-integration.md>

Anything not provided by the application capability catalog is unavailable to
project code. Declare it in `unmet_requirements`; do not construct a private
tunnel, direct control-plane client, privileged helper, unmanaged listener,
credential path, alternate scheduler, or broad filesystem mount.

Prepare portable project code, tests, documentation, Slurm jobs, workflow
configuration, immutable software descriptions, `rcc-app.yml`, and the completed
handoff. Target the shellhost -> interactive allocation -> Slurm worker model.
Do not make the repository depend on a physical worker, an interactively
installed prefix, or data that exists only on local disk.

## RCC client products

For a project with several deliverables, use one client project ID and one product
ID per independently released, deployed, permissioned, or operationally owned
product. Do not split a cohesive application merely because it has internal
components. A public information site and scientific software normally use
separate repositories because their publication and release lifecycles differ.

A client-product repository should carry `.rcc/client.yml` with this minimal
shape:

```yaml
apiVersion: rcc.ikim.nrw/v1alpha1
kind: ClientProduct
metadata:
  projectId: example-project
  productId: software
  title: Example project software
spec:
  profile: scientific-software
  lifecycle: incubating
  ownership:
    team: example-human-team
    humanAccountabilityRequired: true
  boundary:
    independentRelease: true
    independentDeployment: false
    independentPermissions: false
    independentOperationalOwner: false
  data:
    classification: none
  rcc:
    handoff: project-cluster-handoff.yml
    deploymentAuthority: false
    infrastructureMutationAuthority: false
    selfAdmissionAuthority: false
```

The repository declares intent only. RCC acceptance and infrastructure authority
remain separate.

## Client-device proxy requests

A client may prepare a proxy-egress proposal for **any physical or virtual device
it brings to the system, manages, or is accountable for**. The device class is
open-ended; it does not need to be a pre-registered microscope, sequencer, laptop,
appliance, or other known class.

Store non-secret proposals under `.rcc/requests/proxy-egress/`. A proposal names
the client project/product, a client-scoped logical device ID, accountable team,
operational purpose, and exact DNS destinations on TCP/80 or TCP/443. It must
state that the client owns or manages the device and that the proposal does not
activate network access.

Do not turn a request into general Internet access, wildcard/suffix authority,
IP-literal authority, TLS interception, or a proxy-policy mutation. A genuine
vendor namespace or non-HTTP transport requirement must remain explicit for
separate RCC review. Existing registered instruments reuse the existing governed
Instrument Egress review/convergence path.

Run the RCC contract checker when the tool bundle is available:

```bash
python3 rcc-contract.py validate rcc-app.yml
python3 rcc-contract.py check-repo .
```

A valid manifest grants no authority. Runtime identity, project policy, Slurm,
RCC service policy, Guardian/operator approval, and live acceptance remain
authoritative.

Do not place credentials, connection strings, private data, unpublished
results, or RCC operational configuration in Git. Do not invent a host,
address, partition availability, group, certificate, credential, image digest,
approval, repository-existence claim, or deployment result. Preparation, RCC
review, infrastructure assignment, live cluster acceptance, proxy activation,
and service publication are separate transactions.

Report changed files, tests, resource and data assumptions, client-device proxy
requests, unresolved operator gates, declared unmet capabilities, and the current
phase. RCC operations retains control of identity, scheduling policy, storage
assignment, networking, host selection, TLS, firewalling, proxy policy, backup
acceptance, and publication.
