Switch agents to chat-driven knowledge sync

This commit is contained in:
krustophski 2026-05-30 13:46:26 +03:00
parent 068595a9f3
commit 511263eafa
18 changed files with 444 additions and 204 deletions

View file

@ -23,16 +23,32 @@ At the beginning of work:
Every agent should follow this loop:
1. Load context from this repository.
1. Pull or fetch the latest repository state when possible, then load context from this repository.
2. Do the requested work.
3. Identify what was learned.
4. Separate global reusable knowledge from project-specific state.
5. Save reusable knowledge in `skills/`, `problems/`, or `locations/`.
6. Update project files: `technical-spec.md`, `status.md`, `repositories.md`, `decisions.md`, and `agent-log.md` as needed.
7. Commit and push the memory update when repository access is available.
7. Add or update a compact dialogue summary when the current chat contains durable decisions, solved problems, requirements, or project state.
8. Commit and push the memory update to GitHub when repository access is available.
9. Pull or fetch again before continuing if other agents may also be writing to the knowledge base.
The agent should not wait for a separate instruction to update memory when a durable lesson, requirement change, project status change, or solved problem appears during work.
## Current Operating Mode: Chat-Driven GitHub Sync
This repository is the primary coordination and memory channel. The current default mode is manual/chat-driven synchronization, not realtime daemon synchronization.
Rules:
1. When the user gives an agent this repository link, the agent must read the repository, infer the active project and machine context, and continue from the latest files.
2. After every meaningful operation, fix, decision, project-state change, or dialogue handoff, the agent must update the appropriate Markdown files and push the update to GitHub when access is available.
3. If an agent also writes knowledge to a local clone, a local project repository, or the local Git server, it must duplicate the durable knowledge into this GitHub knowledge base.
4. Realtime heartbeats, polling daemons, scheduled knowledge uploads, and automatic after-reboot sync loops are disabled by default.
5. Existing `garage-agent-runner-*` scheduled tasks should be disabled unless the user explicitly asks for a live runner or monitor.
6. `agent-bus/heartbeats/`, `agent-bus/commands/`, and `agent-bus/results/` are historical or on-demand diagnostic mechanisms, not the current source of live truth.
7. Normal OS services such as SSH, VNC, Git, and local credential stores may remain enabled and configured for autostart.
## Access Requirement
A repository URL is enough to identify this knowledge base, but it is not enough to read or write a private repository.

View file

@ -2,19 +2,21 @@
This folder is the optional asynchronous command and status bus for machines that participate in multi-agent work.
Current default: do not run realtime polling, scheduled heartbeat updates, or persistent `garage-agent-runner` tasks. Use this folder only for historical records or explicit on-demand diagnostics. Normal coordination happens through chat-driven GitHub commits to the knowledge base.
## Structure
- `commands/<machine>/` - requested tasks for a machine.
- `results/<machine>/` - task results written by that machine.
- `heartbeats/<machine>.md` - last known machine state.
- `heartbeats/<machine>.md` - last known machine state, historical/on-demand only.
- `locks/` - lock files for running tasks.
## Rules
- Do not store secrets.
- Prefer SSH for live control.
- Use this bus for durable, auditable handoff.
- Machine daemons must execute only allowed command types.
- Use this bus for durable, auditable on-demand handoff when explicitly requested.
- Persistent machine daemons are disabled by default; if used temporarily, they must execute only allowed command types.
- Results should link to project files, commits, logs, or summaries.
## Windows Runner Allowlist
@ -27,4 +29,3 @@ The current Windows runner accepts:
- `setup-remote-access`
`setup-remote-access` is intentionally narrow: it installs/verifies the documented OpenSSH/TightVNC baseline only when the runner is elevated. It must not store VNC passwords, SSH private keys, GitHub tokens, camera credentials, or remote-desktop credentials.

View file

@ -0,0 +1,28 @@
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$tasks = Get-ScheduledTask -TaskName "garage-agent-runner*" -ErrorAction SilentlyContinue
if (-not $tasks) {
Write-Output "No garage-agent-runner scheduled tasks found."
exit 0
}
$results = foreach ($task in $tasks) {
try {
Stop-ScheduledTask -TaskName $task.TaskName -TaskPath $task.TaskPath -ErrorAction SilentlyContinue
} catch {
Write-Warning "Could not stop $($task.TaskPath)$($task.TaskName): $($_.Exception.Message)"
}
Disable-ScheduledTask -TaskName $task.TaskName -TaskPath $task.TaskPath | Out-Null
$updated = Get-ScheduledTask -TaskName $task.TaskName -TaskPath $task.TaskPath
[pscustomobject]@{
TaskPath = $updated.TaskPath
TaskName = $updated.TaskName
State = $updated.State
}
}
$results | Format-Table -AutoSize

View file

@ -0,0 +1,58 @@
# Dialogue Summary: Chat-Driven Knowledge Sync
## Date
2026-05-30
## Source
- Agent: Codex on current Mac.
- Machine: current repository workspace.
- Dialogue/context: User changed the desired behavior for the shared agent knowledge base.
## Project
`garage` and global agent knowledge workflow.
## User Goal
Stop constant realtime updates and background heartbeats, while preserving all useful knowledge across chats, computers, and projects through GitHub commits.
## Decisions
- GitHub `krustophski/agent-knowledge-base` remains the primary durable memory.
- A repository link pasted into any agent chat is the trigger to read context and continue work.
- Agents must update Markdown knowledge after meaningful operations and push to GitHub.
- Durable knowledge written locally or to the local Git server must also be duplicated to the GitHub knowledge base.
- Realtime heartbeat polling, scheduled `garage-agent-runner` tasks, and automatic after-reboot knowledge uploads are disabled by default.
- SSH, VNC, Git, and local key/credential services remain normal machine services.
## Current State
- The repository now documents chat-driven GitHub synchronization as the default workflow.
- `garage-agent-runner` is treated as a legacy/on-demand diagnostic tool, not the normal coordination layer.
- A Windows helper script exists to disable `garage-agent-runner-*` scheduled tasks.
## Next Actions
- Paste the current default garage prompt into Codex on `pump`, `qore`, and `wuu`.
- On each machine, disable existing `garage-agent-runner-*` scheduled tasks unless the user explicitly asks for live monitoring.
- Continue verifying SSH, VNC, GitHub push access, and local Git server access through the normal chat-driven workflow.
## Knowledge Base Updates
- `AGENTS.md`
- `skills/chat-driven-knowledge-sync.md`
- `skills/self-learning-agent-loop.md`
- `skills/multi-agent-github-coordination.md`
- `skills/multi-machine-agent-orchestration.md`
- `skills/repository-memory.md`
- `projects/garage/status.md`
- `projects/garage/technical-spec.md`
- `projects/garage/orchestration.md`
- `projects/garage/computers.md`
- `projects/garage/agent-prompts.md`
- `projects/garage/decisions.md`
- `projects/garage/agent-log.md`
- `agent-bus/README.md`
- `agent-bus/runners/windows/disable-garage-agent-runner.ps1`

View file

@ -20,4 +20,9 @@ YYYY-MM-DD-short-topic.md
## Current Entries
- None yet.
- `2026-05-24-kamaz-ndi-android-display.md`
- `2026-05-24-projectionmapping-wuu-calibration.md`
- `2026-05-24-wuu-projectionmapping-kinect-calibration.md`
- `2026-05-26-kamaz-ndi-android-display-fullscreen.md`
- `2026-05-26-kamaz5360-chaos-vehicle.md`
- `2026-05-30-chat-driven-knowledge-sync.md`

View file

@ -1,5 +1,13 @@
# Garage Agent Log
## 2026-05-30 - Chat-Driven Knowledge Sync Operating Model
- Machine: current Codex Mac.
- Agent: Codex.
- Summary: Applied the user's updated coordination model: agents now use the repository link as a chat-start trigger, pull/read context, work locally, update durable Markdown knowledge after meaningful operations, and push to GitHub. Realtime heartbeat polling, scheduled `garage-agent-runner` tasks, and automatic after-reboot knowledge uploads are disabled by default.
- Files changed: Updated global instructions, self-learning and orchestration skills, garage status/spec/orchestration/prompts/decisions, and agent-bus documentation; added `skills/chat-driven-knowledge-sync.md` and `agent-bus/runners/windows/disable-garage-agent-runner.ps1`.
- Next handoff: Paste the current default prompt from `projects/garage/agent-prompts.md` into Codex on `pump`, `qore`, and `wuu`. Each machine should disable any existing `garage-agent-runner-*` scheduled task unless the user explicitly asks for live monitoring, while keeping SSH/VNC/Git services available.
## 2026-05-26 - qore KAMAZ 5360 Rollback Point "пустой камаз"
- Machine: `qore`.

View file

