Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
f339442
feat: repository-driven epic creation (ADR-0176)
Nov 25, 2026
6a4de2a
fix: load resolution sources on the host for fullsend runs
Nov 27, 2026
0f59af2
fix: slice resolution requests use the strategy's components only
Nov 28, 2026
47ed4df
feat: unresolved on conflicting architecture evidence
Nov 30, 2026
9961aa4
fix: mandatory Phase 2 survey before confirming any repository
Nov 30, 2026
11529af
feat: a source repository's root comes with the source
Nov 30, 2026
c68925a
fix: hints are starting reads, then the sweep covers the rest
Dec 1, 2026
bb7071d
fix: address review findings on PR #66 (qodo + fullsend review)
Dec 2, 2026
b374e08
fix: pin fetch-architecture-context.sh to the resolver's architecture…
Dec 2, 2026
173d09f
revert: architecture source tracks main within the pinned version
Dec 2, 2026
ad01063
feat: publish the contribution repository, not the product fork
Dec 2, 2026
4dc9293
refactor: the resolver config schema ships with the skill
Dec 2, 2026
d54fba4
docs: consumer-facing README for the repository-resolution skill
Dec 2, 2026
adce81f
docs: drop the jira-section note from the skill README
Dec 2, 2026
5b17679
docs: a consumer-side schema tightens validation, it does not extend …
Dec 2, 2026
959087d
docs: document the REQUEST and RESULT contracts in the skill README
Dec 2, 2026
84b115e
feat: a free-text hints channel on the resolver request
Dec 2, 2026
33b7829
docs: say in the input contract what components are for
Dec 2, 2026
47f88ac
docs: draw the two-file data model in the skill prompt
Dec 2, 2026
75c138f
docs: the repository key is the architecture's vocabulary
Dec 2, 2026
012f4bd
fix: clear the resolve-complete marker when preparing a rerun
Dec 2, 2026
3fc7efa
fix: consumer schema override wins; missing jsonschema is a config fa…
Dec 2, 2026
11ae513
docs: show the resolved result shape with per-repository evidence
Dec 2, 2026
325250b
docs: evidence quotes are anchored to the manifest's recorded SHA
Dec 2, 2026
37dd47d
docs: sources[].sha is the commit, distinct from content_hash
Dec 2, 2026
0ff41eb
docs: mark components optional in the README request example
Dec 2, 2026
0e76986
docs: explain every repository_data field in the README example
Dec 2, 2026
57dd54b
docs: say what the repository-data source holds
Dec 2, 2026
53daecd
docs: the three skill inputs are paths you pass in your agent's instr…
Dec 2, 2026
1f5cb6f
fix: flag off keeps main's architecture behavior exactly
Dec 2, 2026
264768d
fix: exit-code contract — config failures exit 2 in lookup and verifi…
Dec 2, 2026
9af383c
refactor: one source of truth for the architecture version
Dec 2, 2026
b28e50d
fix: review findings — YAML parse in the arch script, complete result…
Dec 2, 2026
6199472
fix: remaining review findings — stale markers, stale artifacts, conf…
Dec 2, 2026
b65995b
fix: style findings — ResolutionError re-export, single schema/ direc…
Dec 2, 2026
cffe0c1
fix: remaining style findings — RESULT naming, top imports, commands …
Dec 2, 2026
b34b45d
fix: final review findings — pagination edge, doc accuracy, hygiene
Dec 3, 2026
c2f07ad
fix: branch epic slices can reference their own repository results
Dec 3, 2026
a515f49
fix: fullsend review round — per-epic cleanup, consumer-agnostic skil…
Dec 3, 2026
f73506b
fix: qodo round — publication fallback, retry marker, URL resync, sch…
Dec 3, 2026
74cd4d7
Merge origin/main: PRs #64 (epic component validation) and #69 (eval …
Dec 3, 2026
ae84baf
docs: mark components optional in the SKILL.md request example
Dec 2, 2026
255974d
docs: define component terminology in the skill prompt
Dec 2, 2026
230b6ee
fix: fullsend review round 3 — error text, stale comments, sidecar cl…
Dec 3, 2026
05fee92
fix: fullsend review round 4 — remaining path literals, 404 semantics…
Dec 3, 2026
78a2d72
fix: fullsend review round 5 — symmetric cleanup, env quoting
Dec 3, 2026
806fd21
fix: repository mode reads the resolver's snapshot, not a second clone
Dec 3, 2026
17a8658
fix: fullsend review round 6 — flag-off purity, API economy, coverage
Dec 3, 2026
a42baa4
fix: round-6 leftovers — one result-read idiom, one error format
Dec 3, 2026
7124424
fix: fullsend round 7 + code-review — real bugs and consistency
Dec 3, 2026
b1ee8bb
fix: code-review round 2 — fatal pre-script ordering, env forwarding,…
Dec 3, 2026
3f9f322
fix: env.runner flag reference uses plain ${VAR} syntax
Dec 3, 2026
095d830
AISDLC-61: scaffold workload registry (ADR 0166)
Dec 3, 2026
813a9ab
docs: add ADR 166 implementation plan
Dec 3, 2026
fa6dfe3
docs: fix plan tail to match current ADR wording
Dec 3, 2026
9842950
AISDLC-61: add workload descriptor schema (shared vocab aligned)
Dec 3, 2026
ec1a9eb
AISDLC-61: add workload descriptors (Feature + Initiative)
Dec 3, 2026
e1490be
AISDLC-61: extract RHAI v1 policies
Dec 4, 2026
dd6be60
AISDLC-61: wire prompt shells to read POLICY_FILE
Dec 4, 2026
c299822
AISDLC-61: wire workload selection into pipeline entry
Dec 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .fullsend/epic-creator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ FULLSEND_TASK="/epic-decompose RHAISTRAT-1234"
JIRA_SERVER=https://redhat.atlassian.net
JIRA_USER="<email@example.com>"
JIRA_TOKEN="<token>"

