fix(iskra): codify Forgejo ICS stale-feed fallback and repair credential lane #797

Open
opened 2026-06-17 21:27:15 +02:00 by codex · 1 comment
Collaborator

Summary

iskra-forgejo-issues-ics.service was failing with Forgejo HTTP 401. Runtime was patched on 2026-06-17 to degrade to a stale feed when a previous issues.ics exists, so systemd no longer emits false-fire while the operator-facing feed remains usable. The root credential/token problem remains.

Scope

  • Codify the stale-feed fallback in the owning source repository or desired-state path.
  • Keep stale metadata explicit: status=fresh|stale, reason, timestamp, no private issue payload in manifest.
  • Diagnose/repair the Forgejo credential lane without printing token values.
  • Keep runtime behavior: if there is no previous feed, generator failure must still fail the unit.

Spec sources (whitelist)

  • state/reports/rs2000-runtime-health-closeout-2026-06-17.md
  • Runtime wrapper path observed: /opt/iskra-openclaw/scripts/iskra-publish-ics.sh
  • Runtime unit observed: /etc/systemd/system/iskra-forgejo-issues-ics.service

Do NOT read

  • Forgejo token values or token-bearing env files.
  • Private issue feed contents unless a separate live approval scopes that read.
  • Full iskra-openclaw repo until the owning source path for the wrapper is identified.

Extracted context

Closeout behavior:

iskra-forgejo-issues-ics.service -> status=0/SUCCESS after stale-feed fallback
manifest status=stale
reason=forgejo_fetch_failed
generatorExitCode=1
privacyMode=metadata_only

The wrapper backup before the final live edit is:

/opt/iskra-openclaw/scripts/iskra-publish-ics.sh.pre-stale-fallback-rc-fix-20260617T191016Z

Acceptance criteria

  • Source-controlled wrapper implements the same stale-feed behavior as runtime.
  • Service reports success only when a fresh feed is generated or an existing feed is safely retained with stale metadata.
  • HTTP 401 credential cause is repaired or explicitly blocked with a non-secret diagnostic.
  • No token values, token prefixes/suffixes, private issue contents, or feed secret path components are posted.
  • Runtime drift between source and RS2000 is closed after review.

Hard stops

  • Do not read or print the Forgejo token value.
  • Do not broaden token scope without live scoped approval.
  • Do not expose the ICS feed publicly beyond the existing route.
  • Do not delete the previous issues.ics fallback artifact.

Source

Created from RS2000 runtime health closeout on 2026-06-17.

## Summary `iskra-forgejo-issues-ics.service` was failing with Forgejo HTTP 401. Runtime was patched on 2026-06-17 to degrade to a stale feed when a previous `issues.ics` exists, so systemd no longer emits false-fire while the operator-facing feed remains usable. The root credential/token problem remains. ## Scope - Codify the stale-feed fallback in the owning source repository or desired-state path. - Keep stale metadata explicit: `status=fresh|stale`, `reason`, timestamp, no private issue payload in manifest. - Diagnose/repair the Forgejo credential lane without printing token values. - Keep runtime behavior: if there is no previous feed, generator failure must still fail the unit. ## Spec sources (whitelist) - `state/reports/rs2000-runtime-health-closeout-2026-06-17.md` - Runtime wrapper path observed: `/opt/iskra-openclaw/scripts/iskra-publish-ics.sh` - Runtime unit observed: `/etc/systemd/system/iskra-forgejo-issues-ics.service` ## Do NOT read - Forgejo token values or token-bearing env files. - Private issue feed contents unless a separate live approval scopes that read. - Full `iskra-openclaw` repo until the owning source path for the wrapper is identified. ## Extracted context Closeout behavior: ```text iskra-forgejo-issues-ics.service -> status=0/SUCCESS after stale-feed fallback manifest status=stale reason=forgejo_fetch_failed generatorExitCode=1 privacyMode=metadata_only ``` The wrapper backup before the final live edit is: ```text /opt/iskra-openclaw/scripts/iskra-publish-ics.sh.pre-stale-fallback-rc-fix-20260617T191016Z ``` ## Acceptance criteria - Source-controlled wrapper implements the same stale-feed behavior as runtime. - Service reports success only when a fresh feed is generated or an existing feed is safely retained with stale metadata. - HTTP 401 credential cause is repaired or explicitly blocked with a non-secret diagnostic. - No token values, token prefixes/suffixes, private issue contents, or feed secret path components are posted. - Runtime drift between source and RS2000 is closed after review. ## Hard stops - Do not read or print the Forgejo token value. - Do not broaden token scope without live scoped approval. - Do not expose the ICS feed publicly beyond the existing route. - Do not delete the previous `issues.ics` fallback artifact. ## Source Created from RS2000 runtime health closeout on 2026-06-17.
Collaborator

Iskra judgment

Field Value
Target pdurlej/platform#issue#797
Priority p1
Action operator_needed
Scores reach 4 / impact 4 / confidence 4
Piotr fit high
Effort medium
Labels judge/p1, judge/operator-needed
Judge iskra via openclaw

Rationale: This is a high-priority runtime reliability and exposure-control item because it preserves Forgejo issue feed behavior while the underlying credential failure remains blocked.