@ -6,6 +6,49 @@ Copy these prompts into local Codex sessions on the target computers when direct
Do not paste passwords, VNC credentials, SSH private keys, GitHub tokens, camera credentials, RustDesk/AnyDesk credentials, or Windows share credentials into Codex or into this repository.
## Current Default Prompt For Any Garage Computer
Use this short prompt first on `pump`, `wuu`, or `qore`.
```text
Открой private GitHub repo с базой знаний агентов:
https://github.com/krustophski/agent-knowledge-base
Активный проект: garage.
Сначала прочитай:
- AGENTS.md
- skills/chat-driven-knowledge-sync.md
- skills/multi-machine-agent-orchestration.md
- projects/garage/status.md
- projects/garage/technical-spec.md
- projects/garage/orchestration.md
- projects/garage/computers.md
- projects/garage/repositories.md
Важное текущее правило: НЕ запускай realtime heartbeat, НЕ включай scheduled/persistent garage-agent-runner, НЕ делай автоматические knowledge uploads после reboot. Если на этом компьютере есть scheduled task garage-agent-runner-*, отключи его через:
powershell -NoProfile -ExecutionPolicy Bypass -File .\agent-bus\runners\windows\disable-garage-agent-runner.ps1
SSH, VNC, Git и локальные ключи/credential store оставь как обычные сервисы машины. Если они не работают, чини их и документируй результат.
Рабочий цикл:
1. git pull или git fetch/rebase для agent-knowledge-base.
2. Определи hostname, текущий computer role и актуальную задачу.
3. Выполни работу пользователя.
4. После каждого значимого результата обнови Markdown knowledge в GitHub repo:
- dialog-summaries/ если этот чат содержит важный контекст;
- projects/garage/status.md;
- projects/garage/technical-spec.md если поменялись требования;
- projects/garage/repositories.md если поменялась карта репозиториев;
- projects/garage/agent-log.md;
- skills/, problems/, locations/ для reusable знаний.
5. git add/commit, затем git pull --rebase origin main, затем git push origin main.
Любые локальные заметки или изменения в локальном Git server 192.168.1.66 должны дублироваться в основной GitHub knowledge base. Пароли, VNC passwords, SSH private keys, tokens и содержимое local .vnc файлов не печатай и не коммить.
```
## Final Connectivity Verification Prompt
Use this prompt on each garage computer: `pump`, `wuu`, and `qore`.
@ -26,6 +69,7 @@ https://github.com/krustophski/agent-knowledge-base
- projects/garage/orchestration.md
- projects/garage/computers.md
- projects/garage/repositories.md
- skills/chat-driven-knowledge-sync.md
- skills/multi-machine-agent-orchestration.md
- skills/windows-remote-access-baseline.md
- skills/remote-visual-access.md
@ -35,8 +79,9 @@ https://github.com/krustophski/agent-knowledge-base
Главная задача: выполнить финальную проверку связности между компьютерами garage, чтобы pump, wuu и qore могли работать друг с другом:
- по SSH для команд и Git;
- по VNC для просмотра и управления экраном;
- через GitHub agent-bus для асинхронных команд/heartbeat;
- через GitHub knowledge-base commits для общих знаний, статуса и handoff;
- с доступом к локальным garage-репозиториям на своих машинах.
- Не использовать realtime heartbeat или persistent garage-agent-runner как основной режим.
Сетевое правило:
- Используй только локальные LAN-адреса `192.168.1.x` сети `192.168.1.0/24` для связи между pump, wuu и qore.
@ -67,19 +112,12 @@ https://github.com/krustophski/agent-knowledge-base
6. git user.name / user.email
7. GitHub push access к krustophski/agent-knowledge-base
Проверь локальный garage-agent-runner:
1. Найди scheduled task garage-agent-runner-<machine>.
2. Если его нет или он старый, установи/обнови:
powershell -NoProfile -ExecutionPolicy Bypass -File .\agent-bus\runners\windows\install-garage-agent-runner.ps1 -Machine <pump|qore|wuu> -RepoPath <local-agent-knowledge-base-path> -StartNow
3. Если нужен remote-access setup, запусти из elevated PowerShell и попроси пользователя подтвердить UAC.
4. Проверь, что heartbeat обновляется в agent-bus/heartbeats/<machine>.md.
5. Проверь, что command/result цикл работает: создай или обработай безопасный ping/inventory command только для своей машины и убедись, что появился result.
6. Настрой самовосстановление runner:
- scheduled task должен быть enabled;
- task должен запускаться при старте/логине или с коротким repetition interval;
- task должен иметь StartWhenAvailable;
- если task остановлен или пропал, агент должен создать его заново;
- если runner не обновляет heartbeat, агент должен перезапустить task и записать проблему в agent-log/status.
Проверь, что realtime runner отключён:
1. Найди scheduled task garage-agent-runner-*.
2. Если task существует, отключи его:
powershell -NoProfile -ExecutionPolicy Bypass -File .\agent-bus\runners\windows\disable-garage-agent-runner.ps1
3. Не устанавливай и не включай persistent/scheduled runner без отдельной явной просьбы пользователя.
4. agent-bus/heartbeats и старые command/result файлы считай historical/on-demand diagnostics, не live status.
Проверь SSH:
1. Локально проверь OpenSSH Server:
@ -125,7 +163,7 @@ https://github.com/krustophski/agent-knowledge-base
7. Если VNC server отсутствует, установи TightVNC Server как гаражный Windows baseline, включи service/autostart/firewall TCP 5900, затем интерактивно проверь пароль. Не записывай пароль.
Проверь автовосстановление критичных сервисов:
1. Критичные сервисы: garage-agent-runner scheduled task, sshd, ssh-agent, TigerVNC/TightVNC, GitHub push access for agent-knowledge-base.
1. Критичные сервисы: sshd, ssh-agent, TigerVNC/TightVNC, GitHub push access for agent-knowledge-base.
2. Для каждого сервиса запиши:
- installed yes/no;
- running yes/no;
@ -182,19 +220,19 @@ https://github.com/krustophski/agent-knowledge-base
Обнови файлы в agent-knowledge-base:
- locations/<machine>.md
- agent-bus/heartbeats/<machine>.md
- projects/garage/computers.md
- projects/garage/orchestration.md
- projects/garage/repositories.md
- projects/garage/status.md
- projects/garage/agent-log.md
- dialog-summaries/<date>-<topic>.md если этот чат содержит полезный контекст
Если найдена повторяемая проблема, добавь запись в problems/.
Если найден reusable workflow/fix, обнови или создай файл в skills/.
В конце сделай:
1. git pull --rebase origin main
2. git add обновлённые markdown/result/heartbeat файлы
2. git add обновлённые markdown файлы
3. git commit -m "Verify <machine> garage connectivity"
4. git pull --rebase origin main
5. git push origin main
@ -218,6 +256,7 @@ https://github.com/krustophski/agent-knowledge-base
First open and follow:
- AGENTS.md
- skills/chat-driven-knowledge-sync.md
- projects/index.md
- projects/garage/status.md
- projects/garage/technical-spec.md
@ -231,7 +270,9 @@ You are working on qore. Tasks:
1. Pull the latest main in the local agent-knowledge-base clone.
2. Verify this is qore: hostname, IPs, Windows version, current user.
3. Verify GitHub push access to krustophski/agent-knowledge-base.
4. Run the Windows remote-access baseline elevated:
4. Disable any scheduled `garage-agent-runner-*` task unless the user explicitly asks for live monitoring:
powershell -NoProfile -ExecutionPolicy Bypass -File .\agent-bus\runners\windows\disable-garage-agent-runner.ps1
5. Run the Windows remote-access baseline elevated:
- OpenSSH Server running/automatic, TCP 22 listening.
- ssh-agent running/automatic.
- For an admin Windows user, fix OpenSSH key login through C:\ProgramData\ssh\administrators_authorized_keys.
@ -239,21 +280,21 @@ You are working on qore. Tasks:
- TightVNC Server installed and running as service tvnserver.
- TCP 5900 listening for VNC.
- Firewall rules for 22, 5900, and optionally 5800 enabled.
5. If UAC/elevation is required, ask the user to approve it. Do not run destructive commands.
6. Use C:\Program Files\TightVNC\tvnserver.exe -configservice to set or verify the VNC password interactively. Do not store or print the password.
7. Verify SSH: post@localhost, post@<qore LAN IP>, and VPN IP if present.
8. Verify VNC: TCP 5900 listens locally and returns an RFB banner. Do not store credentials.
9. Check cameras/webcams on qore: PnP devices, DirectShow/ffmpeg if available, NDI virtual devices, and physical cameras if present.
10. Check local garage-related repositories and update:
6. If UAC/elevation is required, ask the user to approve it. Do not run destructive commands.
7. Use C:\Program Files\TightVNC\tvnserver.exe -configservice to set or verify the VNC password interactively. Do not store or print the password.
8. Verify SSH: post@localhost, post@<qore LAN IP>, and VPN IP if present.
9. Verify VNC: TCP 5900 listens locally and returns an RFB banner. Do not store credentials.
10. Check cameras/webcams on qore: PnP devices, DirectShow/ffmpeg if available, NDI virtual devices, and physical cameras if present.
11. Check local garage-related repositories and update:
- locations/qore.md
- agent-bus/heartbeats/qore.md
- projects/garage/computers.md
- projects/garage/repositories.md
- projects/garage/status.md
11. If you find a problem or reusable fix, add it to problems/ or skills/.
12. Commit and push all knowledge-base updates.
- projects/garage/agent-log.md
12. If you find a problem or reusable fix, add it to problems/ or skills/.
13. Commit, pull --rebase, and push all knowledge-base updates.
Important correction: do not install TigerVNC WinVNC server as the garage Windows baseline. The user corrected this on 2026-05-24: the other garage computers use TightVNC Server. qore previously processed setup-remote-access-v2 without elevation and wrote Elevated: False; now use an elevated local run or a scheduled task with highest privileges. Never store secrets.
Important correction: do not install TigerVNC WinVNC server as the garage Windows baseline. The user corrected this on 2026-05-24: the other garage computers use TightVNC Server. qore previously processed setup-remote-access-v2 without elevation and wrote Elevated: False; now use an elevated local run for SSH/VNC repair. Never store secrets.
```
## Prompt For wuu
@ -265,6 +306,7 @@ https://github.com/krustophski/agent-knowledge-base
First open and follow:
- AGENTS.md
- skills/chat-driven-knowledge-sync.md
- projects/index.md
- projects/garage/status.md
- projects/garage/technical-spec.md
@ -278,7 +320,9 @@ You are working on wuu. Tasks:
1. Pull the latest main in C:\git\agent-knowledge-base.
2. Verify this is wuu: hostname, IPs, Windows version, current user.
3. Verify GitHub push access to krustophski/agent-knowledge-base.
4. Verify or complete the Windows remote-access baseline elevated:
4. Disable any scheduled `garage-agent-runner-*` task unless the user explicitly asks for live monitoring:
powershell -NoProfile -ExecutionPolicy Bypass -File .\agent-bus\runners\windows\disable-garage-agent-runner.ps1
5. Verify or complete the Windows remote-access baseline elevated:
- OpenSSH Server running/automatic, TCP 22 listening.
- ssh-agent running/automatic.
- For an admin Windows user, fix OpenSSH key login through C:\ProgramData\ssh\administrators_authorized_keys.
@ -286,31 +330,31 @@ You are working on wuu. Tasks:
- TightVNC Server installed and running as service tvnserver.
- TCP 5900 listening for VNC.
- Firewall rules for 22, 5900, and optionally 5800 enabled.
5. If UAC/elevation is required, ask the user to approve it. Do not run destructive commands.
6. Use C:\Program Files\TightVNC\tvnserver.exe -configservice to set or verify the VNC password interactively. Do not store or print the password.
7. From wuu, re-check pump access:
6. If UAC/elevation is required, ask the user to approve it. Do not run destructive commands.
7. Use C:\Program Files\TightVNC\tvnserver.exe -configservice to set or verify the VNC password interactively. Do not store or print the password.
8. From wuu, re-check pump access:
- DNS/IPs for pump.
- 192.168.1.39:22 should return SSH.
- 192.168.1.39:5900 should return RFB/VNC.
8. Check qore access: LAN/VPN IPs, ports 22, 5900, 3389, and 445. Treat SSH/VNC as verified only if the expected SSH/RFB banner appears.
9. Check cameras/webcams and capture devices on wuu:
9. Check qore access: LAN/VPN IPs, ports 22, 5900, 3389, and 445. Treat SSH/VNC as verified only if the expected SSH/RFB banner appears.
10. Check cameras/webcams and capture devices on wuu:
- Logi C270 HD WebCam.
- AV TO USB2.0.
- NDI/OBS/vMix virtual devices.
- Record which source actually returns a frame.
10. Check displays/projectors on wuu:
11. Check displays/projectors on wuu:
- BenQ GL2580.
- Optoma 1080P.
- Windows display topology, resolution, refresh rate.
- Anything useful for ProjectionMapping/stereo top-bottom calibration.
11. Update:
12. Update:
- locations/wuu.md
- agent-bus/heartbeats/wuu.md
- projects/garage/computers.md
- projects/garage/status.md
- projects/garage/orchestration.md
12. If you find a problem or reusable fix, add it to problems/ or skills/.
13. Commit and push all knowledge-base updates.
- projects/garage/agent-log.md
13. If you find a problem or reusable fix, add it to problems/ or skills/.
14. Commit, pull --rebase, and push all knowledge-base updates.
Important correction: TightVNC Server is the garage Windows VNC server baseline. TigerVNC is still useful as a viewer, but do not install TigerVNC WinVNC server unless explicitly asked. Never store secrets.
```

