Skip to content

Commit 00b83b9

Browse files
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

‎.github/workflows/learning-loop.yml‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ jobs:
4040
echo "🧠 Generating rule proposals from observed patterns..."
4141
bash fleet-coordinator.sh generate-rules
4242
43-
- name: Upload rule proposals
44-
if: always()
45-
uses: actions/upload-artifact@v7.0.2
46-
with:
47-
name: rule-proposals
48-
path: shared-context/learning/rule-proposals/*.lgt
49-
if-no-files-found: ignore
50-
5143
- name: Show learning summary
5244
run: |
5345
echo "## Learning Loop Summary" >> $GITHUB_STEP_SUMMARY
@@ -59,19 +51,6 @@ jobs:
5951
echo "- No observations yet" >> $GITHUB_STEP_SUMMARY
6052
fi
6153
62-
if [ -d shared-context/learning/rule-proposals ]; then
63-
PROPOSALS=$(find shared-context/learning/rule-proposals -name "*.lgt" | wc -l)
64-
echo "- Rule proposals: $PROPOSALS" >> $GITHUB_STEP_SUMMARY
65-
66-
if [ $PROPOSALS -gt 0 ]; then
67-
echo "" >> $GITHUB_STEP_SUMMARY
68-
echo "### Proposed Rules" >> $GITHUB_STEP_SUMMARY
69-
for rule in shared-context/learning/rule-proposals/*.lgt; do
70-
[ -f "$rule" ] && echo "- $(basename "$rule")" >> $GITHUB_STEP_SUMMARY
71-
done
72-
fi
73-
fi
74-
7554
deploy-approved-rules:
7655
name: Deploy Approved Rules to Hypatia
7756
runs-on: ubuntu-latest

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ pnpm-lock.yaml
154154
.editorconfig
155155
.env.*
156156
/exports/*.json
157-
/exports/*.lgt
158157
/logs/
159158
ai-cli-crash-capture/
160159
composer/*.beam

‎.machine_readable/descriptiles/NEUROSYM.a2ml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ last-updated = "2026-04-11"
1111
[hypatia-config]
1212
scan-enabled = true
1313
scan-depth = "standard" # quick | standard | deep
14-
report-format = "logtalk"
1514

1615
[symbolic-rules]
1716
# Custom symbolic rules for this project

‎audits/directive-census-2026-09-26/REPORT.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Remote snapshots are pinned individually, not a simultaneous estate-wide snapsho
6464

6565
### 3. Hypatia's local instructions conflict with the fleet's old learning output
6666

67-
[Hypatia AGENTIC](https://github.com/hyperpolymath/hypatia/blob/9f2f62f5c9463c79b33a5ebf54372166ce56f349/.machine_readable/descriptiles/AGENTIC.a2ml) explicitly prohibits Logtalk, says rules are pure Elixir, and prohibits emitting JSON from its tooling. It requires evidence, reruns and behavioral tests, and declares automation rate/confidence constraints.
67+
[Hypatia AGENTIC](https://github.com/hyperpolymath/hypatia/blob/9f2f62f5c9463c79b33a5ebf54372166ce56f349/.machine_readable/descriptiles/AGENTIC.a2ml) explicitly prohibits the retired rule language, says rules are pure Elixir, and prohibits emitting JSON from its tooling. It requires evidence, reruns and behavioral tests, and declares automation rate/confidence constraints.
6868

69-
The audited fleet coordinator still generates Logtalk `.lgt` proposals and has a publication path to Hypatia. Its local quarantine now blocks that route; the census did not deploy that block.
69+
The audited fleet coordinator still generated rule-file proposals (the generator has since been removed) and had a publication path to Hypatia. Its local quarantine now blocks that route; the census did not deploy that block.
7070

7171
The same AGENTIC file references retired `6a2` locations while acknowledging the newer `descriptiles` convention. **Do not automatically resolve this by deleting the local constraints or regenerating the file.** Separate the obsolete location reference from still-binding substantive prohibitions.
7272

‎audits/fleet-wiring-2026-09-26.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ No centralized repository-policy reconciliation across all these entry points wa
8989

9090
`tests/e2e.sh` describes and primarily checks repository structure, shell syntax and required configuration. A passing “E2E Tests” run is not proof of dispatch → bot execution → changed target → verification → published check/PR.
9191

92-
The learning workflow explicitly disables `deploy-approved-rules`; the coordinator's generic generated Logtalk detector contains a TODO and an unconditional `fail`. Generated proposals are not necessarily functioning new detectors.
92+
The learning workflow explicitly disables `deploy-approved-rules`; the coordinator's generic generated detector contained a TODO and an unconditional `fail`. Generated proposals are not necessarily functioning new detectors.
9393

9494
## Live GitHub observations and limits
9595

‎bots/finishingbot/ROADMAP.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ This roadmap outlines the development plan for finishing-bot, the release readin
9191
**Target:** 2026-Q3
9292

9393
=== Hypatia Integration
94-
* Logtalk rule-based validation
94+
* Rule-based validation (Hypatia rules)
9595
* Formal verification of release criteria
9696
* Proof-carrying code validation
9797
* Rule synthesis from validation history

‎bots/glambot/bot-integration/src/glambot_findings.lgt‎

Lines changed: 0 additions & 148 deletions
This file was deleted.

‎docs/BOT-OPERATIONS.adoc‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ coordination layer:
7272
|`+process-findings+` |Process `+findings/<repo>/latest.json+`, dispatch
7373
auto-fixes, trigger learning
7474

75-
|`+generate-rules+` |Analyze pattern frequency, propose Logtalk rules at
75+
|`+generate-rules+` |Analyze pattern frequency, (retired) rule proposals at
7676
threshold (5+ observations)
7777

7878
|`+deploy-bots+` |Generate deployment status JSON
@@ -84,7 +84,7 @@ threshold (5+ observations)
8484

8585
....
8686
Findings → observed-patterns.jsonl → threshold (5+) → propose_new_rule()
87-
→ Logtalk rule in learning/rule-proposals/ → create_rule_approval_pr()
87+
→ (retired: rule proposal and approval PR)
8888
→ Human reviews PR → Approved rule deployed to hypatia
8989
....
9090

@@ -366,15 +366,15 @@ license/placeholder - Integration tests
366366
|*Purpose* |Neurosymbolic CI/CD intelligence platform
367367
|*Repo* |`+hyperpolymath/hypatia+`
368368
|*Path* |`+$REPOS_DIR/hypatia/+`
369-
|*Tech* |Rust + Haskell + Logtalk/Prolog + Ada/SPARK
369+
|*Tech* |Rust + Haskell + Ada/SPARK
370370
|*Tier* |0 (Engine)
371371
|*Completion* |*70%*
372372
|*Dependencies* |None (coordinates everything)
373373
|===
374374

375375
*Components*: - *CLI* (Rust) - 7 commands: scan, deposit, withdraw,
376376
search, batch, fleet, hooks - *Registry* (Haskell) - Type-safe ruleset
377-
DSL, property-based testing - *Engine* (Logtalk) - Declarative rule
377+
DSL, property-based testing - *Engine* - Declarative rule
378378
execution, distillation - *Adapters* (Rust) - GitHub, GitLab, Bitbucket,
379379
Codeberg (SourceHut/Radicle pending) - *Data* (Rust) - ArangoDB graph
380380
DB, Dragonfly cache - *Fixer* (Rust) - Error catalog parser, issue
@@ -461,7 +461,7 @@ git-dispatcher (Central Coordination Hub)
461461
│ └── shared-context (Rust coordination library)
462462
│
463463
├── hypatia (Rules Engine, Engine tier)
464-
│ ├── Logtalk rules (symbolic reasoning)
464+
│ ├── Elixir rules (symbolic reasoning)
465465
│ ├── Haskell registry (type-safe verification)
466466
│ └── ArangoDB + Dragonfly (graph DB + cache)
467467
│

‎docs/archive/DOGFOODING-ANALYSIS.adoc‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public for transparency 3. Publish findings after patches deployed
5252
|===
5353
|Repo |Language |Unsafe Patterns Found |Severity |Can Self-Fix?
5454
|*hypatia* |Rust |27 unwrap calls |Medium |✅ YES
55-
|*gitbot-fleet* |Shell/Logtalk |3 getExn, 3 Obj.magic |Low |✅ YES
55+
|*gitbot-fleet* |Shell |3 getExn, 3 Obj.magic |Low |✅ YES
5656
|*rhodibot* |Rust |0 issues |None |✅ CLEAN
5757
|*echidnabot* |Rust |6 unwrap calls |Medium |✅ YES
5858
|*glambot* |Rust |1 unwrap call |Low |✅ YES
@@ -88,9 +88,6 @@ review before merging
8888
* [ ] *Add hypatia self-scan to CI/CD*
8989
** Workflow: `+.github/workflows/hypatia-self-scan.yml+`
9090
** Block merges if critical issues found
91-
* [ ] *Document all Logtalk predicates*
92-
** Many predicates in `+engine/scanner.lgt+` lack comments
93-
** Add usage examples for each rule in `+code-safety-lessons.lgt+`
9491
* [ ] *Test suite for learning engine*
9592
** Test observation thresholds (5 for proposal, 10 for auto-approve)
9693
** Test fix outcome tracking
@@ -101,9 +98,6 @@ review before merging
10198
* [ ] *Create proper Rust library crate*
10299
** Current structure mixes CLI, adapters, fixer, scanner
103100
** Separate: `+hypatia-core+`, `+hypatia-cli+`, `+hypatia-adapters+`
104-
* [ ] *Add SWI-Prolog installation to CI*
105-
** Currently using bash POC scanner
106-
** Full Logtalk validation requires SWI-Prolog
107101
* [ ] *Implement rule versioning*
108102
** Track which hypatia version generated each rule
109103
** Support rule deprecation and migration

‎docs/archive/NEW-PATTERNS-DEPLOYMENT-2026-02-06.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ reached for new patterns
137137
==== Immediate (Ready Now)
138138

139139
[arabic]
140-
. ✅ Generate Logtalk rule proposals for 3 new patterns
140+
. ✅ Generate rule proposals for 3 new patterns
141141
. ✅ Submit for ECHIDNA validation
142142
. ✅ Human review and approval
143143

0 commit comments

Comments
 (0)