Add log-anomaly module: Spring Boot log parser, template mining, swappable embedder, k-means baseline, novel-template and rate-spike detectors with measured blind spots, incidents and a template-only summary prompt on Spring Boot 4.2.0

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
This commit is contained in:
2026-12-01 23:57:00 +05:30
co-authored by Claude Sonnet 5.5
parent 943351bccb
commit dc94d7fece
46 changed files with 2048 additions and 0 deletions
@@ -0,0 +1,15 @@
# A log file written by Spring Boot 4.2.0 itself (spring.application.name=shop)
## The first three lines, and the ERROR with its first stack-trace lines
2026-12-01T23:53:34.953+05:30 INFO 12412 --- [shop] [main] o.a.maven.surefire.booter.ForkedBooter : Starting ForkedBooter v3.5.4 using Java 25.0.5.1 with PID 12412 (started by root in /tmp/work/java-ai-agents/log-anomaly)
2026-12-01T23:53:34.975+05:30 INFO 12412 --- [shop] [main] o.a.maven.surefire.booter.ForkedBooter : No active profile set, falling back to 1 default profile: "default"
2026-12-01T23:53:37.369+05:30 INFO 12412 --- [shop] [main] o.s.boot.tomcat.TomcatWebServer : Tomcat initialized with port 0 (http)
2026-12-01T23:53:38.561+05:30 ERROR 12412 --- [shop] [main] com.ankurm.shop.OrderController : Failed to process order 42
java.lang.IllegalStateException: quantity must be greater than 0
at com.ankurm.logs.RealSpringBootLogTest.theParserReadsWhatSpringBootActuallyWrites(RealSpringBootLogTest.java:23) ~[test-classes/:na]
## Parsed
96 physical lines, 11 events, 0 orphan lines
ERROR event: logger=OrderController message=Failed to process order 42 continuation lines=85
exception line: java.lang.IllegalStateException: quantity must be greater than 0