Compare commits

..

No commits in common. "7d5c19bf88c6c7b27a626245ecc7e1a021e58a82" and "b889a8e2d6fcfd6639b65f7e846ab0d399fe7c41" have entirely different histories.

3 changed files with 33 additions and 39 deletions

View File

@ -1,35 +0,0 @@
{
"intent": "reflector.service no longer stays in systemctl --failed after a boot where DNS comes up after network-online.target.",
"scope": [
"linux_configuration/periodic_background/setup_periodic_system.sh",
"drop-in source lives in kuhyx/system-maintenance systemd/reflector.service.d/retry-on-dns.conf",
"linux_configuration/periodic_background/setup_periodic_system.sh sourced extracted_repos.sh after first use and from the wrong directory"
],
"changes": [
"setup_periodic_system.sh installs the reflector Restart=on-failure drop-in next to periodic-system-startup.service",
"source linux_configuration/lib/extracted_repos.sh before require_extracted_repo is called"
],
"verification": [
{
"command": "bash tests/test_boot_dns_retry.sh (system-maintenance)",
"result": "pass",
"evidence": "red before the drop-in existed, then PASS for both units and systemd-analyze verify"
},
{
"command": "shellcheck linux_configuration/periodic_background/setup_periodic_system.sh",
"result": "pass",
"evidence": "no findings"
},
{
"command": "sudo systemd-run --wait bash setup_periodic_system.sh",
"result": "pass",
"evidence": "red: line 20 require_extracted_repo: command not found; green: rc=0, reflector drop-in live, system-maintenance deploy.sh --check green"
}
],
"risks": [
"Installer aborts if ~/src/system-maintenance is not pulled first (install -D on a missing template)"
],
"rollback": [
"git revert; rm /etc/systemd/system/reflector.service.d/retry-on-dns.conf; systemctl daemon-reload"
]
}

View File

@ -0,0 +1,31 @@
{
"intent": "Every subagent in the token audit carries a task label and type; no '?' / 'unknown' rows in the subagent tables.",
"scope": [
"python_pkg/token_audit/discover.py, python_pkg/token_audit/parse.py and their tests",
"Non-goal: no hook or settings.json change; every Agent launch already records a description"
],
"changes": [
"agent_meta borrows a missing description/type from the same agent-<id>.meta.json in another session dir (background agents that outlive /clear continue in the new session's subagents/ with no meta)",
"load_session falls back to the first user prompt line (60 chars), then '(no label) agent-<id>', instead of '?'"
],
"verification": [
{
"command": "python3 -m pytest -q python_pkg/token_audit/tests --cov=python_pkg.token_audit --cov-branch",
"result": "pass",
"evidence": "200 passed, 100.00% branch coverage"
},
{
"command": "python3 -m python_pkg.token_audit --since 1791123199.748 --until 1791627950.749 --no-write",
"result": "pass",
"evidence": "Same window as the 2026-10-10 snapshot: 'unknown' ($35.23) and '?' ($35.93) rows gone; all 14 affected files labelled from the spawning session's meta"
}
],
"risks": [
"Agent ids colliding across sessions would borrow the wrong label (ids are 17 random hex chars; none seen across 479 files)",
"One extra glob over projects/*/*/subagents per unlabelled subagent file"
],
"rollback": [
"git revert the commit",
"Re-run the audit with --no-write and confirm the old '?' row returns"
]
}

View File

@ -16,8 +16,6 @@ init_setup_script "Periodic System Setup - Pacman Wrapper & Hosts File" "$@"
# Get the directory where this script is located
CONFIG_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
# shellcheck source=../lib/extracted_repos.sh
source "$SCRIPT_DIR/../lib/extracted_repos.sh"
# Define paths
DW_REPO="$(require_extracted_repo digital-wellbeing "the periodic system setup")" || exit 1
PACMAN_WRAPPER_SCRIPT="$DW_REPO/pacman/pacman_wrapper.sh"
@ -26,6 +24,8 @@ MAKEPKG_WRAPPER_INSTALL="$DW_REPO/pacman/install_makepkg_wrapper.sh"
# hosts-blocker was EXTRACTED out of this monorepo
# (github.com/kuhyx/hosts-blocker), so this path deliberately lives
# outside it. A missing checkout is fatal, never a silent skip.
# shellcheck source=../lib/extracted_repos.sh
source "$CONFIG_DIR/lib/extracted_repos.sh"
HOSTS_BLOCKER_DIR_RESOLVED="$(require_extracted_repo hosts-blocker "the periodic system setup")" || exit 1
HOSTS_INSTALL_SCRIPT="$HOSTS_BLOCKER_DIR_RESOLVED/install.sh"
@ -160,8 +160,6 @@ create_startup_service() {
local startup_service="/etc/systemd/system/periodic-system-startup.service"
install -m 0644 "$TEMPLATE_STARTUP" "$startup_service"
echo "✓ Installed startup service from template: $startup_service"
# Boot-time network units race DNS here; both retry instead of staying failed.
install -D -m 0644 "$SYSTEMD_TEMPLATES/reflector.service.d/retry-on-dns.conf" /etc/systemd/system/reflector.service.d/retry-on-dns.conf
}
# Function to create hosts file monitor service