Repository navigation
Commit 00b83b9
chore: remove Logtalk files and mentions (#697)
## Summary
Owner ruling: eliminate Logtalk completely, including the mention of it.
This removes every Logtalk rule file and the generator, report and
workflow code that wrote or read them, and records what the rules
detected before they go.
## What was deleted
- `bots/glambot/bot-integration/src/glambot_findings.lgt`
-
`shared-context/learning/approved-rules/{eval_usage,technical_debt,unsafe_without_doc}.lgt`
-
`shared-context/learning/approved-rules/{eval_usage,technical_debt,unsafe_without_doc}.lgt.meta`
(approval sidecars; the glob in the task did not match them, they are
part of the same rules)
-
`shared-context/learning/rule-proposals/{eval_usage,getexn_on_external_data,technical_debt,type_safety_bypass,unsafe_crash,unsafe_panic,unsafe_without_doc}.lgt`
- `fleet-coordinator.sh`: `propose_new_rule()` (generator with four rule
templates) and `create_rule_approval_pr()` (cloned hypatia, pushed a
branch, opened a PR, enabled auto-merge), plus the call sites in
`learn_from_findings()` and `generate_rules()`
- `learning-monitor.sh`: the "Rule Proposals" section and the two "next
actions" hints that pointed at it
- `.github/workflows/learning-loop.yml`: the "Upload rule proposals"
step and the proposals block of the summary step
- `.gitignore`: `/exports/*.lgt`
## What was edited
- `fleet-coordinator.sh`: header comment, `usage()` line for
`generate-rules`, a comment in `learn_from_findings()`.
- Docs and audits reworded to drop the mention:
`docs/BOT-OPERATIONS.adoc`, `docs/archive/DOGFOODING-ANALYSIS.adoc`,
`docs/archive/NEW-PATTERNS-DEPLOYMENT-2026-02-06.adoc`,
`bots/finishingbot/ROADMAP.adoc`,
`audits/directive-census-2026-09-26/REPORT.md`,
`audits/fleet-wiring-2026-09-26.md`,
`shared-context/findings/security-audit-20260125.md`,
`shared-context/learning/{ECHIDNA-VALIDATION-SUMMARY,RULE-PROPOSALS-2026-02-06}.adoc`.
In the dated reports only the Logtalk wording and `.lgt` file names
changed.
- Three `NEUROSYM.a2ml` files (`.machine_readable/descriptiles/`,
`robot-repo-automaton/.machine_readable/6a2/`,
`robot-repo-automaton/templates/skeleton/.machine_readable/descriptiles/`):
the line `report-format = "logtalk"` removed, nothing else. Each remains
valid TOML. Nothing in this repo reads the key. (Hypatia's own ledger
replaced the value with `"json"`; I did not add that, since the rule is
never to add to an `.a2ml`.)
- New: `shared-context/learning/RETIRED-LOGTALK-RULES.adoc` (plain
AsciiDoc, `CC-BY-SA-4.0`), the record described below.
## Trace: what read or wrote the rule files
Writers:
1. `fleet-coordinator.sh` `process_findings` -> `learn_from_findings` ->
`propose_new_rule` wrote `rule-proposals/<type>.lgt` once a pattern type
reached 5 observations; in CI it then called `create_rule_approval_pr`
(PR into hypatia, auto-merge).
2. `fleet-coordinator.sh generate-rules` -> `generate_rules` called
`propose_new_rule` per pattern type.
3. The `approved-rules/*.lgt` files were hand-moved copies of three
proposals; the `.meta` sidecars were approval notes.
Readers:
1. `learning-loop.yml`: uploaded `rule-proposals/*.lgt` as an artifact
and listed them in the step summary.
2. `learning-monitor.sh`: counted proposals and compared them with a
hypatia `engine/rules/auto-learned/` directory that no longer exists.
3. Nothing read `approved-rules/*.lgt` or `glambot_findings.lgt`. The
`deploy-approved-rules` job is `if: false`, and the glambot file's JSON
ingestion was a placeholder that returned nothing.
Entry points were already dead: `process_findings`, `generate_rules` and
`deploy_bots` return 78 (`BLOCKED`) before any of this code, per
`docs/AUTOMATION-QUARANTINE.adoc`. So no live behaviour is removed.
Deleting the generator also removes the dormant PR-and-auto-merge path
into hypatia.
## Where each rule went
Hypatia (`lib/rules/`, read at `6f3f16f`; I read the Elixir and did not
run it):
| Retired rule | Hypatia rule | Coverage |
|---|---|---|
| `unsafe_without_doc` | `code_safety.ex` `unsafe_block` +
`reject_excused_unsafe` | covered; severity and accepted comment
keywords differ |
| `getexn_on_external_data` (draft) | `code_safety.ex`
`getexn_on_external` | covered |
| template `unpinned_action` | `cicd_rules.ex` `unpinned_action`
(canonical: WH004 in `workflow_hardening.ex`) | covered |
| template `missing_permissions` | `cicd_rules.ex` `missing_permissions`
| covered |
| template `missing_spdx` | `cicd_rules.ex` `missing_spdx` | covered |
| `eval_usage` | `code_safety.ex` `js_eval` | partial: direct `eval(`
only |
| `technical_debt` | `honest_completion.ex` (TODO and FIXME counts),
`baseline_health.ex` BH002 | partial: no HACK/XXX/BUG, no per-marker
finding or priority |
No equivalent, recorded in `RETIRED-LOGTALK-RULES.adoc` (name, pattern,
what it flagged): `eval_usage` Function-constructor and string
`setTimeout`/`setInterval` checks, the test/production severity split
and the CSP suggestion; `technical_debt` HACK/XXX/BUG markers,
priorities and the 50-marker threshold; the glambot findings bridge
(presentation-debt, fleet-wide-pattern and related predicates).
`type_safety_bypass`, `unsafe_crash`, `unsafe_panic` and the generic
template were stubs whose detection clause ended in `fail`; there is
nothing to port, and the record says so. I did not invent a new rule
format.
## Checks run
- `bash -n fleet-coordinator.sh learning-monitor.sh`: OK.
- `shellcheck`: `fleet-coordinator.sh` 105 -> 90 findings,
`learning-monitor.sh` 1 -> 0. No new finding; the rest pre-date this
change.
- `bash tests/automation-quarantine-test.sh`: all PASS, including
`generate-rules` exiting 78 with `BLOCKED:`.
- `actionlint`: not installed, not run. `yq` parses the edited workflow.
- `git grep -n -i -I 'logtalk\|\.lgt\b'` on the committed tree: empty.
## Needs your decision (not guessed)
- `learning-loop.yml` still runs `process-findings` and
`generate-rules`. Both exit 78 by design, so the workflow already fails
visibly; I left that alone. `generate-rules` now has no function behind
it. Retire the command, the steps and the `deploy-approved-rules` job
together if you want.
- `shared-context/learning/rule-deployment-status.json` still lists the
approved rules (a data record, no Logtalk text); left as is.
- Hypatia itself still has `logtalk_name` fields in
`lib/rules/audit_prevention.ex` (outside this change).
## Kept, with reason
- The file name `shared-context/learning/RETIRED-LOGTALK-RULES.adoc`:
the name was specified by the task. Its content does not use the word or
the extension, and no other file links to it by name, so the grep stays
empty.
---
_Generated by [Claude
Code](https://claude.ai/code/session_0165rGu3tsKmJtevmrdMVyfJ)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent e8d17bb commit 00b83b9
31 files changed
Lines changed: 187 additions & 1567 deletions
File tree
- .github/workflows
- .machine_readable/descriptiles
- audits
- directive-census-2026-09-26
- bots
- finishingbot
- glambot/bot-integration/src
- docs
- archive
- robot-repo-automaton
- .machine_readable/6a2
- templates/skeleton/.machine_readable/descriptiles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 43 | | |
52 | 44 | | |
53 | 45 | | |
| |||
59 | 51 | | |
60 | 52 | | |
61 | 53 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 54 | | |
76 | 55 | | |
77 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
| |||
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 101 | | |
108 | 102 | | |
109 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments