develop-hamza-1 #120

Merged
hamza.khyari merged 10 commits from develop-hamza-1 into master 2026-02-19 15:40:45 +00:00
Member

Summary

Hamza's first development branch combining M2-era security and concurrency features.

## Summary Hamza's first development branch combining M2-era security and concurrency features.
hamza.khyari self-assigned this 2026-02-19 13:49:30 +00:00
hamza.khyari added 5 commits 2026-02-19 13:49:30 +00:00
Refs: H-21, SEC5.secrets
Planned: Day 13
Implement centralized redaction utility that masks API keys, tokens,
and credentials across CLI output, structlog logs, and error messages.

- Add shared/redaction.py with pattern-based secret detection (sk-*,
  sk-ant-*, tok_*, Bearer tokens), sensitive key name detection,
  database URL masking, custom pattern registration, and thread-safe
  global show_secrets flag
- Add config/logging.py with structlog configuration integrating the
  secrets_masking_processor into the processor chain
- Add --show-secrets global CLI option to reveal secrets when needed
- Redact error details in main.py, project.py, and auto_debug.py
  error handlers before printing
- Wrap format_output() in formatting.py with automatic dict redaction
- Add show_secrets field and safe __repr__ to Settings model
- Add 43-scenario Behave feature (features/security_secrets.feature)
- Add 10 Robot Framework smoke tests (robot/security_secrets.robot)
- Add ASV benchmarks (benchmarks/security_secrets_bench.py)
- Add reference docs (docs/reference/secrets_handling.md)
Merge pull request 'feat(security): add secrets masking and validation (H-21/SEC5)' (#116) from feature/m4-security-secrets into develop-hamza-1
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 20s
CI / typecheck (pull_request) Successful in 28s
CI / security (pull_request) Successful in 29s
CI / integration_tests (pull_request) Successful in 2m18s
CI / unit_tests (pull_request) Successful in 4m1s
CI / docker (pull_request) Successful in 1m1s
CI / coverage (pull_request) Successful in 11m12s
CI / benchmark-regression (pull_request) Successful in 8m25s
4eda3b6453
Reviewed-on: #116
hamza.khyari added 5 commits 2026-02-19 14:22:24 +00:00
Refs: H-24, CONC3.gc
Planned: Day 13
- Add best-effort active plan detection from sandbox mtimes to
  protect running plans from cleanup (B1)
- Add ge= validators on all retention settings to prevent unsafe
  negative/zero values; checkpoint max requires ge=2 (B3, NB6)
- Handle CoW sandbox plan_id extraction (ca-cow-sandbox- prefix)
  so copy-on-write sandboxes are also protected (NB4)
- Add OSError guards in sandbox dir iteration for race safety (NB7)
- Add TODO markers and CLI notice for unimplemented session cleanup (NB1)
- Rebase onto develop-hamza-1 to incorporate SEC5 changes (B2)
- Use model_copy(update=...) in test helpers so Pydantic ge=
  validators are enforced during tests, not just env vars (NEW-1)
- Promote _extract_plan_id_from_sandbox to public staticmethod
  and reuse in CLI active-plan detection to eliminate duplicate
  plan-ID parsing logic (NEW-2)
- Cache _get_sandbox_dirs result for service instance lifetime
  and have CLI active-plan detection use the cached listing so
  /tmp is iterated only once per invocation (NEW-3)
Merge pull request 'feat(ops): add cleanup commands [H-24, CONC3]' (#117) from feature/m4-concurrency-cleanup into develop-hamza-1
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 17s
CI / quality (pull_request) Successful in 18s
CI / security (pull_request) Successful in 30s
CI / typecheck (pull_request) Successful in 36s
CI / integration_tests (pull_request) Successful in 3m10s
CI / unit_tests (pull_request) Successful in 4m14s
CI / docker (pull_request) Successful in 39s
CI / coverage (pull_request) Successful in 10m56s
CI / benchmark-regression (pull_request) Successful in 8m26s
708574912e
Reviewed-on: #117
hamza.khyari merged commit 9244b96190 into master 2026-02-19 15:40:45 +00:00
freemo added this to the v3.1.0 milestone 2026-02-23 17:26:08 +00:00
freemo added the
State
Completed
label 2026-03-04 00:59:21 +00:00
Sign in to join this conversation.
No Reviewers
No Label
State
Completed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#120