View file

@ -13,7 +13,8 @@ Track the computers that contain scattered parts of the `garage` auto-simulator
- `pump` currently has only one active 1920x1080 display detected; the required two projectors were not detected during inventory.
- `pump` now has working GitHub SSH push access for `agent-knowledge-base`, OpenSSH Server on TCP `22`, TightVNC Server on TCP `5900`, and a detected physical `Logi C270 HD WebCam`; full VNC login and live camera frame capture still need verification.
- `qore` was partially observed from `pump` through `A:` mapped to `\\qore\C`.
- `qore` was also inventoried locally enough to verify GitHub SSH, RustDesk/AnyDesk, RDP, OpenSSH Server, TightVNC Server, and the `garage-agent-runner` scheduled task.
- `qore` was also inventoried locally enough to verify GitHub SSH, RustDesk/AnyDesk, RDP, OpenSSH Server, TightVNC Server, and the legacy `garage-agent-runner` scheduled task.
- Current 2026-05-30 operating rule: disable `garage-agent-runner-*` scheduled tasks unless the user explicitly asks for live monitoring. Use chat-driven GitHub knowledge updates instead.
- `wuu` has been inventoried as a Windows source/work computer with local ProjectionMapping calibration work.
- Infrastructure endpoint recorded: Proxmox at `192.168.1.60:8006`.
- Repository source container recorded: `192.168.1.66`, containing bare project repositories.
@ -29,9 +30,9 @@ Track the computers that contain scattered parts of the `garage` auto-simulator
| Name | Role | OS | Access Method | Local Repositories | Status |
| --- | --- | --- | --- | --- | --- |
| pump | expected final runtime computer; also source computer for existing project parts | Windows 11 Pro reported by current WMI, earlier docs said Windows 10 Pro | local Codex session; LAN `192.168.1.39`; VPN `10.33.0.2`; mapped shares `A:` -> `\\qore\C`, `B:` -> `\\wuu\C`; GitHub SSH push works as `krustophski`; OpenSSH Server listens on `22`; TightVNC Server listens on `5900`; SSH login verified as `post` with explicit local key; `garage-agent-runner-pump` scheduled task installed | `C:\git\Kamaz_Cleaner`, `C:\Kamaz\Kamaz_Cleaner`, `C:\Users\post\Documents\Unreal Projects\Kamaz_Cleaner`, nested Autonomix plugin repos, `MyProject8`; knowledge-base accessed through `B:\git\agent-knowledge-base` | connectivity checked on 2026-05-24; RTX 5090 and MOZA bases found; NDI 6 Tools installed; `Logi C270 HD WebCam` detected; projectors not detected; full VNC login and live camera frame still not verified; `sshd` and `tvnserver` recovery configured |
| qore | source/work computer for garage project parts | Windows 11 Pro | local Codex session; GitHub SSH works as `krustophski`; LAN `192.168.1.126`; VPN `10.8.1.38` inventory-only; OpenSSH Server banner verified on LAN TCP `22`; TightVNC RFB verified on LAN TCP `5900`; RustDesk/AnyDesk services running; RDP listening on `3389`; from `wuu`, SMB/RDP/VNC reachable but SSH login still not verified; local Git server access as `qore@192.168.1.66` verified for read and dry-run write | local: `C:\git\Kamaz_Cleaner`, `C:\Kamaz\Kamaz_Cleaner`, `C:\Kamaz\Kamaz_Cleaner\Plugins\Autonomix`, `C:\Users\post\vscode\kam\KaMaz`, two `facecap_setup_tool` clones; mapped from `pump`: `A:\git\Kamaz_Cleaner`, `A:\Kamaz\Kamaz_Cleaner`, `A:\Kamaz\Kamaz_Cleaner\Plugins\Autonomix`; from `wuu`, `\\qore\C\git\Kamaz_Cleaner` visible; local `StereoWallND` exists but user clarified it is not current on this machine | local connectivity rechecked on 2026-05-24 17:40 MSK: SSH/VNC/RDP ports reachable on LAN, local SSH key login still failed, TightVNC uses RFB `003.008`, runner heartbeat and fresh ping result verified; VPN probes are inventory-only |
| wuu | source/work computer for garage project parts; contains ProjectionMapping calibration work | Windows 11 Pro | local Codex session; GitHub SSH works as `krustophski`; IP `192.168.1.192` on Ethernet 2; VPN IP `10.8.1.57`; OpenSSH Server listens on `22`; SSH login verified as `post` with local `id_ed25519`; TightVNC listens on `5900` via application-mode `tvnserver.exe`; also visible from `pump` as `B:` -> `\\wuu\C` | `C:\git\ProjectionMapping`, `C:\git\ProjectionMapping-master`, `C:\git\ProjectionMapping-webcam`, `C:\git\agent-knowledge-base`; `\\qore\C\git\Kamaz_Cleaner` visible/read-write from `wuu` | inventoried on 2026-05-24; VNCAuth verified; OpenSSH installed/configured at 18:10 MSK; scheduled runner install needs elevation; one-shot runner ping verified; Logi webcam verified; AV capture and OAK-D not usable yet |
| pump | expected final runtime computer; also source computer for existing project parts | Windows 11 Pro reported by current WMI, earlier docs said Windows 10 Pro | local Codex session; LAN `192.168.1.39`; VPN `10.33.0.2`; mapped shares `A:` -> `\\qore\C`, `B:` -> `\\wuu\C`; GitHub SSH push works as `krustophski`; OpenSSH Server listens on `22`; TightVNC Server listens on `5900`; SSH login verified as `post` with explicit local key; legacy `garage-agent-runner-pump` scheduled task may exist and should be disabled unless explicitly requested | `C:\git\Kamaz_Cleaner`, `C:\Kamaz\Kamaz_Cleaner`, `C:\Users\post\Documents\Unreal Projects\Kamaz_Cleaner`, nested Autonomix plugin repos, `MyProject8`; knowledge-base accessed through `B:\git\agent-knowledge-base` | connectivity checked on 2026-05-24; RTX 5090 and MOZA bases found; NDI 6 Tools installed; `Logi C270 HD WebCam` detected; projectors not detected; full VNC login and live camera frame still not verified; `sshd` and `tvnserver` recovery configured |
| qore | source/work computer for garage project parts | Windows 11 Pro | local Codex session; GitHub SSH works as `krustophski`; LAN `192.168.1.126`; VPN `10.8.1.38` inventory-only; OpenSSH Server banner verified on LAN TCP `22`; TightVNC RFB verified on LAN TCP `5900`; RustDesk/AnyDesk services running; RDP listening on `3389`; from `wuu`, SMB/RDP/VNC reachable but SSH login still not verified; local Git server access as `qore@192.168.1.66` verified for read and dry-run write | local: `C:\git\Kamaz_Cleaner`, `C:\Kamaz\Kamaz_Cleaner`, `C:\Kamaz\Kamaz_Cleaner\Plugins\Autonomix`, `C:\Users\post\vscode\kam\KaMaz`, two `facecap_setup_tool` clones; mapped from `pump`: `A:\git\Kamaz_Cleaner`, `A:\Kamaz\Kamaz_Cleaner`, `A:\Kamaz\Kamaz_Cleaner\Plugins\Autonomix`; from `wuu`, `\\qore\C\git\Kamaz_Cleaner` visible; local `StereoWallND` exists but user clarified it is not current on this machine | local connectivity rechecked on 2026-05-24 17:40 MSK: SSH/VNC/RDP ports reachable on LAN, local SSH key login still failed, TightVNC uses RFB `003.008`, legacy runner heartbeat and fresh ping result verified historically; VPN probes are inventory-only |
| wuu | source/work computer for garage project parts; contains ProjectionMapping calibration work | Windows 11 Pro | local Codex session; GitHub SSH works as `krustophski`; IP `192.168.1.192` on Ethernet 2; VPN IP `10.8.1.57`; OpenSSH Server listens on `22`; SSH login verified as `post` with local `id_ed25519`; TightVNC listens on `5900` via application-mode `tvnserver.exe`; also visible from `pump` as `B:` -> `\\wuu\C` | `C:\git\ProjectionMapping`, `C:\git\ProjectionMapping-master`, `C:\git\ProjectionMapping-webcam`, `C:\git\agent-knowledge-base`; `\\qore\C\git\Kamaz_Cleaner` visible/read-write from `wuu` | inventoried on 2026-05-24; VNCAuth verified; OpenSSH installed/configured at 18:10 MSK; one-shot runner ping verified historically; Logi webcam verified; AV capture and OAK-D not usable yet |
| proxmox-192-168-1-60 | Proxmox host `prxmx`; contains LXC `git-stereowallnd` | Proxmox 9.1.11 | `https://192.168.1.60:8006`, root known outside repo | VMID 101 contains project repo source computer | reachable, needs VM/container inventory |
| project-repos-192-168-1-66 | LXC `git-stereowallnd`; source computer with local project repositories | Linux container | SSH `airM1@192.168.1.66` with local key `/Users/post/.ssh/airM1_garage` | `/srv/git/StereoWallND.git`, `/srv/git/Kamaz_Cleaner.git` | reachable, inventory started |
@ -69,7 +70,8 @@ Track the computers that contain scattered parts of the `garage` auto-simulator
## Immediate Next Actions
- Complete remaining elevated setup locally on `wuu`: `garage-agent-runner-wuu` scheduled task is still missing, and TightVNC is currently verified only in application mode while the service is stopped. OpenSSH Server is now installed and verified.
- Disable any existing `garage-agent-runner-*` scheduled task on `pump`, `qore`, and `wuu` unless the user explicitly asks for live monitoring.
- Complete remaining elevated setup locally on `wuu` only for SSH/VNC needs; TightVNC is currently verified only in application mode while the service is stopped. OpenSSH Server is now installed and verified.
- Set up machine-user access for `wuu@192.168.1.66` using a public key or interactive password flow outside Git. From `wuu`, TCP `22` and the SSH banner on `192.168.1.66` are reachable, but non-interactive login and `git ls-remote` fail.
- Set up machine-user access for `pump@192.168.1.66` using a public key or interactive password flow outside Git. From `pump`, TCP `22` is reachable, but non-interactive login and `git ls-remote` fail.
- Verify full VNC login to `pump`, `qore`, and `wuu` using the user-held password kept outside Git. From `wuu`, RFB banners are verified on `pump` LAN, `qore` LAN, and `wuu` LAN; VPN probes are inventory-only.
@ -86,17 +88,15 @@ Track the computers that contain scattered parts of the `garage` auto-simulator
- Verify live frame capture from the detected `Logi C270 HD WebCam` on `pump`.
- Reconcile `qore` local paths with the paths observed from `pump` through `A:` mapped to `\\qore\C`.
- Use the newly verified `qore@192.168.1.66:22` access for local Git server checks from `qore`; repeat the same check from `wuu` and `pump`.
- Refresh/recreate `garage-agent-runner-qore` from an elevated PowerShell if the scheduled-task definition needs changes; non-elevated install returned access denied, but the existing task runs and command/result is verified.
- Do not refresh/recreate `garage-agent-runner-qore` by default; use it only for explicit on-demand diagnostics.
- Complete `qore` SSH key-login setup from an elevated shell by fixing `C:\ProgramData\ssh\administrators_authorized_keys`; SSH banner/port is verified but key login is not.
- From other machines, prefer `qore` TightVNC/RDP for remote desktop until SSH login is verified.
- Verify full remote TightVNC login to `wuu` from another computer using the user-held password kept outside Git.
- Fix cross-machine SSH to `wuu` and `qore`; from `pump`, LAN SSH `22` timed out even though VNC/RDP/SMB were reachable.
- Run elevated setup on `wuu` for persistent `garage-agent-runner-wuu` if scheduled polling is required.
- Clone or inspect `/srv/git/StereoWallND.git` and `/srv/git/Kamaz_Cleaner.git` as `airM1`.
- Add missing root `AGENTS.md` to `Kamaz_Cleaner` before active development.
- Document SSH access and roles for `pump`; `wuu` and `qore` local/GitHub access are documented in `locations/`.
- Create heartbeat file for `pump`; `wuu` and `qore` heartbeat files exist under `agent-bus/heartbeats/`.
- Install `garage-agent-runner-pump` from elevated PowerShell; manual one-shot runner pass works, but scheduled task registration failed from non-elevated Codex with `Access is denied`.
- Treat heartbeat files under `agent-bus/heartbeats/` as historical/on-demand diagnostics.
- Inspect each computer for simulator-related repositories.
- Inventory Proxmox at `192.168.1.60:8006` for VMs/containers related to `garage`.
- Add remaining computers to `locations/`.

