Skip to content

feat(observe): import a host's process events as a second sensor - #187

Merged
karauda merged 15 commits into
mainfrom
feat/s30-process-kind
Dec 4, 2026
Merged

karauda merged 15 commits into
mainfrom
feat/s30-process-kind

Conversation

@karauda

@karauda karauda commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What changed, and why

Backlog B35 asks for a process sensor independent of the agent. ADR-0095 amends ADR-0069’s statement that adding a kind takes only a table row. It adds host-process-events as the third observation kind. A separate sensor writes process starts to a JSON Lines log on the agent’s host. The log must be outside the agent’s control. The descriptor maps time, PID, PPID, executable and user.

  • observe/v1alpha1, outside the v1 promise, adds SUBJECT_KIND_PROCESS = 5, a Process message with PID, PPID and user on the observation, and a host_process_events descriptor member. Descriptor schema 0.3 adds the source. Record schema 0.4 admits a process observation or an import report for this kind.
  • The kinds table gives “names runs” three values. A process names no run, so supervise refuses process sources. A refused process line gives supervise no run to mark as doubtful.
  • internal/ingest/proclog reads only mapped members. It requires one JSON object with unique members, a readable time and a valid executable. The executable must be an absolute, clean path of at most 4,096 bytes. White space is allowed only inside a path element. Other runes that print blank are refused anywhere, and a path element cannot start with a mark. Runes that print blank include white space, Hangul fillers, U+2800, U+303F, U+16FE4, U+1D159, other default-ignorable code points and variation selectors. The importer drops and counts malformed PID, PPID and user values. A user must be copyable text of at most 64 bytes with no = or rune that prints blank, or plain digits with a value at most 4,294,967,295. observe.ValidUser checks this shape. The observation codec refuses process lines with invalid users on read and write. The importer derives the observation ID by hashing the domain observation-id:process:1 and the process content with SHA-256.
  • coverage marks a process path observed when a live process source listed for that path saw the executable. Tool observations no longer count toward process coverage. It prints up to 256 rows for undeclared executables, rows for refused lines and an unseen row for each process source that is not live. Any of these conditions makes coverage exit 1. The inventory requires absolute, clean process paths and refuses server_address on process sources.
  • Under TRUST_INDEPENDENT, files.ReadUnswappable walks the input path from / as written, following symbolic links. As in kernel path resolution, .. after a link goes to the parent of the link’s target. The walk uses files.WalkJudged, moved unchanged from the gateway’s configuration check. The gateway keeps its own judges and behavior. Every directory on the path must be sticky if the group or others can write it. In a sticky shared directory, each directory, link and file the walk encounters must belong to root, the shared directory’s owner or the importing account. The input file in such a directory must have exactly one hard link. The reader refuses paths ending in a separator or in . or .. before any open. It judges the last directory again on the handle it uses to open the file. The Lstat result for the name must match the opened file. The checks use mode bits and owner IDs and exclude access control lists. Owner comparisons apply only in sticky shared directories because the importer cannot identify the agent’s account.

Invariant or record

ADR-0095 is new and accepted. ADR-0069 points to it. Under invariant 9, the importer reads only mapped members. The importer drops a command line mapped as the user if it fails observe.ValidUser. A command line mapped as the executable is copied if it passes the path check. The ADR and reference page assign responsibility for the mapping to the operator.

Under invariants 4 and 5, refused lines and process sources that are not live count as unknown and make coverage exit 1. The guarded trees add only three imports, slices, strconv and strings. The import check reported 0 violations. The wire compatibility check passed. The package is outside the v1 comparison, and the v1 wire schema is unchanged.

Version 0.20 reads a log containing a 0.4 record as damaged and a 0.3 descriptor as an unknown version. Remove the source’s log before rolling back after a process import.

