Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/contract-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ jobs:
ASAN_OPTIONS: detect_leaks=1:strict_string_checks=1
UBSAN_OPTIONS: halt_on_error=1:print_stacktrace=1
run: |
cmake -S . -B build-bootstrap-sanitized -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DRATEGUARD_FETCH_GRPC=OFF -DRATEGUARD_REQUIRE_PRODUCT_CONTRACTS=ON -DRATEGUARD_SANITIZE_BOOTSTRAP=ON -DRATEGUARD_SANITIZE_RUNTIME=ON
cmake --build build-bootstrap-sanitized --parallel 2 --target rateguard_bootstrap_inventory_tests rateguard_bootstrap_inventory_independent_tests rateguard_bootstrap_store_tests rateguard_bootstrap_store_independent_tests rateguard_bootstrap_recovery_reader_tests rateguard_bootstrap_recovery_reader_independent_tests
ctest --test-dir build-bootstrap-sanitized --output-on-failure -R '^rateguard[.]bootstrap_(inventory|store|recovery_reader)(_independent)?$'
cmake -S . -B build-bootstrap-sanitized -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DRATEGUARD_FETCH_GRPC=OFF -DRATEGUARD_REQUIRE_PRODUCT_CONTRACTS=ON -DRATEGUARD_SANITIZE_BOOTSTRAP=ON -DRATEGUARD_SANITIZE_RUNTIME=ON -DRATEGUARD_SANITIZE_MANIFEST=ON
cmake --build build-bootstrap-sanitized --parallel 2 --target rateguard_bootstrap_inventory_tests rateguard_bootstrap_inventory_independent_tests rateguard_bootstrap_store_tests rateguard_bootstrap_store_independent_tests rateguard_bootstrap_recovery_reader_tests rateguard_bootstrap_recovery_reader_independent_tests rateguard_epoch_artifact_layout_tests rateguard_epoch_artifact_integration_independent_tests
ctest --test-dir build-bootstrap-sanitized --output-on-failure -R '^rateguard[.](bootstrap_(inventory|store|recovery_reader)(_independent)?|epoch_artifact_(layout|integration_independent))$'

- name: Check durable manifest components under sanitizers
env:
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
- name: Preserve the observed build manifest
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: rg001-build-manifest-${{ github.run_id }}
name: rg001-build-manifest-${{ github.run_id }}-${{ github.run_attempt }}
path: |
build/build-manifest.json
build/native-trusted-time.json
Expand Down
27 changes: 27 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -665,3 +665,30 @@ add_test(NAME rateguard.bootstrap_recovery_reader_independent
COMMAND rateguard_bootstrap_recovery_reader_independent_tests)
set_tests_properties(rateguard.bootstrap_recovery_reader rateguard.bootstrap_recovery_reader_independent
PROPERTIES TIMEOUT 120)


# RG-006 layout grammar and optional manifest-store recovery diagnostics.
target_link_libraries(rateguard_bootstrap_recovery_reader PUBLIC rateguard_manifest_codec)

add_executable(rateguard_epoch_artifact_layout_tests
tests/supervisor/epoch_artifact_layout_test.cpp)
target_link_libraries(rateguard_epoch_artifact_layout_tests PRIVATE rateguard_epoch_gate)
target_compile_options(rateguard_epoch_artifact_layout_tests PRIVATE -Wall -Wextra -Werror -pedantic)
if(RATEGUARD_SANITIZE_BOOTSTRAP)
target_compile_options(rateguard_epoch_artifact_layout_tests PRIVATE -fsanitize=address,undefined -fno-omit-frame-pointer)
target_link_options(rateguard_epoch_artifact_layout_tests PRIVATE -fsanitize=address,undefined)
endif()
add_test(NAME rateguard.epoch_artifact_layout COMMAND rateguard_epoch_artifact_layout_tests)
set_tests_properties(rateguard.epoch_artifact_layout PROPERTIES TIMEOUT 30)