View file

@ -18,3 +18,8 @@ Decision: For the standalone `kamaz5360` Chaos Vehicle prototype, Blender is the
Reason: During the 2026-05-26 KAMAZ setup, Unreal-side offsets, custom PhysicsAsset creation, and visual workarounds obscured the real causes. The working solution came from fixing Blender/export orientation, using clean import, forcing the legacy UE 5.7 FBX importer so auto PhysicsAsset creation works, and tuning Chaos suspension from measured wheel dimensions.
## 2026-05-30 - Chat-Driven Knowledge Sync Replaces Realtime Runner
Decision: Use chat-driven GitHub knowledge synchronization as the default coordination model. Agents read the repository when the user gives the link, work in the local chat/session, update durable Markdown knowledge after meaningful operations, commit/pull-rebase/push to GitHub, and summarize useful dialogue context. Realtime heartbeat polling, scheduled `garage-agent-runner` tasks, and automatic after-reboot knowledge uploads are disabled by default.
Reason: The user wants knowledge preserved and shared across chats and computers, but does not want computers constantly updating, uploading, or restarting background heartbeat services after reboot. SSH, VNC, Git, and local key/credential services remain normal machine services.

View file

@ -8,11 +8,17 @@ Coordinate work across `wuu`, `qore`, and `pump` so this Codex session or anothe
Use:
- SSH for live commands;
- GitHub `agent-bus/` for asynchronous commands, results, locks, and heartbeats;
- GitHub knowledge-base commits for durable coordination, project status, technical specifications, decisions, and handoffs;
- SSH for live commands when available;
- VNC for GUI/visual control when needed;
- local Git server `192.168.1.66` for project repositories;
- GitHub `agent-bus/` only for explicit on-demand diagnostics;
- per-machine Git identity for commits;
- optional `tmux` sessions for long-running agent work;
- optional `garage-agent-runner` daemon after the command workflow is proven.
- optional interactive long-running agent sessions when the local tool supports them.
Current operating mode: chat-driven GitHub sync. Do not run persistent realtime heartbeat/polling or after-reboot knowledge upload loops by default. Existing `garage-agent-runner-*` scheduled tasks should be disabled unless the user explicitly asks for live monitoring. SSH, VNC, Git, and local credential/key services remain normal machine services.
`agent-bus/heartbeats/`, `agent-bus/commands/`, and `agent-bus/results/` are now legacy/on-demand diagnostics. They are not the source of current live truth.
Network rule: `pump`, `wuu`, and `qore` should communicate with each other over the local LAN only, using `192.168.1.x` addresses on the `192.168.1.0/24` network. The user described the LAN as `192.168.1.1/24`; treat `192.168.1.1` as the gateway/addressing reference. Do not use VPN IPs for normal SSH, VNC, Git, or runner checks between these computers.
@ -22,9 +28,9 @@ Filesystem rule: active project repositories on each Windows project computer sh
| Machine | Role | Access | Status |
| --- | --- | --- | --- |
| pump | expected final simulator runtime computer; local inventory completed | local Codex session; LAN `192.168.1.39`; VPN `10.33.0.2`; heartbeat `agent-bus/heartbeats/pump.md`; GitHub SSH push works as `krustophski`; OpenSSH Server on `22`; TightVNC Server on `5900`; `post` SSH login verified with explicit local key | corrected remote-access baseline installed; safe manual runner ping verified; scheduled runner needs elevated install; needs projector verification, live camera frame, and full VNC login test |
| qore | source/work computer | local Codex session; LAN `192.168.1.126`, VPN `10.8.1.38`; SSH banner verified on `22`; TightVNC RFB verified on `5900`; RDP open on `3389`; local runner active; partially visible from `pump` as `A:` -> `\\qore\C` | runner heartbeat and ping result verified; SSH key login still needs elevated authorized-keys setup |
| wuu | source/work computer with ProjectionMapping calibration work | local Codex session; GitHub SSH works as `krustophski`; heartbeat `agent-bus/heartbeats/wuu.md`; TightVNC on `5900` via `192.168.1.192` / `10.8.1.57`; one-shot runner ping verified | OpenSSH Server missing; persistent scheduled runner install needs elevated PowerShell/UAC; full VNC login still needs client-side verification with password kept outside Git |
| pump | expected final simulator runtime computer; local inventory completed | local Codex session; LAN `192.168.1.39`; VPN `10.33.0.2`; historical heartbeat `agent-bus/heartbeats/pump.md`; GitHub SSH push works as `krustophski`; OpenSSH Server on `22`; TightVNC Server on `5900`; `post` SSH login verified with explicit local key | corrected remote-access baseline installed; safe manual runner ping was verified historically; scheduled runner should be disabled unless explicitly requested; needs projector verification, live camera frame, and full VNC login test |
| qore | source/work computer | local Codex session; LAN `192.168.1.126`, VPN `10.8.1.38`; SSH banner verified on `22`; TightVNC RFB verified on `5900`; RDP open on `3389`; legacy local runner previously active; partially visible from `pump` as `A:` -> `\\qore\C` | runner heartbeat and ping result were verified historically; scheduled runner should be disabled unless explicitly requested; SSH key login still needs elevated authorized-keys setup |
| wuu | source/work computer with ProjectionMapping calibration work | local Codex session; GitHub SSH works as `krustophski`; historical heartbeat `agent-bus/heartbeats/wuu.md`; TightVNC on `5900` via `192.168.1.192` / `10.8.1.57`; one-shot runner ping verified historically | do not install persistent scheduled runner by default; full VNC login still needs client-side verification with password kept outside Git |
| git-stereowallnd | LXC with bare Git repositories | SSH `airM1@192.168.1.66` | reachable |
Preferred local Git access for garage computers is through `192.168.1.66:22` with the current machine user:
@ -68,7 +74,7 @@ From `pump` at 2026-05-24 17:05 MSK:
From `pump` at 2026-05-24 17:43 MSK after delivery setup:
- `garage-agent-runner-pump` is installed as a scheduled task from an elevated PowerShell/UAC session. The action runs `\\wuu\C\git\agent-knowledge-base\agent-bus\runners\windows\garage-agent-runner.ps1 -Machine pump -RepoPath \\wuu\C\git\agent-knowledge-base -Once`.
- Legacy note: `garage-agent-runner-pump` was installed as a scheduled task from an elevated PowerShell/UAC session. Under the current 2026-05-30 operating model, disable this scheduled task unless the user explicitly asks for live monitoring.
- `sshd` and `tvnserver` service recovery are configured to restart three times with 60 second delay.
- `pump` LAN SSH login remains verified as `post` with explicit local key; `pump` LAN VNC returns `RFB 003.008 VNCAuth,Tight`. VPN observations are inventory-only.
- `wuu` LAN and `qore` LAN VNC return `RFB 003.008 VNCAuth,Tight`, with RDP/SMB reachable; LAN SSH still times out from `pump`.
@ -109,7 +115,7 @@ Each of `wuu`, `qore`, and `pump` should have:
- local VNC connection/config files under `C:\git` named by hostname, used only locally and not committed when they contain saved credentials;
- optional cameras/webcams documented in `locations/`;
- local `AGENTS.md` in each active repository;
- heartbeat file in `agent-bus/heartbeats/`.
- historical/on-demand status may be recorded in `agent-bus/heartbeats/`, but live heartbeat updates are disabled by default.
- Windows machines should follow `skills/windows-remote-access-baseline.md`: OpenSSH Server on TCP `22`, TightVNC Server on TCP `5900`, firewall rules, and credentials stored only outside Git.
## Control Model
@ -120,14 +126,14 @@ For immediate commands:
ssh <user>@<machine> '<command>'
```
For durable async tasks:
For durable async task records when explicitly requested:
1. Create command file in `agent-bus/commands/<machine>/`.
2. Machine pulls repository.
2. Machine pulls repository in an active chat/session or through a temporary on-demand runner.
3. Machine runs allowed task.
4. Machine writes result to `agent-bus/results/<machine>/`.
5. Machine updates `agent-bus/heartbeats/<machine>.md`.
6. Machine commits and pushes.
5. Machine commits and pushes.
6. Disable any temporary runner unless the user explicitly asked to keep monitoring.
## Identity Convention
@ -146,11 +152,14 @@ SSH key rule: agents may exchange and commit only public SSH keys and fingerprin
## Initial Tasks
- On `pump`, `qore`, and `wuu`, disable any existing `garage-agent-runner-*` scheduled task unless the user explicitly asks for live monitoring:
`powershell -NoProfile -ExecutionPolicy Bypass -File .\agent-bus\runners\windows\disable-garage-agent-runner.ps1`.
- Keep SSH, TightVNC, Git, and local credential/key services enabled as normal machine services.
- When a local Codex chat receives the knowledge-base link, it must pull/read the repo, do the requested work, update Markdown knowledge, commit, pull/rebase, and push to GitHub.
- On `wuu`, rerun the Windows baseline setup from an interactive elevated PowerShell. The non-elevated Codex session could request UAC but could not confirm completion.
- On `wuu`, install/refresh `garage-agent-runner-wuu` from elevated PowerShell; the one-shot runner works, but scheduled task registration fails without elevation.
- Use `agent-bus/runners/windows/install-garage-agent-runner.ps1` to install or refresh the scheduled Windows runner on `pump`, `qore`, and `wuu`.
- Do not install or refresh scheduled `garage-agent-runner` tasks as a default setup step.
- The runner now has machine-specific repository inventory paths for `pump`, `qore`, and `wuu`.
- `qore` pushed heartbeat updates after the runner refresh commit, confirming the scheduled runner is alive for heartbeat/pull/push. Command/result was verified by `agent-bus/commands/qore/2026-05-24-final-connectivity-ping.md` and result `agent-bus/results/qore/20260524-170033-2026-05-24-final-connectivity-ping.md`.
- Historical diagnostic: `qore` previously pushed heartbeat updates after the runner refresh commit, confirming the scheduled runner worked at that time. Command/result was verified by `agent-bus/commands/qore/2026-05-24-final-connectivity-ping.md` and result `agent-bus/results/qore/20260524-170033-2026-05-24-final-connectivity-ping.md`.
- A fresh qore command/result ping was verified during the 17:40 MSK pass: `agent-bus/commands/qore/2026-05-24-qore-connectivity-pass-ping.md` produced `agent-bus/results/qore/20260524-174003-2026-05-24-qore-connectivity-pass-ping.md`.
- The runner now uses `git -c safe.directory=*` for mapped-share repository checks and redacts URL userinfo before writing heartbeat files.
- The Windows scheduled task installer and runner normalize UNC paths via `ProviderPath`; otherwise elevated/scheduled execution can pass `Microsoft.PowerShell.Core\FileSystem::\\...` to Git and PowerShell.
@ -159,15 +168,14 @@ SSH key rule: agents may exchange and commit only public SSH keys and fingerprin
- Use `projects/garage/agent-prompts.md` as the copy/paste handoff for local Codex sessions on `qore` and `wuu`.
- Re-check `pump` from `wuu`; `pump` now listens on SSH `22` and TightVNC `5900` locally.
- Latest `wuu` check saw `pump:5900` reachable but `pump:22` timed out, so SSH from `wuu` to `pump` still needs firewall/routing/login work.
- Run `qore` SSH key setup from an elevated local shell or recreate `garage-agent-runner-qore` with highest privileges; non-elevated `setup-remote-access-v2` already reported `Elevated: False`, and non-elevated scheduled-task refresh returned access denied.
- Verify full TightVNC login to `wuu` from another computer; install/configure OpenSSH Server and persistent scheduled runner there from an elevated shell if live shell control or autonomous polling is required.
- Run `qore` SSH key setup from an elevated local shell if needed; non-elevated `setup-remote-access-v2` already reported `Elevated: False`, and non-elevated scheduled-task refresh returned access denied historically.
- Verify full TightVNC login to `wuu` from another computer; install/configure OpenSSH Server there from an elevated shell if live shell control is required.
- Set or verify VNC passwords with `tvnserver.exe -configservice` interactively on each Windows machine; never store them in Git.
- Replace repeated SSH password entry with public-key access: each machine should publish only its `.pub` key/fingerprint, and target machines should install that public key in `authorized_keys`.
- After `wuu` baseline is installed, verify `pump:22` and `pump:5900` from `wuu`.
- After remote access is stable, continue physical-runtime inventory on `pump`: projectors, cameras, MOZA devices, pedals, gearbox, and plow joystick.
- Create heartbeat files for all three machines; `pump` and `wuu` now have heartbeats, `qore` still needs one from a local inventory.
- Treat existing heartbeat files as historical snapshots. Create or update them only for explicit diagnostics, not as realtime status.
- Keep `pump` GitHub SSH key available outside the repository and use local `core.sshCommand` for `B:\git\agent-knowledge-base`.
- Decide whether `garage-agent-runner` should be a systemd service, launchd job, scheduled task, or manual tmux workflow on each OS.
- Inventory local repositories on each machine.
- Install/document VNC and camera access where useful; never store VNC/camera credentials.

View file

@ -6,6 +6,7 @@ Build and finish the garage auto-simulator setup by consolidating scattered proj
## Current State
- 2026-05-30 operating-model update: garage coordination now uses chat-driven GitHub knowledge sync by default. Agents read/pull this repository when the user gives the link, work in the local chat/session, update durable knowledge after meaningful operations, commit/pull-rebase/push to GitHub, and summarize useful dialogue context. Realtime heartbeat polling, scheduled `garage-agent-runner` tasks, and automatic after-reboot knowledge uploads are disabled by default. SSH, VNC, Git, and local credential/key services remain normal machine services.
- 2026-05-26 `qore` KAMAZ 5360 Chaos Vehicle prototype: `C:\git\kamaz5360` now contains a working Unreal 5.7 standalone KAMAZ truck setup with cleaned Blender-derived skeletal mesh, automatic PhysicsAsset import, four Chaos wheels, measured wheel radius `53.78 cm`, mass `9500 kg`, ZF 9S1310-like gear ratios, working wheel rotation/steering, and tuned suspension/brake dive. Reconstruction notes are in `projects/garage/kamaz5360-chaos-vehicle.md`; reusable issue record is `problems/2026-05-26-ue57-chaos-vehicle-blender-wheel-suspension.md`.
- 2026-05-26 `qore` KAMAZ 5360 hardware integration pass: `C:\git\kamaz5360` now has the copied `MOZAVehicleInput` plugin and minimal MOZA SDK from `C:\git\Kamaz_Cleaner`, F9 switching between default MOZA control and keyboard fallback, an HTTP telemetry page at `http://127.0.0.1:8765/dashboard`, JSON at `/api/telemetry`, and Buzina/CAN joystick docs/tools/component copied from `C:\git\joystick` for later plow control. A PIE crash from binding UE `HTTPServer` route `/` was fixed by moving the dashboard to `/dashboard`; see `problems/2026-05-26-ue57-httpserver-root-route-crash.md`.
- 2026-05-26 `qore` local KAMAZ repo latest commit: `f67bdca Add MOZA input telemetry and joystick prep`. The bare repository now exists at `ssh://qore@192.168.1.66/srv/git/kamaz5360.git`; `master` is pushed at `f67bdca`, with tags `empty-kamaz` and `before-moza-telemetry-20260526-210144`. From `qore`, use `GIT_SSH_COMMAND` with `IdentitiesOnly=yes` and key `C:/Users/post/.ssh/id_devman`; default Git SSH can offer too many keys and fail with `Too many authentication failures`.
@ -18,7 +19,7 @@ Build and finish the garage auto-simulator setup by consolidating scattered proj
- From `wuu`, local SSH is now operational; `pump:22`/`qore:22` still need rechecking from the updated `wuu` state.
- From `wuu`, local Git server `192.168.1.66:22` is reachable and returns an OpenSSH banner. After the server-side user/permission repair, password-based access for `wuu` was verified from another machine, but unattended public-key login from this `wuu` Windows host still fails, so `git ls-remote` from `wuu` fails until the local public key is authorized or an interactive password login is used outside Git.
- Later 2026-05-24 update: `wuu` public-key access to `192.168.1.66` is now fixed. `ssh wuu@192.168.1.66 hostname` returns `git-stereowallnd`, and `git ls-remote` succeeds for `StereoWallND.git` and `Kamaz_Cleaner.git` from `wuu`.
- Persistent runner and service recovery on `wuu` still need elevated/UAC execution; one-shot runner works and previous command/result cycle is verified.
- Persistent runner setup on `wuu` is no longer a default requirement; one-shot runner works and previous command/result cycle is historical. SSH/VNC service setup and recovery remain relevant.
- Project created in the shared agent knowledge base on 2026-05-24.
- The garage phase includes three named computers as sources of scattered project parts: `pump`, `qore`, and `wuu`.
- Inter-computer garage connectivity should use only local LAN `192.168.1.x` addresses on `192.168.1.0/24`; the user described this as `192.168.1.1/24`. VPN addresses must not be used for normal `pump`/`wuu`/`qore` SSH, VNC, Git, or runner checks.
@ -53,10 +54,10 @@ Build and finish the garage auto-simulator setup by consolidating scattered proj
- From `pump`, `wuu` VPN `10.8.1.57` and `qore` VPN `10.8.1.38` accepted TCP on `22` and `5900`, but SSH/RFB banners did not complete in short probes; treat those VPN endpoints as reachable-but-not-protocol-verified until rechecked from each local machine.
- `pump` SSH login is verified for `post@localhost`, `post@192.168.1.39`, and `post@10.33.0.2` when using the explicit local key `pump_local_ssh_ed25519`; default BatchMode SSH without an explicit key failed to select a working identity.
- After adding `C:\Users\post\.ssh\pump_local_ssh_ed25519` to the local Windows OpenSSH `ssh-agent`, default BatchMode `ssh post@localhost`, `ssh post@192.168.1.39`, and `ssh post@10.33.0.2` succeed without specifying `-i`.
- `garage-agent-runner-pump` scheduled task is not installed and could not be registered from the non-elevated Codex session. A manual one-shot runner pass did verify the `pump` command/result cycle with a safe ping command.
- `garage-agent-runner-pump` command/result cycle was verified historically with a safe ping command, but scheduled runner use is now disabled by default.
- `garage-agent-runner` was fixed to use `git -c safe.directory=*` for mapped-share repository inventories and to redact remote URL userinfo before writing heartbeat files.
- `garage-agent-runner-pump` was later installed from elevated PowerShell/UAC using UNC path `\\wuu\C\git\agent-knowledge-base`; the installer and runner were fixed to normalize UNC `Resolve-Path` results through `ProviderPath`.
- The Windows scheduled runner installer was fixed to run the runner with `-Once`; Task Scheduler owns repetition. This avoids a never-ending polling loop being relaunched every scheduled trigger.
- `garage-agent-runner-pump` was later installed from elevated PowerShell/UAC using UNC path `\\wuu\C\git\agent-knowledge-base`; this is now a legacy scheduled runner and should be disabled unless explicitly requested.
- The Windows scheduled runner installer was fixed to run the runner with `-Once`; this remains useful only for explicit on-demand diagnostics.
- Service recovery was configured on `pump` for `sshd` and `tvnserver`: restart three times with 60 second delay, including non-crash failures.
- Safe pump command/result cycle was re-verified after runner installation: `agent-bus/commands/pump/2026-05-24-pump-delivery-ping.md` produced `agent-bus/results/pump/20260524-173928-2026-05-24-pump-delivery-ping.md`.
- `192.168.1.66` contains bare repositories `/srv/git/StereoWallND.git` and `/srv/git/Kamaz_Cleaner.git`.
@ -73,14 +74,14 @@ Build and finish the garage auto-simulator setup by consolidating scattered proj
- `qore` has RustDesk and AnyDesk services running, RDP listening on port `3389`, OpenSSH Server running/listening on `22`, TigerVNC viewer installed, and TightVNC Server running/listening on `5900`.
- On `qore`, TightVNC RFB `003.008` with `VNCAuth,Tight` was verified on LAN `192.168.1.126:5900` and VPN `10.8.1.38:5900`; full VNC login still needs the user-held password.
- On `qore`, local SSH key login attempts to `post@localhost` and `qore@localhost` failed in batch mode; elevated setup of `C:\ProgramData\ssh\administrators_authorized_keys` is still needed.
- On `qore`, non-elevated scheduled-task installer refresh failed with access denied, but the existing `garage-agent-runner-qore` task runs and returned `LastTaskResult: 0`.
- On `qore`, non-elevated scheduled-task installer refresh failed with access denied, but the existing `garage-agent-runner-qore` task previously ran and returned `LastTaskResult: 0`; disable it for the current chat-driven workflow unless the user asks for live monitoring.
- From the current Codex Mac at 2026-05-24 16:38 MSK, Windows VNC/RDP ports were reachable but SSH was not: `pump` `5900` reachable and `22` timed out; `wuu` `5900` and `3389` reachable and `22` timed out; `qore` `5900` and `3389` reachable and `22` timed out.
- `garage-agent-runner` was updated to use machine-specific repository inventories for `pump`, `wuu`, and `qore`; a Windows scheduled-task installer script was added at `agent-bus/runners/windows/install-garage-agent-runner.ps1`.
- On `wuu`, scheduled task install for `garage-agent-runner-wuu` failed from the non-elevated shell with access denied, but one-shot runner execution succeeded.
- On `wuu`, the safe ping command/result cycle was verified: `agent-bus/commands/wuu/2026-05-24-wuu-runner-ping.md` produced `agent-bus/results/wuu/20260524-170019-2026-05-24-wuu-runner-ping.md`.
- A `ping` command was queued for `qore` in `agent-bus/commands/qore/2026-05-24-runner-ping.md` to verify the already scheduled runner still polls and pushes results.
- `qore` runner is alive for heartbeat/pull/push, and command/result cycle was verified with `agent-bus/commands/qore/2026-05-24-final-connectivity-ping.md` and result `agent-bus/results/qore/20260524-170033-2026-05-24-final-connectivity-ping.md`.
- `qore` connectivity was rechecked locally at 2026-05-24 17:40 MSK: `garage-agent-runner-qore` is installed and returning `LastTaskResult: 0`; a fresh command/result ping completed; `sshd`, `ssh-agent`, and TightVNC `tvnserver` are running/automatic; TCP `22`, `5900`, `5800`, and `3389` listen locally.
- A `ping` command was queued for `qore` in `agent-bus/commands/qore/2026-05-24-runner-ping.md` to verify the scheduled runner at that time; this is now historical.
- `qore` command/result cycle was verified historically with `agent-bus/commands/qore/2026-05-24-final-connectivity-ping.md` and result `agent-bus/results/qore/20260524-170033-2026-05-24-final-connectivity-ping.md`.
- `qore` connectivity was rechecked locally at 2026-05-24 17:40 MSK: legacy `garage-agent-runner-qore` returned `LastTaskResult: 0`; a command/result ping completed; `sshd`, `ssh-agent`, and TightVNC `tvnserver` were running/automatic; TCP `22`, `5900`, `5800`, and `3389` listened locally.
- From `qore`, `192.168.1.66:22` is reachable and `qore@192.168.1.66` can read `StereoWallND.git` and `Kamaz_Cleaner.git`; a safe `git push --dry-run` to `Kamaz_Cleaner.git` succeeded.
- `/srv/git` on `192.168.1.66` was verified/repaired for shared group write access by users `qore`, `wuu`, `pump`, and `airM1`; their server-side accounts and `stereowallnd` group membership are present.
- LAN-only check from `qore` at 2026-05-24 19:13 MSK: `pump` LAN VNC `5900` returns RFB `003.008` but SSH `22` times out; `wuu` LAN SSH `22` returns OpenSSH banner but key login failed in batch mode, and VNC `5900` returns RFB `003.008`; `qore@192.168.1.66` Git read and dry-run write checks passed.
@ -107,6 +108,9 @@ The first useful version should probably be a small playable prototype:
## Next Actions
- On `pump`, `qore`, and `wuu`, disable existing `garage-agent-runner-*` scheduled tasks using `agent-bus/runners/windows/disable-garage-agent-runner.ps1` unless the user explicitly asks for live monitoring.
- When this repository link is pasted into Codex on another machine, that agent should follow `skills/chat-driven-knowledge-sync.md`: read/pull context, do the requested work, update Markdown memory, commit, pull/rebase, and push to GitHub.
- Treat `agent-bus/heartbeats/` as historical/on-demand diagnostics, not as live status.
- Keep `C:\git\kamaz5360` pushed to `ssh://qore@192.168.1.66/srv/git/kamaz5360.git` after each confirmed working milestone.
- Future KAMAZ vehicle agents should start from `projects/garage/kamaz5360-chaos-vehicle.md` before changing Blender export, UE import, PhysicsAsset, wheel, or suspension settings.
- Copy the prompts from `projects/garage/agent-prompts.md` into local Codex sessions on `qore` and `wuu` for the next elevated setup pass.
@ -130,11 +134,11 @@ The first useful version should probably be a small playable prototype:
- Re-test machine-user Git access from `wuu` and `pump` to `192.168.1.66:22`; `qore` is now verified.
- For LAN-only access from `qore`, fix `pump` SSH reachability and install/authorize an SSH key or use interactive password login on `wuu`.
- Continue inventory of simulator-related repositories/projects on `qore` and `pump`; `wuu` inventory is started.
- Run the qore SSH key-login setup from an elevated local shell or recreate `garage-agent-runner-qore` with highest privileges; the non-elevated runner already reported `Elevated: False`, and non-elevated scheduled-task refresh returned access denied.
- Run the wuu remote-access baseline from an elevated local shell if OpenSSH Server or persistent scheduled runner installation is needed; non-elevated scheduled task registration failed with access denied.
- Install or refresh `garage-agent-runner` on each Windows machine with `agent-bus/runners/windows/install-garage-agent-runner.ps1`; use each machine's local knowledge-base path and run from an elevated shell when remote-access setup is needed.
- On `qore`, keep the existing scheduled runner; heartbeat and ping result are verified. Use elevated PowerShell only if the scheduled-task definition must be changed.
- Keep `garage-agent-runner-pump` installed through the fixed scheduled-task installer; if recreated manually, use the UNC-safe installer and `-Once` runner mode.
- Run the qore SSH key-login setup from an elevated local shell if needed; the non-elevated runner already reported `Elevated: False`, and non-elevated scheduled-task refresh returned access denied historically.
- Run the wuu remote-access baseline from an elevated local shell if OpenSSH Server setup is needed; do not install a persistent scheduled runner by default.
- Do not install or refresh `garage-agent-runner` scheduled tasks unless explicitly requested for a live diagnostic.
- On `qore`, disable the existing scheduled runner unless the user asks to keep it running.
- On `pump`, disable the legacy scheduled runner unless the user asks to keep it running.
- Use the OpenSSH/TightVNC baseline on Windows machines; TigerVNC is only the viewer unless explicitly requested.
- Use `tvnserver.exe -configservice` on `qore`, `wuu`, and `pump` to set or verify VNC passwords interactively; never store or print VNC passwords.
- Add or verify SSH public keys for `pump`, `wuu`, and `qore` on each target machine and on `192.168.1.66` so normal checks no longer require password prompts.

