Core Fs
Canonical OpenSpec capability for Core Fs.
Document layout: Feature capability layoutConforming
## Purpose## Requirements
Core.FS Specification
Purpose
Provides filesystem text operations and existence checks through runtime filesystem builtins.
Requirements
Requirement: Text file operations: Decision [D-CORE-PRIM-0160]
The Beskid standard SHALL enforce the following migrated contract section. Accepted ADR decisions are binding; uppercase requirement keywords retain their BCP-14 meaning.
ReadAllTextMUST delegate to__fs_read_textand returnResult<string, FsError>.WriteAllTextMUST delegate to__fs_write_textand returnResult<Unit, FsError>. Filesystem failures SHALL be represented as typed results rather than panics.
Stable ID: BSP-REQ-8C4F1A7E0D92B635
Scenario: Conformance exercises Decision
- GIVEN an implementation claims conformance with this capability
- WHEN behavior governed by this contract section is exercised
- THEN every MUST, SHALL, REQUIRED, prohibition, and accepted decision in the section is satisfied
Requirement: Existence and deletion: Decision [D-CORE-PRIM-0161]
The Beskid standard SHALL enforce the following migrated contract section. Accepted ADR decisions are binding; uppercase requirement keywords retain their BCP-14 meaning.
Exists(string path)SHALL delegate to__fs_existsand return a boolean.Delete(string path)MUST delegate to__fs_deleteand returnResult<Unit, FsError>.
Stable ID: BSP-REQ-D17A60F4C9E82B53
Scenario: Conformance exercises Decision
- GIVEN an implementation claims conformance with this capability
- WHEN behavior governed by this contract section is exercised
- THEN every MUST, SHALL, REQUIRED, prohibition, and accepted decision in the section is satisfied
Requirement: Filesystem error taxonomy and tier: Decision [D-CORE-PRIM-0162]
The Beskid standard SHALL enforce the following migrated contract section. Accepted ADR decisions are binding; uppercase requirement keywords retain their BCP-14 meaning.
FsErrorSHALL includeInvalidPath(string),NotFound(string),PermissionDenied(string), andIOError(string)variants.Core.FSandCore.FS.FsErrorMUST be exposed at@tier(supported).
Stable ID: BSP-REQ-5B9E3D7A1C64F820
Scenario: Conformance exercises Decision
- GIVEN an implementation claims conformance with this capability
- WHEN behavior governed by this contract section is exercised
- THEN every MUST, SHALL, REQUIRED, prohibition, and accepted decision in the section is satisfied