# Repository resolution mode (ADR-0176). Required by the harness env
# validation — set `false` for the production default (off), `true` to
# enable. When `true`, the pre-script loads the resolution sources
# declared in config/resolver.yaml on the host before the sandbox starts,
# and the pipeline resolves each strategy's repositories (the
# RESOLVE_REPOSITORIES phase) before decomposing.
EPIC_CREATOR_REPOSITORY_MODE=false
```

Then run it from the Epic Creator checkout root:
Expand Down
7 changes: 7 additions & 0 deletions .fullsend/epic-creator/epic-creator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ host_files:
- src: epic-creator/gcp-vertex.env
dest: /sandbox/workspace/.env.d/gcp-vertex.env
expand: true
- src: epic-creator/repository-mode.env
dest: /sandbox/workspace/.env.d/repository-mode.env
expand: true
- src: ${GOOGLE_APPLICATION_CREDENTIALS}
dest: /tmp/.gcp-credentials.json

Expand Down Expand Up @@ -43,6 +46,10 @@ env:
JIRA_SERVER: "${JIRA_SERVER}"
JIRA_USER: "${JIRA_USER}"
JIRA_TOKEN: "${JIRA_TOKEN}"
# The host pre-script reads the repository-mode flag to decide whether
# to load the resolver sources before the sandbox starts. Define it in
# the env file (false = off) — fullsend validates that it is set.
EPIC_CREATOR_REPOSITORY_MODE: "${EPIC_CREATOR_REPOSITORY_MODE}"

openshell:
profiles:
Expand Down
11 changes: 11 additions & 0 deletions .fullsend/epic-creator/pre-epic-creator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ set -euo pipefail
echo "epic-creator pre-script: bootstrapping ${TARGET_REPO_DIR}"

cd -- "${TARGET_REPO_DIR}"
# Repository resolution (ADR-0176) loads FIRST: the sandbox has no GitHub
# access, so the declared sources are loaded here on the host — and in
# repository mode fetch-architecture-context.sh links .context to the
# loaded snapshot, which must exist before it runs. A malformed flag or a
# source that cannot be loaded stops the run before the sandbox starts.
if [ -n "${EPIC_CREATOR_REPOSITORY_MODE:-}" ]; then
repository_mode="$(python3 scripts/repository_resolution.py flag)"
if [ "${repository_mode}" = "on" ]; then
python3 scripts/repository_resolution.py load
fi
fi
bash scripts/fetch-architecture-context.sh
python3 scripts/fetch_components.py
echo "epic-creator pre-script: complete"
4 changes: 4 additions & 0 deletions .fullsend/epic-creator/prompt-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ artifacts, and emit a single structured result file.
- `FULLSEND_OUTPUT_DIR` — write `agent-result.json` here.
- `JIRA_SERVER`, `JIRA_USER`, `JIRA_TOKEN` — Jira REST credentials (always set;
fullsend validates them before the run starts).
- `EPIC_CREATOR_REPOSITORY_MODE` — optional. Unset or empty means legacy
behavior. When `true`, the pipeline resolves each strategy's repositories
before decomposition (the RESOLVE_REPOSITORIES phase); the pre-script loads
the sources and `pipeline_state.py init` validates the flag.

The working directory is the epic-creator target repo. Invoke `scripts/*.py` by
that relative path exactly. Do not expand it to an absolute path.
Expand Down
4 changes: 4 additions & 0 deletions .fullsend/epic-creator/prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ artifacts, and emit a single structured result file.
- `FULLSEND_OUTPUT_DIR` — write `agent-result.json` here.
- `JIRA_SERVER`, `JIRA_USER`, `JIRA_TOKEN` — Jira REST credentials (always set;
fullsend validates them before the run starts).
- `EPIC_CREATOR_REPOSITORY_MODE` — optional. Unset or empty means legacy
behavior. When `true`, the pipeline resolves each strategy's repositories
before decomposition (the RESOLVE_REPOSITORIES phase); the pre-script loads
the sources and `pipeline_state.py init` validates the flag.

The working directory is the epic-creator target repo. Invoke `scripts/*.py` by
that relative path exactly. Do not expand it to an absolute path.
Expand Down
4 changes: 4 additions & 0 deletions .fullsend/epic-creator/repository-mode.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Repository resolution feature flag (ADR-0176), passed into the sandbox.
# An unset host variable expands to empty, which means off. Quoted, so a
# hostile value stays data until Python's flag validation rejects it.
export EPIC_CREATOR_REPOSITORY_MODE="${EPIC_CREATOR_REPOSITORY_MODE}"
42 changes: 41 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,39 @@ artifacts/
epic-reviews/ # Adversarial review of decomposition
RHAISTRAT-1234-decomp-review.md

repo-resolution/ # Repository resolution (ADR-0176, repository mode only)
RHAISTRAT-1234-request.json # Resolver input: description + components
RHAISTRAT-1234-result.json # Verified result: repositories + evidence, or unresolved
RHAISTRAT-1234-verified.json # Verification record (per-strategy)
RHAISTRAT-1234-result.invalid.json # Result moved aside after failed verification
RHAISTRAT-1234-resolve-complete # Completion marker (resolver's final action)
RHAISTRAT-1234-E001-request.json # Per-epic slice request (decompose-agent writes it)
RHAISTRAT-1234-E001-result.json # Per-epic slice result (epic needs its own repo)

decompose-runs/ # Pipeline run reports
2026-05-04T12-00-00Z.yaml
```

### Repository mode (ADR-0176)

Off by default. `EPIC_CREATOR_REPOSITORY_MODE=true` enables it: `config/resolver.yaml`
(declares the pinned architecture source and the component mapping in
`config/rhai/component-repositories.yaml`) is loaded once per run into
`tmp/repo-resolution/sources/`, and the pipeline runs a `RESOLVE_REPOSITORIES` phase
between FETCH and DECOMPOSE. Epic frontmatter gains `repository_key` and
`repository_resolution` (the result file that justifies the key). The flag accepts only
unset/empty/`true`/`false`; anything else is a hard error.

```bash
# Repository resolution helper CLI (scripts/repository_resolution.py)
python3 scripts/repository_resolution.py flag # print on/off for the flag
python3 scripts/repository_resolution.py load # validate config, snapshot sources
python3 scripts/repository_resolution.py prepare <ID> # write the resolver request
python3 scripts/repository_resolution.py verify <ID> ... # verify results (exit 1 = invalid
# result, 2 = config/source failure)
python3 scripts/repository_resolution.py check-epics <ID> # validate epic repository assignments
```

### Frontmatter

All task and review files use YAML frontmatter for structured metadata. Skills must use `scripts/frontmatter.py` to read schemas, set fields, and read validated data — never write YAML by hand.
Expand Down Expand Up @@ -66,6 +95,17 @@ Write operations use `scripts/attach_decomposition.py` to:
- Attach decomposition output as a file to the RHAISTRAT
- Apply `decomp-ready` label

In repository mode, `scripts/submit.py` additionally writes, per epic — only when
`EPIC_CREATOR_REPOSITORY_MODE=true` is set in the submit process's own environment;
with the flag unset, submit skips repository publishing and prints a loud warning
when the epics carry repository assignments:
- the canonical repository URL to the configured URL field (`jira.repository_url_field`
in `config/resolver.yaml`, currently `customfield_10933`) — resolved epics only
- a `*-repository-evidence.md` attachment with the cited, pinned evidence
- a warning comment on unresolved epics (no repository could be assigned with evidence)

All repository checks run before any Jira write.

Required environment variables:

```
Expand Down Expand Up @@ -159,7 +199,7 @@ strategies:

## Architecture Context

The pipeline fetches architecture context from [opendatahub-io/architecture-context](https://github.com/opendatahub-io/architecture-context) into `.context/architecture-context/` at bootstrap. A component is "in the platform" if it has an architecture context file.
The pipeline fetches architecture context from [opendatahub-io/architecture-context](https://github.com/opendatahub-io/architecture-context) into `.context/architecture-context/` at bootstrap. In repository mode, no second fetch happens: `.context/architecture-context` is a symlink to the resolver's already-loaded snapshot (`tmp/repo-resolution/sources/architecture`), so decomposition and resolution read the same commit. With the flag off, it clones the repo and auto-detects the newest `rhoai-*` folder — main's behavior. A component is "in the platform" if it has an architecture context file.

Architecture context is used during decomposition to:
- Validate component existence and dependencies
Expand Down
20 changes: 20 additions & 0 deletions config/_schema/component-repositories.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "component-repositories.schema.json",
"title": "Jira component to repository keys mapping",
"type": "object",
"additionalProperties": false,
"required": ["components"],
"properties": {
"components": {
"type": "object",
"minProperties": 1,
"additionalProperties": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"}
}
}
}
}
92 changes: 92 additions & 0 deletions config/_schema/resolver.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "resolver.schema.json",
"title": "Repository resolution configuration — epic-creator (consumer override)",
"description": "The schema shipped with the resolver skill (skills/repository-resolution/schema/resolver.schema.json), extended with epic-creator's consumer-side jira section. The skill itself is consumer-agnostic; this override is what config/resolver.yaml is validated against. Keep it in sync with the shipped schema when the skill's contract changes.",
"type": "object",
"additionalProperties": false,
"required": ["version", "group", "sources", "repository_data"],
"properties": {
"version": {"const": 1},
"group": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]*$"
},
"sources": {
"type": "array",
"minItems": 1,
"items": {"$ref": "#/$defs/source"}
},
"repository_data": {
"type": "object",
"additionalProperties": false,
"required": ["source", "path", "host"],
"properties": {
"source": {"$ref": "#/$defs/id"},
"path": {"$ref": "#/$defs/relativePath"},
"host": {
"type": "string",
"pattern": "^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"
},
"preferred_org": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]*$",
"description": "When the repository data records a fork lineage, publish the lineage entry from this organization when one exists, otherwise the lineage origin. The product-fork level is never published."
}
}
},
"jira": {
"description": "epic-creator's publish settings. Required by this consumer: the canonical repository URL is written to this Jira field.",
"type": "object",
"additionalProperties": false,
"required": ["repository_url_field"],
"properties": {
"repository_url_field": {
"type": "string",
"pattern": "^customfield_[0-9]+$"
}
}
}
},
"$defs": {
"id": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]*$"
},
"relativePath": {
"type": "string",
"minLength": 1,
"pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$))[A-Za-z0-9._/-]+$"
},
"source": {
"type": "object",
"additionalProperties": false,
"required": ["id", "url", "ref", "paths", "role"],
"properties": {
"id": {"$ref": "#/$defs/id"},
"url": {
"anyOf": [
{"const": "self"},
{
"type": "string",
"pattern": "^https://[a-z0-9.-]+(/[A-Za-z0-9._-]+)+$"
}
]
},
"ref": {
"type": "string",
"minLength": 1,
"pattern": "^[A-Za-z0-9._/-]+$"
},
"paths": {
"type": "array",
"minItems": 1,
"items": {"$ref": "#/$defs/relativePath"}
},
"role": {
"enum": ["architecture", "mapping", "inventory"]
}
}
}
}
}
67 changes: 67 additions & 0 deletions config/resolver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Repository resolution configuration (ADR-0176).
#
# Read only when EPIC_CREATOR_REPOSITORY_MODE=true. When the flag is unset or false this
# file is never opened, so a broken file cannot fail a legacy run.
#
# Validated before any source is fetched: against the consumer-side schema
# in config/_schema/resolver.schema.json (this repository's copy of the
# schema shipped with the resolver skill, extended with the jira section
# below). Any error here stops the run before resolution starts.

version: 1

# The configuration group this file declares.
group: rhai

# Declared sources. The loader fetches each one, resolves `ref` to a commit
# SHA, snapshots the declared `paths`, and records a content hash.
# `url` is credential-free HTTPS or `self` (this repository at its HEAD).
sources:
- id: architecture
url: https://github.com/opendatahub-io/architecture-context
# The product version is pinned by the declared paths; the content
# tracks the branch head, so upstream fixes to the pinned version's
# docs are picked up on the next load. Each load records the commit it
# resolved to in the manifest, so a run's evidence is attributable
# either way, and a moved mapping key fails loudly at the first Phase 1
# lookup that uses it instead of silently mis-resolving.
ref: main
paths:
- architecture/rhoai-3.6/
- overlays/
role: architecture

# Jira component -> repository keys (Phase 1 hints), kept in this
# repository and pinned to its HEAD.
- id: mapping
url: self
ref: HEAD
paths:
- config/rhai/component-repositories.yaml
role: mapping

# Where repository keys resolve to namespace path and name. The version
# folder here must be the one the architecture source's declared paths
# pin above (rhoai-3.6): the mapping check requires this path to live
# inside a declared path of its source.
repository_data:
source: architecture
path: architecture/rhoai-3.6/component-map.json
# The component map records namespace path and name but no host. The
# canonical URL is https://<host>/<namespace path>/<name>, all lowercase.
host: github.com
# The epic's URL field carries the repository where contributions land,
# never the product fork that receives code by automated sync (decided
# in the AISDLC-90 kickoff, 2026-11-04: "populate the upstream repository
# URL rather than the midstream or the downstream" — yes). The component
# map records each component's fork lineage, origin first; the published
# repository is the lineage entry from this organization when one
# exists, otherwise the lineage origin.
preferred_org: opendatahub-io

# Consumer settings for epic-creator. The resolver skill is consumer-agnostic
# (its shipped schema knows nothing about Jira); this section is validated by
# epic-creator's own consumer-side schema, config/_schema/resolver.schema.json.
jira:
# URL-type field on the epic that receives the canonical repository URL.
repository_url_field: customfield_10933
Loading
Loading