@msheller/slack-context-demo
flwr new @msheller/slack-context-demoSlack Context Demo (synthetic)
This Flower AgentApp implements the fixture-only Phase A contract for a frozen-versus-refreshed Slack context demonstration. It contains no Slack credentials, real workspace/channel/thread identifiers, or real messages, and it cannot select or call a live connector. Release 0.1.1 uses the reviewed publisher/app identity @msheller/slack-context-demo; publication and execution remain separately gated external actions. Successful Flower runtime dispatch is the Flower-side invocation entitlement gate; the app performs no Slack operation while handling that platform gate.
Supported input grammar:
- ordinary prompts and /no_refresh use only the packaged baseline;
- /refresh followed on later lines by a question reads only signed threads through the deterministic fixture adapter;
- /status reports version, cutoff, digest, mode, and fixture readiness; and
- /version returns deterministic package and baseline attestation without a connector, model, or application-state path; and
- /reset advances a small logical epoch while leaving the immutable baseline and platform-managed history untouched.
The packaged canonical release manifest binds the complete Flower public-source upload inventory without hashing itself. /version validates its exact bytes, schema, source-hash shapes, provenance limitations, and baseline identity before displaying the manifest digest. It never claims Git, FAB, or server-build identity as runtime-known.
Each answer-bearing invocation makes exactly one fresh, bounded model request from only the current question and explicitly admitted evidence. The app buffers the complete result, validates its structure and citation set, and emits only safe derived claims or a deterministic refusal; stored chat history is never replayed into that request. Live fixture records and pagination cursors remain local variables and are never written to Context.state; only the /reset epoch is app-managed state. Displayed answers may still be retained by the Flower platform.
The refresh collector validates the expected synthetic workspace and public channel allowlist plus the exact synthetic subject, authorization ID, optional enterprise ID, and read-only scope set before content calls. It resolves only exact signed roots and cutoff replies, applies one fixed upper timestamp, enforces query/page/item/text/permalink/aggregate limits, deduplicates stable message keys, resolves every permalink, and returns no partial records after any failure. Normalized live text is kept private from the display path, and each generated factual bullet is checked against the admitted permalink set before it can be emitted.
Run focused validation from this directory:
uv run python -m unittest discover -s slack_context_demo -p '*_test.py' uv run python -m compileall -q slack_context_demo uv run python -c "import slack_context_demo.agent_app"
Build the local FAB from this directory with uv run flwr build --app .. Building does not authorize publication, federation assignment, deployment, OAuth, or Slack access.