Skip to main content

bisos.capability: BISOS Capabilities Bundles – Abstraction, Specification and Materialization

Overview

bisos.capability is the python package for BISOS Capability Bundles. A BISOS capability is a complete piece of functionality (a systemd service + its packages + its DNS entry + its nginx vhost, or a non-service software induction like LaTeX+LCNT) declared once and materialized in one shot on a target host.

The package covers a three-way triad of abstractions — CBA at the bottom (the framework, this pip package), CBS in the middle (one -cbs.pcs executable per capability), CBM at the top (one cbmProc.spcs planted per capability leaf). CBM subprocess-invokes CBS at materialization time and does not duplicate CBS content.

Each of the three tiers in detail:

  • CBA — Capability Bundle Abstraction. The framework layer. Provides cba_seed.py (base CBS singleton), cba_sysd_seed.py (flavor extension for systemd services), cba_csu.py (the cbs_* verb family: cbs_load, cbs_sbom, cbs_assemble, cbs_materialize, cbs_reMaterialize, cbs_unMaterialize, cbs_deMaterialize, cbs_type, cbs_isMaterialized).

  • CBS — Capability Bundle Specification. A standalone executable -cbs.pcs file that declares one capability’s contents. Uses cba_seed.setup(seedType…, sbom=…, …)= and (for services) cba_sysd_seed.setup(sysdUnitsList[…])=. Invocable as ./foo-cbs.pcs -i cbs_materialize to install / configure / start the whole capability. Example: /bisos/asc/web/bin/airflow-cbs.pcs.

  • CBM — Capability Bundle Materialization. A cbmProc.spcs planted at a leaf of the CBM tree (sys/cbm/<realm>/<capabilityType>/<capability>/), gated by a sibling cbmProc.control file. Points to a CBS via cbsSpec; does NOT duplicate CBS content. When materialized, subprocess-invokes the CBS. Provides the cbm_* verb family:

    • cbm_control / cbm_status / cbm_isEnabled — read state

    • cbm_enable / cbm_disable / cbm_available — write state (gate manipulation; never gated themselves)

    • cbm_materialize / cbm_reMaterialize / cbm_unMaterialize / cbm_sbom — gated; subprocess-invoke <cbsSpec> -i cbs_<verb>

    • cbm_bootstrap — run the leaf’s own cbmBootstrap-sbom.pcs, which installs what the capability needs before its CBS can run (e.g. the pip package that puts <cap>-cbs.pcs on PATH). cbm_materialize, cbm_reMaterialize and cbm_sbom run it first when it exists.

    A leaf’s status log is not in the leaf: it is a fact of the host, and the leaf may be a read-only clone. It is at /bisos/var/cbm/<leafRel>/cbmProc.status, with <leafRel> the leaf’s path under /bisos/git/<vcMode>/bxRepos/ (the vcMode dropped, so an anon and an auth clone share it), next to a leaf symlink back to the leaf. cbm_status prints the path.

Load-bearing principle: CBM sits on top of CBS. It does not duplicate CBS content. A cbmProc.spcs is a ~10-line pointer file (capabilityName + cbsSpec); the actual CBS content lives in the referenced -cbs.pcs executable and stays put.

Files in this package

Framework (existing; ship as-is, don’t edit):

  • cba_seed.py — CbaSeedInfo singleton + setup()

  • cba_sysd_seed.py — SysdUnit, SysdSeedInfo, sysd flavor

  • cba_csu.py — cbs_* verb classes

  • cba_sysd_csu.py — sysdUnitsProc

  • cbm_csu.py — cbmBase, processCbs

CBM machinery (additive, non-invasive to the above):

  • cbmProc_seedInfo.py — CbmProcSeedInfo singleton, ControlState enum (available=/=enabled=/=disabled), paramsFromPlantPath(), controlRead/Write, statusRead/Write, resolveCbsSpec(), leafProcessorNames(), walkExamples()

  • cbmProc_seed.py — atexit registrar for cbmProc-seed.cs

  • cbmProc_csu.py — cbm_* Cmnd classes + _dispatchCbs() helper

  • bin/cbmProc-seed.cs — the CBM-aware seed CSXU

  • sysCbmManage_csu.py, bin/sysCbmManage.cs — fullyMaterialize: cbm_status then cbm_materialize over the platform’s tree — collective/hereWeb, then the pals realm (sys/cbm/pals/<palsBxo>/<cbm>/, planted by bisos.pals’s palsOfSys.cs), then collective/induct (non-service installs: lcnt, emacsSrcBuild, bleeBuild, …), each when it has a ftoBranchProc.spcs