View file

@ -40,7 +40,7 @@ The simulator must support:
- Use case: consolidate scattered local projects into a coherent garage simulator project without losing useful history or solutions.
- Use case: connect cameras/webcams so agents can inspect the physical simulator environment and calibration state.
- Use case: control project computers remotely through VNC, preferably TigerVNC when suitable.
- Use case: direct agents on `wuu`, `qore`, and `pump` through SSH and a shared GitHub command/status bus.
- Use case: direct agents on `wuu`, `qore`, and `pump` through chat-driven GitHub knowledge updates, SSH, VNC, and on-demand diagnostics.
## Functional Requirements
@ -52,9 +52,11 @@ The simulator must support:
- Project consolidation must preserve useful work, decisions, and reusable solutions.
- Project computers should support camera/webcam viewing for physical environment analysis where useful.
- Project computers should support VNC remote control where useful; TightVNC Server is the Windows garage baseline, while TigerVNC remains useful as a viewer.
- Project computers should support agent orchestration through SSH and/or an approved local runner.
- Project computers should run `garage-agent-runner` where possible so agents can exchange heartbeat, command, and result files through GitHub `agent-bus/`.
- Critical remote-access services must be configured for autostart and self-recovery where supported: `garage-agent-runner`, `sshd`, `ssh-agent`, and TigerVNC/TightVNC.
- Project computers should support agent orchestration through GitHub knowledge-base commits, SSH, VNC, and local Git access.
- Agents must use chat-driven GitHub synchronization by default: read/pull the knowledge base at chat start, update durable knowledge after meaningful work, commit, pull/rebase when needed, and push to GitHub.
- Realtime heartbeats, polling daemons, scheduled `garage-agent-runner` tasks, and automatic after-reboot knowledge uploads are disabled by default.
- Existing `garage-agent-runner-*` scheduled tasks should be disabled unless the user explicitly asks for live monitoring or an on-demand diagnostic runner.
- Critical remote-access services must be configured for autostart and self-recovery where supported: `sshd`, `ssh-agent`, and TigerVNC/TightVNC.
- If a critical service stops, the local agent should restart it, restore autostart/recovery settings, re-run connectivity checks, and record the repair in project memory.
- `pump`, `wuu`, and `qore` must use local LAN `192.168.1.x` addresses on `192.168.1.0/24` for inter-computer SSH, VNC, Git, and runner verification; VPN addresses are inventory-only and should not be used as normal project routes.
- Active Windows project working directories should be under `C:\git`.
@ -108,7 +110,7 @@ The simulator must support:
- `pump` has now been locally inventoried as a Windows 10 Pro runtime candidate with RTX 5090, i9-14900K, Unreal 5.7, NDI 6 Tools, and MOZA R12 / MOZA AB9 devices detected.
- `pump` now has GitHub SSH push access for `agent-knowledge-base`, OpenSSH Server on TCP `22`, and TightVNC Server on TCP `5900`; projectors, full VNC login, and physical camera access are not yet verified.
- Multiple overlapping `Kamaz_Cleaner` working trees exist on `pump`; the authoritative copy must be chosen before Unreal asset edits or merge work.
- As of 2026-05-24, `qore` and `wuu` have confirmed `garage-agent-runner` command/result responses through GitHub `agent-bus` ping commands.
- As of 2026-05-24, `qore` and `wuu` had confirmed `garage-agent-runner` command/result responses through GitHub `agent-bus` ping commands. As of 2026-05-30, these are historical diagnostics only; scheduled runner use is no longer the default workflow.
- `wuu` processed a remote-access setup command but reported `Elevated: False`; elevated local execution is still needed for system-level SSH/VNC repair.
## Data And Assets
@ -125,8 +127,8 @@ The simulator must support:
- Mirror camera definitions and NDI stream names for tablets.
- Camera/webcam inventory for external environment analysis.
- VNC endpoint inventory for remote control.
- Agent command bus files and heartbeat files for managed machines.
- Service recovery status for `garage-agent-runner`, SSH, and VNC on each managed machine.
- Agent dialogue summaries, project status, decisions, and on-demand diagnostic records.
- Service recovery status for SSH and VNC on each managed machine.
## Hardware And Installation
@ -166,9 +168,9 @@ The simulator must support:
- `pump` was reachable from `wuu` over LAN SMB, but share access was denied and SSH was closed during the earlier check; `pump` OpenSSH Server was enabled afterward and should be re-tested from `wuu`.
- Required documentation for each source computer: name, role, OS, network address/access method, connected hardware, local repositories, agent/MCP setup, and which project fragments are stored there.
- Windows remote-access baseline for project computers is documented in `skills/windows-remote-access-baseline.md`: OpenSSH Server on TCP `22`, TightVNC Server on TCP `5900`, and credentials outside Git.
- Latest `wuu` connectivity state: TightVNC RFB is reachable on TCP `5900`, but OpenSSH Server is not installed/listening and persistent runner setup needs elevated PowerShell.
- `qore` and `wuu` have verified GitHub `agent-bus` runner responses as of 2026-05-24; `pump` runner verification is still pending.
- Runner and remote-access services should be installed with autostart/recovery so they restart automatically after crashes or reboot.
- Latest `wuu` connectivity state: TightVNC RFB is reachable on TCP `5900`; OpenSSH setup state should be rechecked locally before relying on SSH.
- `qore` and `wuu` have verified GitHub `agent-bus` runner responses as of 2026-05-24, but runner verification is now historical because normal work uses chat-driven GitHub sync.
- Remote-access services should be installed with autostart/recovery so they restart automatically after crashes or reboot. Knowledge-sync runners should not autostart unless explicitly requested.
- Inter-computer connectivity should be checked on LAN `192.168.1.x` addresses only; VPN endpoints should not be used for normal garage coordination.
- Active local work should be normalized under `C:\git`; non-`C:\git` working copies should be classified before use.
@ -218,9 +220,10 @@ The simulator must support:
- Moza wheel, pedals, and gearbox inputs are detected and mapped.
- The plow joystick is detected as a joystick after its hardware is ready.
- Mirror camera views can be streamed to tablets through NDI.
- `garage-agent-runner` updates heartbeat and can process safe ping/inventory commands on every managed computer.
- SSH service, VNC service, and `garage-agent-runner` are configured for autostart and restart/recovery where supported.
- If SSH, VNC, or runner service fails, the local agent records the failure, restarts the service when possible, and updates project status.
- Agents update the GitHub knowledge base after meaningful operations, including dialogue summaries, project status, technical specification updates, solved problems, and reusable skills.
- SSH service and VNC service are configured for autostart and restart/recovery where supported.
- If SSH or VNC fails, the local agent records the failure, restarts the service when possible, and updates project status.
- Any `garage-agent-runner-*` scheduled task is disabled unless the user explicitly asked for live monitoring.
## Milestones
@ -230,7 +233,7 @@ The simulator must support:
- Inventory cameras/webcams useful for setup and calibration analysis.
- Configure or document VNC access for project computers; Windows machines should use TightVNC Server unless explicitly directed otherwise.
- Set up orchestration for `wuu`, `qore`, and `pump`.
- Verify final connectivity between `pump`, `wuu`, and `qore`: SSH, VNC/RFB, GitHub `agent-bus`, local repository read/write, and service self-recovery.
- Verify final connectivity between `pump`, `wuu`, and `qore`: SSH, VNC/RFB, GitHub knowledge-base read/write, local repository read/write, and service self-recovery.
- Decide merge strategy for scattered simulator projects.
- Confirm the final runtime computer, expected to be `Pump`.
- Choose target platform and engine.
@ -268,5 +271,4 @@ The simulator must support:
- What is the final joystick hardware interface for the plow controller?
- Which cameras/webcams are available for physical environment analysis?
- Which computers should run VNC, and should TigerVNC be used on each?
- Should `garage-agent-runner` remain a scheduled task, or should it be converted into a Windows service for stronger recovery semantics?
- Which exact service recovery policy should be standard for SSH/VNC/runner on all garage Windows machines?
- Which exact service recovery policy should be standard for SSH/VNC on all garage Windows machines?