add_executable(rateguard_epoch_artifact_integration_independent_tests
tests/supervisor/epoch_artifact_integration_independent_test.cpp)
target_link_libraries(rateguard_epoch_artifact_integration_independent_tests PRIVATE
rateguard_bootstrap_recovery_reader rateguard_bootstrap_store rateguard_manifest_store
nlohmann_json::nlohmann_json)
target_compile_options(rateguard_epoch_artifact_integration_independent_tests PRIVATE -Wall -Wextra -Werror -pedantic)
add_test(NAME rateguard.epoch_artifact_integration_independent
COMMAND rateguard_epoch_artifact_integration_independent_tests)
set_tests_properties(rateguard.epoch_artifact_integration_independent PROPERTIES TIMEOUT 120)

target_link_libraries(rateguard_bootstrap_recovery_reader_tests PRIVATE rateguard_manifest_store)
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Read in this order:

1. [PRD revision 8](docs/PRD.md) — product goals and release gates.
2. [SRD revision 5](docs/SRD.md) — normative behavior and test obligations.
3. [HLD revision 4](docs/HLD.md) — proposed process and deployment architecture.
4. [LLD revision 5](docs/LLD.md) — proposed interfaces, state transitions, classes, and implementation order.
3. [HLD revision 5](docs/HLD.md) — proposed process and deployment architecture.
4. [LLD revision 9](docs/LLD.md) — proposed interfaces, state transitions, classes, and implementation order.
5. [Implementation stories](docs/STORIES.md) and [JSON context blocks](docs/context-blocks.json) — planned work and acceptance evidence.
6. [Agile sprint plan](docs/SPRINT-PLAN.md) — minute-based effort estimates, sequence, roles, and acceptance gates.

Expand All @@ -25,9 +25,9 @@ Live policy changes (PRD-013) and long-operation permits (PRD-014) are deferred.

## Status and implementation notes

RG-001 contracts/build ([PR #5](https://github.com/kshiteesh28/DistributedRateGuard/pull/5)) and RG-002 immutable policy/checked arithmetic ([PR #6](https://github.com/kshiteesh28/DistributedRateGuard/pull/6)) have passing component evidence and await review; neither is merged to main. RG-003 clock component ([PR #8](https://github.com/kshiteesh28/DistributedRateGuard/pull/8)) passed Linux/sanitizer checks; full service/checker integration remains pending. Read the [live per-agent scrum log](https://github.com/kshiteesh28/DistributedRateGuard/blob/docs/scrum-work-log/docs/SCRUM-WORK-LOG.md), [build instructions](docs/build.md), [RG-001 evidence](docs/evidence/RG-001.md), and [RG-002 evidence](docs/evidence/RG-002.md) for scope and observed results. Quota enforcement, release benchmarks, and model checking are not implemented or claimed. All product thresholds remain goals.
Component implementations are integrated on `feature/distributed-rateguard`: wire/build contracts, immutable policy and fixed-point arithmetic, clock provenance, security/client guards, bounded history and inspection, local lifecycle, durable manifests/intents, runtime ownership and recovery-artifact diagnostics. Read the [per-agent scrum log](https://github.com/kshiteesh28/DistributedRateGuard/blob/feature/distributed-rateguard/docs/SCRUM-WORK-LOG.md), [build instructions](docs/build.md) and [component evidence](docs/evidence/RG-006-F.md). The [final PR to main](https://github.com/kshiteesh28/DistributedRateGuard/pull/13) remains unmerged. Live quota/forwarding services, real process control and witness integration, release benchmarks and model checking remain pending. All product thresholds remain goals.

The source of truth is the current `main` branch. The local path hint in the context file currently contains documentation only and is not a verified Git checkout. Use the relevant review branch for implementation; dependent PRs may stack on a verified feature branch. The primary Ubuntu package lock is based on observed CI. Actual Docker target/image-digest evidence remains open; hosted component tests do not satisfy that deployment gate. Keep enforcement services fail-closed until shared-clock provenance, witness durability, process fencing, and identity fixtures pass.
PRD 8 and SRD 5 on `main` remain the product/behavior contracts; current HLD/LLD and implementation evidence are on `feature/distributed-rateguard` until final promotion. The local path hint in the context file currently contains documentation only and is not a verified Git checkout. Use the relevant review branch for implementation; dependent PRs may stack on a verified feature branch. The primary Ubuntu package lock is based on observed CI. Actual Docker target/image-digest evidence remains open; hosted component tests do not satisfy that deployment gate. Keep enforcement services fail-closed until shared-clock provenance, witness durability, process fencing, and identity fixtures pass.

## Research foundation

Expand Down
Loading
Loading