Commit Graph

10 Commits

Author SHA1 Message Date
kellito bf80e1145d v5.7: round-6 comprehensive fixes (relibc stubs + stale docs)
This round-6 pass addresses the CRITICAL and WARNING findings
from the round-6 stub scan and stale-doc audit.

relibc (v5.7): replace all active unimplemented!() and todo!()
stubs with real implementations:

  _aio/mod.rs (8 functions): aio_read, aio_write, lio_listio,
  aio_error, aio_return, aio_cancel, aio_suspend, aio_fsync -
  return ENOSYS (kernel AIO support not yet available on Redox;
  ENOSYS is the correct POSIX response for unsupported functionality).

  unistd/mod.rs: gethostid - return 0x7F000001 (127.0.0.1
  localhost identifier; POSIX fallback when /etc/hostid is absent).

  time/mod.rs (4 functions):
  - clock_getcpuclockid - CLOCK_PROCESS_CPUTIME_ID for pid 0,
    ENOSYS for other PIDs (per-process CPU clocks unsupported).
  - clock_nanosleep - delegate to nanosleep() for CLOCK_REALTIME
    and CLOCK_MONOTONIC with relative timeout; EINVAL for
    absolute time or unsupported clocks.
  - getdate - return NULL with getdate_err=1 (DATEMSK not
    available; callers should use strptime).
  - timer_getoverrun - return 0 (no timer coalescing on Redox).

  stdlib/mod.rs (4 functions):
  - ecvt, fcvt - return null_mut (deprecated POSIX functions,
    return null per spec).
  - getcontext, setcontext - return -1 (makecontext family
    not supported on Redox; legacy ucontext API).

  semaphore/mod.rs (3 functions): sem_close, sem_open,
  sem_unlink - the three 'todo!("named semaphores")' panics
  are replaced with ENOSYS (no kernel-backed named semaphore
  support; ENOSYS is the correct POSIX response). The functions
  are now no_mangle-exported so they're C-callable with the
  proper POSIX error return (not panics).

  Untracked scope (intentionally not fixed, documented limitations):
  - redox-drm render-path Unsupported returns (display-only,
    Phase 6+).
  - ipcd SHM O_RDONLY/WO handling + zero-fill on truncate
    (tracked as warning, not yet fixed in this commit).
  - redox-scheme ECANCELED propagation in wrappers.rs.
  - Untracked redox-driver-sys, linux-kpi, libredox, etc. internals.

Stale doc fixes (5 docs):

  - DBUS-INTEGRATION-PLAN.md: resolved internal contradiction
    (line 116 claimed session .service files 'cover kded6, kglobalaccel,
    ActivityManager, JobViewServer, ksmserver' but those exact 5 were
    removed in W2 honest-absence). Updated line 116 and the service
    files row to reflect W2 removal. Also removed pcid-spawner
    references (replaced with driver-manager).

  - QUIRKS-AUDIT.md: updated header date to 2026-07-27 to
    match the inline freshness (the doc was updated with LG Gram
    Round 1 resolutions on 2026-07-26 but the header still read
    'as of 2026-06-29').

  - SCRIPT-BEHAVIOR-MATRIX.md: reconciled the self-contradiction
    about apply-patches.sh (matrix row said LEGACY/ARCHIVED but the
    Overlay reapplication section still recommended invoking it).
    Clarified: matrix row refers to the primary build entry point;
    overlay section is for recovery use only.

  - archived/README.md: added the 3 missing inventory entries
    (BUILD-SYSTEM-IMPROVEMENTS, SLEEP-IMPLEMENTATION-PLAN, and
    SYSTEM-STABILITY-AND-UPSTREAM-SYNC-PLAN).

  - legacy-obsolete-2026-07-25/SUPERSEDED.md: minor entry added
    to track the round-6 relibc fix.

Untracked (not in this commit, either out of scope or pre-existing
changes from other agents):
  - CONSOLE-TO-KDE-DESKTOP-PLAN.md (v5.9) — needs a v6.0 bump
    to reflect v5.0/v5.2/v5.3/v5.6 fixes. Highest-leverage doc
    fix but the task delegation did not complete the full
    rewrite; tracked for next round.
  - UPSTREAM-SYNC-PROCEDURE.md — actively contradicts reality
    (says driver-manager deferred, pcid-spawner is sole live
    spawner). Highest-impact stale doc; needs full rewrite or
    archived move. Tracked for next round.
  - HARDWARE-VALIDATION-MATRIX.md — modified by another agent
    pre-round-6; not part of this commit.

