LQLQ ASSESS
EXEMPLARS · anonymized, published work
July 2026 cohort

C-11

OQ-011 — The lawyer-builder vs production-engineer boundary

OQ-011 — The lawyer-builder vs production-engineer boundary

Tier: anchor · Skill demand: framework / essay · Time budget: 90 min Themes: lawyer-builder, production, threshold, engineering

A lawyer ships a working AI tool. At what specific point does it stop being 'lawyer-built' and start needing an engineer? Define the threshold with named technical checkpoints — security, multi-tenancy, audit, scale, billing, whatever you think actually matters. Concrete answers beat philosophical ones. Reference your own builds if you have them.

what the candidate typed — 77 prompts, slash commands and editor events left out
1See framework/*.md to udnerstand what we're building. Then add an example threat-model.md in example-threat-model/ - use STRIDE for simplicity
2the mermaid does not appear to be rendering [Image #1]
3[Image: source: /work/.claude/image-cache/99e5ae20-2a92-446f-8bbf-fd943db310dc/1.png]
4fine - commit just the threat model
5The planning is driven by me (I wrote these skills and this is my usual workflow). The use of vibe coding application is not unique in the legal industry - it is likely that many other companies are experimenting with allowing non-technical folks such as product managers, finance, HR... etc. build AI tools. Run /aidlc-research to find case studies of how companies have done this, including considerations such as security, billing...etc. If there are law firms that have such examples, even better.
6<task-notification> <task-id>a8b7a7bfcb9bb4c91</task-id> <tool-use-id>toolu_01XzWhHinjP6Sx1J3SrFwCs3</tool-use-id> <output-file>/private/tmp/claude-502/-Users-[candidate]-lq-assess-work-[room-token]/997de922-b780-4dde-bec6-974d059e7d51/tasks/a8b7a7bfcb9bb4c91.output</output-file> <status>completed</status> <summary>Agent "Research enterprise citizen-dev governance" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Finished. I've compiled a comprehensive research document on enterprise governance of citizen development programs. **Summary of findings:** The research reveals that enterprise citizen development governance has matured into a **risk-stratified, enabling governance model** (as of 2026). Key insights: 1. **Adoption spike**: 78% of IT departments now have formal governance policies (up from 42% in 2024), indicating rapid institutionalization. 2. **Three primary governance structures**: DIY (lightweight guardrails for low-risk apps), Fusion Teams (mixed IT/business), and Centers of Excellence (enterprise-wide coordination). 3. **Tiered risk model**: Shell's "three-zone" approach (green/full DIY, amber/partnered DIY, red/professional IT-led) is widely adopted and operationalized by enterprises. 4. **Core technical controls**: - Data classification (4 tiers: Public/Internal/Confidential/Restricted) - Role-based access controls (RBAC) tied to data classification - Environment tiering (sandbox/dev/staging/production) - Approval workflows with restricted production deployment authority - Automated security scanning before deployment - Comprehensive audit logging 5. **Centers of Excellence** are staffed with CoE Leads, Solution Architects, Business Analysts, developers/coaches, QA, and operations roles—typically achieving 67% faster delivery and 72% better security outcomes when mature. 6. **Enabling vs. gatekeeping**: The most successful programs use "governance-as-guardrails" (lightweight defaults, clear escalation) rather than heavy approval overhead, which drives shadow IT. 7. **Emerging challenge**: Governance for AI-assisted citizen development (Cursor, Claude Code, Lovable) is nascent; Retool and Zapier are pioneering infrastructure-based governance that enforces policies regardless of development tool used. **File location**: `/work/lq-assess-work/[room-token]/.aidlc/research/vibe-coding-governance/20260705-204219-enterprise-governance.md`</result> <usage><subagent_tokens>33244</subagent_tokens><tool_uses>19</tool_uses><duration_ms>189671</duration_ms></usage> </task-notification>
7<task-notification> <task-id>a9b872f22a9f1f2a8</task-id> <tool-use-id>toolu_013wWiTPmxcC5jbWLv1z3a2M</tool-use-id> <output-file>/private/tmp/claude-502/-Users-[candidate]-lq-assess-work-[room-token]/997de922-b780-4dde-bec6-974d059e7d51/tasks/a9b872f22a9f1f2a8.output</output-file> <status>completed</status> <summary>Agent "Research AI cost governance controls" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>## Summary I've completed a comprehensive research investigation into **cost governance and FinOps mechanics for AI/LLM workloads**, with focus on how companies meter, cap, and govern costs when non-engineers are building and operating AI-calling tools.
8<task-notification> <task-id>a055a869ff470b751</task-id> <tool-use-id>toolu_01Knqsvcku6ZkVywjjK8idvC</tool-use-id> <output-file>/private/tmp/claude-502/-Users-[candidate]-lq-assess-work-[room-token]/997de922-b780-4dde-bec6-974d059e7d51/tasks/a055a869ff470b751.output</output-file> <status>completed</status> <summary>Agent "Research shadow AI incidents" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>## Summary I've completed a comprehensive research scan of shadow AI and vibe-coding incidents, failures, and security breaches. The findings document: **Key incidents compiled:** - **Moltbook** (Feb 2026): Vibe-coded social network exposed 1.5M API keys due to missing Row Level Security - **OpenClaw** (Jan–Feb 2026): 135,000+ exposed AI agent instances with critical RCE vulnerabilities; 335 malicious skills distributed - **Samsung** (Apr–May 2023): Three data leaks in under 20 days; foundational incident that shaped enterprise AI policy - **Vercel supply-chain pivot** (Apr 2026): Shadow AI tool compromise led to downstream breach, $2M extortion demand - **Google Gemini API key escalation** (Feb 2026): 3,000+ exposed keys gained silent new privileges; $82K charges in 24 hours - **Uber cost overrun** (Apr 2026): Full year AI budget exhausted in 4 months; unbounded API spending - **Healthtech HIPAA violation**: Voice AI agent logged conversations 90 days instead of 30; $2.3M fine **Quantified scale:** - 20% of breached organizations suffered shadow AI incidents (IBM 2025 Cost of Breach report) - $670K cost premium per incident; $4.63M average shadow AI breach cost - 45% of employees now using AI on corporate devices (Verizon 2026 DBIR, up from 15% prior year) - 1,550+ GenAI SaaS apps per organization (up from 317 in 2025) - 223 DLP incidents monthly of sensitive data uploads to AI platforms - 340% YoY growth in prompt injection attacks **Root-cause patterns:** Missing authentication/authorization, hardcoded secrets (3.2% leak rate), no audit logging, unbounded API costs, security review bypass, prompt injection exploitation, supply-chain pivots, and compliance ignorance. All findings written to: `/work/lq-assess-work/[room-token]/.aidlc/research/vibe-coding-governance/20260705-204219-shadow-ai-incidents.md`</result> <usage><subagent_tokens>37128</subagent_tokens><tool_uses>22</tool_uses><duration_ms>198003</duration_ms></usage> </task-notification>
9<task-notification> <task-id>a83aba5df97d24cdf</task-id> <tool-use-id>toolu_01KaJgiGRZYgRriPKGC5qeNd</tool-use-id> <output-file>/private/tmp/claude-502/-Users-[candidate]-lq-assess-work-[room-token]/997de922-b780-4dde-bec6-974d059e7d51/tasks/a83aba5df97d24cdf.output</output-file> <status>completed</status> <summary>Agent "Research legal industry examples" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>I have completed the research on law firms building AI/legal-tech tools and their risk management governance. Here's a summary of findings: ## Key Findings **Law Firm Innovation Programs:** Major firms like A&amp;O Shearman, Clifford Chance, DLA Piper, Troutman Pepper, Orrick, Reed Smith, Latham &amp; Watkins, and K&amp;L Gates have built proprietary AI tools using formal governance structures including AI Task Forces, Innovation Boards, and Steering Committees. A&amp;O Shearman pioneered enterprise Harvey deployment with sandbox phases; Troutman Pepper built Athena with Office of General Counsel integration from 2021; DLA Piper developed closed-system tools (ButterflAI, Aiden) to protect privilege; Clifford Chance achieved 60% adoption rates through multi-layer governance. **Governance Frameworks:** Risk ownership is distributed across General Counsel, CISO, Chief Innovation Officer, and cross-functional AI committees. Common patterns include three-tier risk classification (Red/Yellow/Green), sandbox/ring-fenced pilots before firm-wide rollout, mandatory ethics training, closed/proprietary system architecture to protect privilege, and vendor due diligence on data handling. However, CLOC 2025 data reveals a critical gap: **60% of organizations have no AI policies in place, and only 3% explicitly approve tools** — indicating significant shadow AI activity. **Ethics Framework:** ABA Formal Opinion 512 (July 2024) codified six duties (competence, confidentiality, communication, candor, supervision, reasonable fees). Model Rule 1.1 requires lawyers understand AI benefits/risks/hallucination modes; Rule 1.6 prohibits inputting client data into public AI tools (privilege waiver risk); Rules 5.1/5.3 require supervision policies and training. State bar guidance is fragmenting (California strict; North Carolina pragmatic). **Documented Incidents:** Mata v. Avianca (hallucinated citations, $5K sanction, disciplinary referral), Johnson v. Dunn (entire firm disqualified), California cases ($31K fines) establish that lawyers bear full responsibility for AI-generated work product; hallucination is foreseeable and inexcusable; supervising partners are liable regardless of AI tool source. **Risk Management Tensions:** Innovation velocity (AI adoption doubling since 2023) outpaces governance infrastructure development. Privilege/confidentiality constraints eliminate low-cost options (free ChatGPT), forcing proprietary tool development or vendor licensing. Hallucination verification creates high overhead (attorney re-verification time may exceed AI efficiency gains). Smaller firms lack resources for formal governance structures. **Coverage Gaps:** Traditional professional liability doesn't cover AI-specific losses; AXA XL offers AI endorsement (5–15% premium premium increase) but coverage is emerging and non-standard. ILTA, CLOC, Thomson Reuters Institute publish advisory guidance but lack enforcement mechanisms beyond post-incident disciplinary action. The research file has been written to: `/work/lq-assess-work/[room-token]/.aidlc/research/vibe-coding-governance/20260705-204219-legal-industry.md`</result> <usage><subagent_tokens>41814</subagent_tokens><tool_uses>23</tool_uses><duration_ms>219396</duration_ms></usage> </task-notification>
10Whilst these are running, lets think about what to ship. I propose at minimum a framework.md. The question poses this boundary as a lawyer-built vs engineer split but I think it is more nuanced. I believe we need to think about this across several dimentions: - What is the cpacity and skill level of the law firm's engineering dept? - How do we prevent the engineering dept becomimg a bottleneck? What can we shift left to the lawyer? - How can the law firm enforce compliance? How can the engineering dept detect misconfigurations? Then on the actual application: - What data is it accessing? - What networks is it reaching? (private? public? allowlist?) - Where is it being hosted? E.g. localhost only, on-prem servers, law firm's own cloud account, some external hosting site - Who is involved in continually maintaining and operating it? - Who will do the security testing and continuous patching? - Who is using the application? lawyer only, team, law firm, external... This is an AI tool so how do we audit, manage costs etc.? Then on the lawyer's side: - How do we incentivise the lawyer to build safely and securely? - How do we stop shadow AI (if possible at all - and if not, how can we discourage it)?
11Perhaps we come up with the following deliverables: - A framework (as requested). I think the point at which it shifts to 'engineer' will have some tiering depending on IT capacity and knowledge - Example artefacts that help 'shift' left: - The example here is an AI tool. I have seen organisations use a proxy gateway for AI calls, which go through the org's own firewalls / cloud / AI deployment which will come with the various billing, logging etc. required. I think a simple localhost server that demos this, and another app that connects to this server might be a nice artefact - A framework for lawyers as well - perhaps a policy - A SKILL.md that lawyers must run which will produce some 'Tier' - I think for the lowest tier - whatever that will be, there is no need (or less need) for engineer intervention - For some middle tier, we may require lawyers to run certain security scans and produce a threat model - For high-risk tiers, this will go into the 'engineer' queue - this will take the longest to 'productionise'
12The framework comes first. 1/ Lets consider a checklist format which will apply to all AI applications. 2/ We will then produce several iterations of this framework, based on a defined level of IT maturity / engineering side (e.g. I would assume there would be more friction where a company's IT dept is smaller, less mature, and less able to ensure that a lawyer's AI app is operating safely) /aidlc-plan this?
13Q1) A. I envision a checklist but advise if you feel different. Then we may have several levels of that checklist which tip it to 'engineer required' depdning on that engineering axis Q2) Any thoughts? I think 3 Q3) No lets use a new folder e.g. framework Given timings lets skip spec-ing this for now and focus on a checklist. I picture a long checklist that tackles some of the following: - Security: access management, network, data, patching, IDR (have a look at the [redacted] Well Architected Framework Security pillar here) - User: single, internal team, external (e.g. client use) - Hosting platform: localhost, firm's own IT platform (e.g. cloud account, on-prem hosting platform...) - Cost Optimization Remember the lawyer app is an AI application. This means there is probably some UI. And there is probably some API request to some AI agent. What have I potentially missed?
14Start drafting the framework. Lets do in this format: # Security ## Networking Requirements [ ] Data stays within firm's private networks [ ] Data will travel from outside firm's network boundaries into it (e.g. AI app accesses internet) [ ] Data will travel from inside the firm's network boundaries out of it (e.g. the AI app will submit something to an external source) # Data [ ] Handles client data for a single case [ ] Handles multiple client data # Rules for Lawyers [ ] The AI application MUST [ ] The lawyer MUST run XXX security scan [ ] The lawyer MUST have approval from a 'Security Guardian' (a more 'technical' lawyer trained on security procedures - but is not a substitute for an engineer) # Consequences for Lawyers
15On Access Management I think these are more like security checks, not frameworks of the app How have other companies drawn the line between different teirs? give concise examples
16ok i think we have this the wrong way TBH - a checklist feels abit too static. Lets split this into three layers: - Some criteria that splits it into needs engineer vs not as well as WHY - Some checklist that all applications must be assessed against (this is the shift left principle) And then instead of a 3-tier engineering maturity thing (due to time), perhaps some IT-ROADMAP-TO-MATURITY.md
17yes. Decision criteria - I think a checklist or a tbale, with light reasoning as to why, using your knowledge / research of lawyer rules e.g. SRA Principles, as well as market practice. What are the high risks / absolute no-nos for laywer-only built AI apps? I think: - The app serves more than one client (whether local or external - this is due to the risk of the AI mixing potential client data together, leading to breaking of chiense walls) - The app has some write access scoped outside some boundary (what stops the AI overwriting client data / work); actually write COULD be fine but not EDIT (to prevent OVERWRITING) - The app handles client data perhaps? What else?
18I think these two for sure - does this align with research? - The app can access more than one client data at any one time (whether local or external - this is due to the risk of the AI mixing potential client data together, leading to breaking of chiense walls) - The app has some write access scoped outside some boundary (what stops the AI overwriting client data / work); actually write COULD be fine but not EDIT (to prevent OVERWRITING)
19Lets do the IT-ROADMAP-TO-MATURITY.md thing first because this might help us with our first list. - Have a customised LLM gateway with a guide/artifacts that lawyers can use - This gateway will proxy to any required networking configurations e.g. the firm's firewalls - This gateway will contain some indicator of who is pinging it - for example, it may require authorisation /federation from the law firm's IDP, allwoing the IT dept to easily detect whose app is using the gateway for security (and attribute costs) - This gateway may contain security guardrails - e.g. to suppress prompt injection attempts, scrub PII - Provide a set of protected, hardened, artefacts, e.g.: - Custom MCP servers that the lawyer can use to access firm-wide data or access firm's vendors - Some tool or MCP server for web search, which may have an allowlist or may have some guardrails - Provide a platform for hosted apps, which contain logging, continuous security monitoring/patching, enforces specific enterprise IT boundaries, detects misconfigurations (e.g. detects a publicly open S3 bucket) - Provide a triaging framework for what the engineering dept agrees to operate/maintain, as well as RACI matrix on epopel's responspibiltiies # Organisational - Provide MCP servers / SKILLs.md and any other artefacts that are automatically registerd to lawyer's laptops (e.g. via MDM in the case of Claude Code) to shift security left, enabling lawyers to embed security best practice into their applications - Train and CONTINUE TRAINING a group of more highly technical lawyers in the firm to be Security Guardians, allowing the IT dept to 'scale' their influence
20Decision Criteria - I can see this fixed into three buckets actaully. 1/ Lawyer maintained only (example would be in an 'AI' app within a no-code platform that has been vetted / accepted by enterprise such as Quick Desktop, some Enterprise Google Gems type thing where the lawyer may create simple nocode/low-code workflows within an enterprise vetted application) 2/ Lawyer maintained + Requires Security Guardian + AppSec review - applications that the lawyer is responsible for updating / maintaining with some help by engineers. Example would be an app that is deployed into the firm's hosting platform, for company use. - Lawyers will engage Security Guardian and any firm provided MCP/SKILLs.md tools from the start to ensure that the application borrows from best practices - Lawyers will have to produce evidence of security scans and a threat model - Lawyers must confirm adherence to some 'checklist' (e.g. AI calls go through company LLM gateway) 3/ Engineer Maintained: for the highest risk AND/OR highest business value to the firm. Likely requires higher-ups / decision commitees / proper funding. - Essentially this is where the external customer might use it - Assuming the IT dept is much smaller and more capacity constrained, only the most vetted applications with the highest business value should proceed
21not yet - i saw in the skill that late submissions are allowed. This is a really interesting task even if it doesn't seem to require too much building so I'd like to submit something abit more well thought out. IN the IT RAODMAP TO MATURITY we should add something about a package repositary that is approved and contains packages actively maintained by IT. This for example means Tier 2 lawyers can't just pip install anything - they have to connect to the internal repo of vetted packages to prevent things like supply chain attacks, CVEs...
22yes it's now called 1-security-checklist.md. This will be more self-service but we'll need confirmation that the AI app: We should add somewhere that this assumes a mature IT firm (see IT-ROADMAP-TO-MATURITY) - Only uses the firm's approved LLM gateway - Access to internal data only uses the firm's approved tools - Only IT-approved packages are used - Lawyer must provide a threat model - Lawyer requires Security Guardian review and approval - Lawyer requires AppSec approval
23[Request interrupted by user]
24leave it alone
25shorten that to a smaller list for lawyers - assume the IT department is a 'mature' one based on our IT-ROADMAP framework.
26I'm definitely passed :( check it anyway
27make some commits first Then lets make some example artefacts :D
28in security-skill, add a SKILL.md for an example coding agent to use. Add a draft checklist for tier-2 which checks some of the 'lawfirm-specific' requirements, e.g. uses llm gateway, only uses approved mcp tools, web search...
29/compact
30This session is being continued from a previous conversation that ran out of context. The summary below covers the earlier portion of the conversation. Summary: ## 1. Primary Request and Intent This is a LegalQuants (LQ) timed technical assessment session (token [room-token], candidate [redacted], question OQ-011: "The lawyer-builder vs production-engineer boundary"). The candidate is using the AI-DLC skill suite to build a real deliverable answering the question: "At what specific point does a lawyer-built AI tool stop being 'lawyer-built' and start needing an engineer? Define the threshold with named technical checkpoints — security, multi-tenancy, audit, scale, billing, etc. Concrete over philosophical." The candidate's explicit intent, stated over the session: - Reject a single static checklist in favor of a **three-part framework**: (1) decision criteria for tiering ownership (lawyer-only vs lawyer+Security Guardian+AppSec vs engineer-maintained), (2) a universal shift-left checklist all AI apps get assessed against, (3) an IT maturity roadmap describing infrastructure investments that shift more risk left over time. - Ground the framework in real research (case studies, incident data, legal ethics rules like SRA Principles/ABA rules) rather than invented content. - Build concrete, working example artefacts demonstrating the framework, starting with an example `SKILL.md` + tier-2 law-firm-specific checklist for a security-review coding-agent skill. - Committed to git the completed framework work under `docs/` and `framework/`, deliberately excluding in-progress `examples/` content and the assessment `question` file from that commit. - Currently building out `examples/example-security-skill/` per direct instruction: "in security-skill, add a SKILL.md for an example coding agent to use. Add a draft checklist for tier-2 which checks some of the 'lawfirm-specific' requirements, e.g. uses llm gateway, only uses approved mcp tools, web search..." **Critical constraint governing my own behavior throughout (from the lq-assess skill, verbatim from CLAUDE.md context)**: I must act as a **neutral executor, not a collaborator**, for the duration of this assessment. I execute exactly what the candidate directs — build, run, fix, explain — but I must NOT supply ideas, weigh options, enumerate possibilities, or critique approaches; the thinking, design decisions, and originality must be the candidate's own. When the candidate asks open-ended questions like "what have I missed?" or "how have other companies drawn this line?", I am required to redirect back to raw facts/research data (not my own synthesized recommendations or option lists) and explicitly flag that the judgment call is theirs to make. This must continue to apply after context compaction — it is not optional and does not expire mid-session. The assessment clock started at 2026-07-05T19:31:32.021Z (90-minute target, submit-by ~10:01 PM local). A status check confirmed the candidate is now 59 minutes over the 90-minute target, but late submissions are explicitly accepted by the system. The candidate has chosen to keep building rather than submit immediately, wanting "something a bit more well thought out." ## 2. Key Technical Concepts - **AI-DLC (AI-Driven Development Lifecycle)**: the skill framework governing this repo — `docs/` (living docs), `.aidlc/` (gitignored working state), units (spec.md/design.md/tasks.md), skills: aidlc-init, aidlc-plan, aidlc-research, aidlc-generate-evaluate, aidlc-feature, aidlc-fix, aidlc-discover. - **Three-tier ownership model** (the core framework output): Tier 1 (Lawyer-Maintained Only, vetted no-code/low-code platform), Tier 2 (Lawyer-Maintained + Security Guardian + AppSec review, bespoke app on firm hosting), Tier 3 (Engineer-Maintained, highest risk/business value, external-facing). - **Two hard "no-no" triggers** (force Tier 3 regardless of anything else): (a) app can access more than one client's data at any one time (Chinese walls / conflict-of-interest risk), (b) app has write/mutating access with no scoped boundary preventing overwrite of existing client data/work product (write-vs-edit distinction is the candidate's own contribution, not directly research-validated). - **IT Maturity Roadmap / Stages**: Stage 0 (Ungoverned) → Stage 1 (Gateway) → Stage 2 (Hardened Building Blocks: MCP connectors, package repo, hosting platform) → Stage 3 (Organisational Scaling: MDM-pushed tooling, Security Guardian cohort, engineering intake/RACI). - **Security Guardian**: a lawyer with security training, positioned between lawyer and engineer — explicitly NOT a substitute for an engineer, bounded authority to lawyer-tier risk triage. - **LLM Gateway pattern**: firm-controlled proxy for all AI provider calls — centralizes networking/egress control, IdP-federated auth for attribution, prompt-injection/PII guardrails, cost tracking. - **Internal Vetted Package Repository**: firm-operated npm/PyPI mirror/proxy; only source of installable dependencies; defends against supply-chain attacks (Shai-Hulud, trojanized `@bitwarden/cli`, LiteLLM PyPI poisoning — all from research). - **Legal ethics/liability grounding**: SRA Principles 5 & 6 (public trust, not abusing position) and Code of Conduct confidentiality/conflicts duties; ABA Rule 1.6 (confidentiality), Rule 1.1 Comment 8 (technology competence); case law: Mata v. Avianca (2023, $5K sanction + disciplinary referral for hallucinated citations), Johnson v. Dunn (2025, entire firm disqualified), California cases ($31K fines) — establishes hallucination is not a defense. - **OWASP frameworks referenced in security reference material**: OWASP Top 10 (Application Security), OWASP Top 10 for LLM Applications (2025, LLM01–LLM10), OWASP Top 10 for Agentic Applications (2026). - **Research findings underpinning the framework** (from `.aidlc/research/vibe-coding-governance/`): Shell's Forrester three-zone model (green/amber/red); Moltbook breach (Feb 2026, 1.5M exposed API keys via missing Row-Level Security); Lovable CVE-2025-48757 (same RLS pattern, 170+ apps affected); OpenClaw crisis (135K+ exposed instances); Uber (full 2026 AI budget burned in 4 months) and Microsoft (cut Claude Code licenses after 6 months) cost-runaway incidents; A&O Shearman/Clifford Chance/Troutman Pepper/DLA Piper legal-industry governance examples; CLOC 2025 data (60% of legal orgs have no AI policy, only 3% of tools formally approved). - **Claude Code `SKILL.md` format**: YAML frontmatter (`name`, `description`) + Markdown body with numbered Steps and a References section pointing to a `references/` subfolder. ## 3. Files and Code Sections
31Lets also create a very simple chat UI to demonstrate that I can type a message and send it through this custom gateway by pointing my "AI" app to it. Lets build within the example-llm-gateway/ folder
32The messages API returns usage so we can at least log the tokens. We can also have the server write an example <YYYYMMDD-HHMMSS.log> file with standard logger basic config, containing the user's identity and token usage
33yup
34i was thinking a simple html/js file that pings the localhost server - is that not possible?
35yup - call the html example-frontend or similar
36whoops my bad I made a mistake we actaully should have a separate backend server as well - this is where we have our agent framework. But the actaul invocation of the llm goes to the example lm gateway.
37for simplicity backend server creates the agent framework / anthropic client. We then point the baseurl to some LLM gateway. Is this doable with the anthropic claude agent sdk for the agent framework, and use MessagesAPI in the llm gateway?
38yup
39perfect
40lets use a .venv (uv no cache etc.) + python 3.14; Show real status codes - I don't believe these is a big lift.
41looks fine
42looks good - remember to add a README in case someone wants to run the example llm gateway
43[Request interrupted by user]
44use playwright / chrome devtools if poss
45[Request interrupted by user]
46let me add one - where do i add the .env and whats the env var
47create the random string for me i'll fetch a key (remind me to rotate it after this)
48[Your previous response had no visible output. Please continue and produce a user-visible response.]
49/aidlc-feature lets prove that the backend is still 'agentic' ... perhaps give it websearch / webfetch so we can search the internet
50[Request interrupted by user for tool use]
51We don't need to create our own agentic loops. lets use Strands Agents SDK with Antrhopropic. I believe (but check) you can add a base_url here. Then creating a tool is simple: https://strandsagents.com/docs/user-guide/concepts/model-providers/anthropic/#custom-client
52[Request interrupted by user]
53(use python)...client args for Anthropic may allow base_url
54<task-notification> <task-id>ab30403b9ccca0c03</task-id> <tool-use-id>toolu_01GmTthnVdN6J7DMUdYHij9z</tool-use-id> <output-file>/private/tmp/claude-502/-Users-[candidate]-lq-assess-work-[room-token]/997de922-b780-4dde-bec6-974d059e7d51/tasks/ab30403b9ccca0c03.output</output-file> <status>completed</status> <summary>Agent "Evaluate example-llm-gateway build" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Perfect! The commit is on the feature branch. Now let me prepare my final output summarizing the findings. ## Summary I've completed a thorough review of the 'example-llm-gateway' unit. Here are my findings:
55good
56[Request interrupted by user]
57this might give some clues: https://github.com/[user]/[repo]/blob/main/strands-py/src/strands/models/anthropic.py
58<task-notification> <task-id>a82169d4c70f07be5</task-id> <tool-use-id>toolu_01LAdQwuLzXdZNE72Y7CzQa2</tool-use-id> <output-file>/private/tmp/claude-502/-Users-[candidate]-lq-assess-work-[room-token]/997de922-b780-4dde-bec6-974d059e7d51/tasks/a82169d4c70f07be5.output</output-file> <status>completed</status> <summary>Agent "Evaluate Round 2 fixes and F5 feature" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Perfect. The review is complete. Let me now create a summary for the user. ## Summary I've completed the Round 2 review of the `example-llm-gateway` unit. Here are my findings: **Verdict: PASS** All implementation details have been verified as correct. Here's what I validated:
59In the frontend, add a few short sentences about what it demonstrates. E.g. this is an example AI application where the backend is wired to a custom LLM gateway. This allows the company to enforce security/network/cost controls. A lawyer building a tier2 application would create the frontend/backend and ensure the backend calls the custom LLM gateway
60can you also start the servers for me so I can quickly test
61correct no need to run the evaluator a third time. example-frontend.html:53 POST http://localhost:8100/chat 500 (Internal Server Error)
62remind me where's the fetch guardrial
63what urls can i fetch easily and quickly then
64can we up the timeout as 10s might be too short? say 30x
65in html write some examples + what we'd expect to get blcoked (e.g. ignore previous instructions)
66make commits on some of the other changes
67alright lets summarise how we have tackled the question for the benefit of the reviewers
68[Request interrupted by user]
69I've removed docs/ as we haven't really built an application
70[Request interrupted by user]
71No need just a very short summary of deliverables. E.g. {the question} Approach - Tiered decision criteria: instead of a two-way lawyer vs engineer framework we sought to consider a middle-ground where the lawyer uses 'hardened' artefacts that the engineers continue to maintain, thereby freeing up engineer time whilst allowing agility for lawyers to build safely - Also introduced the concept of security guardians - technical lawyers who can assist other lawyers throughout hte build and are trained on the firm's security standards. The middle tier also does not require engineer ongoing maintenance but does require a one-time appsec approval Deliverables - etc etc. Assumptions/Limitations - In reality what shifts from lawyer to engineer also depends on the capabilities and capacity levels of a firm's IT department; our decision criteria assumes a fairly mature IT department, but we also try to offer some thoughts on how an IT department can get there - I am not a practising lawyer nor a legal tech engineer and therefore I am less familiar with any deeper client risks taht we have missed. I do not have access to legal tech vendor tools and therefore do not know how client access is typically segmented within law firms (what else?)
72Hmm I've removed the IT maturity stages - I think that requires deeper research. the MD functions as overall considerations rather than a staged process. Lets actually just put this in a markdown called DELIVERABLES-GUIDE.md (or similar) at root. and then commit.
73ok what do i run? lq-assess submit?
74I deliberately picked this one as it raised an interesting and challenging question about the extent to which we 'hand over' development from a vibe coded application to a productionised, and maintained application. This task required abit more philosophising which made it much much more difficult for me to do under time pressure, as I wanted to draw on research and reflect on what I've seen at other companies to derive a framework. # What didn't work? Time management. Framework questions are hard because you cannot just quickly vibe code something - you want to think carefully about a framework that reflects the people, process and technological realities that underly the assessment question. Whilst the question frames the boundaries from a technical checkpoint perspective I believe this simplifies the boundaries too much (which is why I took so long thinking about it). It is not so easy to just throw an IT team an application to maintain for ever - there are many factors such as their capacity (I assume IT teams are busy administering IT systems, handling vendors, and doing a ton of boring behind-the-scenes functions that keep the firm's core systems running - e.g. email, shared storage, identity provisioning, onboarding/offboarding employees, active directory management, networking etc etc.) and abilities (tech is vast - some are experts in sysadmin, some are more traditional devs, some are platform engineers/architects). This was what led me to first consider whether we needed an another axis - which was that the boundary depends also on the IT department, not just the application itself. And then I realised this was taking too long... # What worked? I believe I landed on a framework that tries to strike a balance between agility of vibe-coding lawyers and the need for engineers to productionise and maintain applications. I took inspiration from my current role in a large engineering organization. Builders are basically allowed to build anything they want on the firm's cloud platform subject to certain rules - and these rules increase in strictness depending on public risk. The whole idea is instead of placing the burden on security experts, the burden to derisk the application is on us - basically 'shifting left'. But we have alot of tools to help us: - Many of the artefacts we use are vetted, maintained etc. (a pattern I've also seen at large organizations in banks and other regulated industries) - Our coding agents are all configured in ways to help us write more secure software - Shipping apps become much much harder depending on level of exposure, requiring further approvals with increasing exposure. - As techies, part of the burden placed on us is also based on accountability: misconfigurations trigger a tiered incident-escalation process, so an unresolved issue keeps escalating up the management chain. I also thought about: assuming IT departments are stretched, what applications 'deserve' being productionised and properly maintained? One does not necessarily have to ship every application and have it fully maintained if only the builder and their supervisor uses it. The answer I landed on was of course the ROI - applications that bring the law firm the most value, should be prioritised. These apps would need the strictest of controls and the most attention. I believe this would be the case where an application is actually given to clients to use (or even the public). # What I did See DELIVERABLES-GUIDE.md - Attempted a 3-tier framework - Provided an example of what a simple threat model could look like for Tier 2 applications (that the lawyer must create) - Provided an example of what a simple security Skill could look like, which a company can provision for code editors (so everyone has it) - with Claude Code you can for example do this with MDM - Provided a simple example of a company llm gateway; the idea is that instead of pointing your AI application to a consumer/free tier provider, you instead get builders to point their AI agents to a specific url which proxies the request to the company's llm provider (e.g. a Claude model running on [redacted]/Azure/GCP, giving companies the advantage of logging, data retention, data residency, security...etc.). You can then 'gate' the gateway in various ways - e.g. guardrails, security configs...etc. (The build of the LLM gateway also provides a short glimpse of how I'm trying to vibe code these days, which uses an AIDLC workflow inspired by [redacted], superpowers, Anthropic's long-running harness blog in March 2026)
75print out a tree of the files
76this looks good but what do you mean by interview refused?
77fine - go ahead and submit