Verify — is this platform healthy? (read-only; AI-WorkPlan.org Stage 5):

  • cbmVerify.py — the evidence of a leaf, the checks across the platform, the log scan, the report and the comparison of two reports. Verdicts come from evidence, never exit codes; exit codes are recorded beside them (masked: it failed, yet exited 0).

  • cbm_verify (cbmProc_csu.py) — one leaf: its .internal name answers (nginx’s default page is a fail), its verifyUnits are active, its verifySpec ends with <name> verify: ok|fail. Writes cbmProc.verify next to cbmProc.status. A leaf declares what to check in its cbmProc.spcs:

    cbmProc_seedInfo.setup(
        capabilityName="grafana",
        cbsSpec="grafana-cbs.pcs",
        verifyUnits=["grafana"],
        verifySpec="grafanaAdmin.cs -i driftCheck",
    )
  • sysCbmManage.cs -i fullyVerify [logs] — every leaf, plus every .internal name resolving to its address, nginx -t, systemctl --failed, and a scan of the run’s logs; writes /bisos/var/cbm/verify/<date>/report.json and report.org (latest -> the newest). fullyMaterialize ends with it. sysCbmManage.cs -i verifyCompare compares the two newest reports.

An explicit cbsSpec path is used as planted, not resolved: a CBS that is a symlink to a generic, spread-planted file (a PALS site’s cbm/pals-cbs.spcs) runs by its own path, which is how it finds its parameters.

Canonical exemplar

Airflow at /bisos/git/auth/bxRepos/bxObjects/bro_rawBisos/bro_rawBisosPlatform/sys/cbm/collective/hereWeb/airflow/ — three-file CBM leaf pointing to airflow-cbs.pcs. See brorawBisosPlatform/README.org for the realm/capabilityType layering.

Tests

py3/tests/verify.sh — 77-assertion smoke suite covering the singleton, Cmnd class presence, control/status roundtrips, paramsFromPlantPath, walkExamples coverage, cbsSpec resolution across absolute-path/slash-path/basename forms, and the verify functions (verdict line, materialize rc, masked, log scan, report comparison).

Package Documentation At Github

The information below is a subset of the full of documentation for this bisos-pip package. More complete documentation is available at: https://github.com/bisos-pip/capability-cs

Realted Resources

bisos Capabilities Panel

file:/panels/capabili ties/_nodeBase_/fullUsagePanel-en.org

CBM airflow exemplar

/bisos/git/auth/bxRe pos/bxObjects/brorawBisos/br orawBisosPlatform/README.org

Legacy airflow CBS

/bisos/asc/web/bin/airflow-cbs.pcs

FTO walker (planted leaves)

biso s/git/auth/bxRepos/bisos-pip/fileObj

Table of Contents TOC

Installation

The sources for the bisos.capability pip package is maintained at: https://github.com/bisos-pip/capability.

The bisos.capability pip package is available at PYPI as https://pypi.org/project/bisos.capability

You can install bisos.capability with pip or pipx.

Installation With pip

If you need access to bisos.capability as a python module, you can install it with pip:

pip install bisos.capability

Installation With pipx

If you only need access to bisos.capability as a command on command-line, you can install it with pipx:

pipx install bisos.capability

The following commands are made available:

  • seedCapability.cs

  • exmpl-capability.cs

Part of BISOS and ByStar — ByStar Internet Services Operating System

Layered on top of Debian, BISOS: (By* Internet Services Operating System) is a unified and universal framework for developing both internet services and software-service continuums that use internet services. See Bootstrapping ByStar, BISOS and Blee for information about getting started with BISOS.
BISOS is a foundation for The Libre-Halaal ByStar Digital Ecosystem which is described as a cure for losses of autonomy and privacy in a book titled: Nature of Polyexistentials

bisos.capability is part of BISOS.

bisos.capability as a Standalone Piece of BISOS

bisos.capability is a standalone piece of BISOS. It can be used as a self-contained Python package separate from BISOS. Follow the installation and usage instructions below for your own use.

Documentation and Blee-Panels

bisos.capability is part of ByStar Digital Ecosystem http://www.by-star.net.

This module’s primary documentation is in the form of Blee-Panels. Additional information is also available in: http://www.by-star.net/PLPC/180047

bisos.capability Blee-Panels

bisos.capability Blee-Panels are in ./panels directory. From within Blee and BISOS these panels are accessible under the Blee “Panels” menu.

Support

For support, criticism, comments and questions; please contact the author/maintainer

Metadata

Release files for bisos.capability 0.29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bisos.capability 0.29
File Size Uploaded Provenance Actions
bisos_capability-0.29.tar.gz 59.9 kB Without provenance Details for bisos_capability-0.29.tar.gz

Release files / bisos_capability-0.29.tar.gz

Download URL bisos_capability-0.29.tar.gz
Size 59.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4ae550a6806782d19cf5a17bf36209b9a9b9570067e79ada17641301a004a51d
BLAKE2b-256 checksum
How to use checksums
ed7db60c61f37afce7cd36359598bbec6271936e9f91b7a770a80f29690f8669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Security for bisos.capability 0.29

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page