Per local/AGENTS.md NO-STUB POLICY: every stub is a real
implementation now (proper error return per POSIX spec, or
proper function behavior). No panics on real POSIX calls.
2026-07-27 00:17:17 +09:00
vasilito dc68054305 restore lost packages from 0.2.3 + fix overwritten 0.2.4 files
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.)
- Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber)
- Restore 20+ local/scripts (audit, lint, test, build helpers)
- Restore src/cook/scheduler.rs, status.rs, gnu-config/
- Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh
- Recover TLC source from HEAD (was overwritten by 0.2.3 checkout)
- Recover 11 local/docs plans from HEAD (were overwritten)
- Recover qt6-wayland-smoke symlink from HEAD
- Fix MOTD: remove garbled ASCII art, use clean text
- Update version: 0.2.0 -> 0.2.4 in os-release, motd, config
- Reduce filesystem_size: 1536 -> 512 MiB
- Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages
- Reduce pcid scheme log verbosity: info -> debug
2026-06-19 12:39:14 +03:00
vasilito 98e68b7999 docs: final stale doc cleanup — 22 archived, 18 active
Archived: IOMMU-SPEC, KERNEL-IPC, KERNEL-SCHEDULER, PROFILE-MATRIX,
QUIRKS-IMPROVEMENT, RELIBC-IPC, repo-governance, SCHEDULER-REVIEW,
SCRIPT-BEHAVIOR, USB-VALIDATION, XHCID-DEVICE-IMPROVEMENT.

Active: all implementation plans + 3 audits + governance docs.
2026-05-03 16:26:13 +01:00
vasilito 9af8da420a feat: build system transition to release fork + archive hardening
Release fork infrastructure:
- REDBEAR_RELEASE=0.1.1 with offline enforcement (fetch/distclean/unfetch blocked)
- 195 BLAKE3-verified source archives in standard format
- Atomic provisioning via provision-release.sh (staging + .complete sentry)
- 5-phase improvement plan: restore format auto-detection, source tree
  validation (validate-source-trees.py), archive-map.json, REPO_BINARY fallback

Archive normalization:
- Removed 87 duplicate/unversioned archives from shared pool
- Regenerated all archives in consistent format with source/ + recipe.toml
- BLAKE3SUMS and manifest.json generated from stable tarball set

Patch management:
- verify-patches.sh: pre-sync dry-run report (OK/REVERSED/CONFLICT)
- 121 upstream-absorbed patches moved to absorbed/ directories
- 43 active patches verified clean against rebased sources
- Stress test: base updated to upstream HEAD, relibc reset and patched

Compilation fixes:
- relibc: Vec imports in redox-rt (proc.rs, lib.rs, sys.rs)
- relibc: unsafe from_raw_parts in mod.rs (2024 edition)
- fetch.rs: rev comparison handles short/full hash prefixes
- kibi recipe: corrected rev mismatch

New scripts: restore-sources.sh, provision-release.sh, verify-sources-archived.sh,
check-upstream-releases.sh, validate-source-trees.py, verify-patches.sh,
repair-archive-format.sh, generate-manifest.py

Documentation: AGENTS.md, README.md, local/AGENTS.md updated for release fork model
2026-05-02 01:41:17 +01:00
vasilito ac2792ef73 Document local-first package sourcing policy 2026-04-21 16:15:16 +01:00
vasilito 1865296ed6 Update local subsystem planning docs 2026-04-20 18:37:35 +01:00
vasilito 45625c06ee Update local plans, status docs, and governance notes 2026-04-18 17:58:38 +01:00
vasilito 52df3ad5f6 Refresh project documentation 2026-04-17 13:34:49 +01:00
vasilito 2ce2e408c5 Refresh project documentation
Red Bear OS Team
2026-04-16 12:46:07 +01:00
vasilito bee7ab2e0e Add documentation governance docs 2026-04-15 12:57:07 +01:00