http://wrap.warwick.ac.uk/
Original citation:
Alexander-Craig, I. D. (1991) Extending Cassandra. University of Warwick. Department of Computer Science. (Department of Computer Science Research Report).
(Unpublished) CS-RR-183
Permanent WRAP url:
http://wrap.warwick.ac.uk/60873
Copyright and reuse:
The Warwick Research Archive Portal (WRAP) makes this work by researchers of the University of Warwick available open access under the following conditions. Copyright © and all moral rights to the version of the paper presented here belong to the individual author(s) and/or other copyright owners. To the extent reasonable and practicable the material made available in WRAP has been checked for eligibility before being made available.
Copies of full items can be used for personal research or study, educational, or not-for-profit purposes without prior permission or charge. Provided that the authors, title and full bibliographic details are credited, a hyperlink and/or URL is given for the original metadata page and the content is not changed in any way.
A note on versions:
Research
repoft
183
EXTENDITiG
CASSANDRA
IAIN
D.
CRAIG
(RRt83)
In this paper, I record a number of extc.nsions to my CASSANDRA architecture. Many of these extensions
formed part of the original conception. Since the original architccture definition was published, these extensions have bccome more pressing. In particular, I argue that tlre speech act model can be used to great effect by DAI systems, and I also indicate the variety of ways in which reflective reasoning can be used. The
remarks on rcflection are founded on work that
I
have already done on this topic. The extensions form thenext stagc of the dcvclopment of the CASSANDRA architerture
Depaflnent of Computer Science
University of Warwick
Coventry CV4 7AL
C ra
ig*
E x te nding CA ssA NDRA1
INTRODUCTION
In this note,
I want to
clocunrent a numberof
thoughtsI
have had on the extensionof
my CASSANDRA architecture(Craig,
1989). The docurnentis
intendedto record
my thoughtsfor
future
reference:it seems opportune
to
record these thoughtsnow.
In
order
to
describethe
extensions,it will
be necessaryto
record the developmentof
CASSANDRA: this puts things
into
a proper percpective.The extensions
I
have in mind concem the inferential capabilities of lrvel Managers.\{ore
specifically, they consistof
the introduction of meta-level structures(including
amore
refined control structure), a
declarative
databaseand
a richer
concept
of
communication.In
addition,given
its historical rootsin
theintelligent
agent concept,another class
of
extension
deals with
dynanric
level
managers anddynamically-de,-eloping communications paths through a network
of
Level
Managers(they
are alrvays sraticin
the 1989definition).
All
of
these extensions relate, quitedefinitely,
to the roleof
C.a,ssaxDRA as adistributed
systems architecture, although the d1'namicaspects
will
be ingoredfor
the most part below.As
I
hopewill
be
seen, these extensions represent a genuine developmentof
thearchitec
ture-someti
mes, i ndeed, they subvert the ori ginal conception.For the
remainderof
this
note,
I
will
refer to
thedefinition
of cessexDRA
that appearsin
the published book(Craig,
1989) and whoseZ
specification is to be found in the new book(Craig,
1991a) as CASSANDRAS9. Furthermore, becauseof
the newerperspective
on the architecture, what
is
called
the
Level
Manager
construct
inCASSANDRA89
will
now be more simply termed an agent.2 AI\CIENT
HISTORY
At
the time CASSANDRAS9 wasfirst
defined (during 1985),I
had in mind the ideaof
aproblem-solving system as being composed of many thousands of autonomous agents,
which communicate when attempting to solve problems. This idea is neither new nor
novel
(see,for example,
Hewitt's
ACTORS (1977),or
Minsky's (1985) Sociery
of
Mindtheory.
In my conception, agents could come into being and be destroyed: they had lifetimes.
During
thelife of
an agent,it attempted
to
solve a partof
a problem(this
aspect issimilar ro that
of
an ACTOR). Indeed, a single agents could participatein
the solutionof
many
problems-what
each problem had to havein
common was thatit
required the knowledge provided by the agent.At
the time of its original conception, the Agent Model seemed to be impossible.With
C r a ig---E x t e nd i ng CA sS,4 NDRA
more than
I
hadfirst
thought. Theoriginal
CASSru.,*DRA system was afirst
attempt atthis:
it
was inspired
by
the
blackboard
model
of
problem
solving, and
the first
implementation was
basedon
the idea
that
each
l.evel
Managershould
roughlycorrespond
to
an
abstractionlevel
in
the
older
architecture. The idea that
LevelManagers correspond to abstraction levels
is very
muchin
evidencein
the publishedbook
(Craig, 1989).In
the
years
that
have
passedsince
the
original
development,
my
ideas
onCASSANDRA and related systems have changed somewhat.
It
has become clear that thesize
of
agents is quite considerable--thisis
because thereis
alot
they have to do. Inaddition, the idea
of
a symbiotic systern has begunto
appeal to me.In
systemsof
thistype, the human user is part
of
the system. The user participates in the developmentof
solutions to problems, and what used to be
lrvel N{anagers have to communicate
withthe user in relatively sophisticated ways.
I
have beconre somewhat dissatisfied with a number of aspects of cess,q.ntona89.It
was always part of the architecture that inter-agent communications should becomemore sophisticated-this is
witnessedby
a number
of remarks
in Craig,
1989, in particular the reference to speechacs
(Austin,
1962; Searle, i969). Also,I
was alwaysdissatisfied
with
control in CASSANDRAS9:with
time,I
have wanted to get awayfrom
the
strictly
blackboard approach to control and have wanted to develop more powerful (and,in
a certain sense, more reasonable and reasoned) conffol mechanisrns. Finally,it
always
seemedto
be a
flaw in
the
original
conception
of
the
systemthat
Level Managerscould
not manipulate and reason about representationsof
themselves andtheir
relationships to otherLevel
Managersin
a system (and to the userin
a symbioticsystem).
Again, it
must be noted that these requirements, ideas and faults are not particular to CASSANDRA8g: theyapply to
otherDAI
systems, aswell.
WhenI first
defined thearchitecture, some
of
these ideas were clearin my mind--others
have beconte clearerwith
time. Other workers have madesimilar
comments aboutDAI
systems; indeed,some have suggested speech acts as a
communications protocol,
and others haveremarked that agents need
to
reason about themselves andtheir position
in
aDAI
sysrem.
What
I
think
is
newis
the extensionof
cassRNDRASgto
copewith
theseadditional requirements.
Finally,
andto
closethis
section,it needs
to
be
notedthat
theoriginal view of
CASSANDRa
I
had was ofa community
of agents.
The
emphasisis definitely
oncommunity.
Partof
the motivationfor
this concept was the observation that mostAI
systems operate
in a'solipsistic
universe': that is, onein
which
theAI
program is theonly
agent.In
such a universe, thereis
no needfor
the AI program to actor
even toC
raig-
E x t ending
CA SSA NrRA During theinitial
development,it
was pointed out tomel
that people do not operate in avacuunr, and the
information
resources are availableby
,"irtueof
the fact that theylive
in
aworld
populatedby
other people and other objects (a conceptwhich
now
seemsfamiliar from the concept
of
situated action (Suchman, 1987)).3
COMMUNICATIONS AND
SPEECI{ ACTS
In
the book(Craig,
1989),I suggested
that the speech act theoryof Austin
(Austin,1962; Searle, 1969)
might
be a good basis for describing the communications aspectsof
CaSSANDRA89.Communications
in
the reported
CASSANDRAsystems
was, perhaps, the weakest asp€ct" and was also the closest to traditional distributed systems: the reasonfor
thisis
that the book reports onwork
that was undertakento
show theviability
of the CASSAN'DRA approach, in particular theviability
of Level Managers. Since the time thework
reportedin
the book was undertalien, the speech act theory has appearedto
beincreasingly
atffactive. The fundamental appealof
the speech acttheory should be apparent
from
the accounts given byAustin
(op.cit.)
and,in
a later and rnore elaborateformulation,
by Searle (op.cit.), although a number of problemsfor
describing natural languages
with
this theory are exanined bylrvinson
(1983)2.Although the concept
of
a speech act should be familiar toAI
workers(primarily
fromthe work
of
Cohen and Perrault (1987),it
is worth spending a shortwhile
injustifying
them as a basis for an approach to communications in aDAI
system. The reader should note that we disregard thedistinction
betweenillocutionary
and perlocutionary acts inthe discussion: this is
for simplicity
of presentation.The most basic appeal
of
the speech act theory is thatit
makesexplicit
the intentionsthat lead
to
an utterance. Indeed, partof
thejustification of
a speech actis
that, byperforming a speech act, a speaker makes clear his
or
her intention to the hearer. Forexample,
in
saying"I
promise to send you the tape", a speaker is making clear the fact that, at some time in the future, the speakerwill
indeed send the tape to the hearer. The hearer, by hearing this utterance, caninfer
(assuming that the speakeris
truthful)
that the speaker has theintention
of
sending the tape. The hearer is also able toinfer
other things about the speaker, quite apart that he or shewill
send the tape. For exarrple, the hearer caninfer
that the speaker isin
or can gain possessionof
the tape, and that the speaker also has the means to send the tape to the hearer.Searle's (1969) book contains an attempt to account
of
the conditions under which aspeech act is successful.
In
other words, he attempts to accountfor
the preconditionslny
Dr. John Hughes, Department of Sociology, Universiry of Lancaster, andI
now publicly thank him forthis observation.
2The objections outlined by Levinson deal with indirect speech acts-in an AI system,
it
may well beC
raig-E
x te nding CA SSANDRArvhich enable a speech act to be performed and the conditions under which, when they are satisfied, the speech act can succeed. As a consequence, the theory presents a set
of
conditions
rvhich can be inferredby
a hearer when understanding an utterance. This I act is irnportant because part of the speech act theory is that it detennines a strucrurefor
comnunication-this
amounts to more than a theory of meaning. For a speech act to besuccessful, both parties must understand the rules which apply to performing an act
of
communication (cf. Grice, 1957).
A
nunrberof
properties make speech acts an extremely atffactive frameworkfor
comrnunications
in
aDAI
system.In
particular,
thereis
the property that the ruleswhich
are usedin
the procluctionof
utterances can also be usedin
their interpretation. These rules, someof which
areexplicitly
given by
Searle (1969), relate the speaker'sintelttions
and
utterances: speechacts
make the
connection clear.
This explicit
connection can be exploited by agents
in
aDAI
system when making inferences about the state and intentions of other agents.A
significant problemin
aDAI
system is thatof
inferring the state and intentionsof
other agents in the system. The problem reduces to that of building a model of what is happening inside other agents, as
well of
asforming
a global pictureof
the state of the sysrem as a whole. This model is then usedby
an agent to determine what to do next.For
exanrple, modelsof
the externalenvironment
are requiredby
an agent whenit
needs to select a sub-problem on which to work- Quite clearly, it rarely makes sense
for
the
agentto
duplicatework
thatit
beingdone
elsewherein
the system3.It equally
makes no sensefor
an agent to concentrateon
some sequenceof
actions which do notfit
into
the solution that is enrerging elsewherein
the system (i.e., agents should not engage in divergent behaviours).Given the fact that the communications medium in a distrubuted system can only ever
have
afinite
bandwidth,it
is
not possible
for
total
stateinformation
to
be passedbetween
agents.Furthermore,
if
total
state
infonnation
were
passed across the communications medium, agents would have to engage in a costly analysis exercise inorder to obtain infornration that is both relevant and useful to them.
These facts have the consequence that agents must infer the state of other agents and
of
the whole system from a limited amountof
information.In
addition to the state problem, there is the task-allocation problem.In
the published accountsof
cessnnDRA,
task allocation was performed on an apriori
basis--eachlrvel Manager was assigned
a taskor
setof
tasks thatit
had to perform. In the original(unpublished)
conceptionof
CASSANDRA,task allocation
was avery
much moredynamic process
(in
some ways reminiscentof
the Contract Net protocol (Davis and3sometimes, duplication might be warranted-for example when the a system is engaged in the competitive
C
raig-E
x tending
C A S SAN D R A Smith, 1983)).Dynamic
task allocation canonly
be performed when agents are awareof
what other agents are doing, what their state is, and what they are capableof. In
adynamic environment, the transmission of this information requires using more of the available bandwidth.
In
the course of general problem solving,it
may be necessaryfor
an agent to
try
to get other agents to take over sub-tasks (unless each agent has enoughpower
to
solveall
the
problems thatmight
be assignedto
it):
in
other
words, taskallocation may, under some circumstances, turn out to be a normal operating problem
for
DAI
systemsof
certain gpes (in particular, the type of systemI originally
conceived CASSANDRL to be).One solution (proposed by Durfee and
lrsser,
1987) is that agents exchange plansof
their
actions: these
plans
(called 'partial plans') are meta-level structures
whichrepresent
partial information
about the stateof the
agent.In
the context
of
human interactions, the sourcesof
information are richer. In particular, people send each other messages and hold conversations. Sometimes, these conversations areof
a nature that can be accountedfor
under the general headingof
plans, but the exchangeof
plans entails the exchangeof
relatively large amounts of information. The partial plans modelentails the
exchangeof
information
between agents, and,in
the
limit,
entails the exchangeof relatively
large amountsof
information. This information,
as has beennoted,
is
usedby
agentsto
construct a modelof
thetotal
stateof
the
system duringproblem solving.
The speech act model involves the exchange of rather less information, even though
it
doesrequire that
agents engagein
rather more inference.In
short, the
speech act account requires that agents analyse the communications which they receive from other agents; they must also produce communications as the resultof
an inferential process(an agent has,
on
the
basis
of its
state,
to
infer
that
it
needs
to
engage incommunication). Because the production and
understandingof
communicationsproceeds
on
the
same
(or
closely related)
bases,
an
agent
can
analyse
thecommunication
and
hypothesise reasonswhy
it
was performed.
In
other
words,because of the rule-govemed (or conventional) nature of speech acts, analysis of speech acts can lead to the discovery of information about other agents and their internal states
(for example,
if I
say "Please, pass the butter", a hearer is entitled toinfer
thatI
do not have the butter and thatI
would like someF-assuming, as Searle does, that each actof
communication is undertaken in good faith (the assumption that speakers tell the truth, in other words).
In CASSANDRAS9,
all
communications were point-to-point in the sense that broadcastand pooled communications were not possible.
In
theZ
specification (Craig, 1991a),I
C ra
ig*
E x le nding CA SSANIlRArouting information
to be used4. Store-and-forwardis
arelatively low-level
process and does not institutionalise communications. However, thereis
no restrictionin
the architecture definition itself that oneI-evel
Nilanager may communicate onlywith
otherlrvel
Managers that are working on sinrilar or related problems: that restriction seemsto be a reasonable one in an implementation, but is not enforeed by the definition proper (and is certainly not forbidden by the
Z
specification).Within
the contextof cassINDRAS9,
communications are, therefore,limited
inscope, although
it
is possiblefor
one CASSANDRAS9 l-evel Manager to ask anotherfor
information about a third. (Given the fact that my original
vision of cassanDRA
hadLevel
Managersdirectly communicating
with many-perhaps tens--of
others, the amount of information that can be derivedfrom
direct communications appears to bequite
large.)A
further
resu-ictionthat
was enshrined as an architecturalprinciple
inCASSANDRa8g was that communication channels were established when the system was configured.
In
the versionof
the architecture which is currently being developed,communication paths are much more dynamic: channels can be opened at any time during a run
of
thesysterrr-all
that an agent needs to know is the nameof
the agentwith
whichit
wans
to comntunicate (perhapsdescriprlorr
could be used, butit
is not yet clear what form these descriptions would take).Even
in
thisrelatively limited context
(one that is closer to conversations between people), the speech act model has application. In particular,it
is possiblefor
modelsof
other
lrvel
Managers to be constructedon
the basisof
their actsof
communication.That is to say,
it
is not necessaryfor
state information to be communicated as a matterof routine.
At
this point,it
is necessary to observe thatI
do notview
a CASSANDRA system asrequiring
thefull
rangeof
speech acts(Austin,
for
example, claimed that he and hisstudents
had
identified
well
over one
thousandverbs
that
acted
as
speech actindicators).
An
initial
setmight
be: asking, telling,
ordering, requesting, denying,asserting,
promising, instructing
(in
the didactic
sense, also),doubting, informing.
Such a
restriction,
which rnight
need
some augmentation,but,
I
hope,not
much, clearly aidsin
the developmentof
a system and also helps in ensuring that the systemperfornu with less delay than would otherwise be the case.
So
far,
it
has been arguedthat
the
speech act model can be used asthe
basisof
communication production
and
understandings. Cohen andPerrault (1987)
have 4It,"".,
reasonable,ir
some circumstances, to allow communication suuctures such as pooling (a conceprsimilar to bulletin boards), or to allow distribution or mailing lisrs to be maintaired. Any extensions to the
communications strucnne at this level would, though, appear to be related to the organisational model being employed (see next section).
5It i,
i*port-t
to recognise the difference between a communication ard a messaSe. In our terms, a messageconsists of the exchange of one block of information (the idea is ttrat a block or nessage is something like a
single packet), whereas a communication can involve the transmission and reception of a sequence of
C
raig-E
x te n ding
C A S S A l; D R Aproposed a plan-based model
of
speech actsfor
languageproduction.
The Cohen andPerrault theory could be used as a basis for one half
of
what is neededin
support of theabove. 'lJre other
half
requires a theoryof
speech actrecognition
and goal inference.This does nor appear to be as demanding as might appear: the
explicit
natureof
speechacts
which
has been mentioned a numberof
times seemsto
cometo
the rescue. The basicsof
a recognition model appear to be relativelysraightforward:
what appears to bemore
difficult
is the integration of the infornration derivedfrom
the recognition processwith
the stateof
the agent which performs the recognition.This
last aspect remains atopic
for
further
investigation, althoughit
is
clear thatit
presupposes that each agentpossesses knowledge
of
other agents.The speech act model does not rely entirely upon the illocutionary' and perlocutionary
force
of
the communication itself. The determinationof
theconditions
under which aspeech act can be performed can be seen as a kind of context-independent component
of
the
theory.
In
addition,
eachcommunication
containsinformation-.this
has beentermed the propositional content of the speech act. Clearly, the propositional content is context-dependenq
it
is also clear that the speech act, oftenin
a clear fashion, conditionsthe
manner
in
which the
propositional content
is
treated.
In
a
DAI
system, thepropositional
content
determineswhat the
messagecontains.
In
other words,
the content of a communication should not be overlooked.Finally,
whenever two agents conununicate it is true that the communication has beeneffected. In other words, the very
fau
that there has been a communication is an itemof
very relevant information. The importance of this infomration varies with context: when
dealing
with
a loquacious or voluable person, verbalcommunication
tends to lose its value, but when an otherwise taciturn person says something,we
are entitled to place some emphasison
thefact
that they have spoken.At
themomenl
I
am not sure how this additional information fits into the overail approach, althoughI
am convinced thatit
has a role to play.To
summarisethis
section. Earlyin
the developmentof
CRssANDRA89, the speechact rheory presented
itself
as a wayof
regulating inter-agent communciations.With
time,
the importanceof
the theorywithin
the CASSANDRAmodel
has increased, andricher
propertiesof
communication have been observed.Clearly,
communications isnot
the
entire story
in DAI,
but
a
rich
model that
getsaway from
the
traditional computer scienceview
is clearly necessary, particularly when the range andflexibility
of agent behaviours is increased.
4
ORGANISATION
is that for any communication, there is an identifiable spcech act. A communication is a meaningful unit of
C
raig-E
xte nding CA SSANDRAThe concept
of
organisation rvas also clear during thework
on CASSANDRA89. The *,ay in rvhich the l-evel lvilanagersof
that version were organised appeared to be a major factorin
the constructionof
adequate systems;it
is also crucialin
the developmentof
adequate theories
of
groupproblem solving.
At
the tirneof writing,
organisational models havenot
been developed,although
the waysin
which
organisation impactsupon the
operation
of
agents
has
become clearer.
In
the
CASSANDRAmodel,
organisation is considered
in two
lights:(i)
It represents a way of organising knowledge and capabilities in a system.(ii) It
represents a structurethat
is to
be imposed on the communications that are possible between agents.I view these points as being
of
equal importance.The first
of
these points can be explained as follows.An
organisation detemrines thekinds
of
agents thatwill
be presentin
a system. Eachkind
of
agentwill
be equippedwith
certain capabilities and certain knowledge: the organisational role determines whatthe agent
will
be capableof.
For
example, a project manager needs managerialskills
and an overview
of
his (or her)project;
a programmer, on the other hand, needsto
beable to progmm and only needs to concenrate on one small aspect of the project; project
managers
do not
usually engage in progranrming and programmersdo not
usuallyundertake man agerial ( say, sch edul i ng) tasks.
The
types
of
communication
that
can be
expected arealso
determinedby
the organisation. Managers tend to send messages that mntain high-level information more generalin
scope than programmers; they also tend to send directives and requests.A
programmer
working under
a
manager
doesnot,
in
general,
sendthe
manager demands,nor
do
workers tend
to issue
instructions
to superiors-they may
send requests of a more or less specific nature.It
is in this general sense that the organisation determines the kinds of communications that are initiated by its agents.The
above leads,quite
naturally, to
the
observationthat
an organisation entails expectations about thekinds
of
communications thatwill
be undertakenby
variousagents
in
an organisation. When an agent engagesin
akind of
communication that is not predicted by the organisation,it
is reasonable to assume that the agent's rolein
theorganisation has changed.
The
role
an
agent playsin
an organisation also,equally
naturally, determines the
kinds
of
communications thatit may
initiate
and expect toparticipate
in. In
other words, once an organisational structure isin
place, agents can determine the ways in which they are expected to behave and can also make predictions about the behaviour of other agents.Organisation remains an area
in
which
the CASSANDRA model needs to be extended:C
raig-E
x te nding CA SSA NDRA5
SELF-REASONII\G
Very early
in
the development of cnssaNDRA,it
became clear that agents (then calledLevel
Managers)
should be able to reason about themselvesin
a varietyof different
ways.
This
was coupled
with
the
aim of providing
agentswith an extensive
andpowerful
meta-level. Self-reasoning,or
reflection, has been the focusof
more recentefforts. The
more recentwork
has resultedin
a better understandingof
the ways in whichreflection fits
in to the general picrure of CASSANDRA that I developed in the mid1980s.
In
this
section,I will
explain the reasons why autonomous agents must reason aboutthemselves, and
will
explain
someof
the kindsof reflective
inference thatI
see asirnporunt: it
might well
be the case that the list has to be extended in the light of futureexperience.
For
this
section,it
is
necessary to keepin mind
the idea that agents areautonomous.
In
aDAI
system, an agent needs to knowits
strengths and weaknesses.It
needs toknow which
problemsit
can solve, which problemsit
can participatein
(and how), andwhich problems
it
can neither protluce a complete solution nor pafiicipate in a solution.It
needsto
know
how to make the best useof
what itknows
and whatit
can do, andthis
includes strategies for copingwith
its weaknesses. These points apply,of
course,to
any knowledge-based system, but they applywith
increased forcein
a distributed environment, pa-rticularly one which is dynamic in nature.The
environment
within
which a system operates may be moreor
less dynamic.In
more dynamic environments,
it
is necessary for each agent to be as flexible as possiblein
its
responses to other agents and to the external (non-agentive6) environment. The increasedflexibility
ofDAI
agents is crucial because the extemal environment assumesa
far
greater
importance than
in
centralised
systems,and
becausethe
external environment can change very rapidly (indeed, the environrnent generated by the systemmay
itself
undergo
rapid
change).The external environment,
for
many
systems,provides the data upon which the system operates.
If
we extend the terminology to theenvironment
which
is external to an agent (which contains other agents aswell
as theexternal environment or outside
world),
the crucial roleof
the environment becomes even clearer: as has been stated (section 3 above), agentsonly
have a partial viewofthe
state
of
theoverall systern-non-local
changes can occur asynchronously and have to6Th"
t".*
external environment is intended to refer to that part of the environment in which the systemoperates which is not composed of the agents which form the system. The external environment may conlain
other computational structures,
it
may contain people,it
may contain other systems of different kinds (another DAI system, for example), or it may be composed of none of these.C rc
ig*E
x te nding
CA SSA NDRA be detected in some wayif
an agent is to form a picture of what is happeningwithin
the system.It
seems to me that the environmentin
which
an agentfinds
itself is
a significant
reason
for
wanting agents to be as flexible as possible.A
further
propertyof
autonomous agentsis
that they must be ableto
reason abouttheir relationship to other agents and to the environment. Part
of
thisis
todo rvith
theformation
of
models
of
the
system
state.Organisational
information, as u,ell
ascommunication, play a part
in
determining how an agent relates to everything else. [n other words, agents must reason about the communications they receive (see section 3)and they must reason about
their
own rolein
the current organisation, and about the role played by the agentswith which
they cornmunicate.A
simpleillustration
of
this is the caseof
an agent which needs additional information: to obtain theinformation,
the agent can engage in communication with other agents to detennine where the necessaryinformation can be obtained.
In
a hierarchical organisation, the agentmight
enquireof
its imrnediate superior where to obtain the information, for example.
The role of reflection is also important in dynamic task allocation. Before an agent can
undertake to perform a task (solve a problem), it must determine that:
(i) It
has thecapability-in
terrnsof
knowledge,time
and processingpower-to
performit
(perhaps by delegating part of the task to other agents whichit
knows tobe suitably equipped).
(ii) It
has a methodfor
performing the task.The second point may be interpreted as saying that the agent has strategies available that
will
enable the solutionof
the problem. Alternatively,it
may be inteqpreted as sayingthat the agent has a suitable interpreter.
This
lastpoint
relatesto
someof my
more recentwork
on developingreflective
structures which can undertake the interpretativetask in more than one way
(Craig,
1991b).The relevance
of
this is asfollows.
By providing a systemwith different
interpretermechanisms, the system is thereby able to interpret infonnation and apply knowledge in
different
ways.In
the ELEKTRA system (Craig, 1991c),it
is possible to reason aboutwhich rule inteqpreter to use
in
applying the rules in the system. This is made possible by the existence of a potentiallyinfinite
sequence of meta-levels, each of which reasons aboutlower
levels.In
ELEKTRA, the choiceof
rule interpreteris
a knowledge-basedactivify.
This
fact suggests that,in
a CASSANDRA system,it
should be possible to choose theway
in
which knowledgeis
applied as the result of an inferential process(this
is quite apartfrom
the applicationof
strategic and tactical knowledge,it
should be noted).It
c r
aig-
E xte nd ing c^ssA NDRAabout
its
own
behaviour when expressed as the interpretationof
knowledge-encoding structures.There is another sense in which self-reasoning can be applied: this other sense relates ro rhe *'af
in
which declarative knowledge is inter.preted Onefailing
of casseNDRASgis
thatit
made no provisionsfor
a declarative database: everything was expressed interrns
of
Knowledge Sources. For a very long time,I
have considered that a declarativecomponent
was necessary, and have tried(for
example,Craig,
1987,for
an examplewithin
the blackboard framework) to integrate declarative structures with the proceduralrepresentation afforded
by
Knowledge
Sources;
a
more recent and
extensiveexploration
is currently being undertaken (Craig, 1991d).The more
recentwork
takesits direction
from
the account givenin
Craig,
1991e.There,
I
concenfrated on the lessons that can be learnedfrom
therole
of
themeta-language
in
first-order logic.
In
first-order
systems,it
is
the
meta-language which contains the machinery for determining truth and reference.I
argued that these concepts are essentialfor
AI
systemsin
general, and forreflective
systemsin
particular. This is because a reflective system needs to be able to give an account of truth in its system. Inshort,
the
meta-language gives an object-languageits
semantics.This
entails that the meta-language determines the interpretation map for the object-languageT.The
major
lesson is that the semanticsof
knowledge representations must be givenexplicitly.
The
main problemis
asking what agiven
sentenceof
the representationlanguage means. This is not merely a computational
problem (in
other words,it
doesnot reduce
to
specifying an interpretive algorithm),but
alogical
one. For a reflectivesystem such
as thoseI
amcurrently
considering,
the
systemitself
must
contain structu'es which determine the truth-values of representation language sentences.For
aDAI
system, this problemis
clearlyof
considerable importance because the system's agents have to reason about themselves and about their environment (taken asincluding
other agents, communications, etc.): they need to believe only that which istrue.
This
is
shown quite clearlyin
thework
byKonolige (1982,1986,
1988), Moore(1985,
1988) and others on mutual knowledge andbelief.
The problem is also shownby
the
fact
that
communication must be
'meaningful'
(in
some sense):the
mere exchangeof
uninteqpreted symbols is justthat-the
exchange of uninterpreted symbols.What is
required is some interpretational mechanism(in
thelogical
sense)which
will
determine the meanings of the exchange.Given
the different kindsof
knowledge that anintelligent,
autonomous agent must possess,it
is essential that the agent be able to use that knowledge in meaningful ways.It
must
be able to interpret processes and eventsover
which it
has no conrroljust
in/The next question is 'what determines the interpretation for the meta-language?' The answer! according to Tarski, is that a meta-meta-language does.
C ra ig-- E x te nd
ing
cl
ssA NDRAI
order fo react in appropriate ways. The variety of knowledge that an agent must possess
entails
thatthe
agentmust be
ableto
use that knowledgein
the mosteffective
andflexible
ways possible. Furthennore,it
must be able to reason aboutwhat
it
knows, bothin
terrnsof
scope and alsoin
tenns of meaning. This implies that extensivemeta-level
structlires must be employedby
the agentin
reacting to its environment and in solving problems.To
take an example,it
must be possible for an agent to determine thelikely
effectsof
engagingin
communicationwith
another agent:this
requires thatit
reason about the communication, about the reason for engaging
in
the communication,and that it reason about the agent with which it intends to communicate.
The area
of
self-reasoning is the focus ofcurrent research.6
CONCLUSIONS
This
paper
hasdocumented
my
thoughtson how
to
extend
the
CASSANDRAS9architecture.
Someof
the
extensions werepart
of
the
original
conception
of
the CASSANDRA architecture, whereas others havebecoile
clear since thattime
(for
themost
part,
during
1988-90).The
extensionswhich
have beenworked
out in
detailconcern the role of communications and of reflection in CASSANDRA agents. The other
main extension is the enrichment
of
the conceptof
organisation. Furthennore, there isan
increasing
needfor
semanticsin DAI
systems: becauseof
the
nature
of the
environment in
which
such systems operate, and because of the constraints imposed on component agents by being elements of such a system,it
is becoming increasingly clear that they must bein
aposition
to reason about their own representations and the waysin which they are used.
'fhe
readerwill
have noted thatI
have not botheredwith
the problemsof
parallel anddistributed implementation. The reason for this is that
I
consider these problems to beof a merely implementational nature: in a sense, they pose no conceptual problems.
The
CASSANDRAarchitecture
is
now
being usedby a
numberof
other
workers, mostlyin the
1989 version.In
the near future,I
hope to produce a new versionof
thearchitecture
which
incorporates
some,if
not
all,
of the extensions
that
have beenoutlined above.
C
raig-E
x te nd ing c,,{ ssA NDR/REFBRENCES
Austin,
1.L.,How
toDo
Things wtth Words,OUP,
1962.Cohen,
P.
and Perrault,
R.,
Elements
of
a
Plan-basedTheory
of
Speech Acts,Cognitive
Science,Vol.
3, pp. L77 -212, 1987 .Craig, LD.,
BB-SR,
ResearchReport
No. 94,
Department
of
Computer
Science,University
ofWarwick, i987.
Craig,
1.D.,The
CASSANDRAArchitecture,
Ellis
l{orwood,
Chichester, England,1 989.
Craig, LD.,
TheForrnal Speclfication
of
AI
Systems,Ellis
I{or*'ood,
Chichester,England,
in press, 1991a.Craig, \.D.,
Rule Interpreters in EI.EKTRA, Research Report, Departmentof
Cornputer Science, University ofWarwick,
inprep.,
1991b.Craig,
I.D.,
EI-EKTRA: A ReflectiveProduction
System, Research Report, Departmentof
Computer Science, University ofWarwick,
inprep.,
1991c.Craig,
LD.,
The
Formal
Specfficatton
of
RPS, ResearchReport, Department
of
Conrputer Science, University of
Warwick,
inprep.,
1991d.Craig, LD.,
Meta-Knowledge and
Introspection,
Research Report, Departmentof
Computer Science, University of Warwick , in
prep.,
1991e.Davis,
R.
and Smith,
R.G.,
Negociation as
a
Metaphor
for
Distributed
Problem Solving,Artificial
Intelligence Journal,Vol.
20, pp. 63-109, 1983.Durfee, E.H.
andlrsser,
V.R.,
Using PartialGlobal
Plans to Coordinate DistributedProblem
Solvers, Proc.IJCAI,
pp.875-883,1987.
Grice,
H.P., Meaning, Philosophical Review, pp. 377-88,
1957 .Hewitt,
C.E.,Viewing Control
Structures as Pattemsof
Passing Messages,Artificial
I ntel l i g e nc e J our nal,
Vol.
8, pp. 323-364, 197 7 .Konolige, K., A
First-Order Fonnalisationof
Knowledge and Actionfor
a MultiagentPlanning
System,
in
Hayes,
J.8.,
Michie,
D.
and
Pao,
Y.
(eds.),
Machine
Intelligence
/0,
Ellis Horwood, Chichester, England, 1982.Konolige, K., A
Deduction Model
of Belief,
Pitman
Research Notesin
Artificial
Intelligence,
1986.C ro ig--- E x te n d i n
g
C,4 SSI N D R AKonolige,
K.,
Reasoningby
Introspection,in
Maes, P., andNardi, D.,
l+[eta-LevelAr c hi te c t ure s a nd R cfl e c t i o n, North- Holl and, An:sterdam, I 9 88.
Levinson, S.C., Prcg
nntics,
Carnbridge Textbooks in Linguistics,CUP,
1983.Minsky,
M,The
Sociery of Mind, Heinemann, [.ondon, 1985.Moore, R.C.,
A
Fonutl
Theory of Knowledge andAction, Report
No.
CSLI-85-31,CSLI,
StanfordUniversity,
1985.Moore, R.C.,
Autoepisternic Logic,
in
Smets, P. etal.
(eds.'),Non-Standard
Logicsfor
Automated Reasoning,
pp. 105- I 36, Academic Press,I-ondon,
1 988.Searle, J.R., Speech Acts,
CUP,
1969.Suchman,