Caveat: The judgment does not inspect token material or verify the live Forgejo service state.

Structured openclaw.judge.v0 payload
<!-- openclaw.judge.v0 -->
{
  "confidence": 4,
  "effort_hint": "medium",
  "escalation": {
    "kind": "operator",
    "reason": "The target remains blocked on a security-sensitive Forgejo credential lane and should be repaired under operator control."
  },
  "evidence_refs": [
    {
      "note": "Public repository metadata and dry-run packet only.",
      "type": "snapshot",
      "value": "issue-or-pr-title-body-labels-and-target-snapshot"
    }
  ],
  "impact": 4,
  "judge_actor": {
    "name": "iskra",
    "runtime": "openclaw"
  },
  "judged_at": "2026-06-20T00:00:00Z",
  "labels_to_apply": [
    "judge/p1",
    "judge/operator-needed"
  ],
  "piotr_fit": "high",
  "priority": "p1",
  "rationale_summary": "This is a high-priority runtime reliability and exposure-control item because it preserves Forgejo issue feed behavior while the underlying credential failure remains blocked.",
  "reach": 4,
  "recommended_next_action": "operator_needed",
  "rerun_reason": "no_prior_judgment",
  "schema": "openclaw.judge.v0",
  "target": {
    "kind": "issue",
    "number": 797,
    "repo": "pdurlej/platform"
  },
  "target_snapshot": {
    "body_hash": "sha256:d4b5a4fe41be1cbfe5b1ba802ba52e120a4c9a82e20c4be9a6974845b8bf1998",
    "commit_count": null,
    "evidence_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "head_sha": null,
    "labels": [
      "class/security-sensitive",
      "domain:forgejo",
      "domain:runtime",
      "kind/ops",
      "owner-attention",
      "priority:p1",
      "risk/exposure",
      "risk/runtime",
      "safety:secret-touch",
      "status:blocked",
      "status:operator-needed"
    ],
    "labels_hash": "sha256:dd11e4586cb86cae5bdcf6b39cbd00b416f19518979d0c4744c4b13a176dfa49",
    "state": "open",
    "title_hash": "sha256:d5d46d5dcfb2a91e2eedde6013ca80241cd787f3d2c79e4906952196fb957b59",
    "updated_at": "2026-06-17T21:31:11+02:00"
  },
  "top_caveat": "The judgment does not inspect token material or verify the live Forgejo service state."
}
<!-- /openclaw.judge.v0 -->
### Iskra judgment | Field | Value | | --- | --- | | Target | `pdurlej/platform#issue#797` | | Priority | p1 | | Action | operator_needed | | Scores | reach 4 / impact 4 / confidence 4 | | Piotr fit | high | | Effort | medium | | Labels | `judge/p1`, `judge/operator-needed` | | Judge | `iskra` via `openclaw` | **Rationale:** This is a high-priority runtime reliability and exposure-control item because it preserves Forgejo issue feed behavior while the underlying credential failure remains blocked. **Caveat:** The judgment does not inspect token material or verify the live Forgejo service state. <details> <summary>Structured openclaw.judge.v0 payload</summary> ```json <!-- openclaw.judge.v0 --> { "confidence": 4, "effort_hint": "medium", "escalation": { "kind": "operator", "reason": "The target remains blocked on a security-sensitive Forgejo credential lane and should be repaired under operator control." }, "evidence_refs": [ { "note": "Public repository metadata and dry-run packet only.", "type": "snapshot", "value": "issue-or-pr-title-body-labels-and-target-snapshot" } ], "impact": 4, "judge_actor": { "name": "iskra", "runtime": "openclaw" }, "judged_at": "2026-06-20T00:00:00Z", "labels_to_apply": [ "judge/p1", "judge/operator-needed" ], "piotr_fit": "high", "priority": "p1", "rationale_summary": "This is a high-priority runtime reliability and exposure-control item because it preserves Forgejo issue feed behavior while the underlying credential failure remains blocked.", "reach": 4, "recommended_next_action": "operator_needed", "rerun_reason": "no_prior_judgment", "schema": "openclaw.judge.v0", "target": { "kind": "issue", "number": 797, "repo": "pdurlej/platform" }, "target_snapshot": { "body_hash": "sha256:d4b5a4fe41be1cbfe5b1ba802ba52e120a4c9a82e20c4be9a6974845b8bf1998", "commit_count": null, "evidence_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "head_sha": null, "labels": [ "class/security-sensitive", "domain:forgejo", "domain:runtime", "kind/ops", "owner-attention", "priority:p1", "risk/exposure", "risk/runtime", "safety:secret-touch", "status:blocked", "status:operator-needed" ], "labels_hash": "sha256:dd11e4586cb86cae5bdcf6b39cbd00b416f19518979d0c4744c4b13a176dfa49", "state": "open", "title_hash": "sha256:d5d46d5dcfb2a91e2eedde6013ca80241cd787f3d2c79e4906952196fb957b59", "updated_at": "2026-06-17T21:31:11+02:00" }, "top_caveat": "The judgment does not inspect token material or verify the live Forgejo service state." } <!-- /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#797
No description provided.