View file

@ -0,0 +1,62 @@
# Chat-Driven Knowledge Sync
## Purpose
Use this workflow when the user gives an agent the knowledge-base repository link in any Codex or agent chat.
The repository link is the coordination trigger. Realtime heartbeats, background polling, and automatic after-reboot knowledge uploads are not the default workflow.
## Startup
1. Clone or open `krustophski/agent-knowledge-base`.
2. Pull or fetch the latest GitHub state when possible.
3. Read `AGENTS.md`, `projects/index.md`, `locations/index.md`, and `mcp-servers/index.md`.
4. Identify the active project and current machine from the user request, hostname, and project files.
5. Read the active project's `status.md`, `technical-spec.md`, `repositories.md`, `decisions.md`, `notes.md`, and `agent-log.md` when they exist.
6. Search global knowledge before solving: `skills/`, `problems/`, `locations/`, `mcp-servers/`, and `dialog-summaries/`.
## During Work
After each meaningful operation, extract durable knowledge:
- user requirements or corrections;
- project status and blockers;
- commands that worked;
- commands or approaches that failed and are likely to be retried;
- machine facts, paths, ports, and access notes;
- repository state, branches, remotes, and merge decisions;
- reusable setup or troubleshooting procedures.
Put reusable knowledge in global files. Put project-specific state in the project folder.
## Dialogue Summaries
If the repository link was introduced into an existing chat, create a compact summary in:
```text
dialog-summaries/YYYY-MM-DD-short-topic.md
```
Summarize only durable context. Do not paste full transcripts unless the user explicitly asks.
## Push Rule
GitHub is the required durable memory target.
1. Update Markdown files.
2. Run a quick diff/status check.
3. Commit the knowledge update.
4. Pull or rebase against `origin/main`.
5. Push to GitHub.
If local Git server notes or local repository notes are written, duplicate the durable knowledge to the GitHub knowledge base in the same session.
## Disabled By Default
Do not start persistent realtime sync for knowledge updates:
- no scheduled `garage-agent-runner` by default;
- no heartbeat polling by default;
- no daemon that auto-commits after reboot by default.
If a live runner is needed for a specific diagnostic task, the user must ask for it explicitly. After the task, return the machine to chat-driven sync unless the user explicitly says to keep monitoring.