How it was tested

  • Each of the first three rounds had one correctness review and one adversarial security review. Round 1’s tests failed on the base. Round 2 used the schema tables to determine which versions to read and required the member check for each version. It also checked the trust a record carries against its kind and stopped refused lines from casting doubt for kinds that name no run.
  • Round 3 addressed the findings from the round-2 reviews. Tests reproduced coverage emitting no row for a process source that was not live and exiting 0. It now emits an unseen row and exits 1. Tests also reproduced independent imports accepting an input in a 0777 directory, an input swapped through a test hook, and an input reached through a symbolic link. Round 3 added regression tests for a command line rejected as a user and for executable path elements that display as empty. Each regression test failed on the round-2 tree before the fix.
  • Round 1 killed 29 of 30 mutants, round 2 killed 32 of 33, and round 3 killed all 15. Both survivors were equivalent. The inventory requires the two names affected by the round-2 mutant to match. The round-2 mutants were rerun.
  • Round 4 fixed the round-3 findings on checking every directory on the path, checking owners in sticky shared directories, refusing trailing separators and rejecting names with runes that print blank. It killed all 38 mutants. The lead then extended the owner check to directories and links in sticky shared directories, accepted entries owned by the importing account and moved the user check into the codec. Those changes killed 13 mutants. One equivalent mutant covered a dead check for / that was later removed.
  • On macOS, the next security review reproduced another account hard-linking root’s /etc/hosts under the input name in /tmp. Linux blocks this with fs.protected_hardlinks enabled. Cleaning .. after a link before walking the path selected a different file from the one the kernel opens. The second check of the last directory lacked a test. Invisible runes could appear inside executable path elements. Tests for all four findings failed on the earlier tree and passed after the fixes. The fixes killed 13 mutants. On Linux, the importer refused a real second account’s file, directory and link in a root-owned sticky directory and read the importing account’s own entries.
  • A reviewer fuzzed the line decoder and importer for 40 seconds each without a failure. The decoder agreed with the standard JSON decoder on all 493,781 mutated objects.
  • On macOS, files passed 61 tests with 2 pre-existing skips, observe passed 157, proclog 136, egresslog 218, ingest 65, coverage 383, gatewayconfig 696 with 1 skip, and cmd/guardana-control 886. The files, observe and proclog tests passed in the Linux container. The same cmd/guardana-control and gatewayconfig tests failed on this branch and on the base commit there. The container lacks the toolchain binary, and its tmpfs lacks access control list support.
  • Lint reported 0 issues on Darwin and Linux. Static analysis passed with and without the two-accounts tag. The formatting, size and brand checks passed, as did schema and documentation generation and their checks.
  • Windows verification was limited to vet. A real concurrent swap between Lstat and open, macOS hard links to a root-owned file with mode 0600, Linux with fs.protected_hardlinks=0, and access control lists remain unverified.

Documentation

Added docs/reference/host-process-events.md, ADR-0095 and its index row, and a pointer in ADR-0069. Updated the observations, channels and versions references, the glossary, where-it-fits and the observations concept page. The trust sections of the host process events and egress access log references, the egress guide, ADR-0095 item 6, the changelog and the status page now describe the path walk and its checks. The coverage reference’s check sentence also describes the rules. The status row and section now say experimental. The changelog has entries under Added and Changed.

The remaining pages flagged by the documentation impact check cover the CLI, the gateway configuration's path walk, which moved without a change in behaviour, or packages as a whole and need no edits for this change. Backlog row B35 and the roadmap line move at the release.

