thePR0M3TH3AN
3ea37865cb
Add landing install copy UX and document remaining security/test TODOs
2026-02-23 16:33:57 -05:00
thePR0M3TH3AN
0789dfcb55
Harden agent policy and API import limits; fix docs links
2026-02-23 16:24:53 -05:00
thePR0M3TH3AN
03958106e1
Add agent mode, hardened TUI harness, coverage gates, and cross-platform installer smoke CI
...
This commit delivers four related improvements focused on reliability and automation while preserving existing human/TUI workflows.
1) Agent-first CLI mode (additive)
- Added new `seedpass agent` command group (`src/seedpass/cli/agent.py`) and wired it into CLI root.
- Implemented non-interactive profile bootstrap: `seedpass agent init` with `--seed|--seed-file|--generate-seed` and password env injection (`--password-env`).
- Added policy management commands: `agent policy-show` and `agent policy-set` with allow/deny kind controls.
- Added JSON-based secret retrieval: `seedpass -f <fingerprint> agent get <query> --ttl <sec>` with lease metadata and policy enforcement.
- Kept regular human mode fully available; no behavioral changes to interactive TUI entrypoint.
2) TUI agent harness deepening and stabilization
- Refactored harness into scenario profiles: `core`, `extended`, `stress` with `--scenario` selection.
- Added deterministic seeded stress campaigns: `--stress-cycles`, `--stress-seed`.
- Added scenario-specific required coverage keys and report metadata.
- Added post-condition assertions in extended scenario (archive/restore consistency, lock/unlock retrieval recovery).
- Hardened prompt matching for output variants and fail-fast behavior on non-zero SeedPass exit codes.
- Added harness unit tests for helper logic and control flow.
3) Critical module coverage gate tooling
- Added `scripts/check_critical_coverage.py` to enforce per-module thresholds from coverage JSON and report uncovered functions.
- Added override controls (`--threshold`, `--no-default-thresholds`) and optional JSON result output.
- Integrated coverage JSON generation into CI helper script and optional gate execution via `CRITICAL_COVERAGE_GATE=1`.
- Tuned default thresholds using full-suite baseline and increased strictness:
- `src/main.py >= 50%`
- `src/seedpass/core/manager.py >= 60%`
- `src/seedpass/core/encryption.py >= 80%`
- `src/seedpass/core/migrations.py >= 90%`
- Added tests for coverage gate parser/analysis logic and targeted manager worker path tests.
4) Installer validation framework for beta/main
- Added cross-platform installer smoke scripts:
- `scripts/installer_smoke_unix.sh`
- `scripts/installer_smoke_windows.ps1`
- Added GitHub Actions workflow `.github/workflows/installer-smoke.yml` with:
- reduced PR matrix
- full scheduled/manual matrix across OS/branch/mode
- per-job log capture and artifact uploads for failure triage
- Added installer testing documentation and linked from README.
Additional housekeeping
- Added `.venv/` to `.gitignore`.
- Updated docs for new harness scenarios, seeded stress mode, post-condition metadata, coverage gate usage, and installer testing workflow.
2026-02-23 15:47:59 -05:00
thePR0M3TH3AN
dd7290e83b
Add robust AI TUI harness, docs roadmap, and lock/unlock fix
2026-02-23 14:35:40 -05:00
thePR0M3TH3AN
39d3b72e66
Merge pull request #889 from PR0M3TH3AN/opt-totp-cache-13978863474736758588
...
⚡ Optimize TOTP display loop by caching derived secrets
2026-02-18 10:23:09 -05:00
google-labs-jules[bot] and PR0M3TH3AN
49c4da7ff0
Fix CI formatting failure and linting issues
...
- Reformatted `src/tests/helpers.py`, `src/tests/test_generate_test_profile_sync.py`, `src/tests/test_manifest_id_privacy.py`, and `src/tests/test_restore_from_nostr_setup.py` using `black`.
- Refactored `src/tests/helpers.py` to fix dispersed imports and remove unused imports (`time`, `asyncio`), resolving `flake8` warnings.
- Split long lines in `src/tests/helpers.py` to improve readability and compliance with style guides.
- Verified formatting with `black --check .`.
- Verified all tests pass with `pytest`.
- Confirmed `flake8` errors related to line length in `helpers.py` are acceptable as CI does not enforce strict 79-char limit (using `black` defaults).
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-18 04:05:16 +00:00
google-labs-jules[bot] and PR0M3TH3AN
1f92fe7901
Refactor test fixtures and fix linting issues
...
- Moved `client` and `dummy_nostr_client` fixtures to `src/tests/conftest.py` to fix F811 redefinition errors and improve test organization.
- Introduced `make_dummy_nostr_client` factory fixture to support tests requiring multiple client instances.
- Updated all affected tests to use the new fixture pattern.
- Removed deprecated `is_flag=True` from Typer boolean options in CLI modules.
- Fixed F541 (f-string without placeholders) in `entry_management.py`.
- Fixed F841 (unused variable) in `manager.py`.
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-18 03:39:55 +00:00
google-labs-jules[bot] and PR0M3TH3AN
b0c3a97ce3
perf: Cache derived TOTP secrets in display loops
...
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-18 03:39:51 +00:00
thePR0M3TH3AN
98d30efc1e
Merge pull request #881 from PR0M3TH3AN/test-api-services-18361836480733235045
...
Add tests for core API service classes
2026-02-16 13:20:11 -05:00
thePR0M3TH3AN
82b81aa79b
Merge pull request #882 from PR0M3TH3AN/fix/scan-codebase-linting-12332732608299564025
...
Fix formatting and logic errors found during codebase scan
2026-02-16 13:19:33 -05:00
google-labs-jules[bot] and PR0M3TH3AN
1c5cf3e087
Fix formatting in test_core_api_services.py
...
Applied `black` formatting to `src/tests/test_core_api_services.py` to resolve CI linting failure.
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-16 18:12:26 +00:00
google-labs-jules[bot] and PR0M3TH3AN
60b850b5bb
Clean up repo-context.txt removing phantom EventHandler
...
The file src/nostr/event_handler.py does not exist in the codebase, and EventHandler is not used in src/nostr/client.py.
However, src/repo-context.txt incorrectly contained references to this file and usage.
This change updates src/repo-context.txt to remove the hallucinated/outdated code references, aligning the documentation with the actual codebase state.
Attempts to remove unused imports in src/nostr/client.py were reverted as tests rely on monkeypatching them.
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-16 18:10:45 +00:00
google-labs-jules[bot] and PR0M3TH3AN
8e33f9c5e1
Fix formatting, linting, and logic errors from codebase scan
...
- Apply black formatting to 17 files.
- Fix F821 undefined name errors in:
- src/main.py: Add missing `queue` import.
- src/seedpass/core/encryption.py: Fix `JSONDecodeError` reference.
- src/utils/__init__.py: Fix exception variable scope in fallback code.
- src/utils/key_derivation.py: Add `TYPE_CHECKING` imports.
- src/seedpass/core/config_manager.py: Add `TYPE_CHECKING` imports.
- Initialize torch environment and TODO file.
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-16 18:09:48 +00:00
google-labs-jules[bot] and PR0M3TH3AN
fe4344c21a
Add comprehensive tests for core API service classes
...
Added `src/tests/test_core_api_services.py` to test public methods of
`VaultService`, `ProfileService`, `SyncService`, `EntryService`,
`ConfigService`, `UtilityService`, and `NostrService` in `src/seedpass/core/api.py`.
These tests ensure proper thread safety (locking) and delegation to
the underlying `PasswordManager` and its components.
Key improvements:
- Verified locking behavior for thread-safe operations.
- Validated delegation logic for all service methods.
- Covered edge cases like default vs. custom password generation policies.
- Mocked external dependencies (pubsub bus, manager components) to isolate service logic.
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-16 18:09:03 +00:00
google-labs-jules[bot] and PR0M3TH3AN
fe6334523c
Remove unused EventHandler class and its tests
...
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-16 17:43:16 +00:00
thePR0M3TH3AN
e528bebae3
Refine console logging
2025-08-23 13:19:27 -04:00
thePR0M3TH3AN
d106802a18
Reduce console logging noise
2025-08-23 12:46:52 -04:00
thePR0M3TH3AN
d030cf9692
Raise InvalidToken-compatible errors
2025-08-23 12:21:56 -04:00
thePR0M3TH3AN
bebbca8169
Add test for friendly decryption message?
2025-08-23 12:05:58 -04:00
thePR0M3TH3AN
7b0344739f
refactor: restrict console logging and pause during UI
2025-08-22 22:24:04 -04:00
thePR0M3TH3AN
b307728c05
feat: support pausing console logs
2025-08-22 21:50:04 -04:00
thePR0M3TH3AN
c0a6187478
Handle Ctrl-C in masked input
2025-08-22 21:32:18 -04:00
thePR0M3TH3AN
d5e0d61db4
Use custom SeedPassError instead of sys.exit
2025-08-22 10:01:14 -04:00
thePR0M3TH3AN
ee3d9d8e9d
feat: add local backup restore during seed setup
2025-08-22 09:39:38 -04:00
thePR0M3TH3AN
a2a663eed1
Default offline mode
2025-08-22 09:10:06 -04:00
thePR0M3TH3AN
4df6ff639e
List seed setup choices for readability
2025-08-20 22:33:23 -04:00
thePR0M3TH3AN
505cf1a950
feat: track nostr account index per seed
2025-08-20 22:15:35 -04:00
thePR0M3TH3AN
cb9a068e40
Handle config decryption errors gracefully
2025-08-20 21:46:09 -04:00
thePR0M3TH3AN
c13742f3f3
Merge pull request #838 from PR0M3TH3AN/codex/add-manual-export-without-encryption
...
Add option to export and import database without encryption
2025-08-20 21:08:49 -04:00
thePR0M3TH3AN
6c8b1928b8
Add option to export and import database without encryption
2025-08-20 21:00:12 -04:00
thePR0M3TH3AN
492bfba3fb
tests: add offline default and kdf slider
2025-08-20 20:51:36 -04:00
thePR0M3TH3AN
857b1ef0f9
Document memory zeroization caveat
2025-08-20 20:29:58 -04:00
thePR0M3TH3AN
dd513cf964
Add nonce tracking and V3 encryption format
2025-08-20 19:43:45 -04:00
thePR0M3TH3AN
d99af30d9f
Switch API token to bcrypt
2025-08-20 19:29:08 -04:00
thePR0M3TH3AN
0315562d80
test: ensure manifest IDs omit fingerprint
2025-08-20 19:11:24 -04:00
thePR0M3TH3AN
619226d336
feat: support random and deterministic TOTP secrets
2025-08-20 18:36:19 -04:00
thePR0M3TH3AN
b97d60778b
Restore compatibility for key hierarchy
2025-08-20 18:12:02 -04:00
thePR0M3TH3AN
bbb26ca55a
test: add key hierarchy tests
2025-08-20 17:57:50 -04:00
thePR0M3TH3AN
26632c0e70
Fix KDF metadata handling and headless password prompts
2025-08-20 17:23:10 -04:00
thePR0M3TH3AN
06ca51993a
Add KDF config with per-file metadata
2025-08-19 09:53:46 -04:00
thePR0M3TH3AN
87999b1888
test: cover backup restore startup
2025-08-19 08:53:26 -04:00
thePR0M3TH3AN
73183d53a5
test: cover invalid word and fingerprint flows
2025-08-18 21:55:39 -04:00
thePR0M3TH3AN
bd86bdbb3a
test: add key-value and managed account entry tests
2025-08-18 21:12:32 -04:00
thePR0M3TH3AN
468608a369
Support listing all entry types
2025-08-18 19:12:55 -04:00
thePR0M3TH3AN
50532597b8
Test BIP85 init with seed bytes and xprv
2025-08-12 11:01:17 -04:00
thePR0M3TH3AN
785acf938c
chore: remove unused nostr utils
2025-08-12 10:26:51 -04:00
thePR0M3TH3AN
69f1619816
Remove obsolete logging configuration module
2025-08-12 10:03:54 -04:00
thePR0M3TH3AN
a21efa91db
refactor: rename entropy length parameter
2025-08-12 09:41:37 -04:00
thePR0M3TH3AN
19577163cf
Add vault locked flag and enforce access checks
2025-08-12 08:48:19 -04:00
thePR0M3TH3AN
3ff3e4e1d6
Use manager timed_input in MenuHandler
2025-08-11 21:13:44 -04:00