Skip to content

RE bundle 3 (2026-11-20): file-system Request action, heal outcome logging, reset-script lint - #1124

Merged
dwolfson merged 11 commits into
mainfrom
claude/bundle3-2026-11-20
Nov 21, 2026
Merged

dwolfson merged 11 commits into
mainfrom
claude/bundle3-2026-11-20

Conversation

@dwolfson

Copy link
Copy Markdown
Owner

The 2026-11-20 RE bundle 3. Four read-back items, merged with merge commits; TR-111 is stacked on TR-103. Rocky built them with qwen3-coder-next in the improved tool loop (tests written first, diff guard on). TR-87 was rewritten by hand after the model failed it.

  • TR-87: "Request action" on a file-system finding (manual first). A person presses it on one of four allowlisted findings:

    • world-readable sensitive files and world-writable files (fs_permissions);
    • duplicates (fs_duplicates);
    • cold data (fs_activity).

    The button shows only when the finding is measured with a count above 0. The press re-reads the stored result and files one RequestForActionAnnotation on RE's own SurveyReport for that step run, keyed <step>::<finding>::<step_run_id>. A second press says "nothing new". The local RFA row is written only after Egeria succeeds; a failed create returns 502 and writes no row. It's a separate button from the publish choice and never changes it. Running a step files nothing on its own.

  • TR-101: clear_egeria_pointers_after_reset.py binds the exception's type name before the lambda (lint hygiene; no change in behaviour).

  • TR-103: RE's bootstrap logs one outcome line per batch heal, after the canary re-check:

    • "healed · N files · … · canary verified";
    • "heal ran but the canary is still missing" (warning);
    • "not verified (could not reach Egeria)";
    • "heal failed · …".
  • TR-111: the bootstrap result map agrees with the log. A heal whose canary is still missing is "failed", not "healed".

Gate b476, on tree c599e6c0 (identical to this branch's tree):

  • RE main suite: 15,758 passed, 0 failed.
  • JS harness: exit 0. Analytics: 294/0.
  • Other packages: no new failures.

Every commit is signed, with Signed-off-by only.

Owner proofs after the 8813 deploy:

  • TR-87: press a finding once (one RFA annotation plus one drawer row), then again ("nothing new").
  • TR-103: the next RE start logs the heal outcomes.

Signed-off-by: Dan Wolfson dan.wolfson@pdr-associates.com

🤖 Generated with Claude Code

A person presses "Request action" on a finding row of Curate's publish table
(publish-table.js, rows from publish_table.build_rows); once per finding, it
becomes one RequestForActionAnnotation on that step run's SurveyReport.

- fs_findings.FS_RFA_FINDINGS is the one allowlist (fs_permissions
  world_readable_sensitive and world_writable, fs_duplicates, fs_activity cold);
  offered and accepted only when the stored result is measured and > 0. The
  server re-reads the stored result (409 when absent, stale, not measured, 0).
- POST /api/filesystems/{slug}/findings/request-action: publish permission,
  allowlist 400, re-read 409, fs-in-Egeria 409, Egeria write, then the local
  row (log_rfa, deduped by finding key). Caller identity throughout.
- EgeriaFileSystemSurveyor.request_action_for_finding: report per step run
  found by name and reused, stable annotation name, _held_annotation_names,
  nothing_new; an empty GUID from the shared publisher is a failure.
- The press is its own button and endpoint; it never reads or writes the
  Publish / Keep in RE choice, and a "Keep in RE only" row still offers it.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
clear_egeria_pointers_after_reset.apply_plan read `exc` inside a lambda in its
except block; ruff reports F821 because Python unbinds `exc` when the block
ends. The type name is now a plain local before the lambda; the row's wording
is unchanged. A source-level test (ruff is not installed in CI) pins it.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
check_and_heal logged only 'missing — healing (N file(s))'. It now logs one
line per batch heal: 'healed · N files · checks: <post-heal words>' or
'heal failed · <why>' (a warning). A post-heal check that exits 0 reports its
own verdict (its last output line, e.g. '10 declared · 10 ok · drift 0')
instead of just 'reconciled'.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…s:' label

The Architect's read-back: 'checks:' labelled the whole heal answer (and a bare
'ok'), and 'healed' was logged before the canary re-check.

One line per heal, after the re-check:
  verified     healed · N files[ · words] · canary verified
  still absent heal ran but the canary is still missing[ · words] (warning)
  unreadable   healed · N files · not verified (could not reach Egeria)[ · words]
  failed       heal failed · why (warning)
A bare 'ok' answer is not logged as words.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
check_and_heal answered action 'healed' even when the canary re-check said the
canary is still missing. Now:
  heal failed                       failed  (reason: the heal's words)
  re-check True                     healed
  re-check False                    failed  'heal ran but the canary is still
                                            missing[ · words]'
  re-check None (Egeria unreachable) healed 'not verified (could not reach
                                            Egeria)' in the reason
Tests that assumed 'healed' with a canary that never came back now fake
missing-then-present.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…roof)

The report was created with additionalProperties annotation_count '1'; after a
second finding on the same step run it held two. The count is dropped rather
than kept in step: nothing reads it, and a stale count is worse than none.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…2026-11-20 bundle 3

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 99553ea into main Nov 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant