Commit graph

12 commits

Author SHA1 Message Date
Anthony Alaribe
ffd82ba55b
Long-lived tabs reload onto a new frontend bundle; make land merges without losing the race (#854)
- Every response carries X-Monoscope-Build (the frontend bundle the server
  serves) and the page carries it in a meta tag; an htmx response naming a
  different bundle reloads the tab once. A tab left open for months on SDK
  0.11.6 kept filing errors that read as regressions of fixed code.
- scripts/land.sh / make land PR=<n>: sign off, wait for the tree's image,
  merge only while master is still the base, else rebase and repeat.
2026-11-11 13:27:06 +01:00
Anthony Alaribe
a3b36d5609
Read-only dashboards: one refusal on every route, linking refuses built-ins, template tags and starring (#844)
* Dashboard read-only follow-ups: one refusal on every route, linking refuses built-ins, template tags and starring

- One ReadOnly refusal: rename, tab rename, reorder and duplicate-widget are Action
  routes that declare it; widget saves, monitors and the YAML drawer reuse its message.
- assignDashboardRepository refuses a built-in itself, so the repository-folder path no
  longer relies on a schema IS NOT NULL filter.
- Templates load once per request into an opaque Templates value; edit permission is
  derived from it, and an empty list can no longer grant write access.
- Entrypoint tags and starring come from the template YAML (tags:, starred:).
- The refresh fill stays still under prefers-reduced-motion.
- live-reload and live-test-dev refuse to start past GHCI_MAX (default 6) GHCi sessions.
- Drop two redundant test imports.

* requireEditable takes the dashboard row; drop an unused lens import

* Simplify: linking returns the write proof, one sync refusal message, tab rename redirects through its outcome, budget check lives in reap-ghci.sh
2026-11-10 22:45:36 +01:00
Anthony Alaribe
8f7b3438d0 Consolidate src/Pkg (45 -> 29 modules); nested monitor YAML config
Pkg consolidation:
- Slack OAuth, rate limiting and MCP reads -> Pkg.Slack
- ErrorMetrics -> Metrics; Sampling -> IngestBudget; Pkg.UUID inlined into Telemetry
- Rum -> Parser; Facets -> Components.Table; TraceSessionCache -> QueryCache
- PatternMerge -> Drain (stripCodeBlock moves to Data.Effectful.LLM to drop the Pkg.AI edge)
- SchemaLearning Catalog+Hot -> Pkg.SchemaLearning; the flush worker -> Models.Apis.SchemaCatalog
- AgentOperation -> AgentCatalog (AgentAwaitingReview -> CodeReview.Types to break the cycle)
- TestClock -> Data.Effectful.Hasql, beside runHasqlPool
- Icons.TH -> DeriveUtils, icon table -> Utils
- StackTrace folded into ErrorFingerprint: one StackFrame type and one renderer;
  the runtime grammar stays frozen (fingerprints), framesFor is the lossless view grammar
- OperationCall and AgentPolicy JSON derived via deriving-aeson; wire format unchanged,
  the never-shipped nullary Administration decoder and its spec block removed
- Qualified aliases renamed to their modules

Also: nested condition/evaluation/notify monitor YAML (shared Pkg.MonitorConfig),
docs moved to monoscopehq.com, npm CLI packages removed, tests/golden -> test/golden.
2026-11-05 00:54:10 +01:00
Anthony Alaribe
d5671d62ee
Unify autonomous agents across Slack, web and native jobs (#619)
Slack, web conversations, routines and native review/fix jobs share the capability catalog, current authority checks, run ledger and operation receipts. Runs, charts and saved reports open inside the conversation inspector.

Consolidates duplicate regression suites and documentation while retaining the product contracts, native recovery evidence and migration baseline transition.

Validation: all eleven exact-input local checks pass, including 1,216 integration examples (25 pending VM cases), 2,105 doctests, 315 unit examples, 16 CLI examples, 1,041 UI tests and 172 browser tests (one skip). Separate native/KVM acceptance is recorded in the review. The exact Linux AMD64 image was built locally on this Mac with OrbStack/Rosetta.
2026-11-02 11:15:00 +01:00
Anthony Alaribe
52d8521bdb
Bots specs: one lifecycle spec; snapshots use UPDATE_SNAPSHOTS (#768)
* BotsSpec: bot specs merged into self-contained lifecycles

Slack, Discord, WhatsApp and agent specs plus their three helper modules
become one Pages.BotsSpec (36 its, was 106). Cross-spec Slack/Discord
helpers move to Pkg.TestUtils; test configs trust the test signing keys.

* Snapshots regenerate with UPDATE_SNAPSHOTS, not UPDATE_GOLDEN

UPDATE_GOLDEN also switches HTTP/LLM goldens to live recording, so
refreshing an HTML snapshot made real outbound calls. BotsSpec review:
shared thread-scoping/history-page/slack-app helpers, exact refresh
assertion, and no race on the forked WhatsApp reply.

* integration-tests: depend on openai for BotsSpec's LLM stub type
2026-11-02 05:30:05 +01:00
Anthony Alaribe
d842c8dc32
ParserSpec: KQL-to-SQL cases as one golden table (#763)
* ParserSpec: KQL-to-SQL cases as one golden table

22 full-SQL comparisons become rows of one table checked against
tests/golden/kql-to-sql.txt, built from their previous expectations.
goldenHtml now delegates to the new goldenText. AGENTS.md notes the test prelude.

* kql-to-sql golden records which projection each case renders

* AGENTS.md: watcher and sign-off habits that keep iteration fast
2026-11-01 23:04:44 +01:00
Anthony Alaribe
b09f003302
Share Explorer facets and infrastructure table controls (#720)
* Share Explorer facets and infrastructure table controls

* Verify shared controls across namespaces and responsive layouts

* Remove orphaned time inputs and await browser state

* Classify facet content exhaustively

* Consolidate inventory defaults and overlapping regression scenarios

* Share Clear all across facet rails and demote facet glue to CSS

Clear all lives in the shared rail for both Explorer and inventories and only shows
while a facet is ticked. Column choices restore without a sync event, filter inputs
skip re-filtering swaps while empty, and the collapsible rail opens on desktop via
::details-content instead of a resize script.

* Cover Explorer facet Clear all end to end

* Clear facets through their own checkboxes; re-filter swaps only while searching

* Skip the facet Clear all e2e quickly when the fixture has no facet values

* Distill grouped rendering and align facet controls with selection semantics
2026-10-26 14:25:22 +01:00
Anthony Alaribe
0688d815d6
Run tmux watchers and dependencies in one shared services window (#729)
Panes are tracked per worktree+job in session options, so any window
reuses them instead of opening a new window. Adds tmux-minio-local.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-26 11:47:24 +01:00
Anthony Alaribe
8890344e96
Share local CI caches across checkouts (#711)
* Share local CI dependency caches across checkouts

Each checkout path got its own cabal/npm/playwright volume set, so every
worktree and signoff clone leaked ~8GB of content-keyed caches; 35 sets had
piled up. Share those. dist-newstyle stays per checkout: sharing it was tried
and weeder then reported live functions as dead, because unchanged modules
lost their .hie files after another branch built into the volume.

* Note that local sign-off must stay fast

* Share dist-newstyle across checkouts; weeder repairs missing .hie files

After another branch built into a shared dist, GHC can leave a live module
compiled without its .hie, so weeder misses every reference it makes and
reports live functions dead. The weeder check now recompiles any tracked
module missing one (dropping cabal's build stamp, since a touch leaves the
source hash unchanged) instead of every checkout paying a cold build.
2026-10-25 13:40:21 +01:00
Anthony Alaribe
3e683c2afb
Free text: implicit AND, punctuation-tolerant sequences; refocus tests without restarting the watcher (#678)
* Iterate against long-lived watchers; refocus tests via .test-args

live-test-dev reads its hspec args from .test-args on every run, so a running
watcher can be refocused in seconds instead of restarted (~220-module reload).
make tmux-live-test-dev starts it in its own pane; AGENTS.md makes this the rule.

* Free text: implicit AND between terms, punctuation-tolerant quoted sequences

"hello world" now also matches hello-world and Hello, world; adjacent terms
AND together ("deadlock" "retry"). Free text stays quoted, so an unquoted
unknown word keeps its Unknown-field error.

* Distill: one free-text column list, library maximumBy, or for the copy flag
2026-10-20 11:32:53 +02:00
Anthony Alaribe
2e64f0a5b6
Preserve telemetry scope across explorer views (#583)
* Polish explorer query controls and database badges

* Preserve telemetry scope across explorer views
2026-09-19 17:31:31 +02:00
Anthony Alaribe
9b5cba86d9 Use GitHub runners and prefer local CI signoff 2026-09-08 12:24:10 +02:00