fix(tests): reconcile stale platform contract expectations #810

Closed
opened 2026-06-19 01:27:18 +02:00 by codex · 1 comment
Collaborator

Spec sources (whitelist)

  • compose/apps/compose.yaml
  • tests/test_deploy_control_cutoff_contract.py
  • tests/test_iskra_things_sync_contract.py
  • decisions/0026-wloczykij-gold-vault-and-iskra-promotion-boundary.md

Extracted context

From Antigravity/Gemini audit, 2026-06-19:

deploy-control test expected /opt/vps-home-platform-infra/ paths, while compose now uses /opt/pdurlej-platform/runtime/legacy-import/.
iskra things sync contract test expected ADR 0023, while the ADR was renumbered to 0026.

Do NOT read (unless escape hatch fires)

  • control-plane/platformctl/ — platformctl internals are not needed for this contract-test reconciliation.
  • modules/ — module manifests are out of scope unless a failing test explicitly cites one.

Allowed touched paths

  • tests/test_deploy_control_cutoff_contract.py (modify)
  • tests/test_iskra_things_sync_contract.py (modify)

Why this exists (product-first)

Contract tests should protect current platform intent, not pin stale paths or stale ADR numbers. When tests encode obsolete contracts, agents either mistrust the test suite or patch around correct repo state.

Why this matters now

The audit found root-level test failures caused by stale expectations. These updates are small, but they should be reviewed separately from prompt-link repair and lint cleanup.

What "done" looks like

  • test_deploy_control_cutoff_contract.py expectations match current compose/apps/compose.yaml deploy-control mounts.
  • test_iskra_things_sync_contract.py reads ADR 0026-wloczykij-gold-vault-and-iskra-promotion-boundary.md if that is the current canonical ADR.
  • Focused tests pass: uv run pytest tests/test_deploy_control_cutoff_contract.py tests/test_iskra_things_sync_contract.py.
  • The PR explains whether these are test-only reconciliations or expose a real contract change.

Scope

In scope:

  • Test expectation updates for current compose path and ADR renumbering.

Out of scope:

  • Compose/runtime path changes.
  • ADR renumbering or ADR content edits.
  • Iskra sync implementation behavior.

Suggested approach

  1. Compare the failing assertions with the current source files.
  2. Update only stale expected values.
  3. Run the focused root tests.

Escape hatch

If the compose file or ADR path is wrong rather than the tests, stop and comment with evidence. Do not change runtime compose or ADR files inside this issue.

Unknowns / owner questions

  • None expected if the current compose and ADR paths are confirmed.

Risk class

  • risk/runtime — tests encode runtime mount contracts.
  • risk/process — stale contract tests mislead future agents.

Class of service

  • class/security-sensitive

Trace

  • Original source: Antigravity/Gemini audit reviewed in Codex side conversation, 2026-06-19.
  • Migrated by: codex, 2026-06-19.
  • Related local branch: antigravity/orders/audit-reconcile.
## Spec sources (whitelist) - `compose/apps/compose.yaml` - `tests/test_deploy_control_cutoff_contract.py` - `tests/test_iskra_things_sync_contract.py` - `decisions/0026-wloczykij-gold-vault-and-iskra-promotion-boundary.md` ## Extracted context > From Antigravity/Gemini audit, 2026-06-19: > ```text > deploy-control test expected /opt/vps-home-platform-infra/ paths, while compose now uses /opt/pdurlej-platform/runtime/legacy-import/. > iskra things sync contract test expected ADR 0023, while the ADR was renumbered to 0026. > ``` ## Do NOT read (unless escape hatch fires) - `control-plane/platformctl/` — platformctl internals are not needed for this contract-test reconciliation. - `modules/` — module manifests are out of scope unless a failing test explicitly cites one. ## Allowed touched paths - `tests/test_deploy_control_cutoff_contract.py` (modify) - `tests/test_iskra_things_sync_contract.py` (modify) ## Why this exists (product-first) Contract tests should protect current platform intent, not pin stale paths or stale ADR numbers. When tests encode obsolete contracts, agents either mistrust the test suite or patch around correct repo state. ## Why this matters now The audit found root-level test failures caused by stale expectations. These updates are small, but they should be reviewed separately from prompt-link repair and lint cleanup. ## What "done" looks like - [ ] `test_deploy_control_cutoff_contract.py` expectations match current `compose/apps/compose.yaml` deploy-control mounts. - [ ] `test_iskra_things_sync_contract.py` reads ADR `0026-wloczykij-gold-vault-and-iskra-promotion-boundary.md` if that is the current canonical ADR. - [ ] Focused tests pass: `uv run pytest tests/test_deploy_control_cutoff_contract.py tests/test_iskra_things_sync_contract.py`. - [ ] The PR explains whether these are test-only reconciliations or expose a real contract change. ## Scope **In scope:** - Test expectation updates for current compose path and ADR renumbering. **Out of scope:** - Compose/runtime path changes. - ADR renumbering or ADR content edits. - Iskra sync implementation behavior. ## Suggested approach 1. Compare the failing assertions with the current source files. 2. Update only stale expected values. 3. Run the focused root tests. ## Escape hatch If the compose file or ADR path is wrong rather than the tests, stop and comment with evidence. Do not change runtime compose or ADR files inside this issue. ## Unknowns / owner questions - None expected if the current compose and ADR paths are confirmed. ## Risk class - [x] `risk/runtime` — tests encode runtime mount contracts. - [x] `risk/process` — stale contract tests mislead future agents. ## Class of service - [ ] `class/security-sensitive` ## Trace - Original source: Antigravity/Gemini audit reviewed in Codex side conversation, 2026-06-19. - Migrated by: codex, 2026-06-19. - Related local branch: `antigravity/orders/audit-reconcile`.
Collaborator

