Files
sergio b83d40a833 refactor(naming): A1 — ente→arje, vista→revista, pluma→fana
Rename batch de la Fase A del PLAN_MACRO:
- 25 crates ente-* → arje-* (protocol/init/runtime/compat). El linaje
  arje (init Linux) queda con prefijo coherente.
- vista → revista (revista-core + revista-web).
- pluma → fana (fana-md + fana-md-reader-web). fana absorbe el linaje
  markdown de pluma; será el writer DAG editor (prioridad alta).

Cambios:
- git mv de 29 crate dirs + 2 SDDs
- package/lib/bin names + path refs + imports .rs reescritos
- workspace Cargo.toml + comentarios de sección
- SDDs de init/runtime/compat/protocol actualizados a arje-
- SDD de revista + SDD de fana (reescrito: writer DAG editor)
- docs/STATUS.md, ROADMAP.md, PLAN_MACRO.md, arje-boot.md,
  arje-replace-systemd.md actualizados
- docs/changelog/akasha.md → chasqui.md

scripts/rename-fase-a.py idempotente (--dry-run soportado).
cargo check --workspace verde.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 00:10:14 +00:00

45 lines
2.4 KiB
Markdown

# compat/ — Shims D-Bus systemd
**Propósito.** Permitir que software systemd-aware (GNOME, KDE,
PolicyKit, NetworkManager, etc.) corra sobre `arje-zero` sin systemd.
Cada shim es un binario standalone que se anuncia con un nombre
well-known D-Bus y traduce las llamadas al bus interno.
## Crates
| binario | reemplaza | D-Bus name |
| --------------------------- | --------------------- | ----------------------------------- |
| `arje-logind-compat` | systemd-logind | `org.freedesktop.login1` |
| `arje-hostnamed-compat` | systemd-hostnamed | `org.freedesktop.hostname1` |
| `arje-timedated-compat` | systemd-timedated | `org.freedesktop.timedate1` |
| `arje-localed-compat` | systemd-localed | `org.freedesktop.locale1` |
| `arje-journald-compat` | systemd-journald | `org.freedesktop.LogControl1` |
| `arje-resolved-compat` | systemd-resolved | `org.freedesktop.resolve1` |
| `arje-polkit-compat` | polkitd | `org.freedesktop.PolicyKit1` |
| `arje-machined-compat` | systemd-machined | `org.freedesktop.machine1` |
| `arje-systemd1-compat` | systemd Manager | `org.freedesktop.systemd1` |
| `arje-notify-compat` | sd_notify socket | `/run/systemd/notify` (datagram) |
| `arje-timer-compat` | systemd timers | (cron-like, sin D-Bus) |
| `arje-tmpfiles-compat` | systemd-tmpfiles | (aplica tmpfiles.d al boot) |
| `arje-binfmt-compat` | systemd-binfmt | (registra handlers binfmt_misc) |
| `arje-policy-provider` | (interno) | provider de decisiones polkit |
## Dependencias
- Todos ← `zbus`, `arje-bus`, `protocol/brahman-card`. Sin tests
(esperado: stubs D-Bus que delegan al bus interno).
## Patrón común
Cada shim:
1. Se conecta a `/run/brahman/bus`.
2. Reclama un well-known name vía zbus.
3. Implementa los métodos de la interfaz mínima usada por el ecosistema.
4. Loggea eventos al audit log de `arje-brain`.
## Estado
LOC ~5K total (~300 LOC c/u). Suficiente para que `desktop-file-utils`,
`xdg-open`, login managers, y CLIs systemd-aware no rompan. Pendiente:
cobertura de métodos avanzados (Inhibit en logind, SetVariable en localed).