$ make docs-impact RANGE=origin/main..HEAD
287 changed paths read
28 pages to review of 87 examined
  docs/adoption-and-incident-workflows.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go, internal/coverage/coverage.go, internal/coverage/inventory.go, internal/coverage/inventory_test.go, internal/coverage/lines.go, internal/coverage/planes_test.go, internal/coverage/process_test.go, internal/coverage/refused.go, internal/coverage/sources.go, internal/coverage/undeclared.go, internal/coverage/undeclared_process.go, internal/coverage/unseen.go, internal/coverage/unseen_test.go, internal/gatewayconfig/configfile.go, internal/gatewayconfig/notwritable.go, internal/gatewayconfig/pathwalk.go, internal/supervise/read.go, internal/supervise/source_kind_test.go
  docs/backlog.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go, internal/coverage/coverage.go, internal/coverage/inventory.go, internal/coverage/inventory_test.go, internal/coverage/lines.go, internal/coverage/planes_test.go, internal/coverage/process_test.go, internal/coverage/refused.go, internal/coverage/sources.go, internal/coverage/undeclared.go, internal/coverage/undeclared_process.go, internal/coverage/unseen.go, internal/coverage/unseen_test.go, internal/docscheck/versions_specs_test.go, internal/files/export_test.go, internal/files/files.go, internal/files/judge_owner_unix_test.go, internal/files/judged.go, internal/files/lock_exchange.go, internal/files/open_other.go, internal/files/open_unix.go, internal/files/pathwalk.go, internal/files/unswappable.go, internal/files/unswappable_path_unix_test.go, internal/files/unswappable_unix_test.go, internal/gatewayconfig/configfile.go, internal/gatewayconfig/notwritable.go, internal/gatewayconfig/pathwalk.go, internal/ingest/fuzz_test.go, internal/ingest/helpers_test.go, internal/ingest/ingest.go, internal/ingest/kinds_test.go, internal/ingest/proclog/decode.go, internal/ingest/proclog/decode_internal_test.go, internal/ingest/proclog/descriptor.go, internal/ingest/proclog/descriptor_test.go, internal/ingest/proclog/doc.go, internal/ingest/proclog/fields.go, internal/ingest/proclog/fixtures_test.go, internal/ingest/proclog/helpers_test.go, internal/ingest/proclog/import.go, internal/ingest/proclog/kept_test.go, internal/ingest/proclog/lines.go, internal/ingest/proclog/lines_internal_test.go, internal/ingest/proclog/property_test.go, internal/ingest/proclog/refused_test.go, internal/ingest/proclog/reimport_test.go, internal/ingest/proclog/testdata/README.md, internal/ingest/proclog/testdata/epoch.descriptor.json, internal/ingest/proclog/testdata/epoch.jsonl, internal/ingest/proclog/testdata/host.descriptor.json, internal/ingest/proclog/testdata/host.jsonl, internal/ingest/proclog/time.go, internal/observe/connection.go, internal/observe/connection_test.go, internal/observe/doubt.go, internal/observe/doubt_test.go, internal/observe/export_test.go, internal/observe/fuzz_test.go, internal/observe/ids_test.go, internal/observe/kindrules_test.go, internal/observe/kinds.go, internal/observe/kinds_test.go, internal/observe/line.go, internal/observe/line_strict_test.go, internal/observe/line_test.go, internal/observe/process.go, internal/observe/process_test.go, internal/observe/testdata/descriptor-process.json, internal/observe/testdata/process.jsonl, internal/observe/version.go, internal/observe/version_test.go, internal/observelog/export_test.go, internal/observelog/testdata/log.export.jsonl, internal/observelog/testdata/log.jsonl, internal/observelog/testdata/log.resumed.jsonl, internal/supervise/read.go, internal/supervise/source_kind_test.go
  docs/concepts/architecture.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go, internal/ingest/fuzz_test.go, internal/ingest/helpers_test.go, internal/ingest/ingest.go, internal/ingest/kinds_test.go, internal/ingest/proclog/decode.go, internal/ingest/proclog/decode_internal_test.go, internal/ingest/proclog/descriptor.go, internal/ingest/proclog/descriptor_test.go, internal/ingest/proclog/doc.go, internal/ingest/proclog/fields.go, internal/ingest/proclog/fixtures_test.go, internal/ingest/proclog/helpers_test.go, internal/ingest/proclog/import.go, internal/ingest/proclog/kept_test.go, internal/ingest/proclog/lines.go, internal/ingest/proclog/lines_internal_test.go, internal/ingest/proclog/property_test.go, internal/ingest/proclog/refused_test.go, internal/ingest/proclog/reimport_test.go, internal/ingest/proclog/testdata/README.md, internal/ingest/proclog/testdata/epoch.descriptor.json, internal/ingest/proclog/testdata/epoch.jsonl, internal/ingest/proclog/testdata/host.descriptor.json, internal/ingest/proclog/testdata/host.jsonl, internal/ingest/proclog/time.go, internal/observe/connection.go, internal/observe/connection_test.go, internal/observe/doubt.go, internal/observe/doubt_test.go, internal/observe/export_test.go, internal/observe/fuzz_test.go, internal/observe/ids_test.go, internal/observe/kindrules_test.go, internal/observe/kinds.go, internal/observe/kinds_test.go, internal/observe/line.go, internal/observe/line_strict_test.go, internal/observe/line_test.go, internal/observe/process.go, internal/observe/process_test.go, internal/observe/testdata/descriptor-process.json, internal/observe/testdata/process.jsonl, internal/observe/version.go, internal/observe/version_test.go, internal/observelog/export_test.go, internal/observelog/testdata/log.export.jsonl, internal/observelog/testdata/log.jsonl, internal/observelog/testdata/log.resumed.jsonl
  docs/concepts/control-and-supervision.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go, internal/coverage/coverage.go, internal/coverage/inventory.go, internal/coverage/inventory_test.go, internal/coverage/lines.go, internal/coverage/planes_test.go, internal/coverage/process_test.go, internal/coverage/refused.go, internal/coverage/sources.go, internal/coverage/undeclared.go, internal/coverage/undeclared_process.go, internal/coverage/unseen.go, internal/coverage/unseen_test.go, internal/observe/connection.go, internal/observe/connection_test.go, internal/observe/doubt.go, internal/observe/doubt_test.go, internal/observe/export_test.go, internal/observe/fuzz_test.go, internal/observe/ids_test.go, internal/observe/kindrules_test.go, internal/observe/kinds.go, internal/observe/kinds_test.go, internal/observe/line.go, internal/observe/line_strict_test.go, internal/observe/line_test.go, internal/observe/process.go, internal/observe/process_test.go, internal/observe/testdata/descriptor-process.json, internal/observe/testdata/process.jsonl, internal/observe/version.go, internal/observe/version_test.go, internal/supervise/read.go, internal/supervise/source_kind_test.go
  docs/concepts/glossary.md <- internal/coverage/coverage.go, internal/coverage/inventory.go, internal/coverage/inventory_test.go, internal/coverage/lines.go, internal/coverage/planes_test.go, internal/coverage/process_test.go, internal/coverage/refused.go, internal/coverage/sources.go, internal/coverage/undeclared.go, internal/coverage/undeclared_process.go, internal/coverage/unseen.go, internal/coverage/unseen_test.go, internal/observe/connection.go, internal/observe/connection_test.go, internal/observe/doubt.go, internal/observe/doubt_test.go, internal/observe/export_test.go, internal/observe/fuzz_test.go, internal/observe/ids_test.go, internal/observe/kindrules_test.go, internal/observe/kinds.go, internal/observe/kinds_test.go, internal/observe/line.go, internal/observe/line_strict_test.go, internal/observe/line_test.go, internal/observe/process.go, internal/observe/process_test.go, internal/observe/testdata/descriptor-process.json, internal/observe/testdata/process.jsonl, internal/observe/version.go, internal/observe/version_test.go, internal/supervise/read.go, internal/supervise/source_kind_test.go
  docs/concepts/observations-coverage-and-supervision.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, internal/coverage/coverage.go, internal/coverage/inventory.go, internal/coverage/inventory_test.go, internal/coverage/lines.go, internal/coverage/planes_test.go, internal/coverage/process_test.go, internal/coverage/refused.go, internal/coverage/sources.go, internal/coverage/undeclared.go, internal/coverage/undeclared_process.go, internal/coverage/unseen.go, internal/coverage/unseen_test.go, internal/ingest/fuzz_test.go, internal/ingest/helpers_test.go, internal/ingest/ingest.go, internal/ingest/kinds_test.go, internal/ingest/proclog/decode.go, internal/ingest/proclog/decode_internal_test.go, internal/ingest/proclog/descriptor.go, internal/ingest/proclog/descriptor_test.go, internal/ingest/proclog/doc.go, internal/ingest/proclog/fields.go, internal/ingest/proclog/fixtures_test.go, internal/ingest/proclog/helpers_test.go, internal/ingest/proclog/import.go, internal/ingest/proclog/kept_test.go, internal/ingest/proclog/lines.go, internal/ingest/proclog/lines_internal_test.go, internal/ingest/proclog/property_test.go, internal/ingest/proclog/refused_test.go, internal/ingest/proclog/reimport_test.go, internal/ingest/proclog/testdata/README.md, internal/ingest/proclog/testdata/epoch.descriptor.json, internal/ingest/proclog/testdata/epoch.jsonl, internal/ingest/proclog/testdata/host.descriptor.json, internal/ingest/proclog/testdata/host.jsonl, internal/ingest/proclog/time.go, internal/observe/connection.go, internal/observe/connection_test.go, internal/observe/doubt.go, internal/observe/doubt_test.go, internal/observe/export_test.go, internal/observe/fuzz_test.go, internal/observe/ids_test.go, internal/observe/kindrules_test.go, internal/observe/kinds.go, internal/observe/kinds_test.go, internal/observe/line.go, internal/observe/line_strict_test.go, internal/observe/line_test.go, internal/observe/process.go, internal/observe/process_test.go, internal/observe/testdata/descriptor-process.json, internal/observe/testdata/process.jsonl, internal/observe/version.go, internal/observe/version_test.go, internal/supervise/read.go, internal/supervise/source_kind_test.go
  docs/concepts/privacy.md <- internal/observelog/export_test.go, internal/observelog/testdata/log.export.jsonl, internal/observelog/testdata/log.jsonl, internal/observelog/testdata/log.resumed.jsonl
  docs/concepts/signed-operations.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go
  docs/concepts/threat-model.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go, internal/gatewayconfig/configfile.go, internal/gatewayconfig/notwritable.go, internal/gatewayconfig/pathwalk.go
  docs/concepts/where-it-fits.md <- internal/ingest/fuzz_test.go, internal/ingest/helpers_test.go, internal/ingest/ingest.go, internal/ingest/kinds_test.go, internal/ingest/proclog/decode.go, internal/ingest/proclog/decode_internal_test.go, internal/ingest/proclog/descriptor.go, internal/ingest/proclog/descriptor_test.go, internal/ingest/proclog/doc.go, internal/ingest/proclog/fields.go, internal/ingest/proclog/fixtures_test.go, internal/ingest/proclog/helpers_test.go, internal/ingest/proclog/import.go, internal/ingest/proclog/kept_test.go, internal/ingest/proclog/lines.go, internal/ingest/proclog/lines_internal_test.go, internal/ingest/proclog/property_test.go, internal/ingest/proclog/refused_test.go, internal/ingest/proclog/reimport_test.go, internal/ingest/proclog/testdata/README.md, internal/ingest/proclog/testdata/epoch.descriptor.json, internal/ingest/proclog/testdata/epoch.jsonl, internal/ingest/proclog/testdata/host.descriptor.json, internal/ingest/proclog/testdata/host.jsonl, internal/ingest/proclog/time.go, internal/supervise/read.go, internal/supervise/source_kind_test.go
  docs/guides/check-a-security-testing-agent.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go
  docs/guides/let-a-decision-point-veto.md <- internal/gatewayconfig/configfile.go, internal/gatewayconfig/notwritable.go, internal/gatewayconfig/pathwalk.go
  docs/guides/set-up-signed-operators.md <- internal/gatewayconfig/notwritable.go
  docs/guides/upgrade-a-plane-from-0-18.md <- internal/files/judged.go
  docs/guides/upgrade-a-plane-from-0-19.md <- cmd/guardana-control/observe.go
  docs/guides/watch-an-egress-proxy.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, internal/coverage/undeclared.go
  docs/guides/write-and-test-a-policy.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go
  docs/index.md <- docs/adr/0069-an-egress-proxys-access-log-is-an-independent-sensor-on-a-kind-neutral-descriptor.md, docs/adr/0095-process-events-from-the-agents-host-are-a-second-independent-sensor.md, docs/adr/README.md, docs/concepts/glossary.md, docs/concepts/observations-coverage-and-supervision.md, docs/concepts/where-it-fits.md, docs/guides/watch-an-egress-proxy.md, docs/index.md, docs/reference/channels.md, docs/reference/coverage.md, docs/reference/egress-access-log.md, docs/reference/host-process-events.md, docs/reference/observations.md, docs/reference/versions.md, docs/status.md
  docs/reference/channels.md <- internal/coverage/coverage.go, internal/coverage/inventory.go, internal/coverage/inventory_test.go, internal/coverage/lines.go, internal/coverage/planes_test.go, internal/coverage/process_test.go, internal/coverage/refused.go, internal/coverage/sources.go, internal/coverage/undeclared.go, internal/coverage/undeclared_process.go, internal/coverage/unseen.go, internal/coverage/unseen_test.go, internal/ingest/fuzz_test.go, internal/ingest/helpers_test.go, internal/ingest/ingest.go, internal/ingest/kinds_test.go, internal/ingest/proclog/decode.go, internal/ingest/proclog/decode_internal_test.go, internal/ingest/proclog/descriptor.go, internal/ingest/proclog/descriptor_test.go, internal/ingest/proclog/doc.go, internal/ingest/proclog/fields.go, internal/ingest/proclog/fixtures_test.go, internal/ingest/proclog/helpers_test.go, internal/ingest/proclog/import.go, internal/ingest/proclog/kept_test.go, internal/ingest/proclog/lines.go, internal/ingest/proclog/lines_internal_test.go, internal/ingest/proclog/property_test.go, internal/ingest/proclog/refused_test.go, internal/ingest/proclog/reimport_test.go, internal/ingest/proclog/testdata/README.md, internal/ingest/proclog/testdata/epoch.descriptor.json, internal/ingest/proclog/testdata/epoch.jsonl, internal/ingest/proclog/testdata/host.descriptor.json, internal/ingest/proclog/testdata/host.jsonl, internal/ingest/proclog/time.go, internal/observelog/export_test.go, internal/observelog/testdata/log.export.jsonl, internal/observelog/testdata/log.jsonl, internal/observelog/testdata/log.resumed.jsonl
  docs/reference/cli.md <- cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go
  docs/reference/configuration.md <- internal/gatewayconfig/configfile.go, internal/gatewayconfig/notwritable.go, internal/gatewayconfig/pathwalk.go
  docs/reference/coverage.md <- cmd/guardana-control/coverage.go, internal/coverage/coverage.go, internal/coverage/inventory.go, internal/coverage/inventory_test.go, internal/coverage/lines.go, internal/coverage/planes_test.go, internal/coverage/process_test.go, internal/coverage/refused.go, internal/coverage/sources.go, internal/coverage/undeclared.go, internal/coverage/undeclared_process.go, internal/coverage/unseen.go, internal/coverage/unseen_test.go, internal/ingest/ingest.go
  docs/reference/egress-access-log.md <- internal/ingest/ingest.go, internal/observe/connection.go, internal/observe/kinds.go
  docs/reference/host-process-events.md <- internal/coverage/undeclared_process.go, internal/ingest/ingest.go, internal/ingest/proclog/decode.go, internal/ingest/proclog/decode_internal_test.go, internal/ingest/proclog/descriptor.go, internal/ingest/proclog/descriptor_test.go, internal/ingest/proclog/doc.go, internal/ingest/proclog/fields.go, internal/ingest/proclog/fixtures_test.go, internal/ingest/proclog/helpers_test.go, internal/ingest/proclog/import.go, internal/ingest/proclog/kept_test.go, internal/ingest/proclog/lines.go, internal/ingest/proclog/lines_internal_test.go, internal/ingest/proclog/property_test.go, internal/ingest/proclog/refused_test.go, internal/ingest/proclog/reimport_test.go, internal/ingest/proclog/testdata/README.md, internal/ingest/proclog/testdata/epoch.descriptor.json, internal/ingest/proclog/testdata/epoch.jsonl, internal/ingest/proclog/testdata/host.descriptor.json, internal/ingest/proclog/testdata/host.jsonl, internal/ingest/proclog/time.go, internal/observe/kinds.go, internal/observe/process.go
  docs/reference/observations.md <- api/proto/guardana/control/observe/v1alpha1/observation.proto, api/proto/guardana/control/observe/v1alpha1/source.proto, cmd/guardana-control/observe.go, internal/ingest/fuzz_test.go, internal/ingest/helpers_test.go, internal/ingest/ingest.go, internal/ingest/kinds_test.go, internal/ingest/proclog/decode.go, internal/ingest/proclog/decode_internal_test.go, internal/ingest/proclog/descriptor.go, internal/ingest/proclog/descriptor_test.go, internal/ingest/proclog/doc.go, internal/ingest/proclog/fields.go, internal/ingest/proclog/fixtures_test.go, internal/ingest/proclog/helpers_test.go, internal/ingest/proclog/import.go, internal/ingest/proclog/kept_test.go, internal/ingest/proclog/lines.go, internal/ingest/proclog/lines_internal_test.go, internal/ingest/proclog/property_test.go, internal/ingest/proclog/refused_test.go, internal/ingest/proclog/reimport_test.go, internal/ingest/proclog/testdata/README.md, internal/ingest/proclog/testdata/epoch.descriptor.json, internal/ingest/proclog/testdata/epoch.jsonl, internal/ingest/proclog/testdata/host.descriptor.json, internal/ingest/proclog/testdata/host.jsonl, internal/ingest/proclog/time.go, internal/observe/connection.go, internal/observe/connection_test.go, internal/observe/doubt.go, internal/observe/doubt_test.go, internal/observe/export_test.go, internal/observe/fuzz_test.go, internal/observe/ids_test.go, internal/observe/kindrules_test.go, internal/observe/kinds.go, internal/observe/kinds_test.go, internal/observe/line.go, internal/observe/line_strict_test.go, internal/observe/line_test.go, internal/observe/process.go, internal/observe/process_test.go, internal/observe/testdata/descriptor-process.json, internal/observe/testdata/process.jsonl, internal/observe/version.go, internal/observe/version_test.go, internal/observelog/export_test.go, internal/observelog/testdata/log.export.jsonl, internal/observelog/testdata/log.jsonl, internal/observelog/testdata/log.resumed.jsonl
  docs/reference/supervision.md <- internal/supervise/read.go, internal/supervise/source_kind_test.go
  docs/reference/versions.md <- internal/coverage/inventory.go, internal/ingest/proclog/descriptor.go, internal/observe/version.go
  docs/status.md <- api/proto/guardana/control/observe/v1alpha1/observation.proto, api/proto/guardana/control/observe/v1alpha1/source.proto, cmd/guardana-control/coverage.go, cmd/guardana-control/observe.go, cmd/guardana-control/observe_input_unix_test.go, cmd/guardana-control/process_test.go, internal/coverage/coverage.go, internal/coverage/inventory.go, internal/coverage/inventory_test.go, internal/coverage/lines.go, internal/coverage/planes_test.go, internal/coverage/process_test.go, internal/coverage/refused.go, internal/coverage/sources.go, internal/coverage/undeclared.go, internal/coverage/undeclared_process.go, internal/coverage/unseen.go, internal/coverage/unseen_test.go, internal/docscheck/versions_specs_test.go, internal/files/export_test.go, internal/files/files.go, internal/files/judge_owner_unix_test.go, internal/files/judged.go, internal/files/lock_exchange.go, internal/files/open_other.go, internal/files/open_unix.go, internal/files/pathwalk.go, internal/files/unswappable.go, internal/files/unswappable_path_unix_test.go, internal/files/unswappable_unix_test.go, internal/gatewayconfig/configfile.go, internal/gatewayconfig/notwritable.go, internal/gatewayconfig/pathwalk.go, internal/ingest/fuzz_test.go, internal/ingest/helpers_test.go, internal/ingest/ingest.go, internal/ingest/kinds_test.go, internal/ingest/proclog/decode.go, internal/ingest/proclog/decode_internal_test.go, internal/ingest/proclog/descriptor.go, internal/ingest/proclog/descriptor_test.go, internal/ingest/proclog/doc.go, internal/ingest/proclog/fields.go, internal/ingest/proclog/fixtures_test.go, internal/ingest/proclog/helpers_test.go, internal/ingest/proclog/import.go, internal/ingest/proclog/kept_test.go, internal/ingest/proclog/lines.go, internal/ingest/proclog/lines_internal_test.go, internal/ingest/proclog/property_test.go, internal/ingest/proclog/refused_test.go, internal/ingest/proclog/reimport_test.go, internal/ingest/proclog/testdata/README.md, internal/ingest/proclog/testdata/epoch.descriptor.json, internal/ingest/proclog/testdata/epoch.jsonl, internal/ingest/proclog/testdata/host.descriptor.json, internal/ingest/proclog/testdata/host.jsonl, internal/ingest/proclog/time.go, internal/observe/connection.go, internal/observe/connection_test.go, internal/observe/doubt.go, internal/observe/doubt_test.go, internal/observe/export_test.go, internal/observe/fuzz_test.go, internal/observe/ids_test.go, internal/observe/kindrules_test.go, internal/observe/kinds.go, internal/observe/kinds_test.go, internal/observe/line.go, internal/observe/line_strict_test.go, internal/observe/line_test.go, internal/observe/process.go, internal/observe/process_test.go, internal/observe/testdata/descriptor-process.json, internal/observe/testdata/process.jsonl, internal/observe/version.go, internal/observe/version_test.go, internal/observelog/export_test.go, internal/observelog/testdata/log.export.jsonl, internal/observelog/testdata/log.jsonl, internal/observelog/testdata/log.resumed.jsonl, internal/supervise/read.go, internal/supervise/source_kind_test.go
