registrystack / registrystack/registry-stack

caseworkctl check accepts a policy package whose manifest no longer matches

Offen
#994 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:casework bug
Vorherrschende Sprache
Rust
Sterne
2
Forks
0
Ø Merge
2 Std. 55 Min.
Gemergte PRs (30 T.)
130

Beschreibung

### What we hit

`caseworkctl package` writes the policy, the exact imported source descriptions, and `casework.package.json` with their digests. The `casework` runtime rebuilds the manifest at startup and refuses any difference with `casework: the Casework policy package is invalid` (observed for one added blank line in `casework.yaml` and for an unrelated file dropped into the package root).

`caseworkctl check` run against that same package directory reports `"ok": true`. It checks the policy, not the manifest, so an author who edits a packaged file in place gets a green check and learns about the mismatch only when the operator's restart fails.

### Where it maps

- `crates/registry-caseworkctl/src/project.rs`: `check` and `package`.
- `crates/registry-casework`: the startup manifest verification the runtime performs.

### Ask

When `caseworkctl check` is pointed at a directory containing `casework.package.json`, verify the manifest with the same rule the runtime applies (every listed file present with its digest, no extra file beside them) and report the first difference by file name, before the policy checks. Keep the plain-project path unchanged. The configure how-to currently warns about this under a caution; that sentence can go once the check reports it.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne in crates/registry-caseworkctl/src/project.rs, indem du die Prüf- und Paketpfade liest, und vergleiche sie anschließend mit der Manifest-Verifizierung beim Start in crates/registry-casework. Als erledigt gilt die Aufgabe, wenn paketierte Verzeichnisse fehlende, geänderte oder zusätzliche Dateien ablehnen und dabei die erste abweichende Datei nennen, während Prüfungen für plain-project unverändert bleiben; entferne den veralteten configure-how-to-Hinweis.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
78/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.