Author: canutethegreat

  • Horcrux dev log 2: my own Forgejo, a Gentoo ISO builder, and an ISO that never quite booted

    Horcrux dev log 2: my own Forgejo, a Gentoo ISO builder, and an ISO that never quite booted

    Part 2 in the Horcrux dev log series.

    Backdated, written in November 2026 from the repo history. Part 1 was the first week in October.

    Nothing happened in the repo for two months after the October burst. Then on December 12 there were three commits: “Major platform enhancements and infrastructure cleanup”, “storage, ha, and clustering improvements” and “added forgejo workflows”. The last one matters because I’d decided to host the code on my own Forgejo and run CI on my own runners.

    It didn’t work. Between December 12 and 31 Forgejo recorded nine workflow runs for Horcrux, all of them skipped. The workflows were copied from GitHub Actions and asked for ubuntu-latest, which none of my runners had. A job with no matching runner is skipped, not failed, so nothing showed up red. I’ll come back to that in part 3.

    The big commit

    On the 19th: “Refactor Web UI into modular pages and add Gentoo build system”, 129 files, 47,358 insertions. The UI had been a few enormous page files. Now it’s modules for audit, auth, backup, dashboard, HA, Kubernetes, metrics, monitoring, storage and system. The same commit added a Gentoo/Catalyst ISO build system.

    On the 29th there was a batch of NAS features (SMB and NFS among them) and a CLI output cleanup.

    The ISO commits

    The last commits of the year are all about booting. Five of them:

    c01076e4 Fix ISO build to include kernel and bootloader
      "The ISO builder was creating incomplete ISOs missing critical boot components."
    b5531304 Improve ISO build with initramfs library support and robustness
    385e3e3b Add serial console support to ISO boot configuration
      "Enables boot output visibility when testing in QEMU"
    (Dec 31) Fix ISO boot with kernel modules and proper init system
    (Dec 31) Fix library copying for horcrux binaries in ISO

    So the first version of the builder made ISOs with no kernel and no bootloader. Each commit fixes whatever the last one exposed: kernel and GRUB, then initramfs libraries, then a serial console so I could watch QEMU, then modules and an init system, then the shared libraries for the Horcrux binaries. I can’t find a commit where it reaches a login prompt.

    State

    The codebase got bigger. As far as I can tell, the ISO script still didn’t produce a bootable image, and none of the nine CI runs executed. After December 31 the repo is silent until September 24, 2026.

    Design decisions

    The installer is a Gentoo ISO because Horcrux is Gentoo first. For me that comes down to freedom to choose: USE flags are the main reason, and compiling for specific hardware is the second. I’ve used Gentoo since 2006. The image is built with Gentoo’s Catalyst.

    The other change in December was hosting. The code and CI moved from GitHub to my own Forgejo, which is now the primary. GitHub likes to block things, so I’d rather not depend on it. The repos are still mirrored there. The copied workflows asked for a runner label that mine didn’t have, which is why every run was skipped.

    Other parts: Part 1. The series continues with the latest Horcrux dev log post.

  • Patronus dev log 2: Kubernetes, a React UI, and a Rust workspace that wouldn’t build

    Patronus dev log 2: Kubernetes, a React UI, and a Rust workspace that wouldn’t build

    Part 2 in the Patronus dev log series.

    Backdated, written in November 2026 from the git log and CI records. Part 1 covered October 8 to 11.

    October 12 to 14

    The run continues. A Kubernetes operator with a Helm chart and CRD generation (the log calls it Sprint 36 and 37), “Integration Testing & CI/CD Pipeline” as Sprint 39 (October 12), a project status document as Sprint 40, then a topology visualization, LZ4 compression for WAN links, a React dashboard hooked up to the Rust backend, and OpenTelemetry tracing on the 13th. One commit on the 14th, then nothing until December.

    In total, 98 commits in October 2025, and all 15 CI runs that month were skipped.

    December

    December has commits on four days. On the 12th: “Remove GitHub CI/CD configuration”. I moved off GitHub Actions to my own Forgejo, the same week I did it for Horcrux (part 2 of that series). Same reason as there: GitHub likes to block things, and the repo is still mirrored to GitHub.

    December 16: “fix: Complete Rust workspace compilation and dependency resolution”, 54 files. Its message lists missing workspace dependencies (uuid, sysinfo, reqwest, chrono), API breaks from base64, axum and sysinfo upgrades, netlink imports, missing nix features, an async recursion that needed Box::pin, “syntax errors in derive macros and missing brackets” and missing feature flags. The workspace claimed 19 crates and 45,000 lines on day one, and two months later it hadn’t compiled cleanly. That contradicts the “Complete Implementation” commit from part 1.

    December 17, “Comprehensive code review fixes and feature completions”: unwrap() calls replaced in backup and validation code, NaN-safe float comparisons in the detection modules, and “wire web handlers to actual sysinfo metrics (CPU, memory, disk, network)”. So until then the dashboard metrics weren’t coming from the machine. Also: alert conditions now checked against system metrics, CIDR matching for NetworkPolicy completed, and a hardcoded address removed from HA election.

    December 19 added flow tracking, an installer crate and eBPF/XDP enhancements. The repo then goes quiet until September 24, 2026, nine months.

    What I think of this period

    In those weeks the repo’s documents described a finished product, while the code still needed a compile fix, and then a review pass before the dashboard showed real numbers. The 15 skipped runs in October and 11 more in December mean CI never tested any of it.

    The commits from this period say what was done and never why, so I have no design decisions to report.

    Other parts: Part 1.

  • Software Engineering Development Cycle

    Software Engineering Development Cycle

    A typical software engineering development cycle follows these key phases:

    Planning and Requirements Gathering

    The team identifies what needs to be built by gathering requirements from stakeholders, users, and business analysts. This includes defining functional requirements (what the software should do) and non-functional requirements (performance, security, usability constraints). The scope is documented and priorities are established.

    Design and Architecture

    Engineers create the technical blueprint for the solution. This involves designing the system architecture, choosing technologies and frameworks, creating database schemas, defining APIs, and planning the overall structure. User interface mockups and user experience flows are often created during this phase.

    Implementation and Coding

    Developers write the actual code based on the design specifications. This is typically done in iterations or sprints, with different team members working on different components or features. Code is written following established coding standards and best practices for the chosen programming languages and frameworks.

    Testing and Quality Assurance

    The software undergoes various types of testing including unit tests (testing individual components), integration tests (testing how components work together), system tests (testing the complete system), and user acceptance testing. Bugs are identified, documented, and fixed. Code reviews are often conducted to ensure quality and maintainability.

    Deployment and Release

    The tested software is deployed to production environments where end users can access it. This involves setting up servers, configuring databases, and ensuring all necessary infrastructure is in place. Modern teams often use automated deployment pipelines to streamline this process.

    Maintenance and Support

    After release, the team monitors the software for issues, provides user support, and implements bug fixes. This phase also includes adding new features, performance optimizations, and security updates based on user feedback and changing requirements.

    Modern Methodologies

    Agile Development

    Rather than following these phases sequentially, Agile methodology breaks development into short iterations called sprints, typically lasting 1-4 weeks. Each sprint includes planning, design, coding, testing, and review activities. Key principles include delivering working software frequently, embracing changing requirements, and maintaining close collaboration between developers and stakeholders. Popular Agile frameworks include Scrum (with roles like Product Owner and Scrum Master) and Kanban (focusing on continuous flow and visual workflow management). Daily standups, sprint planning, and retrospectives help teams stay aligned and continuously improve their processes.

    DevOps Culture

    DevOps bridges the gap between development and operations teams, emphasizing collaboration, automation, and continuous delivery. Key practices include continuous integration (automatically testing code changes), continuous deployment (automatically releasing tested code), infrastructure as code (managing servers through configuration files), and comprehensive monitoring. DevOps teams use tools like Jenkins, Docker, Kubernetes, and cloud platforms to automate building, testing, and deploying software. This approach enables faster, more reliable releases with reduced manual errors and shorter feedback loops between development and production environments.

    These modern approaches transform the traditional linear development cycle into a more flexible, responsive process where teams can adapt quickly to user feedback and changing business needs while maintaining high quality and reliability standards.

    The Cost of Compromised Development Practices

    While the methodologies described above represent industry best practices and theoretical ideals, real-world software development often operates under significant constraints that can compromise adherence to these established processes. Time pressures, resource limitations, and competing organizational priorities frequently force development teams to make difficult tradeoffs between methodological rigor and delivery timelines.

    When proper development cycles are abbreviated or bypassed due to scheduling constraints, several predictable outcomes emerge. Requirements gathering may be reduced to informal communication channels, design phases may be truncated or eliminated in favor of emergent approaches, and testing activities may be deferred or minimized. Code review processes may become perfunctory, documentation may be postponed indefinitely, and deployment procedures may lack the formalization and automation that best practices prescribe.

    The Economics of Defect Remediation

    Research in software engineering economics has consistently demonstrated that shortcuts intended to accelerate delivery often produce counterintuitive results. Barry Boehm’s seminal work in Software Engineering Economics (1981) established that the cost of defect remediation increases exponentially as issues progress through the development lifecycle. His research, conducted on projects at TRW and IBM during the 1970s, revealed that defects discovered in production environments could cost 50-200 times more to fix than those identified during requirements or design phases (Boehm, 1981). While subsequent studies have suggested more modest ratios, particularly for smaller, non-critical systems where the cost multiplier may be closer to 5:1 (Boehm & Basili, 2001), the fundamental principle remains: early detection and correction of defects is economically superior to deferred remediation.

    This exponential cost curve occurs because late-stage defects require disproportionate effort to diagnose, fix, test, and deploy compared to early-stage corrections. Production bugs necessitate emergency response protocols, may require rollback procedures, demand extensive regression testing, and often impact user trust and satisfaction in ways that early-phase corrections do not.

    Technical Debt and Its Compounding Effects

    The concept of technical debt, originally articulated by Ward Cunningham at the 1992 OOPSLA conference, provides a useful framework for understanding these dynamics (Cunningham, 1992). Cunningham introduced the metaphor while developing financial software at WyCash, using it to explain to stakeholders why refactoring was necessary: “Shipping first time code is like going into debt. A little debt speeds development so long as it is paid back promptly with a rewrite…The danger occurs when the debt is not repaid. Every minute spent on not-quite-right code counts as interest on that debt” (Cunningham, 1992).

    Technical debt accumulates when expedient solutions are chosen over sound engineering practices, creating future obligations that must eventually be addressed. Like financial debt, technical debt accrues compound interest: each suboptimal decision constrains future development options and increases the complexity of subsequent modifications (Kruchten, Nord, & Ozkaya, 2012). Organizations may find themselves in a cycle where teams spend disproportionate effort addressing the consequences of previous rushed implementations rather than delivering new functionality.

    Schedule Compression and Development Outcomes

    Empirical research on schedule compression reveals complex, often counterintuitive relationships between timeline pressure and development outcomes. A study by Nan and Harter (2009) examining projects at a major technology firm found U-shaped relationships between schedule pressure and both development cycle time and effort. Moderate schedule compression could yield efficiency gains, but excessive compression resulted in increased total effort and extended timelines, the opposite of the intended effect. Their research, which controlled for software process maturity, project size, complexity, and quality metrics, demonstrated that schedule pressure beyond certain thresholds produces diminishing and eventually negative returns.

    This nonlinear impact suggests that there exists an optimal range of schedule pressure that can motivate teams without triggering the quality degradation and rework cycles that ultimately extend development time. However, identifying this optimal range requires careful calibration to specific project contexts, team capabilities, and organizational factors.

    The Visibility Problem

    A critical challenge in software project management lies in the visibility of these tradeoffs. Decision-makers may observe symptoms such as schedule delays, quality issues, and user dissatisfaction without recognizing the causal relationship between compressed timelines and degraded outcomes (Abdel-Hamid & Madnick, 1991). This disconnect can perpetuate a cycle where organizational pressure for rapid delivery undermines the very practices that enable sustainable, high-quality software development.

    The literature on software process improvement emphasizes that approximately 80 percent of avoidable rework stems from 20 percent of defects, with hastily specified requirements representing a major source of this rework (Boehm & Basili, 2001). Yet the connection between compressed requirements phases and downstream quality problems often remains obscured by temporal and organizational distance between cause and effect.

    Implications for Practice and Research

    Understanding these tensions between idealized methodologies and practical constraints remains essential for both practitioners and researchers in software engineering. The gap between theory and practice highlights opportunities for further research into adaptive methodologies, risk management strategies, and organizational factors that influence development process adherence. Future work should explore how teams can better identify sustainable compression thresholds, implement early warning systems for technical debt accumulation, and communicate the long-term cost implications of schedule decisions to stakeholders.


    References

    Abdel-Hamid, T., & Madnick, S. E. (1991). Software Project Dynamics: An Integrated Approach. Prentice Hall.

    Boehm, B. W. (1981). Software Engineering Economics. Prentice Hall.

    Boehm, B. W., & Basili, V. R. (2001). Software defect reduction top 10 list. Computer, 34(1), 135-137.

    Cunningham, W. (1992). The WyCash portfolio management system. OOPSLA ’92 Experience Report. ACM.

    Kruchten, P., Nord, R. L., & Ozkaya, I. (2012). Technical debt: From metaphor to theory and practice. IEEE Software, 29(6), 18-21.

    Nan, N., & Harter, D. E. (2009). Impact of budget and schedule pressure on software development cycle time and effort. IEEE Transactions on Software Engineering, 35(5), 624-637.