Iskra judgment

Field Value
Target pdurlej/platform#issue#810
Priority p2
Action codex_candidate
Scores reach 3 / impact 3 / confidence 4
Piotr fit high
Effort small
Labels judge/p2, judge/codex-candidate
Judge iskra via openclaw

Rationale: This is a bounded CI contract-test repair with explicit allowed paths, small scope, and no production mutation risk, making it a good Codex candidate.

Caveat: The full issue body and live repository state were not inspected, so the judgment rests on the supplied packet and labels.

Structured openclaw.judge.v0 payload
<!-- openclaw.judge.v0 -->
{
  "confidence": 4,
  "effort_hint": "small",
  "escalation": {
    "kind": "none",
    "reason": ""
  },
  "evidence_refs": [
    {
      "note": "Public repository metadata and dry-run packet only.",
      "type": "snapshot",
      "value": "issue-or-pr-title-body-labels-and-target-snapshot"
    }
  ],
  "impact": 3,
  "judge_actor": {
    "name": "iskra",
    "runtime": "openclaw"
  },
  "judged_at": "2026-06-21T00:00:00Z",
  "labels_to_apply": [
    "judge/p2",
    "judge/codex-candidate"
  ],
  "piotr_fit": "high",
  "priority": "p2",
  "rationale_summary": "This is a bounded CI contract-test repair with explicit allowed paths, small scope, and no production mutation risk, making it a good Codex candidate.",
  "reach": 3,
  "recommended_next_action": "codex_candidate",
  "rerun_reason": "no_prior_judgment",
  "schema": "openclaw.judge.v0",
  "target": {
    "kind": "issue",
    "number": 810,
    "repo": "pdurlej/platform"
  },
  "target_snapshot": {
    "body_hash": "sha256:34915fddc866a6e0da29f94b1e576c9dc29ef2f3e72b93fe6b6492b32ceb02a1",
    "commit_count": null,
    "evidence_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "head_sha": null,
    "labels": [
      "agent/codex",
      "domain:ci",
      "proposed",
      "risk/process",
      "risk/runtime",
      "safety:no-prod-mutation",
      "size/small",
      "source/agent-generated",
      "type:bug"
    ],
    "labels_hash": "sha256:ff549897f48a28fded08528a4684f50018532bb73f3b9a8715f4b999f4994361",
    "state": "open",
    "title_hash": "sha256:64f2292b98b0f39fe84c4cade949848471c44e82bf77ca461fe6d69d2748e586",
    "updated_at": "2026-06-19T01:27:18+02:00"
  },
  "top_caveat": "The full issue body and live repository state were not inspected, so the judgment rests on the supplied packet and labels."
}
<!-- /openclaw.judge.v0 -->
### Iskra judgment | Field | Value | | --- | --- | | Target | `pdurlej/platform#issue#810` | | Priority | p2 | | Action | codex_candidate | | Scores | reach 3 / impact 3 / confidence 4 | | Piotr fit | high | | Effort | small | | Labels | `judge/p2`, `judge/codex-candidate` | | Judge | `iskra` via `openclaw` | **Rationale:** This is a bounded CI contract-test repair with explicit allowed paths, small scope, and no production mutation risk, making it a good Codex candidate. **Caveat:** The full issue body and live repository state were not inspected, so the judgment rests on the supplied packet and labels. <details> <summary>Structured openclaw.judge.v0 payload</summary> ```json <!-- openclaw.judge.v0 --> { "confidence": 4, "effort_hint": "small", "escalation": { "kind": "none", "reason": "" }, "evidence_refs": [ { "note": "Public repository metadata and dry-run packet only.", "type": "snapshot", "value": "issue-or-pr-title-body-labels-and-target-snapshot" } ], "impact": 3, "judge_actor": { "name": "iskra", "runtime": "openclaw" }, "judged_at": "2026-06-21T00:00:00Z", "labels_to_apply": [ "judge/p2", "judge/codex-candidate" ], "piotr_fit": "high", "priority": "p2", "rationale_summary": "This is a bounded CI contract-test repair with explicit allowed paths, small scope, and no production mutation risk, making it a good Codex candidate.", "reach": 3, "recommended_next_action": "codex_candidate", "rerun_reason": "no_prior_judgment", "schema": "openclaw.judge.v0", "target": { "kind": "issue", "number": 810, "repo": "pdurlej/platform" }, "target_snapshot": { "body_hash": "sha256:34915fddc866a6e0da29f94b1e576c9dc29ef2f3e72b93fe6b6492b32ceb02a1", "commit_count": null, "evidence_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "head_sha": null, "labels": [ "agent/codex", "domain:ci", "proposed", "risk/process", "risk/runtime", "safety:no-prod-mutation", "size/small", "source/agent-generated", "type:bug" ], "labels_hash": "sha256:ff549897f48a28fded08528a4684f50018532bb73f3b9a8715f4b999f4994361", "state": "open", "title_hash": "sha256:64f2292b98b0f39fe84c4cade949848471c44e82bf77ca461fe6d69d2748e586", "updated_at": "2026-06-19T01:27:18+02:00" }, "top_caveat": "The full issue body and live repository state were not inspected, so the judgment rests on the supplied packet and labels." } <!-- /openclaw.judge.v0 --> ``` </details>
Sign in to join this conversation.
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/platform#810
No description provided.