0 changed paths under a surface no page covers, of 14 surfaces examined
4 changed paths under a frozen path: a contract change, of 7 frozen paths examined
  docs/adr/0069-an-egress-proxys-access-log-is-an-independent-sensor-on-a-kind-neutral-descriptor.md (docs/adr/)
  docs/adr/0095-process-events-from-the-agents-host-are-a-second-independent-sensor.md (docs/adr/)
  docs/adr/README.md (docs/adr/)
  docs/status.md (docs/status.md)
0 covers globs matching no file, of 87 pages and 3454 files examined (git ls-files)

P1 built and reviewed in two rounds; P2 tests written red first, the
implementation they wait for not yet in.

Signed-off-by: Konrad Karauda <konrad@karauda.com>
Signed-off-by: Konrad Karauda <konrad@karauda.com>
Signed-off-by: Konrad Karauda <konrad@karauda.com>

# Conflicts:
#	docs/index.md
#	site/docs/index.html
#	site/llms.txt
#	site/sitemap.xml
…WIP)

Signed-off-by: Konrad Karauda <konrad@karauda.com>
…put directory (WIP)

Signed-off-by: Konrad Karauda <konrad@karauda.com>
…unseen process rows (WIP)

Signed-off-by: Konrad Karauda <konrad@karauda.com>
Signed-off-by: Konrad Karauda <konrad@karauda.com>

