# Context Glossary

## POSIX-first

The source model where liveside prefers POSIX interfaces and semantics as the default vocabulary for portability. Non-POSIX platforms are supported by depending on external compatibility libraries rather than by carrying broad compatibility code in liveside itself.

## First-class Windows support

Windows is a supported target with expected build and runtime behavior, not a best-effort afterthought. Support may use external compatibility dependencies. For filesystem watching, Windows should have native event-driven behavior rather than only polling.

## Compatibility dependency

An external library or header package that supplies standard or POSIX-like interfaces missing from a target platform, reducing liveside's own maintenance burden.

## Port

Project-owned compatibility or reusable platform code that may later be extracted into an external library if it matures. Ports are acceptable for capabilities that are core to liveside and not adequately covered by existing small libraries.

## Watcher port

A port that adapts a native filesystem notification facility to liveside's watcher model. A watcher port is acceptable when no suitable external compatibility library provides the needed core behavior.

## Downloaded dependency

A dependency fetched into the project by mor from the URLs recorded in `requirements.ini`. Downloaded dependencies are not vendored into source control.

## Floating dependency

A downloaded dependency intentionally tracked by branch name rather than pinned to an exact commit. Breakage risk is accepted when the dependency's public contract is stable enough for liveside's needs.

## Ignore file

A project-local file, such as `.livesideignore` or `.gitignore`, that defines paths liveside should not watch or treat as reload-triggering content. liveside loads both files by default at each directory level, applying parent rules before child rules and `.gitignore` before `.livesideignore` within the same directory.

## Ignore rule

A gitignore-style pattern that determines whether a path should be excluded from watching and reload triggering. Ignore handling should support commonly useful features, including comments, blank lines, exact paths, `*`, directory suffix `/`, anchored `/`, recursive `**`, basename matching, negation `!`, escaped `#`, escaped spaces, and nested ignore files with directory-scoped rules.

## Ignored path

A path matched by the active ignore rules. An ignored path may be observed by a raw platform watcher, but it must not cause a browser reload.

## Ignore port

The reusable path-ignore parser and matcher under `ports/ignore`. It is project-owned because no suitable small C dependency was found, but it should be designed so it can be extracted into a standalone library later.

## frankensocket

The project-owned socket smoothing layer under `ports/frankensocket`. It keeps BSD socket vocabulary visible across POSIX and Win32 by defining missing names such as `SOCKET` and `INVALID_SOCKET` on POSIX, while exposing frankensocket-specific functions for unavoidable differences such as startup, cleanup, close, send, recv, and error reporting.

## Unsupported platform

A platform with enough POSIX support to compile liveside but without a native watcher backend. Unsupported platforms use polling as the fallback watcher behavior.