View file

@ -8,10 +8,11 @@
- `live-technical-spec.md` - how to maintain and return project technical specifications.
- `multi-repository-projects.md` - how to coordinate and merge multiple local git repositories into one project.
- `self-learning-agent-loop.md` - required loop for agents to learn from work and update shared memory.
- `chat-driven-knowledge-sync.md` - current default workflow: repo link in chat triggers read/work/summarize/commit/push; realtime runners are disabled by default.
- `mcp-server-management.md` - how agents keep a shared MCP server set synchronized across machines.
- `dialog-summary-import.md` - how agents summarize useful context from separate dialogues into this repository.
- `remote-visual-access.md` - how agents set up webcams/cameras and VNC for remote visual analysis and control.
- `projectionmapping-manual-kinect-calibration.md` - current `wuu` ProjectionMapping/Kinect manual alignment and projector calibration workflow, including the one-projector troubleshooting path.
- `multi-machine-agent-orchestration.md` - how to coordinate agents and daemon-like workers across multiple computers.
- `multi-machine-agent-orchestration.md` - how to coordinate agents across multiple computers without default realtime runners; legacy command-bus diagnostics are on demand only.
- `ssh-public-key-access.md` - how to exchange and install SSH public keys without storing private keys or passwords.
- `unreal-chaos-vehicle-blender-pipeline.md` - how to prepare Blender vehicle models for Unreal Chaos Vehicles without Unreal-side model hacks.

View file

@ -4,6 +4,8 @@
Let agents on different computers coordinate through this private GitHub repository.
The current coordination model is chat-driven GitHub sync. Persistent realtime runners and heartbeat polling are disabled by default.
## When To Use
Use this skill when:
@ -22,11 +24,13 @@ Use this skill when:
## Startup Procedure
1. Clone or open `krustophski/agent-knowledge-base`.
2. Read `AGENTS.md`.
3. Read `projects/index.md`.
4. Identify the active project.
5. Search global knowledge in `skills/`, `problems/`, and `locations/`.
6. Read that project's `status.md`, `technical-spec.md`, `decisions.md`, `notes.md`, and `agent-log.md`.
2. Pull or fetch the latest GitHub state when possible.
3. Read `AGENTS.md`.
4. Read `projects/index.md`.
5. Identify the active project.
6. Search global knowledge in `skills/`, `problems/`, `locations/`, and `dialog-summaries/`.
7. Read that project's `status.md`, `technical-spec.md`, `decisions.md`, `notes.md`, and `agent-log.md`.
8. Disable any existing `garage-agent-runner-*` scheduled task unless the user explicitly asked for live monitoring.
## Handoff Procedure
@ -38,7 +42,8 @@ After meaningful work:
4. Add project-only decisions to `projects/<project>/decisions.md`.
5. Add solved issues and reusable fixes to global `problems/`.
6. Add reusable procedures to global `skills/`.
7. Commit and push the changes.
7. Add or update a dialogue summary if this chat contains durable context.
8. Commit, pull/rebase if needed, and push the changes to GitHub.
Do not bury reusable solutions inside a project log. Project logs should point to global entries when a solution may help other projects.

View file