# Conflicts:
#	CHANGELOG.md
#	site/docs/changelog.html
Signed-off-by: Konrad Karauda <konrad@karauda.com>
@karauda
karauda requested a review from a team December 4, 2026 06:47
@karauda
karauda requested a review from a team as a code owner December 4, 2026 06:47
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Cloudflare builds and deploys previews for this pull request. Learn more about Cloudflare previews.

Worker Status Deployment Commit
guardana-control Failed Not deployed 1fa2a56

Updated: Dec 4, 2026, 14:22 UTC

Signed-off-by: Konrad Karauda <konrad@karauda.com>
Walk the input's path from the root as the gateway's config walk does, refuse
a shared directory that is not sticky anywhere on it, take from a sticky
shared directory only root's or its owner's entry, refuse a path naming no
file, and drop a user or executable that prints blank or holds '='.

Signed-off-by: Konrad Karauda <konrad@karauda.com>
In a sticky directory others may write, another account can create a
directory first and own what lies under it; judge each directory and link
the walk passes there by its owner as the file is, and take this account's
entries too, which no other account made. The codec checks a process's user
with the importer's account shape, so a line the importer would drop is not
taken from the log either.

Signed-off-by: Konrad Karauda <konrad@karauda.com>
Signed-off-by: Konrad Karauda <konrad@karauda.com>

# Conflicts:
#	CHANGELOG.md
#	docs/adr/README.md
#	docs/index.md
#	site/docs/changelog.html
#	site/docs/index.html
#	site/llms.txt
#	site/sitemap.xml
…written

In a sticky directory others may write, a hard link lets another account put
a file it does not own under the input's name: refuse a file with more than
one name there. Walk the directory part as written, so .. after a link names
what the kernel opens. Test the judge of the directory the file is opened
through. Refuse an executable holding a rune other than white space that
prints blank anywhere, and name three more blank runes.

Signed-off-by: Konrad Karauda <konrad@karauda.com>
…ser shape

The trust sections, the record, the changelog and the status page say that
every directory on an independent input's path is judged, what a sticky
shared directory takes, that a path naming no file is refused, and the shape
a process's user and executable keep.

Signed-off-by: Konrad Karauda <konrad@karauda.com>
…nter

Signed-off-by: Konrad Karauda <konrad@karauda.com>
@karauda
karauda merged commit 93a68a4 into main Dec 4, 2026
12 of 15 checks passed
@karauda
karauda deleted the feat/s30-process-kind branch December 4, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant