Repository: Java.Web.Server.Telnet.Front.Java.21
Review Date: 2026-09-16
Branch: main
This revision records the current engineering state of the JWSTF/NitroWebExpress system after review of the root architecture, administration layer, Black Belt tooling, Bitcoin area, orchestration scripts, configuration, integrity tooling, and module registry.
The requested qualitative scale is used as a software maturity/code-quality description, not as a measured benchmark:
| Area | Rating | Current assessment |
|---|---|---|
| Overall system architecture | Great | Broad modular architecture with server, module, administration, deployment, and configuration layers. |
| Code organization | Better | Strong separation exists, but the repository remains large and contains legacy/parallel implementation paths. |
| Java 21 integration | Great | Java 21 is the declared primary platform with a coherent Java server/module model. |
| Administration layer | Great | Local JavaFX plus C/C++ administrative tooling is documented and separated from privileged host authority. |
| Black Belt subsystem | Great | Web and CLI surfaces are documented with C11/C++17/Java 21 clients and explicit transport/output behavior. |
| Bitcoin subsystem | Better | Substantial functionality exists, but descriptor, verification, and testing discipline should be strengthened. |
| Build/deployment tooling | Better | Many useful orchestration scripts exist; consolidation and reproducibility remain targets. |
| Integrity/security tooling | Great | SHA-256 verification, history, concerns, and restoration mechanisms are documented; enforcement should continue to be hardened. |
| Configuration management | Better | XML registries provide substantial centralization; systematic validation should be expanded. |
| Test coverage | Good | Test tooling exists, but this review did not establish comprehensive coverage or successful execution of every module. |
| Runtime performance | Not benchmarked | No reproducible benchmark run was performed during this documentation review. |
| Operational reliability | Better | Startup/shutdown/status/deployment tooling is extensive; failure-path testing should be expanded. |
| Documentation | Great | Root, administration, Black Belt, and revision documentation now provide substantially clearer system context. |
| Release discipline | Better | Versioned components exist, but manifests, checksums, provenance, and reproducible-build metadata should be standardized. |
The project is a multi-module Java 21 server platform with NIO/TCP and Telnet-oriented services, Tomcat web frontends, Java/C/C++ components, centralized orchestration, XML configuration, MySQL-backed modules, administrative tooling, integrity verification, AI/inference components, cryptographic communication, and Bitcoin-related services.
The admin/ area contains LocalAdmin.java, RoyalsUSGuardIAdmin.java, StateSecurityDownIAdmin.java, admin-c.c, and admin-cpp.cpp. The administrative model is review-first; privileged host changes remain subject to normal authorization controls.
The Black Belt CLI layer is documented under modules/black-belt/bin/ with C11, C++17, and Java 21 clients, structured JSON input, natural-language input, configurable model selection, exact-response output, save/no-save modes, HTTPS/SSH transport, and explicit insecure-transport opt-in.
The repository contains Bitcoin material at multiple architectural levels, including the top-level bitcoin/ area and modules/bitcoin/. The current wallet tooling treats wallet files as metadata artifacts and directs authoritative balance queries to Bitcoin Core RPC.
Bitcoin Core is security-critical and its upstream project emphasizes unit tests, functional tests, cross-platform CI, and independent QA. JWSTF Bitcoin tooling should move toward an equally explicit verification model where applicable.
- Root README updated with current administration and Black Belt information.
- Administration README updated with descriptor dates and current component inventory.
- Black Belt CLI documentation dated and consolidated.
- Source descriptors dated for the administration programs.
- This
REVISIONS.mdestablishes a persistent engineering review record. - Bitcoin subsystem limitations and improvement targets are explicitly recorded.
- Add a repository-wide build verification job.
- Run Java compilation for every supported module.
- Build C and C++ native components with warnings enabled.
- Run unit/integration tests.
- Record exact Java, GCC/Clang, Gradle/Maven, MySQL, and Tomcat versions.
- Publish pass/fail results as build artifacts.
- Replace legacy balance inference with authenticated Bitcoin Core balance observations.
- Add deterministic wallet-summary and BTC parsing tests.
- Validate filenames before numerical aggregation.
- Prefer fixed-point integer satoshi accounting where monetary arithmetic is required.
- Add checksum/signature verification for downloaded Bitcoin Core releases.
- Record release version, source URL, SHA-256, signature status, and verification date.
Create reproducible benchmarks for Main NIO connection handling, Telnet latency, concurrent connection throughput, Black Belt latency, Bitcoin service operations, database latency, startup/shutdown time, memory consumption, and heap behavior.
No numerical performance rating should be treated as established until these measurements have been run.
- Add service-level health checks.
- Test partial startup failures.
- Test database-unavailable startup.
- Test Tomcat deployment failures.
- Test module restart isolation.
- Test integrity-repair failure paths.
- Add bounded retry/backoff behavior where appropriate.
- Enforce least privilege for installation and repair operations.
- Keep privileged operations explicit and auditable.
- Verify all downloaded artifacts before execution.
- Avoid secrets in source, logs, committed configuration, and generated reports.
- Add automated dependency/security scanning.
- Establish a formal threat model for externally reachable TCP ports.
Good → Better → Best → Great → Super
- System architecture: Great
- Code organization: Better
- Administration: Great
- Black Belt: Great
- Bitcoin: Better
- Build/deployment: Better
- Security/integrity: Great
- Documentation: Great
- Testing: Good
- Performance: Not benchmarked
- Overall engineering maturity: Great, with a clear path toward Super
“Super” is intentionally reserved for a future state supported by reproducible builds, comprehensive automated testing, security verification, independent QA, and published performance measurements rather than documentation alone.
- Completed system-wide qualitative engineering review.
- Added current-state ratings.
- Documented administration and Black Belt changes.
- Reviewed Bitcoin subsystem structure and wallet-summary implementation.
- Recorded Bitcoin valuation and verification concerns.
- Added prioritized engineering roadmap.
- Established this file as the persistent revision record.
- Removed embedded Bitcoin RPC password material from
BitcoinBase.java. - Changed Bitcoin RPC design toward Bitcoin Core cookie authentication.
- Made the Bitcoin RPC port configurable with
BITCOIN_RPC_PORT. - Disabled the legacy
rm -rwallet deletion path inTraderModule. - Removed file-size-as-BTC valuation from
wallet-summary.sh. - Made fiat valuation optional and explicitly operator supplied through
BTC_PRICE_USD. - Added SHA-256 metadata output to wallet summaries.
- Corrected the central Bitcoin indexer description so file size is explicitly metadata rather than balance.
- Added
bitcoin/DESIGN.mddescribing the target architecture and migration plan. - Added
bitcoin/SECURITY.mddocumenting the security model and remaining work.
- Removed
btc_valuefrom wallet-session balance displays. - Changed wallet listings to metadata-only output.
- Added strict Bitcoin version validation before dynamic table-name construction.
- Added null/DB availability handling to session commands.
- Added exact BTC decimal parsing with an eight-decimal-place limit.
- Converted recorded BTC amounts to exact satoshis before database persistence.
- Replaced legacy
bitcoin_trades_v{N}event storage withbitcoin_trade_events_v{N}. - Added explicit
RECORDEDtrade-event state. - Made
trade btcexplicitly non-broadcasting and non-submitting. - Made optional fiat valuation use
BTC_PRICE_USDandBigDecimalrather than floating-point multiplication. - Reduced user-facing database errors to generic operational messages.
- Updated
bitcoin/DESIGN.mdwith the new session/accounting model.
- Introduce normalized wallet artifact/balance/trade tables.
- Replace remaining inferred
btc_valuedatabase fields with authenticated Bitcoin Core observations. - Add RPC command allowlisting.
- Add address and amount validation when actual transaction submission is implemented.
- Add CSRF/session/rate-limit controls to the Bitcoin web administration surface.
- Add deterministic wallet-indexing and monetary-parsing tests.
- Verify Bitcoin Core binaries by checksum/signature before execution.
- Migrate any remaining wallet-blob storage toward metadata/reference storage.