@ -4,39 +4,47 @@
Coordinate agents running on multiple computers while keeping commands auditable, recoverable, and safe.
## Recommended Architecture
## Current Operating Mode
Use two channels:
Use chat-driven GitHub synchronization as the default.
1. SSH for live control.
2. GitHub repository command bus for asynchronous coordination and durable logs.
The user gives an agent this repository link. The agent reads the repository, works in the local chat/session, updates durable knowledge, commits, pulls/rebases if needed, and pushes to GitHub.
Do not run persistent realtime heartbeats, polling daemons, or automatic after-reboot knowledge uploads by default.
## Recommended Channels
Use these channels in priority order:
1. GitHub knowledge-base commits for durable memory, project status, technical specifications, decisions, and handoffs.
2. SSH for live control when a machine is reachable and credentials/keys are available.
3. VNC for visual control and inspection when GUI access is needed.
4. Local Git server `192.168.1.66` for project source repositories when the project requires it.
5. `agent-bus/` command/result files only for explicit on-demand diagnostics.
Avoid exposing a custom always-open command API unless it is explicitly needed and secured.
## Machine Agent Daemon
## Disabled Runner Rule
Each managed computer can run a local daemon or scheduled service called `garage-agent-runner`.
`garage-agent-runner` is a legacy/on-demand diagnostic tool. It is not the normal coordination layer.
Responsibilities:
Rules:
- pull the shared knowledge repository;
- read commands addressed to its machine;
- execute only allowed command types;
- write status, logs, and results back to the repository;
- push updates using that machine's configured Git identity;
- keep a heartbeat file current.
- Do not install or enable `garage-agent-runner-*` scheduled tasks unless the user explicitly asks for a live runner or monitor.
- If a `garage-agent-runner-*` scheduled task already exists, disable it during setup unless the user explicitly says to keep it running.
- Keep the runner scripts and old `agent-bus` files as historical tooling and manual diagnostics.
- `agent-bus/heartbeats/*.md` are last-known snapshots, not live status truth.
- Normal OS services such as `sshd`, `ssh-agent`, TightVNC Server, and Git credential/key access may remain enabled and configured for autostart.
For Windows garage machines, use:
For Windows garage machines, disable legacy scheduled runners with:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File .\agent-bus\runners\windows\install-garage-agent-runner.ps1 -Machine <pump|qore|wuu> -RepoPath <local-agent-knowledge-base-path> -StartNow
powershell -NoProfile -ExecutionPolicy Bypass -File .\agent-bus\runners\windows\disable-garage-agent-runner.ps1
```
Run from an elevated shell when the runner must install or repair OpenSSH, firewall rules, or VNC services. A non-elevated runner is still useful for heartbeat, inventory, and Git status commands.
## Command Bus Layout
Use this structure:
This structure may still be used for a one-time diagnostic when the user asks:
```text
agent-bus/
@ -48,22 +56,22 @@ agent-bus/
Command files should be Markdown or YAML text files. Do not store secrets.
## Command Lifecycle
## On-Demand Command Lifecycle
Use this only when explicitly requested:
1. Controller writes a command file to `agent-bus/commands/<machine>/`.
2. Machine daemon pulls the repository.
3. Daemon validates the command against an allowlist.
4. Daemon creates a lock in `agent-bus/locks/`.
5. Daemon runs the task.
6. Daemon writes result to `agent-bus/results/<machine>/`.
7. Daemon updates heartbeat.
8. Daemon commits and pushes.
2. Target machine pulls the repository during an active chat/session or a temporary runner invocation.
3. Agent validates the command against a narrow allowlist.
4. Agent creates a lock in `agent-bus/locks/`.
5. Agent runs the task.
6. Agent writes result to `agent-bus/results/<machine>/`.
7. Agent commits and pushes the result.
8. Agent disables any temporary runner unless the user explicitly asked to keep it running.
Windows mapped-share note: if the knowledge base or project repositories are accessed through mapped drives or UNC paths between different Windows users, Git may report `dubious ownership`. Runner scripts should call Git as `git -c safe.directory=* ...` for inventory/status operations, or configure a narrow safe.directory entry outside the repository. Do not fix this by changing repository ownership on another machine without explicit approval.
Windows mapped-share note: if the knowledge base or project repositories are accessed through mapped drives or UNC paths between different Windows users, Git may report `dubious ownership`. Runner or diagnostic scripts should call Git as `git -c safe.directory=* ...` for inventory/status operations, or configure a narrow safe.directory entry outside the repository. Do not fix this by changing repository ownership on another machine without explicit approval.
Security note: heartbeat and inventory writers must redact remote URL userinfo before writing Git remotes to the knowledge base, for example `ssh://<redacted>@host/path.git`.
Windows Scheduled Task note: when Task Scheduler provides the repeat interval, run the agent runner with `-Once`. Do not schedule a never-ending polling loop on a repeating trigger. For UNC paths, normalize `Resolve-Path` with `.ProviderPath`; provider-qualified paths such as `Microsoft.PowerShell.Core\FileSystem::\\server\share\repo` can break `powershell -File` and `git -C`.
Security note: inventory writers must redact remote URL userinfo before writing Git remotes to the knowledge base, for example `ssh://<redacted>@host/path.git`.
## Live Control
@ -78,8 +86,10 @@ Use SSH for:
- starting/stopping services;
- checking process state;
- running inventory commands;
- launching interactive agent sessions through `tmux`;
- troubleshooting network or daemon failures.
- launching interactive agent sessions where supported;
- troubleshooting network or access failures.
Use VNC when GUI confirmation, projector setup, hardware utilities, or visual calibration are required. Keep VNC passwords outside Git.
## Safety Rules
@ -88,22 +98,22 @@ Use SSH for:
- Git commits and pushes from a machine should use that machine identity in `user.name`.
- Do not store passwords, API tokens, VNC passwords, camera credentials, or SSH private keys.
- A shared temporary SSH/VNC password may exist out-of-band for setup convenience, but its value must not be committed to this repository.
- Commands must be logged.
- Commands and results that matter must be summarized in Markdown and pushed to GitHub.
- Destructive commands require explicit user approval.
- Daemons should reject commands outside the project allowlist.
- Git commits from a machine should use that machine's configured identity.
## Minimum Machine Setup
Each machine should have:
- SSH access;
- SSH access where possible;
- VNC access where GUI control is useful;
- Git;
- access to `krustophski/agent-knowledge-base`;
- machine identity configured in Git;
- local `AGENTS.md` where applicable;
- optional VNC/camera access documented in `locations/`;
- optional `garage-agent-runner` service.
- local project repositories under `C:\git` on Windows garage machines;
- optional VNC/camera access documented in `locations/`.
## Git Identity Convention
@ -118,46 +128,14 @@ Use host-based identities:
Use machine-local or project-approved email addresses. If no official email is available, use a local placeholder such as `<machine>@garage.local`.
## Heartbeat Format
```markdown
# Machine Heartbeat
## Machine
machine-name
## Last Seen
YYYY-MM-DD HH:MM TZ
## Current Task
Task or `idle`.
## Repositories
- path:
- branch:
- dirty:
## Services
- service:
- status:
## Notes
- note:
```
## First Implementation Recommendation
Start simple:
1. Use SSH for direct control.
2. Use GitHub files for durable handoff.
3. Add a `tmux` session per machine for long-running agent work.
4. Add a daemon only after command patterns are clear.
1. Use GitHub commits for durable shared memory.
2. Use SSH for direct control.
3. Use VNC for visual control.
4. Use local Git server access for project repositories.
5. Use `agent-bus` only when the user explicitly asks for a one-time asynchronous diagnostic.
This gives control now without prematurely building an unsafe custom remote execution service.
This keeps coordination understandable and avoids unwanted background writes.

View file

@ -4,6 +4,8 @@
Keep durable agent knowledge synchronized in this repository and reusable across projects.
Current default: synchronization is chat-driven. The repository link in a chat is enough to trigger reading context and later committing/pushing durable updates. Do not depend on realtime heartbeat daemons or scheduled knowledge uploads.
## When To Use
Use this skill whenever an agent:
@ -17,16 +19,18 @@ Use this skill whenever an agent:
## Procedure
1. Identify the category: project, problem, skill, or location.
2. Decide whether the knowledge is global or project-specific.
3. Store reusable knowledge globally in `skills/`, `problems/`, or `locations/`.
4. Store only project state and handoff context in `projects/<project>/`.
5. Search existing files before creating a new one.
6. Update the most specific existing file when possible.
7. Create a new file only when the knowledge has a new durable topic.
8. Include verification, not just the attempted fix.
9. Update technical specifications and project status when the user changes requirements.
10. Keep secrets out of the repository.
1. Pull or fetch the latest GitHub state when possible.
2. Identify the category: project, problem, skill, location, or dialogue summary.
3. Decide whether the knowledge is global or project-specific.
4. Store reusable knowledge globally in `skills/`, `problems/`, or `locations/`.
5. Store only project state and handoff context in `projects/<project>/`.
6. Search existing files before creating a new one.
7. Update the most specific existing file when possible.
8. Create a new file only when the knowledge has a new durable topic.
9. Include verification, not just the attempted fix.
10. Update technical specifications and project status when the user changes requirements.
11. Commit, pull/rebase if needed, and push to GitHub.
12. Keep secrets out of the repository.
## Global Versus Project-Specific

View file

@ -8,13 +8,16 @@ Make every agent improve the shared knowledge base while working, so future agen
Agents must update memory when work produces durable knowledge or changes project state. The update is part of the task, not a separate optional step.
The current operating model is chat-driven GitHub synchronization. Agents should not rely on realtime heartbeat daemons, scheduled polling, or automatic after-reboot knowledge uploads. A repository link in a chat is the trigger to read the knowledge base, work, summarize durable context, commit, and push.
## Loop
1. Read global instructions and project context.
2. If this repository was introduced into an existing dialogue, summarize useful prior context into `dialog-summaries/`.
3. Search existing global knowledge before solving a problem.
4. Complete the requested work.
5. Extract durable lessons:
1. Pull or fetch the latest GitHub state when possible.
2. Read global instructions and project context.
3. If this repository was introduced into an existing dialogue, summarize useful prior context into `dialog-summaries/`.
4. Search existing global knowledge before solving a problem.
5. Complete the requested work.
6. Extract durable lessons:
- solved problems;
- failed approaches;
- reusable commands;
@ -22,17 +25,25 @@ Agents must update memory when work produces durable knowledge or changes projec
- changed requirements;
- project decisions;
- integration constraints.
6. Store reusable knowledge globally:
7. Store reusable knowledge globally:
- `skills/` for procedures and workflows;
- `problems/` for symptoms, root causes, fixes, and verification;
- `locations/` for machine and environment facts.
7. Store project-specific state in:
8. Store project-specific state in:
- `projects/<project>/technical-spec.md`;
- `projects/<project>/status.md`;
- `projects/<project>/repositories.md`;
- `projects/<project>/decisions.md`;
- `projects/<project>/agent-log.md`.
8. Commit and push updates when possible.
9. Store a dialogue summary when the chat itself contains durable context that future agents need.
10. Commit and push updates to GitHub when possible.
11. Pull or fetch again before continuing if another agent may have written concurrent updates.
If a machine also stores notes in a local repository or on a local Git server, those notes are secondary. Durable knowledge must also be committed to the GitHub knowledge base.
## No Realtime Heartbeat Requirement
Do not install, enable, or depend on `garage-agent-runner` scheduled tasks for normal knowledge sync. Existing runner and heartbeat files are legacy/on-demand diagnostics. If a `garage-agent-runner-*` scheduled task exists and the user has not explicitly requested a live runner, disable it and record that the machine is using chat-driven sync.
## Importing Existing Dialogue Context